
/* ============================================================
   DESIGN TOKENS — LIGHT THEME
   ============================================================ */
:root {
  /* surfaces: 3-step elevation on white */
  --bg-base:      #ffffff;
  --bg-elevated:  #f6f6f7;
  --bg-deep:      #f0f0f2;
  --panel:        #ffffff;
  --panel-hover:  #fbfbfc;

  /* hairlines — dark, low-alpha so they read on white */
  --hairline:     rgba(0,0,0,0.09);
  --line:         rgba(0,0,0,0.14);
  --line-strong:  rgba(0,0,0,0.22);

  /* text */
  --fg:           #0a0a0b;
  --fg-muted:     #5b616e;   /* AA on white */
  --fg-dim:       #8b909b;

  /* accent: bright fill + a deeper variant for small text on light */
  --accent:        #ff5a1f;   /* fills + large display */
  --accent-strong: #c2410c;   /* small text / icons on white (AA) */
  --accent-hover:  #ff6b35;
  --accent-ink:    #0a0a0a;   /* text on accent fill (6.5:1) */
  --accent-glow:   rgba(255,90,31,0.16);
  --success:       #16a34a;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body:    "Geist", system-ui, -apple-system, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.25, 0, 0, 1);
  --dur:  220ms;

  --maxw: 1600px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #cfcfd4 var(--bg-base); }
html, body { margin: 0; padding: 0; overscroll-behavior: none; }
body {
  background: #ffffff;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* very light page gradient: white → soft yellow → soft blue, spanning the content
   from the top down to the bottom of the FAQ ("Fair questions"). #main ends at the
   FAQ (its last child); the footer sits outside #main and stays white. */
#main { background: linear-gradient(180deg, #ffffff 0%, #ffffff 12%, #fefcf3 55%, #f3f7fd 100%); }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #cfcfd4; border-radius: 999px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; z-index: 200;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* HERO ONLY — copy↔phone GAP via padding-inline = calc(25vw - 175px). The −px
   offset makes the gap grow FASTER than the screen so big monitors open up more
   than small ones (gap = 100vw - 2·padding - 900px). Tuned by eye for 1920 + 2560
   (~400px @1920, ~720px @2560). Knobs: lower the vw coefficient → wider
   everywhere; lower the px offset → big screens open up MORE relative to small.
   max(--gutter, …) floors padding so it never goes negative. Nav/header NOT touched. */
.hero .wrap { max-width: none; padding-inline: max(var(--gutter), calc(25vw - 175px)); }
.section { padding-block: clamp(100px, 14vw, 180px); }
#problem { padding-top: clamp(120px, 17vw, 210px); }

/* ===== auto-rotator (sections 01 <-> 02, every 5s) ===== */
.rotator { position: relative; min-height: 60vh; }
.rotator > .section { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.rotator > .section.active { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
#rotator > .section { padding-block: clamp(90px, 12vw, 150px); }
.rotator-nav { position: absolute; left: 50%; bottom: clamp(18px, 3.5vh, 38px); transform: translateX(-50%); display: flex; gap: 8px; z-index: 20; }
.rotator-dot { width: 46px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(0,0,0,0.16); position: relative; overflow: hidden; cursor: pointer; }
.rotator-dot .fill { position: absolute; inset: 0; background: var(--accent); border-radius: 999px; transform: scaleX(0); transform-origin: left; }
.rotator-dot.active .fill { animation: rotfill 5s linear forwards; }
@keyframes rotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .rotator-dot.active .fill { animation: none; transform: scaleX(1); }
  .rotator > .section { transition: none; }
}
.band-elevated { background: transparent; border-block: 0; }
.band-deep { background: transparent; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 76px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ============================================================
   TYPE
   ============================================================ */
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin: 0;
}
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.h2 .dead { color: #dc2626; }
.udl { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-muted); line-height: 1.6; }
.final .lede { font-size: 16.5px; line-height: 1.65; }
.prose p { color: var(--fg-muted); font-size: 16.5px; line-height: 1.65; max-width: 52ch; }
.prose p + p { margin-top: 18px; }
.accent { color: var(--accent); }
.accent-strong { color: var(--accent-strong); }

.kicker {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg); display: inline-flex; align-items: center; margin-bottom: 22px;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -0.02em; }
.unit { color: var(--fg-muted); font-size: 0.62em; margin-left: 3px; font-weight: 500; }

/* ============================================================
   SURFACES + BUTTONS
   ============================================================ */
.surface { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.surface:hover { background: var(--panel-hover); border-color: var(--line); box-shadow: 0 12px 30px -18px rgba(0,0,0,0.18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding-inline: 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 30px -10px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(0,0,0,0.03); }
.btn-login { display: inline-flex; align-items: center; background: transparent; border: none; padding: 0 4px; color: var(--fg-muted); font-size: 15px; font-weight: 500; cursor: pointer; transition: color var(--dur) var(--ease); }
.btn-login:hover { color: var(--fg); }

/* official store badges */
.badge-link { display: inline-flex; align-items: center; border-radius: 9px; }
.badge-link img { display: block; width: auto; }
.b-apple, .b-google { height: 46px; }
.nav .b-apple, .nav .b-google { height: 48px; }
.footer .b-apple, .footer .b-google { height: 42px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; background: rgba(255,255,255,0.6); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.nav.scrolled { background: rgba(255,255,255,0.6); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.nav-inner { display: flex; align-items: center; justify-content: center; height: 76px; gap: clamp(48px, 10vw, 200px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.nav .brand { font-size: 28px; gap: 13px; }
.nav .brand .mark { width: 44px; height: 44px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #20262e; font-size: 18.5px; font-weight: 500; white-space: nowrap; transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); height: 42px; padding: 0 14px; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 9vw, 48px); padding-bottom: clamp(80px, 11vw, 150px); }
.hero .wrap { position: relative; z-index: 1; }
.hero .split-2 { grid-template-columns: 1.1fr 0.9fr; gap: clamp(44px, 6vw, 84px); }
.hero .phone { margin-left: auto; margin-right: 0; }
.hero-copy { max-width: 600px; }
.eyebrow { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.6vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 12px; }
.hero h1 { margin: 0 0 22px; }
.hero .lede { margin: 0 0 30px; max-width: 50ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-fine { margin-top: 18px; font-size: 13.5px; color: var(--fg-dim); }

/* ============================================================
   PHONE MOCKUP — device is always dark (token re-scope)
   ============================================================ */
.phone {
  --fg: #f4f4f5; --fg-muted: #9aa0aa; --fg-dim: #6b7280;
  --hairline: rgba(255,255,255,0.08); --line: rgba(255,255,255,0.12);
  --panel: #1a1a1b; --success: #22c55e;
  color: var(--fg);
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620;
  background: #000; border-radius: 46px; border: 1px solid #2a2a2c; padding: 11px;
  box-shadow: 0 50px 90px -34px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.04);
  margin-inline: auto;
}
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 999px; z-index: 5; }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #141416 0%, #0b0b0c 100%); display: flex; flex-direction: column; padding: 24px 16px 16px; }
/* A real app screenshot dropped into a phone .screen (replaces the hand-built mockup): full-bleed, clipped by the screen's rounded corners. */
.screen.shot { padding: 0; position: relative; background: #000; }
.screen-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.s-status { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); margin-bottom: 14px; }
.s-status .dots { display: flex; gap: 4px; }
.s-status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-dim); display: block; }
.s-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.s-head .t { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--fg); }
.s-head .meta, .s-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); letter-spacing: 0.02em; }
.s-sub { margin-bottom: 14px; }
.s-hero-num { text-align: center; margin: 6px 0 12px; }
.s-hero-num .lab { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.s-hero-num .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 50px; font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; color: var(--fg); }
.s-hero-num .delta { font-family: var(--font-mono); font-size: 11px; color: var(--success); }

/* set table */
.set-tbl { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.set-tbl .r { display: grid; grid-template-columns: 18px 1fr 0.7fr 0.7fr 22px; gap: 6px; align-items: center; padding: 7px 6px; border-bottom: 1px solid var(--hairline); }
.set-tbl .r.h { color: var(--fg-dim); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.set-tbl .r .c-num { color: var(--fg-muted); }
.set-tbl .r .ok { color: var(--success); }
.set-tbl .r .pr { color: var(--accent); font-weight: 500; }
.set-tbl .r .pend { color: var(--fg-dim); }
.set-cta { margin-top: auto; padding-top: 12px; }
/* In-session "Log Set" button — same two-layer tactile structure as the onboarding
   button (slab + face), kept in the session mockup's own orange. */
.set-cta .b-wrap { position: relative; height: 44px; }
.set-cta .b-shadow { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; border-radius: 10px; background: var(--accent-strong); }
.set-cta .b { position: relative; background: var(--accent); color: var(--accent-ink); border-radius: 10px; height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; }
.set-cta .rest { text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); margin-top: 8px; }

/* progress / PR list */
.pr-list { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border-radius: 12px; overflow: hidden; margin-top: 4px; }
.pr-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; padding: 11px 12px; background: rgba(255,255,255,0.02); }
.pr-row .k { font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); }
.pr-row .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--fg); }
.pr-row .d { font-family: var(--font-mono); font-size: 10px; color: var(--success); }
.pr-row .w { font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-dim); }
.spark { height: 64px; display: flex; align-items: flex-end; gap: 4px; margin: 12px 0 14px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(255,90,31,0.25)); border-radius: 3px 3px 0 0; display: block; }

