/* Pebble waitlist. One stylesheet, no build step.
   Layout: an editorial hero beside a 3D pond (the mark as ink rings on water), then a pinned phone that plays one
   session as you scroll, then cards that tilt in 3D. Serif display (Tiempos) over a
   grotesk body (Styrene B). Dark first: the app icon's ink and stone, the app's system
   blue as the one accent. */

:root {
  --ink: #0E1116;
  --bg: #0E1116;
  --bg-el: #161A21;
  --bg-in: #222731;
  --text: #F2F1EC;
  --text2: rgba(236, 234, 226, 0.66);
  --text3: rgba(236, 234, 226, 0.44);
  --hair: rgba(236, 234, 226, 0.14);
  --accent: #0A84FF;
  --accent-ink: #FFFFFF;
  --glow: rgba(242, 241, 236, 0.10);
  --shadow: rgba(0, 0, 0, 0.55);
  --ok: #30D158;
  --bad: #FF453A;
  color-scheme: dark;

  --sans: "Styrene B", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Tiempos Headline", "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r-card: 24px;
  --r-phone: 46px;
  --gutter: 24px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F1EC; --bg-el: #FFFFFF; --bg-in: #E6E4DD;
    --text: #0E1116; --text2: rgba(14, 17, 22, 0.66); --text3: rgba(14, 17, 22, 0.44);
    --hair: rgba(14, 17, 22, 0.12); --accent: #007AFF;
    --glow: rgba(14, 17, 22, 0.08); --shadow: rgba(14, 17, 22, 0.28);
    --ok: #248A3D; --bad: #D70015;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F1EC; --bg-el: #FFFFFF; --bg-in: #E6E4DD;
  --text: #0E1116; --text2: rgba(14, 17, 22, 0.66); --text3: rgba(14, 17, 22, 0.44);
  --hair: rgba(14, 17, 22, 0.12); --accent: #007AFF;
  --glow: rgba(14, 17, 22, 0.08); --shadow: rgba(14, 17, 22, 0.28);
  --ok: #248A3D; --bad: #D70015;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bg-el); padding: 8px 12px; border-radius: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text3); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.section-h { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; }

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  mask-image: linear-gradient(#000 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 18px; }
.brand-mark { margin: -4px -2px -4px -4px; color: var(--text); }
.pill {
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-in); transition: background 0.2s;
}
.pill:hover { background: var(--hair); }
.pill:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main > section { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ── hero ────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center;
  padding-block: 40px 120px; scroll-margin-top: 80px;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; }
.hero h1 em { display: block; color: var(--text2); }
.lede { color: var(--text2); font-size: 19px; max-width: 32em; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 560px; justify-self: center; }
.pond { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s var(--ease); cursor: pointer; }
.hero-visual.gl-ready .pond { opacity: 1; }
.hero-visual.gl-ready .pond-fallback { opacity: 0; }
/* No-WebGL: the flat mark, in the text colour. */
.pond-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); transition: opacity 0.6s; }
.pond-fallback svg { width: 72%; height: auto; }

/* ── waitlist form ───────────────────────────────────── */
.waitlist { max-width: 540px; display: grid; gap: 12px; }
.field-row { display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: var(--bg-el); box-shadow: 0 0 0 1px var(--hair), 0 20px 40px -24px var(--shadow); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; border: 0; padding: 0 14px; min-height: 50px;
}
.waitlist input[type="email"]::placeholder { color: var(--text3); }
.waitlist select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg-el);
  border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; appearance: none; -webkit-appearance: none;
}
.waitlist :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist button {
  font: inherit; font-weight: 500; cursor: pointer; border: 0; border-radius: 15px; padding: 0 22px; min-height: 50px;
  background: var(--accent); color: var(--accent-ink); white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.waitlist button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent); }
.waitlist button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.field-select, .field-note { display: grid; gap: 6px; font-size: 14px; color: var(--text2); }
.waitlist input[type="text"] {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg-el);
  border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px;
}
.waitlist input[type="text"]::placeholder { color: var(--text3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--bad); }
.fine { font-size: 13px; color: var(--text3); }
.waitlist.done .field-row, .waitlist.done .field-select, .waitlist.done .field-note { display: none; }

