/* Ready? — set, go!  Marketing site. Tokens mirror the app (lib/ui/kit/tokens.dart). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("../fonts/InterDisplay-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url("../fonts/InterDisplay-Bold.woff2") format("woff2"); }

:root {
  --bg: #fafafc;
  --bg-2: #f2f2f7;
  --card: #ffffff;
  --fill: #ededf2;
  --fill-strong: #e0e0e7;
  --sep: #e3e3e8;
  --text: #111114;
  --text-2: #5f5f68;
  --text-3: #9a9aa2;
  --brand: #5856d6;
  --brand-ink: #4a48c4;
  --on-brand: #ffffff;
  --brand-soft: #e9e8fc;
  --go: #17b26a;
  --go-text: #0d8a50;
  --go-soft: rgba(23, 178, 106, 0.12);
  --amber: #f5a524;
  --amber-text: #a8650a;
  --amber-soft: rgba(245, 165, 36, 0.14);
  --sky: #2bb3e8;
  --sky-soft: rgba(43, 179, 232, 0.13);
  --red: #e5484d;
  --frame: #111114;
  --frame-edge: rgba(0, 0, 0, 0);
  --shadow: 0 1px 2px rgba(17, 17, 20, 0.04), 0 8px 24px -8px rgba(17, 17, 20, 0.1);
  --shadow-lg: 0 2px 6px rgba(17, 17, 20, 0.05), 0 40px 80px -24px rgba(40, 38, 90, 0.32);
  --glow-a: rgba(88, 86, 214, 0.16);
  --glow-b: rgba(23, 178, 106, 0.14);
  --lean: -11.31deg; /* the app's 0.2 skew */
  --r-card: 28px;
  --gutter: 20px;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0e0e10; --card: #1c1c1e; --fill: #2c2c2e; --fill-strong: #3a3a3c; --sep: #38383a;
    --text: #f5f5f7; --text-2: #a1a1a8; --text-3: #6c6c72;
    --brand: #8c8aff; --brand-ink: #a5a3ff; --on-brand: #0b0b1a; --brand-soft: #26254a;
    --go: #34d17f; --go-text: #3ee08a; --go-soft: rgba(52, 209, 127, 0.16);
    --amber: #ffb84d; --amber-text: #ffb84d; --amber-soft: rgba(255, 184, 77, 0.14);
    --sky: #5ac8f5; --sky-soft: rgba(90, 200, 245, 0.14); --red: #ff6369;
    --frame: #1c1c1e; --frame-edge: rgba(255, 255, 255, 0.1);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -30px rgba(88, 86, 214, 0.35);
    --glow-a: rgba(140, 138, 255, 0.16); --glow-b: rgba(52, 209, 127, 0.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0e0e10; --card: #1c1c1e; --fill: #2c2c2e; --fill-strong: #3a3a3c; --sep: #38383a;
  --text: #f5f5f7; --text-2: #a1a1a8; --text-3: #6c6c72;
  --brand: #8c8aff; --brand-ink: #a5a3ff; --on-brand: #0b0b1a; --brand-soft: #26254a;
  --go: #34d17f; --go-text: #3ee08a; --go-soft: rgba(52, 209, 127, 0.16);
  --amber: #ffb84d; --amber-text: #ffb84d; --amber-soft: rgba(255, 184, 77, 0.14);
  --sky: #5ac8f5; --sky-soft: rgba(90, 200, 245, 0.14); --red: #ff6369;
  --frame: #1c1c1e; --frame-edge: rgba(255, 255, 255, 0.1);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -30px rgba(88, 86, 214, 0.35);
  --glow-a: rgba(140, 138, 255, 0.16); --glow-b: rgba(52, 209, 127, 0.12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ------------------------------------------------------------- */
h1, h2, h3 { font-family: "Inter Display", "Inter", system-ui, sans-serif; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-block;
  font: 700 13px/1 "Inter", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  transform: skewX(var(--lean));
}
.eyebrow b { color: var(--go-text); font-weight: 700; }
.lean { display: inline-block; transform: skewX(var(--lean)); }

/* ---- the wordmark: READY? | SET, GO!  (sizes from lib/ui/brand) -------- */
.wm { display: inline-flex; align-items: center; font-size: var(--wm, 40px); line-height: 1; color: var(--text); white-space: nowrap; }
.wm-word {
  display: inline-flex; align-items: baseline;
  font: 700 1em/1.15 "Inter Display", "Inter", sans-serif;
  letter-spacing: 0.01em;
  transform: skewX(var(--lean)); transform-origin: 0 75%;
}
.wm-q { width: 0.4507em; height: 0.727em; margin-left: 0.045em; overflow: visible; color: var(--text); }
.wm-bar { width: 0.08em; height: 0.89em; margin: 0 0.39em; background: var(--fill-strong); transform: skewX(var(--lean)); border-radius: 0.02em; }
.wm-tag {
  display: inline-flex; align-items: baseline;
  font: 700 0.4286em/1.2 "Inter", sans-serif;
  letter-spacing: 0.18em;
  color: var(--text-2);
  transform: skewX(var(--lean));
}
.wm-tag > span { transition: color 0.5s ease; }
.wm-bang { width: 0.186em; height: 0.727em; margin-left: 0.02em; overflow: visible; color: var(--text-2); }
.wm .dot { fill: var(--go); transition: fill 0.5s ease, filter 0.5s ease; }
.wm-sm { --wm: 22px; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 "Inter", sans-serif; letter-spacing: -0.01em;
  border: 0; cursor: pointer; text-decoration: none !important;
  transition: transform 0.2s cubic-bezier(.2, .8, .2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(17, 17, 20, 0.5); }
.btn-ghost { background: var(--fill); color: var(--text); }
.btn-ghost:hover { background: var(--fill-strong); }
.btn .go-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 0 var(--go); animation: ping 2.4s ease-out infinite 1.6s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23, 178, 106, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(23, 178, 106, 0); } }

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--sep); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-brand { display: inline-flex; color: inherit; text-decoration: none !important; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--bg); }
.nav-links a.btn-ghost { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn):not(.nav-signin) { display: none; } .nav-links { gap: 18px; } }

