/* ════════════════════════════════════════════════════════════════
   Navier · Mobile — index.html (marketing homepage)
   ────────────────────────────────────────────────────────────────
   Phase 2 Section F. Funnel/marketing page: links mobile/tokens.css
   + this file ONLY — never mobile/shell.css. All rules ≤768px
   except the hamburger hide (sheet exists only via the ≤768 button).

   Load order: base → components → layout → pages/home
               → mobile/tokens → mobile/home
   ════════════════════════════════════════════════════════════════ */

/* Hamburger is mobile-only chrome; the sheet can only be opened by it. */
@media (min-width: 769px) {
  .home-menu-btn { display: none !important; }
}

@media (max-width: 768px) {

  /* ── Header: sticky, slim, logo + CTA + hamburger ────────────── */
  .home-header {
    position: sticky;
    top: 0;
    height: 60px;
    padding: 0 var(--m-gutter);
    z-index: 150;
  }
  .home-header.scrolled {
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }
  .home-header-links { display: none; }
  .home-header-signin { display: none; } /* lives in the sheet */
  .home-header-actions { gap: 10px; }
  .home-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
  }

  /* ── Menu sheet links (m-sheet primitive carries the chrome) ─── */
  .home-sheet-links {
    display: flex;
    flex-direction: column;
    padding: 6px 0 2px;
  }
  .home-sheet-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--m-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--m-line-2);
  }
  .home-sheet-links .home-sheet-signin { border-bottom: none; color: var(--m-muted); }
  .home-sheet-links .m-btn { margin-top: 10px; border-bottom: none; }

  /* ── Hero ────────────────────────────────────────────────────── */
  .hero-content { padding: 44px var(--m-gutter) 46px; }
  .hero-headline { font-size: 32px; line-height: 1.08; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-hero-cta {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    box-sizing: border-box;
  }
  .btn-ghost-link { justify-content: center; min-height: 44px; }

  /* ── Section rhythm / tap targets ────────────────────────────── */
  .faq-q-btn { min-height: 52px; }
  .plan-cta { min-height: 48px; }
  .clr-cta { min-height: 46px; display: inline-flex; align-items: center; }

  /* Back-to-top above the safe area */
  .back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* ── Reduced motion ──────────────────────────────────────────── */
  /* GSAP sets inline opacity; stylesheet !important outranks
     non-important inline styles, so reveal elements can never start
     invisible and stay that way with motion disabled. */
  @media (prefers-reduced-motion: reduce) {
    .js-ready .gsap-reveal,
    .js-ready .gsap-reveal-left,
    .js-ready .gsap-reveal-right {
      opacity: 1 !important;
      transform: none !important;
    }
    .marquee-track { animation: none !important; }
  }
}

/* ── How it works: interleave copy + its card per step (mobile narrative) ──
   Desktop is a two-column pinned scroll story; the ≤1024 fallback stacked ALL
   copy then ALL cards (a disconnected ~4.5-screen double-read). On mobile,
   flatten both columns into one flex flow (display:contents) and ORDER each
   copy step directly above its matching demo card, so each step reads as one
   beat: explain → show. Cards are already position:relative on mobile, so
   order alone interleaves them; the inert stepper stays hidden. */
@media (max-width: 768px) {
  .home-how .how-inner { display: flex; flex-direction: column; gap: 0; }
  .home-how .how-copy,
  .home-how .how-copy-stack,
  .home-how .how-stack-wrap,
  .home-how .how-stack { display: contents; }

  .home-how .how-copy > .section-eyebrow { order: 0; margin-bottom: 22px; }
  .home-how .how-stepper { display: none; }

  .home-how .how-copy-step[data-step="1"] { order: 1; } .home-how .stk-card[data-step="1"] { order: 2; }
  .home-how .how-copy-step[data-step="2"] { order: 3; } .home-how .stk-card[data-step="2"] { order: 4; }
  .home-how .how-copy-step[data-step="3"] { order: 5; } .home-how .stk-card[data-step="3"] { order: 6; }
  .home-how .how-copy-step[data-step="4"] { order: 7; } .home-how .stk-card[data-step="4"] { order: 8; }
  .home-how .how-copy-step[data-step="5"] { order: 9; } .home-how .stk-card[data-step="5"] { order: 10; }
  .home-how .how-copy-step[data-step="6"] { order: 11; } .home-how .stk-card[data-step="6"] { order: 12; }

  /* Per-beat rhythm: copy hugs its card, a clear gap separates beats. */
  .home-how .how-copy-step { margin: 0 0 16px; }
  .home-how .stk-card { margin: 0 0 40px; }
}