/* ── phone ───────────────────────────────────────────── */
.phone {
  position: relative; margin: 0; width: min(330px, 74vw); max-width: 100%; aspect-ratio: 1320 / 2868;
  border-radius: var(--r-phone); background: #000; padding: 10px;
  box-shadow: inset 0 0 0 1.5px #2C3039, 0 0 0 1px var(--hair), 0 50px 90px -40px var(--shadow);
}
.phone::after { /* the camera island */
  content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%);
  border-radius: 999px; background: #000; z-index: 3;
}
.screen { container-type: size; position: relative; height: 100%; border-radius: calc(var(--r-phone) - 10px); overflow: hidden; background: #000; }
.phone > video, .phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-phone) - 10px); }
.phone > video ~ img { display: none; }

/* ── screenshot slots ────────────────────────────────── */
.brief { display: none; }
body.shot-mode .shot.missing .brief { display: block; }
body.shot-mode .flows .brief { display: block; }
.brief b { color: var(--text); font-family: var(--mono); font-weight: 600; font-size: 0.95em; }

/* ── why: a short letter ─────────────────────────────── */
.why {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; align-items: start;
  padding-block: 40px 120px;
}
.why-mark { justify-self: center; padding: 28px; border-radius: 36px; background: var(--ink); box-shadow: 0 0 0 1px var(--hair), 0 40px 70px -40px var(--shadow); position: sticky; top: 120px; }
.why-letter { display: grid; gap: 20px; max-width: 34em; }
.why-letter h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; margin-bottom: 8px; }
.why-letter p { font-family: var(--serif); font-size: clamp(20px, 2vw, 23px); line-height: 1.5; color: var(--text); }
.why-letter p + p { color: var(--text); }
.why-letter .signoff { font-style: italic; color: var(--text2); }

/* ── scroll story ────────────────────────────────────── */
.story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
  padding-block: 40px 80px;
}
.story-stage {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 9vh); height: 82vh; align-self: start;
  display: grid; place-items: center; perspective: 1400px; order: 2;
}
.phone-3d {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) rotateZ(var(--rz, 1deg));
  transition: transform 1s var(--ease);
}
.story-stage .phone { width: auto; height: min(74vh, 700px); }
.story-stage[data-beat="0"] .phone-3d { --ry: -16deg; --rx: 8deg; --rz: 2deg; }
.story-stage[data-beat="1"] .phone-3d { --ry: -6deg; --rx: 4deg; --rz: 0deg; }
.story-stage[data-beat="2"] .phone-3d { --ry: 10deg; --rx: 6deg; --rz: -1deg; }
.story-stage[data-beat="3"] .phone-3d { --ry: 16deg; --rx: 8deg; --rz: -2deg; }

.chip {
  position: absolute; white-space: nowrap; z-index: 4;
  font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg-el) 82%, transparent); color: var(--text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--hair), 0 24px 40px -20px var(--shadow);
  opacity: 0; transform: translateZ(90px) translateY(14px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.chip s { color: var(--text3); }
.c0 { top: 14%; left: -22%; }
.c1 { top: 42%; right: -26%; }
.c2 { top: 58%; left: -26%; }
.c3 { top: 26%; right: -24%; }
.story-stage[data-beat="0"] .c0, .story-stage[data-beat="1"] .c1,
.story-stage[data-beat="2"] .c2, .story-stage[data-beat="3"] .c3 { opacity: 1; transform: translateZ(90px) translateY(0) scale(1); }

.beats { list-style: none; margin: 0; padding: 0; order: 1; }
.beat { min-height: 88vh; display: grid; align-content: center; gap: 16px; max-width: 30em; }
.beat h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; }
.beat p:not(.eyebrow) { color: var(--text2); font-size: 19px; }
.beat { opacity: 0.32; transition: opacity 0.6s var(--ease); }
.beat.on { opacity: 1; }

/* The journal drawn in HTML, inside the phone. Its own colours: it is always the app's dark page. */
.mock {
  position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff;
  padding: 18% 7% 6%; font: 500 4.6cqw/1.3 var(--sans); white-space: nowrap;
}
.mock-top, .mock-bar { display: flex; justify-content: space-between; align-items: center; }
.mock-pill {
  font-size: 0.86em; padding: 0.5em 0.9em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}