/* numbers grid + heatmap */
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border-radius: 12px; overflow: hidden; margin: 4px 0 14px; }
.num-cell { background: rgba(255,255,255,0.02); padding: 12px; }
.num-cell .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 21px; color: var(--fg); letter-spacing: -0.02em; }
.num-cell .k { font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-dim); margin-top: 3px; }
.heat-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
.heatmap { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-bottom: 16px; }
.heatmap i { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,0.06); display: block; }

/* ============================================================
   SECTION HEADS + PROSE
   ============================================================ */
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .h2 { margin-bottom: 0; }
.split-2 .prose .h2 { margin-bottom: 22px; }

/* 01 — doubt journal card */
.journal { padding: 24px; }
.journal .top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.journal .top .lab { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.journal .top .lab b { display: block; font-family: var(--font-mono); font-size: 30px; font-weight: 500; color: var(--fg-muted); letter-spacing: -0.02em; margin-top: 6px; text-transform: none; }
.journal .top .lifts { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); text-align: right; }
.journal .e { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.journal .e:last-child { border-bottom: 0; }
.journal .e .d { font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); letter-spacing: 0.06em; padding-top: 2px; }
.journal .e .x { color: var(--fg); font-size: 14.5px; }
.journal .e .x small { display: block; color: var(--fg-dim); font-size: 12.5px; margin-top: 2px; }