/* ---- hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); overflow: clip; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.hero::before { width: 620px; height: 620px; right: -120px; top: -60px; background: radial-gradient(circle, var(--glow-a), transparent 65%); }
.hero::after { width: 520px; height: 520px; right: 220px; top: 260px; background: radial-gradient(circle, var(--glow-b), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; }
.hero-copy > * + * { margin-top: 24px; }
.hero .wm { --wm: clamp(30px, 3.6vw, 44px); }
.hero h1 { margin-top: 28px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 70px); }
.hero h1 em { display: block; font-style: normal; color: var(--go-text); }
.hero .lede { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-2); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 16px; height: 16px; color: var(--text-3); }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* hero intro: the wordmark lights up, then everything settles in */
.js .hero .wm-word { animation: lean-in 0.8s cubic-bezier(.2, .9, .2, 1) both; }
.js .hero .wm-bar { animation: fade 0.5s ease both 0.5s; }
.js .hero .wm-tag { animation: slide-r 0.7s cubic-bezier(.2, .9, .2, 1) both 0.6s; }
.js .hero .wm-q .dot { animation: light 1.8s ease both 0.3s; }
.js .hero .wm-bang .dot { animation: light-go 0.6s ease both 1.6s; }
.js .hero h1, .js .hero .lede, .js .hero .cta-row, .js .hero .meta { animation: rise 0.8s cubic-bezier(.2, .9, .2, 1) both; }
.js .hero h1 { animation-delay: 0.25s; }
.js .hero .lede { animation-delay: 0.4s; }
.js .hero .cta-row { animation-delay: 0.55s; }
.js .hero .meta { animation-delay: 0.7s; }
.js .hero .phone { animation: phone-in 1.1s cubic-bezier(.2, .9, .2, 1) both 0.2s; }
.js .hero .chip { animation: pop 0.6s cubic-bezier(.3, 1.4, .5, 1) both; }
.js .hero .chip-3 { animation-delay: 1.1s; }
.js .hero .chip-1 { animation-delay: 1.3s; }
.js .hero .chip-2 { animation-delay: 1.5s; }
@keyframes lean-in { from { opacity: 0; transform: translateX(-24px) skewX(-24deg); } to { opacity: 1; transform: skewX(var(--lean)); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(-14px) skewX(var(--lean)); } to { opacity: 1; transform: skewX(var(--lean)); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }
/* one dot, three moments: not yet, getting there, go */
@keyframes light { 0% { fill: var(--fill-strong); } 35% { fill: var(--amber); } 65% { fill: var(--sky); } 100% { fill: var(--go); } }
@keyframes light-go { from { fill: var(--fill-strong); } to { fill: var(--go); } }

/* ---- phone ---------------------------------------------------------------- */
.phone {
  position: relative;
  width: min(330px, 74vw);
  padding: 9px;
  border-radius: 54px;
  background: var(--frame);
  box-shadow: inset 0 0 0 1px var(--frame-edge), var(--shadow-lg);
}
.phone img { width: 100%; height: auto; aspect-ratio: 393 / 852; border-radius: 46px; background: var(--bg-2); }
.phone::after { /* the front camera */
  content: ""; position: absolute; top: 22px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: #050507; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow), 0 16px 40px -16px rgba(17, 17, 20, 0.28);
  font-size: 14px; line-height: 1.3; white-space: nowrap;
}
.chip b { display: block; font-weight: 600; color: var(--text); }
.chip small { display: block; font-size: 13px; color: var(--text-2); }
.chip .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.chip .ic svg { width: 18px; height: 18px; }
.ic-go { background: var(--go-soft); color: var(--go-text); }
.ic-brand { background: var(--brand-soft); color: var(--brand-ink); }
.ic-amber { background: var(--amber-soft); color: var(--amber-text); }
.ic-sky { background: var(--sky-soft); color: var(--sky); }
/* Three labels in a zig-zag beside the phone: strength top right, HRV
   left, tempo bottom right. Each overlaps the phone only by --tuck, just
   enough to belong to it, and never the score ring. The phone's width
   (--pw) and --tuck change with the room there is. */
.float { --pw: 330px; --tuck: 16px; }
.hero-visual .phone { width: var(--pw); }
.chip-3 { left: calc(100% - var(--tuck)); top: 11%; }
.chip-1 { right: calc(100% - var(--tuck)); top: 38%; }
.chip-2 { left: calc(100% - var(--tuck)); bottom: 13%; }
@media (min-width: 1321px) {
  /* A wider column for the phone, which sits a little left in it, so the
     labels on its right stay clear of the window edge. */
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual { padding-right: 70px; }
}
@media (max-width: 1320px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-visual { padding-right: 60px; }
  .float { --pw: 290px; --tuck: 24px; }
  .chip { padding: 9px 12px 9px 9px; gap: 8px; font-size: 13px; border-radius: 16px; }
  .chip small { font-size: 12px; }
  .chip .ic { width: 28px; height: 28px; border-radius: 8px; }
  .chip .ic svg { width: 15px; height: 15px; }
}
@media (max-width: 1040px) { .float { --pw: 270px; --tuck: 56px; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; padding-right: 0; }
  /* One column: the phone is centred in the window; the labels reach in
     only as far as the margin beside it makes them. */
  .float { --pw: min(330px, 70vw); --tuck: max(16px, calc(196px - (100vw - var(--pw)) / 2)); }
}
@media (max-width: 560px) {
  /* Phones: no room beside it, so the labels sit over the screen's edges,
     clear of the score ring: header, the numbers under it, the tab bar. */
  .float { --pw: min(300px, 64vw); }
  .chip-3 { top: 7%; }
  .chip-1 { top: 62%; }
  .chip-2 { bottom: 6%; }
}

/* the hero phone drifts up a little as you scroll, where supported */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-visual .float { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    @keyframes drift { to { transform: translateY(-60px); } }
  }
}