.mock-pill.round { padding: 0.5em 0.8em; }
.b-next { display: none; }
[data-beat="3"] .b-now { display: none; }
[data-beat="3"] .b-next { display: inline; }
.mock-day { flex: 1; padding-top: 7%; overflow: hidden; position: relative; margin: 0 -7%; padding-inline: 7%;
  /* ruled notebook paper with a margin line, as in the app's new journal page */
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2.19em - 1px), rgba(255, 255, 255, 0.07) calc(2.19em - 1px) 2.19em); }
.mock-day::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(7% - 0.9em); width: 1px; background: rgba(255, 255, 255, 0.14); }
.mock-sub { margin: -0.2em 0 0.3em; font-size: 0.7em; color: rgba(235, 235, 245, 0.5); }
.mock-sub.second { transition: opacity 0.4s; }
[data-beat="3"] .mock-sub.second, [data-beat="1"] .mock-cardio-div, [data-beat="1"] .mock-cardio, [data-beat="3"] .mock-cardio-div, [data-beat="3"] .mock-cardio { display: none; }
.mock-cardio { display: flex; align-items: center; gap: 0.7em; margin: 0.2em 0; }
.mock-cardio .box { width: 1.1em; height: 1.1em; border: 1.5px solid rgba(235, 235, 245, 0.45); border-radius: 0.3em; }
.mock-cardio i { font-style: normal; font-size: 0.75em; color: rgba(235, 235, 245, 0.5); }
.mock-ex { font-weight: 700; font-size: 1.12em; margin: 0 0 0.3em; }
.mock-ex.second { margin-top: 0.9em; transition: opacity 0.4s; }
.rows { display: grid; }
.row {
  display: flex; align-items: center; gap: 0.9em; height: 1.95em; margin: 0.12em 0;
  font-variant-numeric: tabular-nums; border-radius: 0.6em; padding-left: 0.2em;
  transition: color 0.4s, background 0.4s, outline-color 0.4s, height 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.4s;
  outline: 1px dashed transparent; outline-offset: -1px; overflow: hidden;
}
.row b { width: 1em; text-align: right; color: rgba(235, 235, 245, 0.45); font-weight: 500; }
.row i { font-style: normal; color: rgba(235, 235, 245, 0.6); }
.row[data-now="planned"] { color: rgba(235, 235, 245, 0.45); outline-color: rgba(235, 235, 245, 0.45); }
.row[data-now="planned"] i { color: rgba(235, 235, 245, 0.32); }
.row[data-now="draft"] { outline: 1px solid rgba(84, 84, 88, 0.9); background: rgba(255, 255, 255, 0.06); }
.row[data-now="gone"] { height: 0; margin: 0; opacity: 0; }
.next-rows { display: none; }
[data-beat="3"] .today-rows, [data-beat="3"] .mock-ex.second, [data-beat="3"] .mock-divider, [data-beat="3"] .mock-note { display: none; }
[data-beat="3"] .next-rows { display: grid; animation: rise 0.7s var(--ease); }
.row.book .num { color: #fff; font-weight: 700; }
@keyframes rise { from { transform: translateY(12px); opacity: 0.2; } }
.mock-divider { display: flex; align-items: center; gap: 0.6em; margin: 1.1em 0 0.4em; font-size: 0.75em; color: rgba(235, 235, 245, 0.45); }
.mock-divider::before { content: ""; flex: 1; height: 0.5px; background: rgba(84, 84, 88, 0.72); }
.mock-divider::after { content: ""; flex: 1; height: 0.5px; background: rgba(84, 84, 88, 0.72); }
.mock-note { display: block; width: 78%; color: #2a2400; background: #fbe98a; padding: 0.5em 0.7em; border-radius: 0.3em; transform: rotate(-1.2deg); white-space: normal; box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.4); }
.mock-note small { display: block; font-size: 0.72em; opacity: 0.6; }
[data-beat="0"] .mock-divider, [data-beat="0"] .mock-note { opacity: 0; }
[data-beat="0"] .workout, [data-beat="3"] .workout { display: none; }
.stage-caption { display: none; }

.wheel {
  display: none; grid-template-columns: repeat(3, 1fr); gap: 4%; margin: 0 -2% 3%; padding: 3% 4%;
  border-radius: 1.4em; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
  height: 26%; overflow: hidden; position: relative;
}
[data-beat="1"] .wheel { display: grid; }
[data-beat="1"] .mock-bar { display: none; }
.wheel-col { display: grid; align-content: center; text-align: center; font-size: 1.15em; font-variant-numeric: tabular-nums; position: relative; }
.wheel-col span { height: 1.9em; line-height: 1.9em; color: rgba(235, 235, 245, 0.35); }
.wheel-col span.on { color: #fff; font-weight: 700; background: rgba(255, 255, 255, 0.1); border-radius: 0.5em; }
[data-beat="1"] .wheel-col:first-child { animation: spin 1.4s var(--ease) both; }
@keyframes spin { from { transform: translateY(-3.8em); } to { transform: translateY(0); } }
.mock-stats { display: flex; gap: 1em; font-size: 0.82em; color: rgba(235, 235, 245, 0.6); padding: 0.6em 1em; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25); }
.mock-stats b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* A real screenshot for a beat sits over the mock, only on its beat. */
.beat-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.5s; z-index: 2; }
.beat-shot img { width: 100%; height: 100%; object-fit: cover; }
.story-stage[data-beat="0"] .beat-shot[data-for-beat="0"],
.story-stage[data-beat="1"] .beat-shot[data-for-beat="1"],
.story-stage[data-beat="2"] .beat-shot[data-for-beat="2"],
.story-stage[data-beat="3"] .beat-shot[data-for-beat="3"] { opacity: 1; }
.beat-shot.missing { opacity: 0 !important; }
body.shot-mode .story-stage[data-beat="0"] .beat-shot.missing[data-for-beat="0"],
body.shot-mode .story-stage[data-beat="1"] .beat-shot.missing[data-for-beat="1"],
body.shot-mode .story-stage[data-beat="2"] .beat-shot.missing[data-for-beat="2"],
body.shot-mode .story-stage[data-beat="3"] .beat-shot.missing[data-for-beat="3"] {
  opacity: 1 !important; inset: auto 6% 4% 6%; padding: 10px 12px; border-radius: 14px;
  background: rgba(14, 17, 22, 0.92); border: 1.5px dashed rgba(235, 235, 245, 0.5); color: rgba(235, 235, 245, 0.75);
  font-size: 12px; line-height: 1.4;
}
body.shot-mode .beat-shot .brief b { color: #fff; }

/* ── feature cards ───────────────────────────────────── */
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  padding-block: 40px 140px; perspective: 1200px;
}
.card {
  display: grid; align-content: start; gap: 10px; padding: 22px 22px 26px; border-radius: var(--r-card);
  background: var(--bg-el); box-shadow: 0 0 0 1px var(--hair), 0 30px 50px -40px var(--shadow);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.card h3 { font-size: 20px; margin-top: 8px; }
.card p { color: var(--text2); font-size: 16px; }
.art {
  position: relative; height: 180px; border-radius: 16px; overflow: hidden; background: #000;
  display: grid; place-items: center; transform: translateZ(30px);
}
.card-shot { position: absolute; inset: 0; margin: 0; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-shot.missing { display: none; }
body.shot-mode .card-shot.missing {
  display: grid; place-items: center; padding: 14px; background: rgba(14, 17, 22, 0.9);
  border: 1.5px dashed rgba(235, 235, 245, 0.5); border-radius: 16px; color: rgba(235, 235, 245, 0.75); font-size: 12px; line-height: 1.4;
}
body.shot-mode .card-shot .brief b { color: #fff; }

.mini { width: 86%; color: #fff; font-size: 14px; display: grid; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.mrow b { color: rgba(235, 235, 245, 0.45); font-weight: 500; margin-right: 10px; }
.tag { font-size: 12px; color: rgba(235, 235, 245, 0.65); padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); white-space: nowrap; }
.rollover .mrow { justify-content: flex-start; }
.rollover .mrow:not(.plain) { animation: rollin 4s var(--ease) infinite; }
.rollover .mrow:nth-child(2) { animation-delay: 0.25s; }
@keyframes rollin { 0% { transform: translateX(-30px); opacity: 0.3; } 20%, 100% { transform: none; opacity: 1; } }
.notes .set { justify-content: flex-start; }
.notes .note { justify-content: flex-start; margin-left: 22px; color: rgba(235, 235, 245, 0.8); position: relative; }
.notes .link { position: absolute; left: -14px; top: -14px; width: 12px; height: 30px; border-left: 1.5px solid rgba(235, 235, 245, 0.4); border-bottom: 1.5px solid rgba(235, 235, 245, 0.4); border-bottom-left-radius: 8px; }
.program { grid-template-columns: repeat(3, 1fr); }
.day { display: grid; gap: 4px; justify-items: center; padding: 16px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: rgba(235, 235, 245, 0.6); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; animation: lift 3.6s var(--ease) infinite; }
.day b { font-family: var(--serif); font-weight: 400; font-size: 20px; text-transform: none; letter-spacing: 0; color: #fff; }
.day:nth-child(2) { animation-delay: 0.3s; }
.day:nth-child(3) { animation-delay: 0.6s; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-6px); } 30% { transform: translateY(0); } }
.progress svg { width: 100%; height: 100px; overflow: visible; }
.progress .area { fill: rgba(10, 132, 255, 0.18); }
.progress .line { fill: none; stroke: #0A84FF; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.progress .end { fill: #fff; }
.card.seen .progress .line { animation: draw 1.6s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 400; } }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: rgba(235, 235, 245, 0.5); font-variant-numeric: tabular-nums; }
.console {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; border-radius: 10px; transform: rotate(-2deg);
  background: linear-gradient(160deg, #1F3A2C, #0F1F17); font: 600 13px/1 var(--mono); color: #9BF0B7; text-align: center;
  box-shadow: inset 0 0 0 2px #2B4A39, 0 10px 20px -10px #000;
}

/* ── promises ────────────────────────────────────────── */
.promises { padding-block: 0 140px; display: grid; gap: 40px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.plist li { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--hair); align-content: start; }
.plist h3 { font-size: 18px; }
.plist p { color: var(--text2); font-size: 15px; }

/* ── flows ───────────────────────────────────────────── */
.flows { padding-block: 0 140px; display: grid; gap: 40px; }
.flow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 24px; justify-items: center; perspective: 1200px; }
.phone.small { width: min(250px, 70vw); margin-bottom: 56px; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 0.6s var(--ease); }
.flow-row figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 14px); text-align: center; font-size: 15px; }
.flow-row .cap { display: block; font-weight: 500; }
.flow-row .shot.missing { display: none; }
body.shot-mode .flow-row .shot.missing { display: grid; place-items: center; background: var(--bg-el); border: 1.5px dashed var(--text3); box-shadow: none; }
body.shot-mode .flow-row .shot.missing figcaption { position: static; padding: 18px; text-align: left; color: var(--text2); font-size: 13px; }
body:not(.shot-mode) .flows:not(:has(.shot:not(.missing))) { display: none; }

