  /* ==========================================================================
     FitVantage — homepage (self-contained, consumer-first rebuild)
     Brand tokens mirror assets/css/styles.css so this page stays consistent
     with the (untouched) sub-pages. Display font kept as Space Grotesk for now.
     ========================================================================== */

  /* 1. Tokens ------------------------------------------------------------- */
  :root {
    --bg:           #09100d;
    --bg-elev:      #111a15;
    --bg-card:      #0f1912;
    --ink:          #eef2ee;
    --ink-muted:    #7a8c7d;
    --green:        #96CD7C;
    --green-dim:    #1e3322;
    --green-glow:   rgba(150, 205, 124, 0.12);
    --line:         rgba(255, 255, 255, 0.07);
    --line-green:   rgba(150, 205, 124, 0.15);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
    --step-0:  clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
    --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
    --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.8rem);
    --step-3:  clamp(1.7rem, 1.45rem + 1.25vw, 2.45rem);
    --step-4:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
    --step-5:  clamp(2.4rem, 1.85rem + 2.75vw, 4rem);

    --container:    1180px;
    --radius:       14px;
    --radius-lg:    22px;
    --radius-pill:  999px;
    --nav-h:        72px;

    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --dur:       0.35s;

    --shadow-soft:  0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-green: 0 18px 50px rgba(150, 205, 124, 0.12);
  }

  /* 2. Reset & base ------------------------------------------------------- */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    background-image: radial-gradient(circle, rgba(150, 205, 124, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

  h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

  :focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

  .section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green);
    display: inline-block;
    margin-bottom: 1.1rem;
  }

  .lead { color: var(--ink-muted); font-size: var(--step-1); max-width: 56ch; }

  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 200;
    background: var(--green); color: #09100d; padding: 0.6rem 1rem;
    border-radius: 8px; font-weight: 600; transition: top 0.2s var(--ease);
  }
  .skip-link:focus { top: 1rem; }

  /* 3. Buttons ------------------------------------------------------------ */
  .btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 600; font-size: var(--step-0);
    padding: 0.8rem 1.4rem; border-radius: var(--radius-pill);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    white-space: nowrap;
  }
  .btn--primary { background: var(--green); color: #09100d; }
  .btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-green); }
  .btn--ghost { border: 1px solid var(--line-green); color: var(--ink); }
  .btn--ghost:hover { border-color: var(--green); transform: translateY(-2px); }
  .btn .arrow { transition: transform var(--dur) var(--ease); }
  .btn:hover .arrow { transform: translateX(3px); }

  /* 4. Nav ---------------------------------------------------------------- */
  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
    display: flex; align-items: center;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
    border-bottom: 1px solid transparent;
  }
  .nav.scrolled {
    background: rgba(17, 26, 21, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
  }
  .nav__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .brand__logo { height: 32px; width: auto; }
  .nav__links { display: flex; align-items: center; gap: 1.8rem; }
  .nav__link { color: var(--ink-muted); font-weight: 500; font-size: var(--step-0); transition: color var(--dur) var(--ease); }
  .nav__link:hover { color: var(--ink); }
  .nav__actions { display: flex; align-items: center; gap: 1rem; }
  .nav__business { color: var(--ink-muted); font-weight: 500; font-size: var(--step--1); transition: color var(--dur) var(--ease); }
  .nav__business:hover { color: var(--green); }
  .nav__cta { padding: 0.6rem 1.15rem; font-size: var(--step--1); }
  .nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease), opacity 0.2s; }
  .nav__toggle span::before { transform: translate(-50%, -7px); }
  .nav__toggle span::after  { transform: translate(-50%, 5px); }

  /* Mobile drawer */
  .drawer {
    position: fixed; inset: 0; z-index: 99; background: rgba(9,16,13,0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
    padding: 2rem clamp(1.1rem, 6vw, 3rem);
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
    visibility: hidden;
  }
  .drawer.open { transform: translateX(0); visibility: visible; }
  .drawer a { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; padding-block: 0.5rem; color: var(--ink); }
  .drawer a.drawer__business { color: var(--ink-muted); font-size: var(--step-1); }
  .drawer .btn { margin-top: 1.5rem; align-self: flex-start; font-size: var(--step-1); }
  body.no-scroll { overflow: hidden; }

  /* 5. Hero --------------------------------------------------------------- */
  .hero { padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(3.5rem, 9vw, 7rem); position: relative; }
  .hero::before {
    content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: min(900px, 95vw); height: 600px; pointer-events: none; z-index: -1;
    background: radial-gradient(ellipse at center, var(--green-glow), transparent 65%);
  }
  .hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
  .hero h1 { font-size: var(--step-5); margin-bottom: 1.3rem; }
  .hero h1 .accent { color: var(--green); }
  .hero__sub { color: var(--ink-muted); font-size: var(--step-1); max-width: 46ch; margin-bottom: 2rem; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

  /* 6. Phone frame (shared) ---------------------------------------------- */
  .phone {
    width: 100%; max-width: 320px; margin-inline: auto; aspect-ratio: 320 / 660;
    background: linear-gradient(160deg, #0f1912, #0b130f);
    border: 1px solid var(--line-green); border-radius: 36px;
    box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,0.02);
    padding: 14px; position: relative; overflow: hidden;
  }
  .phone::before {
    content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 86px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08);
  }
  .phone__screen {
    height: 100%; border-radius: 24px; background: var(--bg);
    border: 1px solid var(--line); padding: 1.4rem 1.1rem 1.1rem; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .phone__bar { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-muted); margin-bottom: 1rem; }
  .phone__bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

  /* Meal-scan demo (the signature) */
  .scan__title { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); margin-bottom: 0.7rem; }

  .scan__stage {
    flex: 1; min-height: 158px; border-radius: 18px; position: relative; overflow: hidden;
    border: 1px solid var(--line-green);
    background:
      radial-gradient(circle at 50% 32%, rgba(150,205,124,0.10), transparent 72%),
      linear-gradient(160deg, #0e1812, #0a120d);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 0.95rem;
  }
  .scan__hint { color: var(--ink-muted); font-size: 0.82rem; max-width: 20ch; position: relative; z-index: 2; }

  /* idle reticle */
  .scan__reticle { position: absolute; inset: 16px; pointer-events: none; }
  .scan__reticle span { position: absolute; width: 18px; height: 18px; border: 2px solid var(--line-green); }
  .scan__reticle span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
  .scan__reticle span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
  .scan__reticle span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
  .scan__reticle span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

  /* scanning */
  .scan__shot { width: 74%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-green); box-shadow: var(--shadow-soft); }
  .scan__beam {
    position: absolute; left: 8%; right: 8%; top: 0; height: 36%; z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(150,205,124,0.20) 78%, rgba(150,205,124,0.8));
    border-bottom: 2px solid var(--green); box-shadow: 0 0 18px var(--green-glow);
    animation: beam 0.9s var(--ease) infinite;
  }
  @keyframes beam { 0% { transform: translateY(-30%); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateY(250%); opacity: 0.5; } }
  .scan__hint--scanning {
    position: absolute; bottom: 12px; z-index: 3; color: var(--green);
    font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em;
  }

  /* result */
  .res { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 0.5rem; text-align: left; animation: resIn 0.4s var(--ease-out); }
  @keyframes resIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .res__head { display: flex; align-items: center; gap: 0.6rem; }
  .res__thumb { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-green); display: grid; place-items: center; flex: none; overflow: hidden; }
  .res__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .res__id { flex: 1; min-width: 0; }
  .res__name { font-weight: 600; font-size: 0.9rem; line-height: 1.15; }
  .res__cal { text-align: right; line-height: 1; flex: none; }
  .res__cal b { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); }
  .res__cal span { display: block; font-family: var(--font-mono); font-size: 0.55rem; color: var(--ink-muted); }
  .macros { display: flex; flex-direction: column; gap: 0.32rem; }
  .macro { display: grid; grid-template-columns: 3.3rem 1fr 1.9rem; align-items: center; gap: 0.5rem; }
  .macro__l { font-size: 0.68rem; color: var(--ink-muted); }
  .macro__track { height: 6px; border-radius: var(--radius-pill); background: var(--green-dim); overflow: hidden; }
  .macro__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5f8f47, var(--green)); }
  .macro__g { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink); text-align: right; }
  .res__ing-label { font-family: var(--font-mono); font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 0.32rem; }
  .res__ing-list { display: flex; flex-wrap: wrap; gap: 0.28rem; }
  .res__ing-list span { font-size: 0.62rem; padding: 0.2rem 0.45rem; border-radius: var(--radius-pill); background: rgba(150,205,124,0.06); border: 1px solid var(--line-green); color: var(--ink); }
  .res__note { font-size: 0.7rem; color: var(--ink-muted); line-height: 1.4; margin-top: auto; }

  /* dish picker */
  .scan__picker { margin-top: 0.8rem; }
  .scan__picker-label { font-family: var(--font-mono); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 0.5rem; }
  .scan__dishes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .dish { display: flex; flex-direction: column; align-items: center; gap: 0.32rem; padding: 0.45rem 0.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease); }
  .dish:hover { border-color: var(--line-green); transform: translateY(-2px); }
  .dish[aria-pressed="true"] { border-color: var(--green); background: rgba(150,205,124,0.07); }
  .dish__thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
  .dish__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .dish__name { font-size: 0.58rem; color: var(--ink-muted); line-height: 1; }
  .dish[aria-pressed="true"] .dish__name { color: var(--green); }

  /* 7. Fragmentation ------------------------------------------------------ */
  .frag__head { max-width: 60ch; margin-bottom: 3rem; }
  .frag h2 { font-size: var(--step-4); margin-bottom: 1rem; }
  .frag__compare { display: grid; grid-template-columns: 1fr auto 1.05fr; align-items: center; gap: clamp(1.2rem, 4vw, 3rem); }
  .frag__label { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 1.1rem; }
  .frag__scatter { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 380px; }
  .frag__chip {
    font-family: var(--font-mono); font-size: 0.8rem; padding: 0.55rem 0.9rem; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-muted);
  }
  .frag__chip:nth-child(odd) { transform: rotate(-1.5deg); }
  .frag__chip:nth-child(even) { transform: rotate(1.5deg); }

  .frag__arrow { color: var(--green); display: grid; place-items: center; }
  .frag__arrow svg { width: 30px; height: 30px; }

  .frag__app {
    border: 1px solid var(--line-green); border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(150,205,124,0.09), rgba(150,205,124,0.015));
    box-shadow: var(--shadow-green); padding: clamp(1.3rem, 3vw, 1.9rem);
  }
  .frag__app-top { display: flex; align-items: center; gap: 0.65rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line-green); }
  .frag__app-mark { height: 26px; width: auto; }
  .frag__app-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
  .frag__features { list-style: none; display: grid; gap: 0.75rem; }
  .frag__features li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.98rem; color: var(--ink); }
  .frag__features svg { width: 17px; height: 17px; color: var(--green); flex: none; }

  .frag__payoff { margin-top: 3rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); max-width: 24ch; }
  .frag__payoff .accent { color: var(--green); }

  /* 8. Day narrative — scroll-driven story -------------------------------- */
  .day__head { margin-bottom: 3.5rem; }
  .day h2 { font-size: var(--step-4); }
  .day__layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  /* extra runway after the last beat so the sticky phone stays pinned
     while beat 05 plays (without it the phone scrolls away mid-animation) */
  .day__beats { display: flex; flex-direction: column; gap: clamp(3rem, 24vh, 12rem); padding-bottom: clamp(14rem, 45vh, 26rem); }
  .beat { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; transition: opacity 0.45s var(--ease); }
  .js .beat { opacity: 0.4; }
  .js .beat.is-active { opacity: 1; }
  .beat__num {
    font-family: var(--font-mono); font-size: 0.9rem; color: var(--green);
    border: 1px solid var(--line-green); border-radius: 10px; padding: 0.4rem 0.6rem;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .beat.is-active .beat__num { background: var(--green); color: #09100d; border-color: var(--green); box-shadow: 0 0 18px var(--green-glow); }
  .beat__when { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 0.4rem; }
  .beat h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
  .beat p { color: var(--ink-muted); max-width: 42ch; }
  .beat__screen { display: none; } /* mobile inline screen, shown < 900px */

  .day__sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .day__phones { position: relative; }
  /* keep the whole phone on screen even on short viewports
     (aspect-ratio transfers the max-height back into the width) */
  .day__phones .phone { max-height: calc(100vh - var(--nav-h) - 4.5rem); }
  .day__phones .phone { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
  .day__phones .phone:first-child { position: relative; }
  .day__phones .phone.active { opacity: 1; transform: none; }

  /* Phone status bar (brand + time) */
  .pb-brand { display: inline-flex; align-items: center; gap: 0.4rem; }
  .pb-brand img { height: 13px; width: auto; }
  .pb-time { font-family: var(--font-mono); }

  /* Screen content blocks (reused in sticky + mobile) */
  .scr-h { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); margin-bottom: 0.9rem; }
  .chip { font-family: var(--font-mono); font-size: 0.62rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-pill); border: 1px solid var(--line-green); color: var(--ink); background: rgba(255,255,255,0.02); }
  .pay-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }

  /* --- story animation primitives ---------------------------------------
     Default styles = FINAL state (no-JS / reduced-motion safe).
     Adding .play to a .phone__screen runs each step at its --d delay. */
  .anim-up, .anim-pop { opacity: 1; }
  .play .anim-up { animation: aUp 0.5s var(--d, 0s) var(--ease-out) both; }
  .play .anim-pop { animation: aPop 0.5s var(--d, 0s) var(--ease-out) both; }
  @keyframes aUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes aPop { 0% { opacity: 0; transform: scale(0.7); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

  .tap {
    position: absolute; width: 30px; height: 30px; border: 2px solid var(--green); border-radius: 50%;
    opacity: 0; pointer-events: none; z-index: 3;
    box-shadow: 0 0 14px var(--green-glow), inset 0 0 8px var(--green-glow);
  }
  .play .tap { animation: tapPop 0.55s var(--d, 0s) ease-out both; }
  @keyframes tapPop { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; transform: scale(1); } 60% { transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.55); } }

  /* Screen 0 — morning habits */
  .habit { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  .habit .tap { left: -5px; top: 50%; margin-top: -15px; }
  .habit__box {
    width: 20px; height: 20px; border-radius: 6px; flex: none;
    display: grid; place-items: center; font-size: 0.7rem;
    background: var(--green); border: 1.5px solid var(--green); color: #09100d;
  }
  .habit--pending .habit__box { background: transparent; border-color: var(--green-dim); color: transparent; }
  .play .habit.done .habit__box { animation: checkPop 0.45s var(--d, 0s) both; }
  @keyframes checkPop {
    0% { background: transparent; border-color: var(--green-dim); color: transparent; transform: scale(1); }
    55% { background: var(--green); border-color: var(--green); color: #09100d; transform: scale(1.25); }
    100% { background: var(--green); border-color: var(--green); color: #09100d; transform: scale(1); }
  }
  .habit__label { position: relative; }
  .habit.done .habit__label { color: var(--ink-muted); }
  .habit.done .habit__label::after { content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: var(--ink-muted); transform-origin: left; }
  .play .habit.done .habit__label::after { animation: strike 0.3s calc(var(--d, 0s) + 0.18s) var(--ease-out) both; }
  @keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .habit__when { margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.15rem 0.5rem; }
  .streak { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--green); }

  /* Screen 1 — meal scan */
  .shot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line-green); }
  .shot img { width: 100%; height: 100%; object-fit: cover; }
  .shot__beam {
    --d: 0.35s;
    position: absolute; left: 4%; right: 4%; top: 0; height: 42%; opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(150,205,124,0.22) 78%, rgba(150,205,124,0.85));
    border-bottom: 2px solid var(--green);
  }
  .play .shot__beam { animation: beamSweep 1.25s var(--d) ease-in-out both; }
  @keyframes beamSweep { 0% { transform: translateY(-40%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(190%); opacity: 0; } }
  .shot__status { --d: 0.3s; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: rgba(9,16,13,0.8); border: 1px solid var(--line-green); border-radius: var(--radius-pill); padding: 0.18rem 0.55rem; opacity: 0; white-space: nowrap; }
  .play .shot__status { animation: statusShow 1.3s var(--d) both; }
  @keyframes statusShow { 0% { opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
  .mini { margin-top: 0.8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); padding: 0.8rem; }
  .mini__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.65rem; }
  .mini__name { font-weight: 600; font-size: 0.9rem; }
  .mini__cal { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-muted); }
  .mini__cal b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
  .mmac { display: grid; grid-template-columns: 3rem 1fr 1.9rem; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem; }
  .mmac > span:first-child { font-size: 0.64rem; color: var(--ink-muted); }
  .mmac__t { height: 5px; border-radius: var(--radius-pill); background: var(--green-dim); overflow: hidden; }
  .mmac__t i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, #5f8f47, var(--green)); }
  .play .mmac__t i { animation: fillW 0.55s var(--d, 0s) var(--ease-out) both; }
  @keyframes fillW { from { width: 0; } to { width: var(--w, 50%); } }
  .mmac b { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; text-align: right; }
  .mini__ing { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.55rem; }
  .mini__ing span { font-size: 0.58rem; padding: 0.16rem 0.42rem; border-radius: var(--radius-pill); background: rgba(150,205,124,0.06); border: 1px solid var(--line-green); color: var(--ink); }

  /* Screen 2 — class booking */
  .class-card { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem; background: var(--bg-card); margin-bottom: 0.7rem; }
  .cc__top { display: flex; align-items: baseline; justify-content: space-between; }
  .class-card h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.2rem; }
  .cc__dist { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-muted); }
  .class-card .muted { color: var(--ink-muted); font-size: 0.76rem; margin-bottom: 0.8rem; }
  .class-card--alt { opacity: 0.55; }
  .class-card--alt .muted { margin-bottom: 0; }
  .reserve { position: relative; display: grid; text-align: center; font-weight: 600; font-size: 0.8rem; border-radius: 10px; margin-bottom: 0.7rem; overflow: visible; }
  .reserve .tap { left: 50%; top: 50%; margin: -15px 0 0 -15px; }
  .reserve i { --d: 0.15s; grid-area: 1 / 1; font-style: normal; padding: 0.55rem; border-radius: 10px; }
  .reserve .r1 { background: var(--green); color: #09100d; opacity: 0; }
  .reserve .r2 { background: var(--green-dim); color: var(--green); border: 1px solid var(--line-green); opacity: 1; }
  .play .reserve .r1 { animation: resOut 1.7s var(--d) both; }
  .play .reserve .r2 { animation: resIn 1.7s var(--d) both; }
  @keyframes resOut { 0% { opacity: 1; } 62% { opacity: 1; } 74% { opacity: 0; } 100% { opacity: 0; } }
  @keyframes resIn { 0% { opacity: 0; } 64% { opacity: 0; } 78% { opacity: 1; } 100% { opacity: 1; } }

  /* Screen 3 — coach chat */
  .msg { padding: 0.65rem 0.8rem; border-radius: 12px; font-size: 0.8rem; max-width: 88%; margin-bottom: 0.6rem; line-height: 1.4; }
  .msg--you { background: var(--bg-card); border: 1px solid var(--line); margin-left: auto; border-bottom-right-radius: 4px; }
  .msg--coach { background: rgba(150,205,124,0.08); border: 1px solid var(--line-green); border-top-left-radius: 4px; }
  .cslot { position: relative; }
  .typing { --d: 0.85s; position: absolute; top: 0; left: 0; display: inline-flex; gap: 4px; padding: 0.7rem 0.85rem; border-radius: 12px; border-top-left-radius: 4px; background: rgba(150,205,124,0.08); border: 1px solid var(--line-green); opacity: 0; }
  .typing span { --d: 0.9s; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
  .typing span:nth-child(2) { --d: 1.05s; }
  .typing span:nth-child(3) { --d: 1.2s; }
  .play .typing span { animation: tDot 0.75s var(--d) 2 both; }
  @keyframes tDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
  .play .typing { animation: typingShow 1.5s var(--d) both; }
  @keyframes typingShow { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }

  /* Screen 4 — challenge */
  .board__row { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
  .board__row.you { color: var(--green); position: relative; }
  .play .board__row.you { animation: aUp 0.5s var(--d, 0s) var(--ease-out) both, rowGlow 0.9s calc(var(--d, 0s) + 0.7s) both; }
  @keyframes rowGlow { 0% { background: transparent; } 35% { background: rgba(150,205,124,0.12); } 100% { background: transparent; } }
  .board__rank { font-family: var(--font-mono); color: var(--ink-muted); width: 1.5rem; }
  .board__pts { font-family: var(--font-mono); font-size: 0.74rem; }
  .pts { align-self: flex-end; margin-top: 0.55rem; font-family: var(--font-mono); font-size: 0.62rem; color: #09100d; background: var(--green); border-radius: var(--radius-pill); padding: 0.2rem 0.55rem; }
  .reward2 { margin-top: auto; padding-top: 0.9rem; }
  .reward2__lab { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
  .reward2__lab span:last-child { color: var(--green); font-family: var(--font-mono); font-size: 0.62rem; }
  .reward2__t { display: block; height: 6px; border-radius: var(--radius-pill); background: var(--green-dim); overflow: hidden; }
  .reward2__t i { display: block; height: 100%; width: var(--w, 80%); border-radius: inherit; background: linear-gradient(90deg, #5f8f47, var(--green)); }
  .play .reward2__t i { animation: fillW 0.7s var(--d, 0s) var(--ease-out) both; }

  /* --- scroll scrub ------------------------------------------------------
     JS sets --p (0..1) on each .phone__screen from scroll position. With the
     animation paused, delay = (own --d) - (--p × 3s) scrubs the whole 3s
     timeline: scrolling advances it, pausing freezes it, scrolling back
     rewinds it. The 3s factor must match the longest --d + duration. */
  .scrub .anim-up, .scrub .anim-pop, .scrub .tap,
  .scrub .habit.done .habit__box, .scrub .shot__beam, .scrub .shot__status,
  .scrub .mmac__t i, .scrub .reserve .r1, .scrub .reserve .r2,
  .scrub .typing, .scrub .typing span, .scrub .reward2__t i {
    animation-play-state: paused;
    animation-delay: calc(var(--d, 0s) - var(--p, 0) * 3s);
  }
  .scrub .habit.done .habit__label::after {
    animation-play-state: paused;
    animation-delay: calc(var(--d, 0s) + 0.18s - var(--p, 0) * 3s);
  }
  .scrub .board__row.you {
    animation-play-state: paused;
    animation-delay: calc(var(--d, 0s) - var(--p, 0) * 3s), calc(var(--d, 0s) + 0.7s - var(--p, 0) * 3s);
  }

  /* 9. AI coach ----------------------------------------------------------- */
  .coach { }
  .coach__head { max-width: 52ch; margin-bottom: 2.5rem; }
  .coach h2 { font-size: var(--step-4); margin-bottom: 1rem; }
  .coach__panel { border: 1px solid var(--line-green); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(150,205,124,0.04), transparent); padding: clamp(1.4rem, 4vw, 2.4rem); max-width: 760px; }
  .coach__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }
  .coach__chip {
    font-size: 0.9rem; font-weight: 500; padding: 0.65rem 1.1rem; border-radius: var(--radius-pill);
    border: 1px solid var(--line-green); color: var(--ink); transition: all 0.25s var(--ease);
  }
  .coach__chip:hover { border-color: var(--green); }
  .coach__chip[aria-pressed="true"] { background: var(--green); color: #09100d; border-color: var(--green); }
  .coach__answer { display: flex; gap: 0.9rem; align-items: flex-start; min-height: 4rem; }
  .coach__avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(150,205,124,0.12); border: 1px solid var(--line-green); display: grid; place-items: center; }
  .coach__avatar svg { width: 20px; height: 20px; }
  .coach__bubble { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; border-top-left-radius: 4px; padding: 0.9rem 1.1rem; font-size: 0.96rem; line-height: 1.55; }
  .coach__bubble.is-empty { color: var(--ink-muted); }

  /* 10. Regional band ----------------------------------------------------- */
  .region { position: relative; overflow: hidden; }
  .region__motif { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; pointer-events: none; opacity: 0.5; z-index: 0; }
  .region .container { position: relative; z-index: 1; }
  .region h2 { font-size: var(--step-4); max-width: 18ch; margin-bottom: 2.8rem; }
  .region__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
  .region__item { border-top: 1px solid var(--line-green); padding-top: 1.1rem; }
  .region__item h3 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin-bottom: 0.5rem; }
  .region__item p { color: var(--ink-muted); font-size: 0.94rem; }
  .region__bilingual { margin-top: 2.5rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--green); letter-spacing: 0.04em; }

  /* 11. Marketplace teaser ------------------------------------------------ */
  .mkt__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
  .mkt h2 { font-size: var(--step-4); max-width: 16ch; }
  .mkt__toggle { display: inline-flex; gap: 0.3rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-card); }
  .mkt__city { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.45rem 0.95rem; border-radius: var(--radius-pill); color: var(--ink-muted); transition: all 0.25s var(--ease); }
  .mkt__city[aria-pressed="true"] { background: var(--green); color: #09100d; }
  .mkt__label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
  .mkt__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
  .venue { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 1.2rem; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
  .venue:hover { border-color: var(--line-green); transform: translateY(-3px); }
  .venue__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
  .venue__cat { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); border: 1px solid var(--line-green); border-radius: var(--radius-pill); padding: 0.2rem 0.55rem; }
  .venue__rating { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }
  .venue h3 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin-bottom: 0.25rem; }
  .venue__meta { color: var(--ink-muted); font-size: 0.82rem; }

  /* 12. Business hand-off ------------------------------------------------- */
  .biz { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-elev); }
  .biz .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: clamp(1.8rem, 4vw, 2.6rem); }
  .biz__text strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; display: block; margin-bottom: 0.25rem; }
  .biz__text span { color: var(--ink-muted); font-size: 0.92rem; }
  .biz__link { color: var(--green); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; }
  .biz__link .arrow { transition: transform var(--dur) var(--ease); }
  .biz__link:hover .arrow { transform: translateX(3px); }

  /* 13. Waitlist ---------------------------------------------------------- */
  .waitlist { text-align: center; }
  .waitlist::before {
    content: ''; position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
    width: min(700px, 90vw); height: 400px; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at center, var(--green-glow), transparent 70%);
  }
  .waitlist .container { position: relative; z-index: 1; }
  .waitlist h2 { font-size: var(--step-4); margin-bottom: 1rem; }
  .waitlist p { color: var(--ink-muted); font-size: var(--step-1); max-width: 44ch; margin: 0 auto 2.2rem; }
  .waitlist__form { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; max-width: 480px; margin-inline: auto; }
  .waitlist__form input {
    flex: 1 1 240px; min-width: 0; padding: 0.85rem 1.1rem; border-radius: var(--radius-pill);
    background: var(--bg-card); border: 1px solid var(--line-green); color: var(--ink); font-size: var(--step-0); font-family: inherit;
  }
  .waitlist__form input::placeholder { color: var(--ink-muted); }
  .waitlist__form input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
  .waitlist__msg { margin-top: 1.4rem; color: var(--green); font-weight: 500; min-height: 1.4rem; }
  .waitlist__success h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
  .waitlist__success p { color: var(--ink-muted); }
  [hidden] { display: none !important; }

  /* 14. Footer ------------------------------------------------------------ */
  .footer { border-top: 1px solid var(--line-green); padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem; }
  .footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
  .footer__brand img { height: 30px; margin-bottom: 1rem; }
  .footer__brand p { color: var(--ink-muted); font-size: 0.92rem; max-width: 26ch; }
  .footer__social { display: flex; gap: 0.8rem; margin-top: 1.3rem; }
  .footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-muted); transition: all 0.25s var(--ease); }
  .footer__social a:hover { color: var(--green); border-color: var(--line-green); }
  .footer__social svg { width: 18px; height: 18px; }
  .footer__col h4 { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 1.1rem; }
  .footer__col a { display: block; color: var(--ink-muted); font-size: 0.92rem; padding-block: 0.32rem; transition: color 0.2s var(--ease); }
  .footer__col a:hover { color: var(--ink); }
  .footer__bottom { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .footer__bottom p, .footer__bottom a { color: var(--ink-muted); font-size: 0.82rem; }
  .footer__legal { display: flex; gap: 1.3rem; }

  /* 15. Scroll reveal ----------------------------------------------------- */
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* 16. Responsive -------------------------------------------------------- */
  @media (max-width: 900px) {
    .nav__links, .nav__business, .nav__cta { display: none; }
    .nav__toggle { display: block; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__phone { order: -1; }
    .frag__compare { grid-template-columns: 1fr; gap: 1.6rem; }
    .frag__arrow { transform: rotate(90deg); }
    .frag__scatter { max-width: none; }
    .day__layout { grid-template-columns: 1fr; }
    .day__sticky { display: none; }
    .day__beats { padding-bottom: 0; gap: clamp(2.5rem, 12vh, 6rem); } /* no sticky phone → no runway/stretch needed */
    .beat { grid-template-columns: auto 1fr; }
    .beat__screen { display: block; grid-column: 1 / -1; margin-top: 1rem; }
    .beat__screen .phone { max-width: 280px; margin-inline: 0; }
  }
  @media (max-width: 560px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .waitlist__form { flex-direction: column; }
    .waitlist__form .btn { justify-content: center; }
  }

  /* 17. Reduced motion ---------------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .scan__ring { animation: none; border-top-color: var(--green); }
  }