/* paper-sheet shot + crossed-out overlay */
.paper-shot { position: relative; max-width: 440px; margin-inline: auto; }
.paper-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--hairline); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.28); }
.dead-x { position: absolute; top: 50%; left: 50%; width: 132%; height: 132%; max-width: none; max-height: none; pointer-events: none; mix-blend-mode: multiply; transform: translate(-50%, -50%) rotate(-8deg); transform-origin: center; }
.dead-x line { stroke: #dc2626; stroke-width: 15; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: 0.4; }

/* 02 — tool cards */
.tools { display: flex; flex-direction: column; gap: 14px; }
.tool { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; }
.tool .nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.tool .nm small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--fg-muted); font-size: 13.5px; margin-top: 3px; }
.tool .chip { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); background: var(--bg-elevated); border: 1px solid var(--hairline); padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.tool .x { color: var(--fg-dim); font-size: 16px; }
.tool .ok { color: var(--success); font-size: 16px; }
.timer-shot { position: relative; max-width: 300px; margin-inline: auto; }
.timer-shot img { width: 100%; border-radius: 36px; box-shadow: 0 40px 80px -38px rgba(0,0,0,0.45); }
.timer-shot .dead-x { mix-blend-mode: normal; transform: translate(-50%, -50%) rotate(16deg); }
.timer-shot .dead-x line { opacity: 0.4; }
.tool .nm-wrap { display: flex; align-items: center; gap: 12px; }

