/* Mobile-only overrides. Desktop styles.css is untouched.
   All rules are scoped to max-width: 768px. */

@media (max-width: 768px) {
  .page {
    width: 100%;
    margin: 0;
  }

  /* —— Hero —— */
  .hero {
    margin-bottom: 0;
  }

  .hero-shell {
    min-height: max(640px, 78svh);
    height: auto;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
    padding: clamp(96px, 16vh, 120px) 16px 0;
    gap: 0;
  }

  .site-nav {
    top: 14px;
    padding: 0 clamp(14px, 4vw, 24px);
  }

  .site-nav__inner {
    width: 100%;
    padding: 6px 6px 6px 14px;
    gap: 14px;
  }

  .site-nav__brand {
    gap: 0;
  }

  .site-nav__logo {
    height: 20px;
  }

  .site-nav__actions {
    gap: 21px;
  }

  .site-nav__link {
    font-size: 13px;
  }

  .site-nav__cta {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero-content {
    padding-top: 0;
    max-width: 100%;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 0.9;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.45;
    max-width: 34ch;
    margin-bottom: 28px;
  }

  .hero-sub br {
    display: none;
  }

  .hero-visual {
    justify-content: center;
    padding-top: 28px;
    margin-top: 0;
    margin-bottom: -22%;
    width: 100%;
  }

  .phone-composition {
    width: clamp(160px, 52vw, 220px);
    max-width: 220px;
    min-width: 160px;
    margin-right: 0;
  }

  .hero-content .waitlist-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 22px;
    padding: 10px;
    gap: 8px;
  }

  .hero-content .waitlist-form input,
  .hero-content .waitlist-form .btn {
    width: 100%;
    height: 48px;
    flex: none;
  }

  .hero-content .waitlist-form input {
    text-align: center;
    padding: 0 14px;
  }

  .float-card {
    display: grid;
  }

  .float-card-left {
    width: 64%;
    left: -36%;
    top: 20%;
  }

  .float-card-right {
    width: 68%;
    right: -38%;
    top: 32%;
  }

  /* —— Features —— */
  .features.section {
    --features-scale: 0.8;
    --features-text-scale: 0.9;
    --features-body-scale: 0.98;
    padding-top: clamp(
      calc(140px * var(--features-scale)),
      calc(18vh * var(--features-scale)),
      calc(200px * var(--features-scale))
    );
    padding-bottom: 0;
    padding-left: calc(20px * var(--features-scale));
    padding-right: calc(20px * var(--features-scale));
  }

  .features .section-head {
    margin-bottom: calc(64px * var(--features-scale));
    max-width: 100%;
    padding: 0 4px;
  }

  .features .section-head h2 {
    font-size: clamp(
      calc(36px * var(--features-text-scale)),
      calc(9vw * var(--features-text-scale)),
      calc(44px * var(--features-text-scale))
    );
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: calc(14px * var(--features-text-scale));
  }

  .features .section-head p {
    font-size: calc(16px * var(--features-text-scale));
    line-height: 1.45;
    color: #8a8a8a;
  }

  .features-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: calc(420px * var(--features-scale));
    column-gap: 0;
    row-gap: calc(44px * var(--features-scale));
  }

  .feature-item__media {
    aspect-ratio: 1520 / 2192;
    margin-bottom: calc(24px * var(--features-scale));
  }

  .feature-item__title {
    font-size: calc(22px * var(--features-text-scale));
    margin-bottom: calc(10px * var(--features-text-scale));
  }

  .feature-item__body {
    font-size: calc(15px * var(--features-body-scale));
    line-height: 1.5;
    color: #a0a0a0;
    max-width: none;
  }

  /* —— Quote —— */
  main {
    --m-section-gap: clamp(96px, 22svh, 190px);
  }

  .quote {
    min-height: 210svh;
    margin-top: 0;
    padding: var(--m-section-gap) 0 0;
  }

  /* Pins the text dead-center; --quote-h is set by script.js */
  .quote-sticky {
    top: calc(50svh - var(--quote-h, 140px) / 2);
    padding: 0 24px;
  }

  .quote-text {
    width: auto;
    max-width: 100%;
    font-size: clamp(27px, 7.2vw, 34px);
    line-height: 1.26;
    text-align: center;
    text-wrap: balance;
  }

  .quote-line {
    display: inline;
    white-space: normal;
  }

  .quote-line::after {
    content: none;
  }

  /* —— Steps —— */
  /* Pulled up so the gap under the quote matches the gap above it;
     --steps-head-top is set by script.js */
  .steps {
    height: calc(100svh + var(--steps-count) * 65svh);
    margin-top: calc(var(--m-section-gap) - var(--steps-head-top, 200px));
    background: transparent;
  }

  .steps-sticky {
    justify-content: center;
    gap: 28px;
    padding: 72px 16px 24px;
  }

  .steps-head h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 7.6vw, 34px);
  }

  .steps-head p {
    font-size: clamp(11px, 3.25vw, 14px);
    white-space: nowrap;
  }

  .steps-stage {
    flex: none;
    container-type: normal;
  }

  .steps-deck {
    width: 100%;
  }

  .steps-progress {
    width: 100%;
    gap: 10px;
  }

  /* —— Footer —— */
  .site-footer {
    padding: 0 20px;
  }

  .footer-shell {
    flex-direction: column;
    gap: 40px;
    padding: 56px 4px 48px;
  }

  .footer-logo {
    height: 22px;
  }

  .footer-cols {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px;
  }

  /* Extra-tight phones (~375 and below) */
  @media (max-width: 390px) {
    .hero-shell {
      min-height: max(640px, 78svh);
      padding-left: 0;
      padding-right: 0;
    }

    .hero-inner {
      padding-left: 14px;
      padding-right: 14px;
    }

    .site-nav__link {
      display: none;
    }

    .site-nav__actions {
      gap: 0;
    }

    .hero-title {
      font-size: clamp(36px, 10.5vw, 44px);
    }

    .phone-composition {
      width: clamp(140px, 50vw, 180px);
      max-width: 180px;
    }

    .features .section-head h2,
    .steps-intro h2 {
      font-size: 28px;
    }
  }
}
