/* ==========================================================================
   final-cta.css — BuddieSpace Final CTA Section
   Figma node: 1:92  |  Canvas: 1440 × 1391 px
   ========================================================================== */

/* ---- Section wrapper ---- */
.bs-final-cta {
  background: #ffffff;
  overflow: hidden;
  padding: clamp(40px, 4.72vw, 68px) clamp(20px, 5.56vw, 80px) clamp(60px, 5.56vw, 80px);
}

/* ---- Text block (headline + body, max 1065 px wide per Figma) ---- */
.bs-final-cta__inner {
  max-width: clamp(300px, 73.96vw, 1065px);
  margin: 0 auto;
  text-align: center;
}

/* ---- Headline ---- */
/* Two-weight headline: medium base + extrabold emphasis word */
.bs-final-cta__headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3.82vw, 55px);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #21254a;
  margin: 0;
}

/* "alone" — larger, extrabold (73 px in Figma vs 55 px base) */
.bs-final-cta__headline-emphasis {
  font-size: clamp(34px, 5.07vw, 73px);
  font-weight: 800;
}

/* ---- Body paragraph ---- */
.bs-final-cta__body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.94vw, 28px);
  font-weight: 400;
  line-height: 1.55;
  color: #21254a;
  margin: clamp(24px, 3.82vw, 55px) 0 0;
}

/* ---- CTA group (button + note) ---- */
.bs-final-cta__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.46vw, 21px);
  margin-top: clamp(20px, 2.01vw, 29px);
}

/* ---- Button ---- */
.bs-final-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #21254a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.875vw, 27px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 0 clamp(20px, 2.78vw, 40px);
  height: clamp(44px, 4.79vw, 69px);
  min-width: clamp(200px, 32.5vw, 468px);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.bs-final-cta__btn:hover,
.bs-final-cta__btn:focus-visible {
  background: #2e3460;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

.bs-final-cta__btn:active {
  transform: translateY(0);
}

/* ---- Note text below button ---- */
.bs-final-cta__note {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.4;
  color: #21254a;
  margin: 0;
}

/* ---- App screens row ---- */
/* Scrollable row — 4 frames visible at desktop, fewer at smaller sizes */
.bs-final-cta__screens {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: clamp(10px, 3.4vw, 49px);
  margin-top: clamp(48px, 5.69vw, 82px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* keep 2 px border visible */
  padding-bottom: 4px;
  /* hide scrollbar visually but keep functionality */
  scrollbar-width: none;
}

.bs-final-cta__screens::-webkit-scrollbar {
  display: none;
}

/* ---- Individual phone frame ---- */
/* 292 × 552 px in Figma with 2px navy border */
.bs-final-cta__screen {
  flex: 0 0 clamp(120px, 20.28vw, 292px);
  width: clamp(120px, 20.28vw, 292px);
  aspect-ratio: 292 / 552;
  border: 2px solid #21254a;
  overflow: hidden;
  position: relative;
}

.bs-final-cta__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ==========================================================================
   Responsive — Tablet  (≤ 1023 px)
   ========================================================================== */
@media (max-width: 1023px) {
  .bs-final-cta {
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
  }

  .bs-final-cta__inner {
    max-width: 100%;
  }

  .bs-final-cta__btn {
    min-width: clamp(180px, 55vw, 400px);
  }

  .bs-final-cta__screen {
    flex: 0 0 clamp(120px, 22vw, 240px);
    width: clamp(120px, 22vw, 240px);
  }
}

/* ==========================================================================
   Responsive — Mobile  (≤ 599 px)
   ========================================================================== */
@media (max-width: 599px) {
  .bs-final-cta {
    padding: 40px 20px 48px;
  }

  .bs-final-cta__headline {
    font-size: clamp(24px, 7vw, 36px);
  }

  .bs-final-cta__headline-emphasis {
    font-size: clamp(30px, 9.5vw, 46px);
  }

  .bs-final-cta__body {
    font-size: 16px;
    margin-top: 24px;
  }

  .bs-final-cta__cta-group {
    margin-top: 20px;
    gap: 14px;
  }

  .bs-final-cta__btn {
    min-width: 0;
    width: 100%;
    font-size: 17px;
    height: 52px;
    border-radius: 10px;
  }

  .bs-final-cta__note {
    font-size: 14px;
  }

  .bs-final-cta__screens {
    gap: 12px;
    margin-top: 40px;
  }

  /* Two screens visible at a time; swipe to see the rest */
  .bs-final-cta__screen {
    flex: 0 0 42vw;
    width: 42vw;
  }
}