/* ── faq ─────────────────────────────────────────────── */
.faq { max-width: 820px !important; padding-block: 0 140px; display: grid; }
.faq .section-h { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--hair); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--text3); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq details p { color: var(--text2); margin-top: 10px; max-width: 36em; }

/* ── closing ─────────────────────────────────────────── */
.closing { text-align: center; padding-block: 0 140px; display: grid; justify-items: center; gap: 28px; }
.closing-mark { display: block; color: var(--text); }   /* mono marks follow the theme */
.closing h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; max-width: 14em; }
.closing .waitlist { width: 100%; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text3); font-size: 14px; border-top: 1px solid var(--hair);
}

/* ── scroll reveals (CSS scroll-driven; static where unsupported) ── */
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
  }
  @keyframes reveal { from { transform: translateY(48px) rotateX(10deg); opacity: 0.35; } to { transform: none; opacity: 1; } }
  .hero-visual { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  @keyframes sink { to { transform: translateY(70px) scale(0.94); } }
}

/* ── narrow ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 16px 80px; gap: 8px; }
  .hero-visual { max-width: 420px; order: -1; aspect-ratio: 1 / 0.9; }
  /* Narrow: the phone and a caption share one pinned screen; the beats become invisible
     scroll distance (still read by screen readers), and the caption shows the active beat. */
  .story { display: block; padding-block: 0 40px; }
  .story-stage {
    top: calc(env(safe-area-inset-top, 0px) + 60px); height: calc(100svh - 72px);
    display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; place-items: center; padding-bottom: 12px;
  }
  .story-stage .phone { height: min(56svh, 520px); }
  .stage-caption { display: grid; gap: 8px; width: 100%; max-width: 30em; min-height: 9.5em; align-content: start; }
  .stage-caption h2 { font-size: 30px; line-height: 1.05; }
  .stage-caption p:not(.eyebrow) { color: var(--text2); font-size: 16px; }
  .stage-caption > * { animation: rise 0.5s var(--ease); }
  .beats { margin-top: -100svh; padding-bottom: 45svh; }
  .beat { min-height: 75svh; opacity: 0 !important; pointer-events: none; }
  .chip { font-size: 12px; padding: 7px 10px; }
  .c0, .c2 { left: -18%; } .c1, .c3 { right: -18%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 0 80px; }
  .why-mark { position: static; justify-self: start; padding: 18px; border-radius: 28px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .field-row { flex-direction: column; }
  .waitlist input[type="email"] { min-height: 46px; }
  .pill { font-size: 14px; padding: 7px 12px; }
  .chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