/* ---- sections --------------------------------------------------------------- */
section { position: relative; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { max-width: 760px; }
.section-head > * + * { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- reveal on scroll -------------------------------------------------------- */
/* Only what starts below the screen waits to fade in (site.js marks it .pending). */
.reveal { transition: opacity 0.8s cubic-bezier(.2, .9, .2, 1), transform 0.8s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.pending { opacity: 0; transform: translateY(28px); }

/* ---- the story: READY? → SET, → GO! ------------------------------------------- */
.story { background: var(--bg-2); --accent: var(--amber); --accent-soft: var(--amber-soft); transition: background-color 0.6s ease; }
.story[data-step="1"] { --accent: var(--sky); --accent-soft: var(--sky-soft); }
.story[data-step="2"] { --accent: var(--go); --accent-soft: var(--go-soft); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 72px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.32; transition: opacity 0.5s ease; }
.step.active { opacity: 1; }
.step-word {
  display: inline-flex; align-items: baseline; gap: 0.06em;
  font: 700 clamp(56px, 7vw, 96px)/1 "Inter Display", sans-serif; letter-spacing: 0;
  transform: skewX(var(--lean)); transform-origin: 0 100%;
  margin-bottom: 28px;
}
.step-word .mk { width: 0.4507em; height: 0.727em; overflow: visible; }
.step-word .mk-bang { width: 0.2em; }
.step[data-i="0"] .dot { fill: var(--amber); }
.step[data-i="1"] .step-word span:last-child { color: var(--sky); }
.step[data-i="2"] .dot { fill: var(--go); }
.step h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
.step p { margin-top: 14px; color: var(--text-2); font-size: 18px; max-width: 30em; }
.step ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.step li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); }
.step li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--dot, var(--go)); }
.step[data-i="0"] li { --dot: var(--amber); }
.step[data-i="1"] li { --dot: var(--sky); }
.step-shot { display: none; }

