/* ==========================================================================
   final-cta.css — BuddieSpace Final CTA Section
   Figma node: 29:121 | Canvas: 1440px
   White bg, headline + body + buttons + badges + 4 phone screens
   ========================================================================== */

/* ---- Section wrapper ---- */
.bs-final-cta {
  background: #ffffff;
  padding: clamp(60px, 6.94vw, 100px) clamp(24px, 6.67vw, 96px);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 3.89vw, 56px);
}

/* ---- Headline ---- */
/* Figma: Bold 700, 54px, navy, mixed case, centered */
.bs-final-cta__headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3.75vw, 54px);
  font-weight: 700;
  line-height: 1.3;
  color: #21254a;
  margin: 0;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
}

/* ---- Content block (body + CTA group) ---- */
.bs-final-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.67vw, 24px);
  width: 100%;
}

/* ---- Body paragraph ---- */
/* Figma: Regular 400, 22px, navy, centered */
.bs-final-cta__body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.53vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  color: #21254a;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* ---- CTA group (buttons + badges + note) ---- */
.bs-final-cta__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.67vw, 24px);
  width: 100%;
}

/* ---- Button row (side by side) ---- */
.bs-final-cta__btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 0.83vw, 12px);
}

/* ---- Button base ---- */
.bs-final-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.39vw, 20px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Navy primary button */
.bs-final-cta__btn--navy {
  background: #21254a;
  color: #ffffff;
}

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

/* Blue secondary button */
.bs-final-cta__btn--blue {
  background: #59acf8;
  color: #000000;
}

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

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

/* ---- App store badges ---- */
.bs-final-cta__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.45vw, 6.4px);
  flex-wrap: wrap;
}

.bs-final-cta__badge-link {
  display: inline-flex;
  flex-shrink: 0;
}

.bs-final-cta__badge-img {
  height: clamp(40px, 3.47vw, 50px);
  width: auto;
  max-width: 160px;
  display: block;
}

/* ---- Note text below badges ---- */
/* Figma: Regular 400, 22px, navy, centered */
.bs-final-cta__note {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.53vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: #21254a;
  margin: 0;
  text-align: center;
}

/* ---- App screens row ---- */
/* Figma: justify-between, 4 frames × 292px wide with 2px navy border */
.bs-final-cta__screens {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.04vw, 15px);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

/* ---- Individual phone frame ---- */
.bs-final-cta__screen {
  flex: 1 1 0;
  min-width: clamp(80px, 16vw, 240px);
  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__btn-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .bs-final-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

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

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

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

  .bs-final-cta__btn {
    font-size: 17px;
    padding: 15px 24px;
  }

  .bs-final-cta__badge-img {
    height: 38px;
  }

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

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