/* 03 — flow stepper */
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.flow .step { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--panel); }
.flow .step .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); }
.flow .step .l { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.flow .arr { color: var(--fg-dim); font-size: 14px; }
.flow .loop { color: var(--accent-strong); font-size: 16px; }

/* ============================================================
   03 — WHAT'S INCLUDED (feature carousel)
   ============================================================ */
.feature { --feat-orange: #d9480f; }   /* darker orange for active dot/box (vs the brighter site --accent) */
.feature .split-2 { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(40px, 6vw, 80px); }
.feat-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* phone holds 4 cross-fading screens */
.feat-phone .screens { position: relative; width: 100%; height: 100%; }
.feat-phone .screens > .screen {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.feat-phone .screens > .screen.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.4s var(--ease);
}

/* dots under the phone */
.feat-dots { display: flex; gap: 11px; justify-content: center; }
.feat-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--fg-dim); cursor: pointer; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.feat-dot:hover { background: var(--fg-muted); }
.feat-dot.active { background: var(--feat-orange); transform: scale(1.3); }

/* feature 2 — app welcome screen + "Time to train" reminder push (ported from app) */
/* Home-screen wallpaper behind the "Time to train" reminder push.
   Wallpaper at landing/assets/notif-home-bg.webp. If absent, the #fff
   fallback shows (no broken state). The bottom fade keeps the logo + CTA
   buttons legible over a busy wallpaper. */
.screen-login {
  background: url('assets/notif-home-bg.webp') center / cover no-repeat #fff;
  padding: 46px 18px 22px;
}
.screen-login .s-status { color: #1a1a1a; margin-bottom: 0; }
.screen-login .s-status .dots i { background: #c7c7cc; }

/* feature 3 — AI coach chat preview (upcoming) */
.screen-coach .s-head .meta { color: var(--accent); }
.screen-coach .chat { flex: 1; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; overflow: hidden; }
.screen-coach .chat-q { align-self: flex-end; max-width: 80%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-body); font-size: 11.5px; line-height: 1.35; padding: 8px 11px; border-radius: 14px 14px 4px 14px; }
.screen-coach .chat-a { align-self: flex-start; max-width: 88%; background: #1f1f22; color: var(--fg); font-family: var(--font-body); font-size: 11.5px; line-height: 1.42; padding: 9px 11px; border-radius: 14px 14px 14px 4px; border: 1px solid var(--hairline); }
.screen-coach .chat-who { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.screen-coach .chat-bar { margin-top: auto; display: flex; align-items: center; gap: 8px; background: #161618; border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 13px; }
.screen-coach .chat-ph { flex: 1; font-family: var(--font-body); font-size: 11px; color: var(--fg-dim); }
.screen-coach .chat-send { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.login-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.login-logo { width: 82px; height: 82px; object-fit: contain; }
.login-name { font-family: var(--font-display); font-weight: 800; font-size: 31px; letter-spacing: -0.035em; line-height: 1; color: #ff6a1f; }
.login-tag { font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: 0.01em; color: #1f1b24; }
.login-actions { display: flex; flex-direction: column; gap: 13px; padding: 0 2px; }
.login-btn { display: flex; align-items: center; justify-content: center; border-radius: 12px; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; }
/* "Get Started" / "Continue" / "Enable Notifications" — the real two-layer onboarding
   button copied from OnboardingScreen (loginBtnWrap + loginBtnShadow + loginBtn): a solid
   #D45500 slab sits 4px below the #FF6A00 face. Real structure, not a box-shadow. */
.login-btn-wrap { position: relative; height: 44px; }
.login-btn-shadow { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; border-radius: 12px; background: #D45500; }
.login-btn-face { position: relative; height: 40px; border-radius: 12px; background: #FF6A00; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.login-btn--ghost { height: 42px; background: #fff; color: #ff6a00; font-size: 11.5px; letter-spacing: 0.08em; border: 2px solid #e6e4e6; border-bottom-width: 4px; }
.login-notif { position: absolute; top: 50px; left: 13px; right: 13px; z-index: 4; background: #f2f2f7; border-radius: 14px; padding: 11px 12px; box-shadow: 0 10px 26px -8px rgba(0,0,0,0.28); }
.login-notif .ln-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.login-notif .ln-icon { width: 22px; height: 22px; border-radius: 6px; background: #e8692a; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; }
.login-notif .ln-app { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: #3c3c43; opacity: 0.62; }
.login-notif .ln-time { margin-left: auto; font-family: var(--font-body); font-size: 10px; color: #3c3c43; opacity: 0.42; }
.login-notif .ln-title { display: flex; align-items: center; gap: 5px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: #000; margin-bottom: 2px; }
.login-notif .ln-title svg { width: 14px; height: 14px; flex: none; }
.login-notif .ln-body { font-family: var(--font-body); font-size: 11.5px; line-height: 1.35; color: #3c3c43; }

/* value-prop boxes (right column) */
.feat-copy .h2 { margin-bottom: 16px; }
.feat-list { display: flex; flex-direction: column; gap: 14px; margin-top: 0; max-width: 90%; }
.feat-box {
  position: relative; display: block;
  width: 100%; text-align: left; padding: 24px 28px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feat-box:hover { border-color: var(--line); background: var(--panel-hover); }
.feat-box.active { border-color: var(--feat-orange); transform: scale(1.04); }
.feat-box .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--hairline); color: var(--accent-strong); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.feat-box.active .ic { background: var(--feat-orange); color: var(--accent-ink); border-color: transparent; }
.feat-box .ic svg { width: 21px; height: 21px; }
.feat-box .bd { display: block; min-width: 0; }
.feat-box .nm { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--fg); }
.feat-box .ds { display: block; color: var(--fg-muted); font-size: 16px; line-height: 1.55; margin-top: 6px; }

/* ============================================================
   04 — WHY REPMAXX (reason cards)
   ============================================================ */
.why .grid-3 { gap: 20px; }
.reason { display: flex; flex-direction: column; padding: 48px 30px; border-radius: var(--r-lg); }
.reason .ic { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: #f3f4f6; color: var(--accent-strong); margin-bottom: 22px; }
.reason .ic svg { width: 29px; height: 29px; }
.reason .ic img { width: 28px; height: 28px; object-fit: contain; }
.reason h3 { margin-bottom: 10px; font-weight: 600; }
.reason p { color: var(--fg-muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: none; }
.reason .vs { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.01em; color: var(--fg-dim); }
.reason .vs b { color: var(--accent-strong); font-weight: 600; }

@media (max-width: 980px) {
  .feature .split-2 { grid-template-columns: 1fr; }
  .feat-list { margin-top: 6px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--font-display); font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign { color: var(--accent-strong); font-size: 24px; line-height: 1; transition: transform var(--dur) var(--ease); flex: none; }
.faq details[open] summary .sign { transform: rotate(45deg); }
.faq .ans { padding: 0 4px 24px; color: var(--fg-muted); font-size: 15.5px; line-height: 1.65; max-width: 64ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { position: relative; text-align: center; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--panel); padding: clamp(48px, 7vw, 84px) var(--gutter); overflow: hidden; }
.final .kicker { justify-content: center; }
.final h2 { margin-bottom: 18px; }
.final .lede { margin: 0 auto 30px; max-width: 56ch; }
.final .hero-cta { justify-content: center; }
.final .hero-fine { text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: 54px 38px; background: transparent; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 42px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--fg-muted); font-size: 14.5px; transition: color var(--dur) var(--ease); }
.footer ul a:hover { color: var(--fg); }
.footer .blurb { color: var(--fg-muted); font-size: 14.5px; max-width: 32ch; margin: 16px 0 0; }
.footer-base { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--hairline); color: var(--fg-dim); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.02em; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: none; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { justify-content: space-between; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline); padding: 14px var(--gutter) 22px;
  }
  .nav.open .nav-links a { padding: 10px 0; font-size: 16px; }
}
@media (max-width: 980px) {
  .split-2 { grid-template-columns: 1fr; gap: 44px; }
  .hero .split-2 { grid-template-columns: 1fr; }
  .hero .wrap { padding-inline: var(--gutter); }
  .hero .phone { margin-inline: auto; }
  .hero-copy { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .brand .wordmark { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .nav-right .badge-link { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   EXIT-INTENT POPUP
   ============================================================ */
.exit-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.exit-pop[hidden] { display: none; }
.exit-backdrop {
  position: absolute; inset: 0; opacity: 1; background: rgba(10,10,11,0.55);
  backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%);
  animation: exitFade var(--dur) var(--ease);
}
.exit-card {
  position: relative; z-index: 1; opacity: 1; width: 100%; max-width: 860px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: var(--panel); border-radius: var(--r-lg);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.45);
  animation: exitPop 320ms var(--ease);
}

/* close — top-right, over the white panel */
.exit-x {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--fg-dim); font-size: 26px; line-height: 1; border-radius: 999px;
  cursor: pointer; transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.exit-x:hover { color: var(--fg); background: rgba(0,0,0,0.05); }
/* no orange focus ring on the close button — use a subtle neutral indicator */
.exit-x:focus-visible { outline: none; background: rgba(0,0,0,0.08); color: var(--fg); }

/* LEFT — dark value panel */
.exit-visual {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(26px, 3vw, 36px) clamp(22px, 2.6vw, 30px);
  background: linear-gradient(180deg, #141416 0%, #0b0b0c 100%); color: #fff;
}
.exit-visual-lab {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em; color: rgba(255,255,255,0.94);
}
.exit-chart { position: relative; height: 124px; margin: 18px 0 18px; }
.exit-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 5px; }
.exit-bars i { flex: 1; background: linear-gradient(180deg, rgba(255,90,31,0.42), rgba(255,90,31,0.06)); border-radius: 3px 3px 0 0; }
.exit-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.exit-line polyline {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.exit-dot {
  position: absolute; top: 4px; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,90,31,0.22), 0 0 12px rgba(255,90,31,0.7); transform: translate(1px,-1px);
}
.exit-bignum .lab {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: -0.01em; color: rgba(255,255,255,0.68); margin-bottom: 6px;
}
.exit-bignum .val {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(40px, 5vw, 52px);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: #fff;
}
.exit-bignum .val .unit { font-size: 0.42em; color: var(--fg-dim); margin-left: 4px; letter-spacing: 0; }
.exit-bignum .delta { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; color: var(--success); margin-top: 8px; }
.exit-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08);
}
.exit-stat .v { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.exit-stat .k { display: block; font-size: 10.5px; color: var(--fg-dim); line-height: 1.3; margin-top: 3px; }

/* "We'll track your progress" bench card — recreated from the app's onboarding, in DARK MODE so
   it blends into the dark panel with no card border. Static (resting) version of PrProgressCard. */
.pr-card { width: 100%; }
.pr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pr-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255,90,31,0.18); color: var(--accent); flex: none; }
.pr-ico svg { width: 22px; height: 22px; }
.pr-name { flex: 1; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,0.62); }
.pr-headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; }
.pr-now { font-family: var(--font-display); font-size: 30px; font-weight: 900; line-height: 1.05; color: #fff; }
.pr-gain { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: #F6B73C; }
.pr-by { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); margin-left: 2px; }
.pr-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 172px; }
.pr-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pr-val { flex: none; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.pr-bar { flex: none; width: 26px; border-radius: 7px 7px 0 0; background: rgba(255,255,255,0.14); }
.pr-col--now .pr-val { color: var(--accent); }
.pr-col--now .pr-bar { background: var(--accent); }
.pr-col--peak .pr-val { color: #F6B73C; }
.pr-col--peak .pr-bar { background: #F6B73C; box-shadow: 0 0 18px rgba(246,183,60,0.5); }
.pr-star { flex: none; line-height: 0; margin-bottom: 3px; filter: drop-shadow(0 0 6px rgba(246,183,60,0.6)); }
.pr-star svg { width: 22px; height: 22px; display: block; }
.pr-axis { display: flex; margin-top: 10px; }
.pr-axis span { flex: 1; text-align: center; padding: 0 2px; font-family: var(--font-display); font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); white-space: nowrap; }
.pr-axis .pr-now-lab { color: var(--accent); font-weight: 900; }
.pr-axis .pr-peak-lab { color: #F6B73C; font-weight: 900; }

/* RIGHT — the ask */
.exit-main {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: clamp(30px, 3.4vw, 44px) clamp(26px, 3vw, 40px);
}
.exit-pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 13px;
  font-weight: 600; letter-spacing: 0; color: var(--success); background: rgba(22,163,74,0.10);
  padding: 6px 13px 6px 10px; border-radius: 999px; margin-bottom: 18px;
}
.exit-pill .clock { width: 15px; height: 15px; flex: none; }
.exit-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--fg);
}
.exit-body { color: var(--fg-muted); font-size: 15.5px; line-height: 1.55; margin: 0 0 22px; max-width: 42ch; }
.exit-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.exit-fine { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--fg-muted); margin: 0 0 18px; letter-spacing: 0; }
.exit-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.exit-fine a:hover { color: var(--fg); }
.exit-trust {
  display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.exit-trust .trust-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg); }
.exit-trust .chk { width: 16px; height: 16px; color: var(--success); flex: none; }

/* referral email-capture (visual mockup) — two states swapped via [hidden] */
.exit-state { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.exit-state[hidden] { display: none; }
/* accent "save" variant of the pill */
.exit-pill--save { color: var(--accent-strong); background: var(--accent-glow); }
.exit-pill--save .tag { width: 15px; height: 15px; flex: none; }
/* two pills side by side (offer + speed) */
.exit-pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; width: 100%; }
.exit-pillrow .exit-pill { margin-bottom: 0; flex: none; white-space: nowrap; }
/* the form */
.exit-form { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 2px 0 16px; }
.exit-input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--fg);
  font-family: var(--font-body); font-size: 15.5px; letter-spacing: -0.01em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.exit-input::placeholder { color: var(--fg-dim); }
.exit-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.exit-input.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.14); }
/* consent checkbox + label */
.exit-consent { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.exit-consent input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.exit-consent span { font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }
/* submit + validation */
.exit-submit { width: 100%; margin-top: 2px; transition: opacity 220ms var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.exit-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.exit-submit:disabled:hover { background: var(--accent); box-shadow: none; }
/* one-shot pop the moment the box is ticked and the button becomes tappable */
.exit-submit.just-enabled { animation: btnPop 360ms var(--ease); }
@keyframes btnPop { 0% { transform: scale(0.97); } 55% { transform: scale(1.035); } 100% { transform: scale(1); } }
.exit-formerror { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: #dc2626; margin: 0; }
/* confirmation state */
.exit-done-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: rgba(22,163,74,0.12); color: var(--success); margin-bottom: 18px; }
.exit-done-badge svg { width: 26px; height: 26px; }
.exit-title[tabindex] { outline: none; }

@keyframes exitFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes exitPop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
/* close-out: reverse of the entrance, played while .closing is on the popup */
@keyframes exitFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes exitPopOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.96); } }
.exit-pop.closing .exit-backdrop { animation: exitFadeOut 200ms var(--ease) forwards; }
.exit-pop.closing .exit-card { animation: exitPopOut 200ms var(--ease) forwards; }

/* stack on small screens */
@media (max-width: 720px) {
  .exit-card { grid-template-columns: 1fr; max-width: 420px; }
  .exit-visual { gap: 16px; }
  .exit-chart { height: 92px; margin: 14px 0; }
  /* stacked: the X sits over the dark panel, so lighten it */
  .exit-x { color: rgba(255,255,255,0.82); }
  .exit-x:hover { color: #fff; background: rgba(255,255,255,0.18); }
}