.stage { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.stage .wm { --wm: 30px; }
.stage .wm-tag > span { color: var(--text-3); }
.story[data-step="0"] .stage .wm-q .dot { fill: var(--amber); }
.story[data-step="1"] .stage .wm-q .dot { fill: var(--sky); }
.story[data-step="1"] .stage .wm-tag .t-set { color: var(--sky); }
.story[data-step="2"] .stage .wm-q .dot,
.story[data-step="2"] .stage .wm-bang .dot { fill: var(--go); filter: drop-shadow(0 0 6px var(--go)); }
.story[data-step="2"] .stage .wm-tag > span { color: var(--text); }
.story[data-step="0"] .stage .wm-bang .dot,
.story[data-step="1"] .stage .wm-bang .dot { fill: var(--fill-strong); }
.stage-phone { position: relative; }
.stage .phone { width: min(310px, calc((100vh - 230px) * 0.45)); border-radius: 46px; padding: 8px; }
.stage .phone img { border-radius: 39px; }
.stage-phone::before { /* the glow behind the phone takes the step's colour */
  content: ""; position: absolute; inset: 8% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(20px); transition: background 0.6s ease;
}
.screens { position: relative; }
.screens .screen { position: absolute; inset: 0; opacity: 0; transform: scale(0.985); transition: opacity 0.55s ease, transform 0.55s ease; }
.screens .screen:first-child { position: relative; }
.story[data-step="0"] .screen[data-i="0"],
.story[data-step="1"] .screen[data-i="1"],
.story[data-step="2"] .screen[data-i="2"] { opacity: 1; transform: none; }
.progress { display: flex; gap: 8px; }
.progress i { width: 28px; height: 4px; border-radius: 2px; background: var(--fill-strong); transition: background 0.4s ease, width 0.4s ease; }
.story[data-step="0"] .progress i:nth-child(1) { background: var(--amber); width: 44px; }
.story[data-step="1"] .progress i:nth-child(-n+2) { background: var(--sky); }
.story[data-step="1"] .progress i:nth-child(2) { width: 44px; }
.story[data-step="2"] .progress i { background: var(--go); }
.story[data-step="2"] .progress i:nth-child(3) { width: 44px; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 48px 0; }
  .step-shot { display: flex; justify-content: center; margin-top: 36px; }
  .step-shot .phone { width: min(300px, 78vw); }
}

/* ---- who it's for --------------------------------------------------------------- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.sign { background: var(--card); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); }
.sign .q { font: 700 22px/1.25 "Inter Display", sans-serif; letter-spacing: -0.015em; }
.sign p { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.answer { margin-top: 56px; display: flex; gap: 20px; align-items: flex-start; max-width: 860px; }
.answer p { font: 600 clamp(22px, 2.4vw, 30px)/1.35 "Inter Display", sans-serif; letter-spacing: -0.02em; }
.answer p span { color: var(--text-2); }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; } }

/* ---- features (bento) -------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 28px; min-height: 320px;
  transition: transform 0.35s cubic-bezier(.2, .9, .2, 1), box-shadow 0.35s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile h3 { font-size: 22px; }
.tile p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.tile .art { margin-top: auto; padding-top: 24px; }
.t-ladder { grid-column: span 4; }
.t-normal { grid-column: span 2; }
.t-brief { grid-column: span 2; }
.t-rate { grid-column: span 2; }
.t-log { grid-column: span 2; }
.t-plan { grid-column: span 3; }
.t-history { grid-column: span 3; }
.t-private { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; gap: 24px; background: var(--text); color: var(--bg); }
.t-private p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.t-private a { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.t-private .ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 14%, transparent); }
.t-private .ic svg { width: 26px; height: 26px; }
.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--sep); background: var(--bg-2); }
.shot img { width: 100%; height: auto; }
.t-normal .shot { max-height: 210px; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); box-shadow: none; }
.t-plan .shot, .t-history .shot { margin-bottom: -60px; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-ladder, .t-plan, .t-history, .t-private { grid-column: span 2; }
  .t-normal { grid-column: span 2; }
  .t-rate, .t-log, .t-brief { grid-column: span 1; }
  .t-brief { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .t-ladder, .t-normal, .t-rate, .t-log, .t-brief, .t-plan, .t-history, .t-private { grid-column: auto; }
  .t-private { flex-direction: column; align-items: flex-start; }
  .tile { min-height: 0; }
}

/* ladder: a tempo run steps down a rung */
.ladder { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.sess { border-radius: 20px; padding: 18px 20px; background: var(--bg-2); }
.sess small { display: block; font-size: 13px; color: var(--text-2); }
.sess b { display: block; font: 700 24px/1.2 "Inter Display", sans-serif; letter-spacing: -0.015em; margin-top: 2px; }
.sess .row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.zone { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 13px/1.4 "Inter", sans-serif; }
.zone::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.z1 { background: var(--fill); color: var(--text-2); }
.z2 { background: var(--sky-soft); color: #1a8fc0; }
.z3 { background: var(--go-soft); color: var(--go-text); }
:root[data-theme="dark"] .z2 { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .z2 { color: var(--sky); } }
.sess-from b { position: relative; display: inline-block; color: var(--text-2); }
.sess-from b::after { /* the strike draws itself */
  content: ""; position: absolute; left: 0; top: 54%; height: 2px; width: 100%; background: var(--text-2);
  transform-origin: left; transform: scaleX(1);
}
.sess-to { background: var(--sky-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sky) 45%, transparent); }
.arrow { width: 40px; height: 40px; color: var(--text-3); }
.t-ladder .sess-from b::after { transition: transform 0.6s ease 0.5s; }
.t-ladder.pending .sess-from b::after { transform: scaleX(0); }
.t-ladder .sess-to { transition: opacity 0.6s ease 0.9s, transform 0.6s cubic-bezier(.2, .9, .2, 1) 0.9s; }
.t-ladder.pending .sess-to { opacity: 0; transform: translateX(-16px); }
.ladder-note { margin-top: 16px; font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.ladder-note svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 640px) { .ladder { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); margin: -6px auto; } }

/* how did it go? — a working slider */
.rate { margin-top: auto; padding-top: 24px; }
.rate-head { display: flex; justify-content: space-between; align-items: baseline; }
.rate-head b { font: 600 17px/1.3 "Inter", sans-serif; }
.rate-word { font: 700 17px/1.3 "Inter", sans-serif; color: var(--rate, var(--go-text)); transition: color 0.2s ease; }
.rate input[type="range"] { width: 100%; margin: 18px 0 6px; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; --pct: 75%; }
.rate input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--rate, var(--go)) var(--pct), var(--fill) var(--pct)); }
.rate input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--fill); }
.rate input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--rate, var(--go)); }
.rate input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06); transition: transform 0.15s ease; }
.rate input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.rate input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.rate-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-weight: 500; }

/* logs itself */
.logged { margin-top: auto; padding-top: 24px; }
.log-card { border-radius: 20px; background: var(--bg-2); padding: 16px 18px; }
.log-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.log-top b { font: 700 18px/1.2 "Inter Display", sans-serif; }
.log-top small { font-size: 13px; color: var(--go-text); font-weight: 600; white-space: nowrap; }
.log-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.zbars { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 14px; gap: 2px; }
.zbars i { display: block; height: 100%; transform-origin: left; }
.t-log .zbars i { transition: transform 0.7s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(0.4s + var(--d) * 0.12s); }
.t-log.pending .zbars i { transform: scaleX(0); }
.zlegend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); font-weight: 500; }

/* morning brief: one quiet notification */
.notif { margin-top: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 22px; background: var(--bg-2); box-shadow: 0 10px 30px -18px rgba(17, 17, 20, 0.35); }
.notif img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.notif .n-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); }
.notif b { display: block; font-size: 15px; margin-top: 1px; }
.notif p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.t-brief .notif { transition: opacity 0.5s ease 0.5s, transform 0.6s cubic-bezier(.3, 1.3, .5, 1) 0.5s; }
.t-brief.pending .notif { opacity: 0; transform: translateY(-14px) scale(0.97); }
.t-brief .art { margin-top: auto; padding-top: 24px; }

/* ---- watches ---------------------------------------------------------------------- */
/* ---- the science ------------------------------------------------------- */
.sci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.sci { background: var(--card); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sci .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.sci .ic svg { width: 20px; height: 20px; }
.sci h3 { margin-top: 18px; font-size: 20px; }
.sci p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.sci .cite { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.sci .cite a, .sci .cite span { padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-weight: 500; }
.sci .cite a::after { content: ""; display: inline-block; width: 0.75em; height: 0.75em; margin-left: 5px; vertical-align: -0.05em; background: var(--text-3); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; --arrow: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M7 17 17 7M8 7h9v9%27/%3E%3C/svg%3E"); }
.sci .cite a:hover { color: var(--text); text-decoration: none; background: var(--fill-strong); }
.sci-note { margin-top: 28px; max-width: 760px; font-size: 15px; color: var(--text-2); }
.refs { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.refs summary { cursor: pointer; font-weight: 600; color: var(--text); width: fit-content; }
.refs ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; max-width: 900px; }
.refs a { word-break: break-all; }
@media (max-width: 1000px) { .sci-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sci-grid { grid-template-columns: 1fr; } }
.meta-sci { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.meta-sci:hover { color: var(--text); }

.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.source { background: var(--card); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow); }
.source h3 { display: flex; align-items: center; gap: 12px; }
.source h3 .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.source h3 .ic svg { width: 20px; height: 20px; }
.source p { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 500; color: var(--text); }
@media (max-width: 800px) { .sources { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; max-width: 760px; }
.plan { background: var(--card); border-radius: var(--r-card); padding: 28px 32px; box-shadow: var(--shadow); border: 2px solid transparent; }
.plan-best { border-color: var(--brand); background: var(--brand-soft); }
.plan-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.plan-tag { padding: 3px 10px; border-radius: 999px; background: var(--go-soft); color: var(--go-text); font-size: 13px; font-weight: 700; }
.plan-price { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.plan-price b { color: var(--text); font-family: "Inter Display", "Inter", sans-serif; font-size: clamp(36px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-right: 4px; }
.plan-sub { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.plan-notes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; max-width: 760px; }
.plan-notes li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-2); }
.plan-notes li b { color: var(--text); font-weight: 600; }
.plan-notes svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--go-text); }
.plan-fine { margin-top: 24px; color: var(--text-2); }
@media (max-width: 800px) { .plans, .plan-notes { grid-template-columns: 1fr; } }

/* ---- final call ------------------------------------------------------------------------- */
.final { text-align: center; overflow: clip; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, var(--glow-b), transparent 62%); filter: blur(30px);
}
.final .wm { --wm: clamp(44px, 8vw, 104px); }
.final .lede { margin: 28px auto 0; max-width: 30em; }
.final .cta-row { justify-content: center; margin-top: 32px; }
.final .small { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* ---- footer ---------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--sep); padding: 48px 0 56px; font-size: 14px; color: var(--text-2); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); }
.fine { margin-top: 28px; font-size: 13px; color: var(--text-3); max-width: 760px; }
.fine p + p { margin-top: 8px; }

/* ---- legal pages ---------------------------------------------------------------------------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); }
.legal .updated { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.legal .summary { margin-top: 36px; padding: 24px 28px; border-radius: 24px; background: var(--go-soft); }
.legal .summary h2 { font-size: 20px; letter-spacing: -0.01em; margin-top: 0; }
.legal .summary ul { margin: 12px 0 0; padding-left: 20px; }
.legal .summary li + li { margin-top: 6px; }
.legal h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 52px; }
.legal h3 { font-size: 19px; margin-top: 28px; }
.legal p, .legal ul, .legal table { margin-top: 14px; color: var(--text); font-size: 17px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--sep); }
.legal th { font-weight: 600; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.legal td:first-child { font-weight: 600; width: 34%; }
.todo { background: #fff3c4; color: #5c4400; padding: 0 4px; border-radius: 4px; }
@media (max-width: 640px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; width: auto !important; } .legal tr { border-bottom: 1px solid var(--sep); padding: 10px 0; } }

/* ---- motion off ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

@media (max-width: 480px) { :root { --gutter: 16px; } body { font-size: 16px; } }
