/* ==========================================================================
   SET website.
   Tokens follow the app's Design V2.2 skin (src/styles.js in the app): a warm
   canvas, ivory cards, one forest green, and the Mineral field (graphite with
   forest light and a champagne core) for moments. Type is SF Pro through the
   system font. Motion is short and settles; every animation has a reduced
   motion fallback (see the end of this file).
   ========================================================================== */

/* One design pixel inside an app mockup: mockups are drawn at the app's own
   size and scale with their container. */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Mineral energy palette: the same in both themes. */
  --mineral: #161614;
  --forest-deep: #12261D;
  --forest: #1D3B2D;
  --moss: #4A5D3E;
  --champagne: #D8C7A1;
  --ivory: #F3EEE2;
  --ivory-2: rgb(243 238 226 / .68);
  --ivory-3: rgb(243 238 226 / .56);
  --mint: #7FBF9C;
  --green: #24573F;
  --amber: #B07A2C;
  --gold: #C8922E;

  /* Theme: light (the app's light skin). */
  --canvas: #F2F0EA;
  --card: #FDFCF9;
  --card-2: #F3F1EB;
  --card-3: #EAE7DF;
  --line: #E4E1D8;
  --line-2: #CFCCC4;
  --ink: #151514;
  --ink-2: #5C5A55;
  --ink-3: #6F6B64;
  --accent: #24573F;
  --accent-hover: #1B4532;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4EDE7;
  --accent-text: #24573F;
  --record: #80560B;
  --record-soft: #F6EBDC;
  --focus: #24573F;
  --shadow-card: inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 2px rgb(21 21 20 / .04), 0 16px 36px -22px rgb(21 21 20 / .32);
  --shadow-lift: 0 30px 60px -30px rgb(18 38 29 / .45);
  --footer-mark: #E7E4DC;

  /* The story stage (E1 quiet field in light, the Mineral field in dark). */
  --stage-bg:
    radial-gradient(120% 80% at 12% 0%, #EFE8DA 0%, transparent 62%),
    radial-gradient(90% 70% at 92% 8%, #DCE5DD 0%, transparent 66%),
    radial-gradient(70% 50% at 50% 100%, #DFE3DA 0%, transparent 70%),
    #E5E1D8;
  --stage-edge: inset 0 0 0 1px rgb(21 21 20 / .035);
  --stage-tray: rgb(255 255 255 / .5);
  --stage-tray-edge: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .55), 0 2px 6px rgb(21 21 20 / .04), 0 40px 70px -32px rgb(18 38 29 / .5);
  --stage-panel: #FFFFFF;
  --stage-status: #151514;
  --stage-status-2: #6A675F;
  --stage-signal: #24573F;
  --stage-glow: rgb(36 87 63 / .16);
  --stage-queue: rgb(255 255 255 / .78);
  --stage-queue-2: rgb(255 255 255 / .55);
  --stage-queue-ink: #151514;
  --stage-seg: rgb(21 21 20 / .1);
  --stage-seg-fill: #151514;

  /* The app inside the hero phone (light). */
  --app-canvas: #F2F0EA;
  --app-ink: #151514;
  --app-ink-2: #5C5A55;
  --app-ink-3: #6F6B64;
  --app-line: #E4E1D8;
  --app-card: #FDFCF9;
  --app-card-2: #F3F1EB;
  --app-check: #CFCCC4;
  --app-accent: #24573F;
  --app-accent-ink: #FFFFFF;
  --app-accent-soft: #E4EDE7;
  --app-accent-text: #24573F;
  --app-tray: rgb(255 255 255 / .62);
  --app-tray-edge: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .7), 0 1px 2px rgb(21 21 20 / .05), 0 18px 36px -24px rgb(21 21 20 / .3);
  --app-inner: #FFFFFF;
  --app-inner-edge: 0 1px 2px rgb(21 21 20 / .06), 0 0 0 1px rgb(21 21 20 / .04);
  --app-target: linear-gradient(160deg, #E6EFE9 0%, #F0F3ED 100%);
  --app-target-edge: inset 0 0 0 1px rgb(36 87 63 / .08);
  --app-why: #FFFFFF;
  --app-head: radial-gradient(120% 90% at 50% -18%, rgb(36 87 63 / .92) 0%, rgb(24 50 38 / .78) 42%, rgb(18 38 29 / .35) 72%, transparent 100%), #161614;
  --app-float: radial-gradient(120% 140% at 50% -40%, rgb(36 87 63 / .9) 0%, rgb(18 38 29 / .5) 60%, transparent 100%), #161614;
  --app-home: rgb(21 21 20 / .85);

  /* Layout. */
  --container: 1240px;
  /* The gutter keeps clear of the notch when a phone is held sideways. */
  --gutter: max(clamp(20px, 4.2vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(96px, 11vw, 164px);
  --radius-moment: clamp(28px, 3vw, 40px);

  /* Motion: SET's curves, and two springs (critically damped and a touch of bounce). */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-pres: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --spring: linear(0, 0.0582, 0.1822, 0.3237, 0.4587, 0.5768, 0.6748, 0.7536, 0.8153, 0.8627, 0.8988, 0.9258, 0.946, 0.9608, 0.9717, 0.9796, 0.9854, 0.9895, 0.9925, 0.9947, 0.9962, 0.9973, 0.9981, 0.9987, 1);
  --spring-bounce: linear(0, 0.0302, 0.1049, 0.205, 0.3163, 0.4287, 0.5356, 0.6326, 0.7178, 0.7902, 0.8501, 0.8983, 0.936, 0.9646, 0.9856, 1.0003, 1.0101, 1.016, 1.019, 1.0199, 1.0194, 1.018, 1.016, 1.0138, 1.0116, 1.0094, 1.0075, 1.0058, 1.0043, 1.0031, 1.0021, 1.0013, 1);
}

/* Theme: dark (the app's dark skin, round two). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0E0E0D;
  --card: #1C1C1A;
  --card-2: #262624;
  --card-3: #302F2C;
  --line: #2E2D2A;
  --line-2: #44423E;
  --ink: #F3EEE2;
  --ink-2: #C9C6BE;
  --ink-3: #A6A39B;
  --accent: #F1F1F0;
  --accent-hover: #DCDAD4;
  --accent-ink: #1B1A19;
  --accent-soft: #2B2A28;
  --accent-text: #F3F3F1;
  --record: #E2B45C;
  --record-soft: #2C2417;
  --focus: #F1F1F0;
  --shadow-card: inset 0 1px 0 rgb(255 255 255 / .07), inset 0 0 0 1px rgb(255 255 255 / .045), 0 18px 40px -24px rgb(0 0 0 / .9);
  --shadow-lift: 0 30px 60px -30px rgb(0 0 0 / .9);
  --footer-mark: #191917;

  --stage-bg:
    radial-gradient(90% 55% at 50% -8%, #363432 0%, #252422 42%, transparent 75%),
    radial-gradient(34% 20% at 50% -4%, rgb(216 199 161 / .18), transparent 70%),
    #161614;
  --stage-edge: inset 0 0 0 1px rgb(255 255 255 / .05);
  --stage-tray: rgb(255 255 255 / .07);
  --stage-tray-edge: inset 0 1px 0 rgb(255 255 255 / .12), 0 30px 60px -24px rgb(0 0 0 / .65);
  --stage-panel: #242422;
  --stage-status: #F3EEE2;
  --stage-status-2: rgb(243 238 226 / .62);
  --stage-signal: #F1F1F0;
  --stage-glow: rgb(241 241 240 / .34);
  --stage-queue: rgb(69 68 64 / .92);
  --stage-queue-2: rgb(55 53 51 / .92);
  --stage-queue-ink: #F3EEE2;
  --stage-seg: rgb(243 238 226 / .16);
  --stage-seg-fill: #F3EEE2;

  --app-canvas: #0E0E0D;
  --app-ink: #F3EEE2;
  --app-ink-2: #D3D0C8;
  --app-ink-3: #A6A39B;
  --app-line: #3F3E3A;
  --app-card: #242422;
  --app-card-2: #302F2C;
  --app-check: #55534E;
  --app-accent: #F1F1F0;
  --app-accent-ink: #1B1A19;
  --app-accent-soft: #3F3D3A;
  --app-accent-text: #F3F3F1;
  --app-tray: linear-gradient(180deg, rgb(243 238 226 / .2) 0%, rgb(243 238 226 / .1) 100%), radial-gradient(120% 80% at 50% -10%, rgb(241 241 240 / .16), transparent 70%), rgb(30 30 28 / .9);
  --app-tray-edge: inset 0 1px 0 rgb(255 255 255 / .26), inset 0 0 0 1px rgb(255 255 255 / .09), 0 18px 34px -22px rgb(0 0 0 / .9);
  --app-inner: #151514;
  --app-inner-edge: inset 0 1px 0 rgb(255 255 255 / .07);
  --app-target: linear-gradient(160deg, #302F2C 0%, #272624 100%);
  --app-target-edge: inset 0 0 0 1px rgb(241 241 240 / .1);
  --app-why: rgb(243 238 226 / .1);
  --app-head: linear-gradient(180deg, rgb(243 238 226 / .2) 0%, rgb(243 238 226 / .1) 100%), radial-gradient(120% 80% at 50% -10%, rgb(241 241 240 / .16), transparent 70%), #1E1E1C;
  --app-float: linear-gradient(180deg, rgb(243 238 226 / .22) 0%, rgb(243 238 226 / .12) 100%), #252523;
  --app-home: rgb(243 238 226 / .85);

}

@media (prefers-contrast: more) {
  :root { --ink-2: #303C34; --ink-3: #445048; --line: #B9B6AE; }
  :root[data-theme="dark"] { --ink-2: #EAEADF; --ink-3: #CECEC4; --line: #6B6A64; }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Phones (mobile-native): no grey flash on a tap (every control has its own :active), no double-tap delay on controls, and no
   text selection or callout when a control is held. Text that is content stays selectable. */
html { -webkit-tap-highlight-color: transparent; }
:is(a, button, [role="button"], [role="radio"], [role="switch"], [role="tab"], summary, label) { touch-action: manipulation; }
:is(button, [role="button"], [role="radio"], [role="switch"], [role="tab"]) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* overflow-x: clip on html too: otherwise body's clip is handed to the viewport, which iPhone Safari ignores while you swipe,
   and anything that reaches past the edge lets the whole page slide sideways (iPhone 3 Dec). clip makes no scroll container,
   so the sticky scenes keep working. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; background: var(--canvas); overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { overflow: visible; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip-link:focus { transform: none; }
/* iOS Safari draws the page under the status bar, where the parked link showed through: it is invisible until focused, and
   when focused it sits below the status bar. */
.skip-link { top: calc(16px + env(safe-area-inset-top, 0px)); opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.i { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.signal, .coach { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.wordmark { display: block; fill: currentColor; aspect-ratio: 715 / 133; height: auto; }

/* ---- Type ---------------------------------------------------------------- */
.soft { font-weight: 400; }
.title-l { font-size: clamp(44px, 6.4vw, 96px); font-weight: 700; line-height: .98; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; }
.lead { max-width: 34ch; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); text-wrap: pretty; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 17px/1 var(--font); letter-spacing: -.012em; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn .i { font-size: 18px; stroke-width: 2.2; transition: transform 320ms var(--ease-out); }
.btn-ivory { background: var(--ivory); color: var(--forest-deep); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 12px 30px -14px rgb(0 0 0 / .55); }
.btn-ghost { background: rgb(243 238 226 / .07); color: var(--ivory); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .2); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { --h: 62px; padding: 0 32px; font-size: 18px; }
@media (hover: hover) {
  .btn-ivory:hover { background: #FFFFFF; }
  .btn-ghost:hover { background: rgb(243 238 226 / .13); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .3); }
  .btn:hover .i { transform: translateX(3px); }
}
.btn:focus-visible, .nav :focus-visible, .hero :focus-visible, .join :focus-visible, .menu :focus-visible { outline-color: var(--mint); }

/* ---- Navigation: one dark object, like the app's tab bar ---------------- */
.nav { position: fixed; top: calc(20px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; transition: opacity .6s ease, transform .8s var(--ease-pres); }
.nav-bar {
  --nav-w: min(100% - 2 * var(--gutter), var(--container) + 24px);
  pointer-events: auto; position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 20px;
  width: var(--nav-w); height: 60px; padding: 0 10px 0 22px; color: var(--ivory);
  transition: width .75s var(--ease-drawer);
}
.nav-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: radial-gradient(120% 160% at 50% -60%, rgb(36 87 63 / .55), transparent 70%), rgb(22 22 20 / .94);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), inset 0 0 0 1px rgb(255 255 255 / .05), 0 22px 44px -22px rgb(0 0 0 / .7);
  opacity: 0; transform: scale(.96, .9);
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-drawer);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav-bar::before { background: radial-gradient(120% 160% at 50% -60%, rgb(36 87 63 / .5), transparent 70%), rgb(22 22 20 / .82); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
}
.nav.is-condensed .nav-bar { --nav-w: min(100% - 24px, 900px); }
.nav.is-condensed .nav-bar::before { opacity: 1; transform: none; }
.nav-logo { display: flex; align-items: center; height: 44px; margin-right: auto; color: var(--ivory); border-radius: 10px; transition: color .45s var(--ease-out); }
/* The bar's text and controls change colour at the pace of its glass fading in, so dark text never sits on the dark hero. */
.nav-bar, .nav .lang button, .nav :is(.theme-toggle, .menu-toggle) { transition: color .45s var(--ease-out), background-color .45s var(--ease-out), box-shadow .45s var(--ease-out), transform 160ms var(--ease-out), width .75s var(--ease-drawer); }
.nav-logo .wordmark { width: 84px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 14px; border-radius: 999px; color: var(--ivory-2); font: 500 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; transition: color .45s var(--ease-out), background-color .25s ease; }
.nav-links a[aria-current="true"] { color: var(--ivory); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mint); }
@media (hover: hover) { .nav-links a:hover { color: var(--ivory); background: rgb(243 238 226 / .08); } }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle, .menu-toggle {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(243 238 226 / .08); color: var(--ivory); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(243 238 226 / .1);
  transition: background-color .25s ease, transform 160ms var(--ease-out);
}
.theme-toggle:active, .menu-toggle:active { transform: scale(.92); }
@media (hover: hover) { .theme-toggle:hover, .menu-toggle:hover { background: rgb(243 238 226 / .15); } }
.theme-toggle .i { position: absolute; font-size: 18px; transition: transform .7s var(--spring-bounce), opacity .35s ease; }
.theme-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
.menu-toggle { display: none; }
.menu-lines { position: relative; width: 16px; height: 10px; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease-drawer), top .5s var(--ease-drawer); }
.menu-lines i:first-child { top: 1px; }
.menu-lines i:last-child { top: 7.4px; }
.menu-open .menu-lines i:first-child { top: 4.2px; transform: rotate(45deg); }
.menu-open .menu-lines i:last-child { top: 4.2px; transform: rotate(-45deg); }

/* Mobile menu: a Mineral sheet. */
.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(90% 60% at 50% 110%, var(--forest) 0%, var(--forest-deep) 45%, transparent 78%), var(--mineral);
  color: var(--ivory); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu-links { display: grid; gap: 4px; }
.menu-links a { padding: 6px 0; font: 700 clamp(40px, 11vw, 56px)/1.05 var(--font); letter-spacing: -.045em; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .3s var(--ease-exit); }
.menu-cta { align-self: flex-start; opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .3s var(--ease-exit); }
.menu.is-open .menu-links a, .menu.is-open .menu-cta { opacity: 1; transform: none; transition: opacity .6s ease calc(80ms + var(--i) * 55ms), transform .9s var(--ease-pres) calc(80ms + var(--i) * 55ms); }

/* ---- Hero: the Mineral moment -------------------------------------------- */
.hero { position: relative; padding: 12px; }
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - 24px), 1180px); border-radius: var(--radius-moment);
  background: radial-gradient(60% 50% at 0% 0%, rgb(29 59 45 / .42) 0%, transparent 70%), var(--mineral); color: var(--ivory);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--exit, 0) * .045));
}
:root[data-theme="dark"] .hero-stage { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .08); }
.hero-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 30% at 74% 100%, rgb(216 199 161 / .2) 0%, transparent 70%),
    radial-gradient(70% 78% at 72% 112%, var(--forest) 0%, var(--forest-deep) 44%, transparent 74%);
  opacity: calc(1 - var(--exit, 0) * .7);
}
.hero-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.has-field .hero-field { opacity: calc(1 - var(--exit, 0) * .7); }
.has-field .hero-light { visibility: hidden; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(24px, 4vw, 64px); min-height: min(calc(100svh - 24px), 1180px); padding-top: 112px;
}
.hero-copy { align-self: center; padding-bottom: 24px; transform: translateY(calc(var(--exit, 0) * -90px)); opacity: calc(1 - var(--exit, 0) * 1.5); }
.hero-title { font-size: clamp(56px, 9vw, 150px); font-weight: 700; line-height: .93; letter-spacing: -.052em; color: var(--ivory); }
.hero-title .soft { font-weight: 400; }
.hero-sub { max-width: 27ch; margin-top: clamp(22px, 2.4vw, 34px); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.42; letter-spacing: -.012em; color: var(--ivory-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.hero-device { align-self: end; display: flex; justify-content: center; transform: translateY(calc(var(--exit, 0) * -160px)); }

/* The opener: "Hi, this is SET." typed once, the app's own first words. */
.hero-opener { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; padding: 0 var(--gutter); pointer-events: none; font: 700 clamp(52px, 10.5vw, 150px)/.98 var(--font); letter-spacing: -.05em; color: var(--ivory); }
.opener .hero-opener { display: grid; }
.hero-opener::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(120vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(36 87 63 / .55) 0%, transparent 62%); opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.hero-opener.is-typing::before { animation: opener-glow 2.4s var(--ease-pres) var(--glow-at, 900ms) both; }
.opener-text { display: inline-grid; text-align: left; }
.opener-line { white-space: pre; }
.opener-line.accent { color: var(--mint); }
.opener-char { position: relative; display: inline-block; white-space: pre; opacity: 0; }
.is-typing .opener-char { animation: type-ink .24s var(--ease-pres) var(--d) both; }
.opener-char::after, .caret-start::after { content: ""; position: absolute; top: .1em; right: -.09em; width: .055em; height: .8em; border-radius: .03em; background: var(--mint); opacity: 0; }
.is-typing .opener-char::after { animation: type-caret var(--gap) linear var(--d); }
.is-typing .opener-char.last::after { animation: type-blink 1.05s linear var(--d) infinite; }
.caret-start { position: relative; display: inline-block; width: 0; }
.is-typing .caret-start { animation: type-gone 1ms linear var(--d) forwards; }
.is-typing .caret-start::after { left: 0; right: auto; animation: type-blink 1.05s linear infinite; }
.hero-opener.is-leaving .opener-text { animation: opener-out .62s var(--ease-pres) forwards; }
.hero-opener.is-leaving::before { animation: opener-glow-out .8s ease forwards; }
@keyframes type-ink { from { opacity: 0; transform: translateY(.07em); filter: blur(.05em); } to { opacity: 1; transform: none; filter: none; } }
@keyframes type-caret { 0%, 100% { opacity: 1; } }
@keyframes type-blink { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes type-gone { to { visibility: hidden; } }
@keyframes opener-glow { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes opener-out { to { opacity: 0; transform: translateY(-.16em) scale(.97); filter: blur(.06em); } }
@keyframes opener-glow-out { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.12); } }

/* Hero entrance: lines rise from their masks, the light rises behind the phone. */
.hero-title .line > span { transition: transform 1.15s var(--ease-pres); }
.hero-title .line + .line > span { transition-delay: .09s; }
.hero-sub { transition: opacity .9s ease .28s, transform 1.1s var(--ease-pres) .28s; }
.hero-actions { transition: opacity .9s ease .38s, transform 1.1s var(--ease-pres) .38s; }
.phone { transition: opacity .9s ease .2s, transform 1.5s var(--ease-pres) .2s; }
.hero-light { transition: translate 1.9s var(--ease-pres), scale 1.9s var(--ease-pres); }
.js .hero:not(.is-in) .hero-title .line > span { transform: translateY(108%); }
.js .hero:not(.is-in) :is(.hero-sub, .hero-actions) { opacity: 0; transform: translateY(18px); }
.js .hero:not(.is-in) .phone { opacity: 0; transform: translateY(16%) scale(.96); }
.js .hero:not(.is-in) .hero-light { translate: 0 22%; scale: 1.05; }
.opener:not(.opener-done) .nav { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* ---- The phone and the app inside it ------------------------------------- */
.phone {
  --w: clamp(268px, min(25.5vw, calc((100svh - 128px) * .48)), 380px);
  position: relative; width: var(--w); margin-bottom: calc(var(--w) * -.035);
}
.phone::before { content: ""; position: absolute; left: -24%; right: -24%; bottom: -14%; height: 72%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(127 191 156 / .3), rgb(127 191 156 / .1) 55%, transparent); }
/* The frame: a thin metal band that catches the light (a conic sweep of
   reflections), a black border, the keys, and glass whose reflection moves as
   the phone turns toward a mouse. */
.phone-frame {
  --metal: calc(var(--w) * .011);
  position: relative; aspect-ratio: 390 / 844; padding: calc(var(--w) * .021);
  border: var(--metal) solid transparent; border-radius: calc(var(--w) * .165);
  background:
    linear-gradient(#060606, #060606) padding-box,
    conic-gradient(from 210deg, #6A6A70, #2B2B2E 10%, #A9A9AF 19%, #3C3C40 27%, #1B1B1D 42%, #4B4B50 55%, #B3B3B9 64%, #38383C 72%, #19191B 87%, #6A6A70) border-box;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07), 0 0 0 1px rgb(0 0 0 / .6), 0 60px 100px -46px rgb(0 0 0 / .9), 0 26px 44px -26px rgb(0 0 0 / .6);
  transform: perspective(1600px) rotateY(calc(var(--tx, 0) * 7deg)) rotateX(calc(var(--ty, 0) * -5deg));
}
.phone-keys i { position: absolute; width: calc(var(--metal) + var(--w) * .006); background: linear-gradient(90deg, #17171A, #5F5F65 55%, #26262A); }
.phone-keys .k-action, .phone-keys .k-up, .phone-keys .k-down { left: calc(var(--metal) * -1 - var(--w) * .006); border-radius: 3px 0 0 3px; }
.phone-keys .k-side, .phone-keys .k-camera { right: calc(var(--metal) * -1 - var(--w) * .006); border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #26262A, #5F5F65 45%, #17171A); }
.phone-keys .k-action { top: 16.5%; height: 3.6%; }
.phone-keys .k-up { top: 23%; height: 7.4%; }
.phone-keys .k-down { top: 32%; height: 7.4%; }
.phone-keys .k-side { top: 25%; height: 11%; }
.phone-keys .k-camera { top: 58%; height: 6%; width: calc(var(--metal) + var(--w) * .003); right: calc(var(--metal) * -1 - var(--w) * .003); }
.phone-glare { position: absolute; z-index: 5; inset: calc(var(--w) * .021); overflow: hidden; border-radius: calc(var(--w) * .133); pointer-events: none; }
.phone-glare::before { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .07) 47%, rgb(255 255 255 / .02) 53%, transparent 59%); transform: translate3d(calc(var(--tx, 0) * -16% - 6%), calc(var(--ty, 0) * -10% + 4%), 0); }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: var(--app-canvas); container-type: inline-size; }
.ui { --u: calc(100cqi / 390); }
.app { position: absolute; inset: 0; font-family: var(--font); color: var(--app-ink); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.app .i { stroke-width: 2; }
.app::after { content: ""; position: absolute; left: 50%; bottom: calc(8 * var(--u)); width: calc(134 * var(--u)); height: calc(5 * var(--u)); margin-left: calc(-67 * var(--u)); border-radius: 99px; background: var(--app-home); }

.app-status { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: calc(54 * var(--u)); padding: 0 calc(32 * var(--u)) 0 calc(42 * var(--u)); color: var(--ivory); }
.app-time { font: 600 calc(17 * var(--u))/1 var(--font); letter-spacing: -.01em; }
.app-island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(124 * var(--u)); height: calc(36 * var(--u)); margin-left: calc(-62 * var(--u)); border-radius: 99px; background: #000; }
.app-icons { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.app-icons .i { font-size: calc(16 * var(--u)); stroke-width: 2.6; }
.app-cell { display: flex; align-items: flex-end; gap: calc(1.5 * var(--u)); height: calc(11 * var(--u)); }
.app-cell b { width: calc(3 * var(--u)); border-radius: calc(1 * var(--u)); background: currentColor; }
.app-cell b:nth-child(1) { height: 35%; } .app-cell b:nth-child(2) { height: 55%; } .app-cell b:nth-child(3) { height: 78%; } .app-cell b:nth-child(4) { height: 100%; }
.app-battery { position: relative; width: calc(25 * var(--u)); height: calc(12 * var(--u)); padding: calc(1.6 * var(--u)); border: calc(1 * var(--u)) solid rgb(243 238 226 / .45); border-radius: calc(4 * var(--u)); }
.app-battery::after { content: ""; position: absolute; right: calc(-3.5 * var(--u)); top: 32%; width: calc(1.5 * var(--u)); height: 36%; border-radius: 0 2px 2px 0; background: rgb(243 238 226 / .45); }
.app-battery b { display: block; width: 78%; height: 100%; border-radius: calc(2 * var(--u)); background: currentColor; }

.app-head { position: relative; padding: calc(60 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)); border-radius: 0 0 calc(28 * var(--u)) calc(28 * var(--u)); background: var(--app-head); color: var(--ivory); box-shadow: 0 calc(20 * var(--u)) calc(40 * var(--u)) calc(-28 * var(--u)) rgb(0 0 0 / .8); }
.app-head-row { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.app-head-row strong { font: 700 calc(22 * var(--u))/1.2 var(--font); letter-spacing: -.02em; }
.app-clock { margin-left: auto; font: 600 calc(17 * var(--u))/1 var(--font); }
.app-head-actions { display: flex; gap: calc(2 * var(--u)); padding: calc(4 * var(--u)); border-radius: 99px; background: rgb(243 238 226 / .08); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .1); }
.app-head-actions svg { width: calc(32 * var(--u)); height: calc(32 * var(--u)); padding: calc(8 * var(--u)); }
.app-head-actions .coach { padding: calc(7 * var(--u)); }
.app-progress { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(12 * var(--u)); }
.app-progress-track { flex: 1; height: calc(5 * var(--u)); border-radius: 99px; background: rgb(243 238 226 / .14); overflow: hidden; }
.app-progress-track i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--mint); transform-origin: left; transform: scaleX(var(--progress, .167)); transition: transform .8s var(--ease-pres); }
.app-progress small { font: 500 calc(13 * var(--u))/1 var(--font); color: var(--ivory-2); }

.app-ex { margin: calc(14 * var(--u)) calc(14 * var(--u)) 0; padding: calc(8 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--app-tray); box-shadow: var(--app-tray-edge); }
.app-ex-head { display: flex; align-items: center; gap: calc(6 * var(--u)); min-height: calc(44 * var(--u)); padding: calc(2 * var(--u)) calc(6 * var(--u)) calc(8 * var(--u)) calc(4 * var(--u)); }
.app-ex-head .grip { font-size: calc(17 * var(--u)); color: var(--app-ink-3); }
.app-ex-head strong { font: 700 calc(19 * var(--u))/1.2 var(--font); letter-spacing: -.018em; }
.app-ex-icons { display: flex; gap: calc(16 * var(--u)); margin-left: auto; color: var(--app-ink-2); }
.app-ex-icons .i { font-size: calc(18 * var(--u)); }
.app-target { display: grid; gap: calc(2 * var(--u)); margin-bottom: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(21 * var(--u)); background: var(--app-target); box-shadow: var(--app-target-edge); }
.app-kicker { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); color: var(--app-accent-text); font: 600 calc(12.5 * var(--u))/1.3 var(--font); }
.app-kicker i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; box-shadow: 0 0 0 calc(3 * var(--u)) color-mix(in srgb, currentColor 16%, transparent); }
.app-value { display: flex; align-items: baseline; gap: calc(6 * var(--u)); height: calc(46 * var(--u)); overflow: hidden; margin-top: calc(4 * var(--u)); }
.roll { display: inline-grid; }
.roll > span { grid-area: 1 / 1; font: 700 calc(40 * var(--u))/calc(46 * var(--u)) var(--font); letter-spacing: -.035em; }
.roll .old { color: var(--app-ink-3); opacity: 0; transform: translateY(-100%); }
.roll .new { color: var(--app-accent-text); }
.app-unit { font: 700 calc(22 * var(--u))/1 var(--font); letter-spacing: -.015em; white-space: pre; }
.app-reason { margin-top: calc(2 * var(--u)); color: var(--app-ink-2); font: 400 calc(14 * var(--u))/1.4 var(--font); }
.app-target-actions { display: flex; gap: calc(8 * var(--u)); margin-top: calc(12 * var(--u)); }
.app-apply, .app-why { display: inline-flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); min-height: calc(44 * var(--u)); border-radius: 99px; font: 600 calc(15 * var(--u))/1 var(--font); }
.app-apply { flex: 1; background: var(--app-accent); color: var(--app-accent-ink); box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgb(36 87 63 / .7); }
.app-apply .i { font-size: calc(16 * var(--u)); stroke-width: 2.6; }
.app-why { padding: 0 calc(18 * var(--u)); background: var(--app-why); color: var(--app-accent-text); box-shadow: 0 1px 2px rgb(21 21 20 / .08); }
.app-inner { padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(6 * var(--u)); border-radius: calc(21 * var(--u)); background: var(--app-inner); box-shadow: var(--app-inner-edge); }
.app-sets-head, .app-set { display: grid; grid-template-columns: calc(34 * var(--u)) 1fr 1fr calc(44 * var(--u)); align-items: center; gap: calc(8 * var(--u)); }
.app-sets-head { padding: 0 calc(4 * var(--u)) calc(6 * var(--u)); color: var(--app-ink-3); font: 600 calc(12 * var(--u))/1 var(--font); text-align: center; }
.app-set { position: relative; min-height: calc(54 * var(--u)); padding: 0 calc(4 * var(--u)); border-radius: calc(14 * var(--u)); }
.app-set::before { content: ""; position: absolute; inset: calc(2 * var(--u)) 0; z-index: 0; border-radius: inherit; background: var(--app-accent-soft); opacity: 0; transition: opacity .45s ease; }
.app-set > * { position: relative; z-index: 1; }
.app-set .n { text-align: center; color: var(--app-ink-2); font: 600 calc(15 * var(--u))/1 var(--font); }
.app-set .val { display: grid; place-items: center; height: calc(44 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--app-card-2); font: 600 calc(17 * var(--u))/1 var(--font); transition: background-color .45s ease; }
.app-set .val.empty { color: var(--app-ink-3); font-weight: 500; font-size: calc(15 * var(--u)); }
.app-set .check { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border: calc(1.5 * var(--u)) solid var(--app-check); border-radius: calc(12 * var(--u)); color: transparent; transition: background-color .3s ease, border-color .3s ease, color .2s ease; }
.app-set .check .i { font-size: calc(20 * var(--u)); stroke-width: 2.8; stroke-dasharray: 24; stroke-dashoffset: 24; }
.app-set.is-done::before { opacity: 1; }
.app-set.is-done .val { background: transparent; }
.app-set.is-done .check { border-color: transparent; background: var(--app-accent); color: var(--app-accent-ink); box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) calc(-8 * var(--u)) rgb(36 87 63 / .85); animation: check-fill .42s cubic-bezier(.34, 1.56, .64, 1) both; }
.app-set.is-done .check .i { animation: check-draw .28s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.app-set.is-next .val:nth-child(3) { background: var(--app-card); box-shadow: 0 0 0 calc(2 * var(--u)) var(--app-accent); }
.app-tools { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: calc(4 * var(--u)); border-top: 1px solid var(--app-line); }
.app-tools span { position: relative; display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(46 * var(--u)); color: var(--app-ink-2); font: 600 calc(14 * var(--u))/1 var(--font); }
.app-tools span + span::before { content: ""; position: absolute; left: 0; top: calc(14 * var(--u)); bottom: calc(14 * var(--u)); width: 1px; background: var(--app-line); }
.app-tools .i { font-size: calc(14 * var(--u)); color: var(--app-accent-text); }
.app-next { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); margin: calc(12 * var(--u)) calc(14 * var(--u)) 0; padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)) calc(18 * var(--u)); border-radius: calc(22 * var(--u)); background: var(--app-card); box-shadow: var(--app-inner-edge); }
.app-next > span:first-child { display: grid; gap: calc(3 * var(--u)); }
.app-next small { color: var(--app-ink-3); font: 600 calc(12 * var(--u))/1 var(--font); }
.app-next strong { font: 700 calc(18 * var(--u))/1.15 var(--font); letter-spacing: -.012em; }
.app-next-target { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); color: var(--app-ink); font: 600 calc(15 * var(--u))/1 var(--font); }
.app-next-target .signal { font-size: calc(13 * var(--u)); color: var(--app-accent); }
.app-rest {
  position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); bottom: calc(40 * var(--u)); z-index: 2;
  display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(68 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(12 * var(--u));
  border-radius: 99px; background: var(--app-float); color: var(--ivory);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 calc(20 * var(--u)) calc(40 * var(--u)) calc(-18 * var(--u)) rgb(0 0 0 / .7);
  opacity: 0; transform: translateY(calc(30 * var(--u))) scale(.94);
  transition: opacity .5s ease, transform .9s var(--spring-bounce);
}
.app-rest.is-on { opacity: 1; transform: none; }
.app-rest-ring { position: relative; width: calc(44 * var(--u)); height: calc(44 * var(--u)); flex-shrink: 0; }
.app-rest-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.app-rest-ring circle { fill: none; stroke-width: 3.2; }
.app-rest-ring .track { stroke: rgb(243 238 226 / .16); }
.app-rest-ring .fill { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--rest-off, 0); transition: stroke-dashoffset 1s linear; }
.app-rest-copy { display: grid; gap: calc(2 * var(--u)); }
.app-rest-copy small { color: var(--ivory-2); font: 600 calc(12 * var(--u))/1 var(--font); }
.app-rest-copy strong { font: 700 calc(22 * var(--u))/1 var(--font); letter-spacing: -.02em; }
.app-rest-next { margin-left: auto; color: var(--ivory-2); font: 500 calc(13 * var(--u))/1.2 var(--font); text-align: right; }
.app-rest-skip { padding: calc(10 * var(--u)) calc(14 * var(--u)); border-radius: 99px; background: rgb(243 238 226 / .12); font: 600 calc(14 * var(--u))/1 var(--font); }
@keyframes check-fill { from { transform: scale(.8); } to { transform: none; } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@keyframes roll-old { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-100%); } }
@keyframes roll-new { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
.phone.is-rolling .roll .old { animation: roll-old .55s var(--ease-pres) both; }
.phone.is-rolling .roll .new { animation: roll-new .55s var(--ease-pres) both; }
.js .phone:not(.is-rolling):not(.is-settled) .roll .old { opacity: 1; transform: none; }
.js .phone:not(.is-rolling):not(.is-settled) .roll .new { opacity: 0; }

/* ---- Statement ------------------------------------------------------------ */
.why { padding: var(--section) 0 calc(var(--section) * .55); }
.why-statement { max-width: 21ch; font-size: clamp(38px, 5.6vw, 86px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.why-statement .soft { font-weight: 400; }
.why-statement .word { transition: opacity .25s linear; }
.why-sub { max-width: 36ch; margin: clamp(36px, 4vw, 56px) 0 0 auto; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-2); text-wrap: pretty; }

/* ---- Story: one sticky stage, six moments --------------------------------- */
.story { padding: calc(var(--section) * .45) 0 var(--section); }
.story-title { margin-bottom: clamp(40px, 6vw, 88px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.story-stage {
  --stage-h: min(76svh, 700px);
  position: sticky; top: calc((100svh - var(--stage-h)) / 2 + 30px); height: var(--stage-h);
  border-radius: var(--radius-moment); background: var(--stage-bg); box-shadow: var(--stage-edge); overflow: hidden; isolation: isolate;
}
.story-progress { position: absolute; top: 26px; left: 28px; right: 28px; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.story-progress span { height: 3px; border-radius: 3px; background: var(--stage-seg); overflow: hidden; }
.story-progress i { display: block; height: 100%; border-radius: inherit; background: var(--stage-seg-fill); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.story-vizzes { position: absolute; inset: 0; }
.story-steps { position: relative; }
.story-step { display: flex; flex-direction: column; justify-content: center; min-height: min(76svh, 820px); padding: 32px 0; opacity: .2; transition: opacity .6s ease; }
.story-step.is-active { opacity: 1; }
.story-step:first-child { min-height: min(72svh, 780px); }
.step-stage { display: none; }
.story-step h3 { font-size: clamp(36px, 4vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.story-step p { max-width: 30ch; margin-top: clamp(16px, 1.6vw, 24px); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* A visual: drawn at the app's 330 pt design size, scaled to the stage. */
.viz {
  position: absolute; left: 50%; top: 53%; width: min(64%, 400px); container-type: inline-size;
  translate: -50% -50%; opacity: 0; transform: translateY(44px) scale(.96); filter: blur(6px);
  transition: opacity .45s ease, transform .8s var(--ease-pres), filter .45s ease;
  pointer-events: none;
}
.viz.is-before { transform: translateY(-44px) scale(.97); }
.viz.is-active { opacity: 1; transform: none; filter: none; transition-delay: .06s; }
/* The story's app screens take their colours from these, light by default and graphite-white in Dark, as the app's
   introduction follows the iPhone's appearance. */
.viz-ui { --vz-ink: #151514; --vz-ink2: #5C5A55; --vz-ink3: #8A867F; --vz-ink4: #9A968E; --vz-line: #E3E1DA; --vz-field: #EEECE6; --vz-bubble: #ECE9E1;
  --vz-acc: #24573F; --vz-acc-ink: #FFFFFF; --vz-bar: #2F6E50; --vz-soft: #E4EDE7; --vz-target: linear-gradient(160deg, #E3EDE6 0%, #EFF3EC 100%);
  --vz-ask: #151514; --vz-ask-ink: #F3EEE2; --vz-callout: #7FBF9C; --vz-callout-ink: #0D1F16;
  --vz-amber-bg: #F6EBDC; --vz-amber: #80560B; --vz-amber2: #B07A2C; --vz-amber3: #C8922E; }
:root[data-theme="dark"] .viz-ui { --vz-ink: #F3EEE2; --vz-ink2: #D3D0C8; --vz-ink3: #A6A39B; --vz-ink4: #8C8981; --vz-line: #3F3E3A; --vz-field: rgb(243 238 226 / .1); --vz-bubble: rgb(243 238 226 / .1);
  --vz-acc: #F1F1F0; --vz-acc-ink: #1B1A19; --vz-bar: #FFFFFF; --vz-soft: rgb(241 241 240 / .14); --vz-target: linear-gradient(160deg, rgb(241 241 240 / .14), rgb(241 241 240 / .07));
  --vz-ask: #F3EEE2; --vz-ask-ink: #151514; --vz-callout: #F1F1F0; --vz-callout-ink: #151514;
  --vz-amber-bg: rgb(226 180 92 / .14); --vz-amber: #E2B45C; --vz-amber2: #D9A24A; --vz-amber3: #E2B45C; }
.viz-ui { --u: calc(100cqi / 330); position: relative; display: flex; flex-direction: column; padding: 0 calc(6 * var(--u)); font-family: var(--font); color: var(--vz-ink); font-variant-numeric: tabular-nums; }
.viz-ui .i { stroke-width: 2.4; }
.viz-glow { position: absolute; left: 50%; top: 46%; z-index: -1; width: 125%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--stage-glow) 0%, color-mix(in srgb, var(--stage-glow) 30%, transparent) 38%, transparent 66%); opacity: 0; transform: translate(-50%, -50%) scale(.8); pointer-events: none; }
.viz-tray { position: relative; padding: calc(8 * var(--u)); border-radius: calc(30 * var(--u)); background: var(--stage-tray); box-shadow: var(--stage-tray-edge); }
.viz-panel { display: grid; gap: calc(8 * var(--u)); padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)); border-radius: calc(23 * var(--u)); background: var(--stage-panel); }
.viz-status { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)) calc(12 * var(--u)); color: var(--stage-status); }
.viz-status > svg { font-size: calc(14 * var(--u)); color: var(--stage-signal); }
.viz-status > span { display: grid; gap: 1px; min-width: 0; }
.viz-status strong { font: 600 calc(15 * var(--u))/calc(19 * var(--u)) var(--font); letter-spacing: -.005em; }
.viz-status small { overflow: hidden; color: var(--stage-status-2); font: 400 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); white-space: nowrap; text-overflow: ellipsis; }
.viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: calc(10 * var(--u)); }
.viz-head strong { font: 700 calc(21 * var(--u))/calc(26 * var(--u)) var(--font); letter-spacing: -.01em; }
.viz-head small { color: var(--vz-ink2); font: 400 calc(13 * var(--u))/calc(17 * var(--u)) var(--font); }

/* 1. Ready */
.viz-panel.ex { gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); }
.ex-head { display: flex; align-items: baseline; justify-content: space-between; gap: calc(8 * var(--u)); }
.ex-head strong { font: 700 calc(19 * var(--u))/calc(24 * var(--u)) var(--font); letter-spacing: -.012em; }
.ex-head small { color: var(--vz-ink3); font: 500 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.ex-target { display: grid; gap: calc(3 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(13 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--vz-target); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vz-acc) 10%, transparent); }
.ex-kicker { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); color: var(--vz-acc); font: 600 calc(11.5 * var(--u))/calc(14 * var(--u)) var(--font); }
.ex-kicker i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; box-shadow: 0 0 0 calc(3 * var(--u)) color-mix(in srgb, var(--vz-acc) 14%, transparent); }
.ex-value { display: flex; align-items: baseline; gap: calc(6 * var(--u)); height: calc(40 * var(--u)); overflow: hidden; }
.ex-roll { display: inline-grid; }
.ex-roll span { grid-area: 1 / 1; font: 700 calc(34 * var(--u))/calc(40 * var(--u)) var(--font); letter-spacing: -.03em; }
.ex-roll .old { color: var(--vz-ink4); opacity: 0; }
.ex-roll .new { color: var(--vz-acc); }
.ex-unit { font: 600 calc(18 * var(--u))/calc(22 * var(--u)) var(--font); }
.ex-target small { color: var(--vz-ink2); font: 400 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.ex-last { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.ex-last small { margin-right: auto; color: var(--vz-ink3); font: 600 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.ex-last span { padding: calc(4 * var(--u)) calc(8 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--vz-field); font: 600 calc(12 * var(--u))/calc(14 * var(--u)) var(--font); }
.viz-queue { position: relative; z-index: 1; display: grid; }
.queue-card { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: calc(10 * var(--u)); height: calc(52 * var(--u)); margin: calc(-16 * var(--u)) calc(14 * var(--u)) 0; padding: 0 calc(16 * var(--u)) calc(10 * var(--u)); border-radius: 0 0 calc(20 * var(--u)) calc(20 * var(--u)); background: var(--stage-queue); box-shadow: inset 0 -1px 0 rgb(243 238 226 / .1), 0 calc(14 * var(--u)) calc(26 * var(--u)) calc(-16 * var(--u)) rgb(0 0 0 / .5); color: var(--stage-queue-ink); font: 500 calc(13.5 * var(--u))/calc(17 * var(--u)) var(--font); }
.queue-card:first-child { z-index: 2; }
.queue-card + .queue-card { z-index: 1; margin: calc(-16 * var(--u)) calc(28 * var(--u)) 0; background: var(--stage-queue-2); opacity: .85; }
.queue-card b { font-weight: 700; }

/* 2. Engine */
.viz-panel.engine { gap: calc(10 * var(--u)); }
.engine-in small { color: var(--vz-ink2); font: 600 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.engine-sets { display: flex; gap: calc(6 * var(--u)); margin-top: calc(6 * var(--u)); }
.engine-sets span { flex: 1; padding: calc(6 * var(--u)) 0; border-radius: calc(10 * var(--u)); background: var(--vz-field); font: 600 calc(13 * var(--u))/calc(16 * var(--u)) var(--font); text-align: center; }
.engine-checks { position: relative; display: grid; padding-top: calc(4 * var(--u)); border-top: 1px solid var(--vz-line); overflow: hidden; }
.engine-checks::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(34 * var(--u)); pointer-events: none; background: linear-gradient(180deg, transparent, rgb(127 191 156 / .24), transparent); opacity: 0; }
.engine-checks li { display: grid; grid-template-columns: calc(18 * var(--u)) minmax(0, 1fr) auto; align-items: center; gap: calc(8 * var(--u)); min-height: calc(30 * var(--u)); font: 500 calc(13.5 * var(--u))/calc(17 * var(--u)) var(--font); }
.engine-checks .tick { display: grid; place-items: center; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%; background: var(--vz-acc); color: var(--vz-acc-ink); }
.engine-checks .tick .i { font-size: calc(11 * var(--u)); stroke-width: 3.4; }
.engine-checks code { padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--vz-field); color: var(--vz-ink2); font: 600 calc(10 * var(--u))/calc(13 * var(--u)) var(--mono); letter-spacing: .02em; }
.engine-out { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--vz-acc); color: var(--vz-acc-ink); box-shadow: 0 calc(12 * var(--u)) calc(26 * var(--u)) calc(-12 * var(--u)) rgb(36 87 63 / .8); }
.engine-out small { color: color-mix(in srgb, var(--vz-acc-ink) 72%, transparent); font: 600 calc(11 * var(--u))/calc(14 * var(--u)) var(--font); }
.engine-out strong { font: 700 calc(16 * var(--u))/calc(20 * var(--u)) var(--font); letter-spacing: -.01em; }

/* 3. Progress */
.viz-big { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); font: 700 calc(34 * var(--u))/calc(38 * var(--u)) var(--font); letter-spacing: -.03em; }
.viz-big .from { color: var(--vz-ink4); }
.viz-big .i { font-size: calc(20 * var(--u)); color: var(--vz-acc); }
.viz-big small { align-self: flex-end; margin-bottom: calc(4 * var(--u)); color: var(--vz-ink2); font: 600 calc(18 * var(--u))/calc(22 * var(--u)) var(--font); letter-spacing: 0; }
.viz-chart { display: block; width: 100%; height: auto; margin-top: calc(4 * var(--u)); }
.viz-chart .chart-grid { fill: none; stroke: var(--vz-line); stroke-width: 1; }
.viz-chart .chart-line { fill: none; stroke: var(--vz-acc); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.viz-chart .dot { fill: var(--vz-acc); stroke: var(--stage-panel); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.viz-chart .dot.hold { fill: var(--stage-panel); stroke: var(--vz-acc); stroke-width: 2.5; }
.viz-axis { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); }
.viz-axis small { color: var(--vz-ink3); font: 500 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.legend { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); color: var(--vz-ink2); font: 500 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.legend i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--vz-acc); }
.legend i.hold { margin-left: calc(6 * var(--u)); background: none; box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--vz-acc); }
.viz-callout { position: relative; z-index: 1; align-self: flex-end; margin: calc(-12 * var(--u)) calc(-6 * var(--u)) 0 0; padding: calc(10 * var(--u)) calc(18 * var(--u)); border-radius: 99px; background: var(--vz-callout); color: var(--vz-callout-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 calc(14 * var(--u)) calc(44 * var(--u)) calc(-8 * var(--u)) rgb(127 191 156 / .7); }
.viz-callout strong { font: 700 calc(24 * var(--u))/calc(28 * var(--u)) var(--font); letter-spacing: -.02em; }

/* 4. Dips */
.dip-rows { display: grid; }
.dip-row { display: grid; grid-template-columns: minmax(0, 1fr) calc(72 * var(--u)) calc(74 * var(--u)); align-items: center; gap: calc(12 * var(--u)); min-height: calc(54 * var(--u)); border-top: 1px solid var(--vz-line); }
.dip-name { display: grid; gap: 1px; min-width: 0; }
.dip-name > span { overflow: hidden; font: 500 calc(15 * var(--u))/calc(19 * var(--u)) var(--font); white-space: nowrap; text-overflow: ellipsis; }
.dip-name small { color: var(--vz-ink3); font: 400 calc(12 * var(--u))/calc(15 * var(--u)) var(--font); }
.spark { display: block; width: calc(72 * var(--u)); height: calc(24 * var(--u)); }
.spark-line, .spark-drop { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.spark-line { stroke: var(--vz-acc); }
.spark-drop { stroke: var(--vz-amber2); }
.spark-dot { fill: var(--vz-acc); transform-box: fill-box; transform-origin: center; }
.spark-dip { fill: var(--stage-panel); stroke: var(--vz-amber2); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; }
.dip { display: inline-flex; align-items: center; justify-content: flex-end; gap: calc(4 * var(--u)); color: var(--vz-ink2); font: 600 calc(15 * var(--u))/1 var(--font); white-space: nowrap; }
.dip .i { font-size: calc(15 * var(--u)); color: var(--vz-amber2); }
.dip-insight { display: grid; gap: calc(2 * var(--u)); margin-top: calc(12 * var(--u)); padding-top: calc(14 * var(--u)); border-top: 1px solid var(--vz-line); }
.dip-kicker { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); margin-bottom: calc(4 * var(--u)); color: var(--vz-acc); font: 600 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.dip-kicker .signal { font-size: calc(12 * var(--u)); }
.dip-insight strong { font: 700 calc(19 * var(--u))/calc(24 * var(--u)) var(--font); letter-spacing: -.01em; }
.dip-insight small { color: var(--vz-ink2); font: 400 calc(13 * var(--u))/calc(18 * var(--u)) var(--font); }

/* 5. Review */
.viz-panel.review { gap: calc(12 * var(--u)); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); }
.review-head strong { font: 700 calc(21 * var(--u))/calc(26 * var(--u)) var(--font); letter-spacing: -.012em; }
.review-time { padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 99px; background: var(--vz-amber-bg); color: var(--vz-amber); font: 600 calc(11.5 * var(--u))/calc(14 * var(--u)) var(--font); white-space: nowrap; }
.review-list { position: relative; display: grid; padding-right: calc(72 * var(--u)); }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); min-height: calc(32 * var(--u)); border-top: 1px solid var(--vz-line); font: 500 calc(14 * var(--u))/calc(18 * var(--u)) var(--font); }
.review-row:first-of-type { border-top: 0; }
.review-row small { color: var(--vz-ink3); font: 600 calc(13 * var(--u))/calc(16 * var(--u)) var(--font); }
.review-row.flag small { color: var(--vz-amber); }
.review-bracket { position: absolute; top: calc(6 * var(--u)); right: calc(54 * var(--u)); width: calc(10 * var(--u)); height: calc(84 * var(--u)); border: calc(2 * var(--u)) solid var(--vz-amber3); border-left: 0; border-radius: 0 calc(8 * var(--u)) calc(8 * var(--u)) 0; transform-origin: left center; }
.review-bracket b { position: absolute; left: calc(16 * var(--u)); top: 50%; transform: translateY(-50%); color: var(--vz-amber); font: 700 calc(12 * var(--u))/calc(14 * var(--u)) var(--font); white-space: nowrap; }
.review-note { display: grid; gap: calc(2 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--vz-amber-bg); box-shadow: inset calc(3 * var(--u)) 0 0 var(--vz-amber3); }
.review-note strong { font: 600 calc(13.5 * var(--u))/calc(17 * var(--u)) var(--font); }
.review-note small { color: var(--vz-ink2); font: 400 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); }
.review-milo { display: inline-flex; align-items: center; justify-self: start; gap: calc(6 * var(--u)); padding: calc(7 * var(--u)) calc(12 * var(--u)); border-radius: 99px; background: var(--vz-soft); color: var(--vz-acc); font: 600 calc(13 * var(--u))/calc(16 * var(--u)) var(--font); }
.review-milo .coach { font-size: calc(13 * var(--u)); }

/* 6. Milo */
.viz-panel.chat { gap: calc(12 * var(--u)); }
.chat-ask { display: flex; justify-content: flex-end; }
.chat-ask p { max-width: 86%; padding: calc(10 * var(--u)) calc(15 * var(--u)); border-radius: calc(20 * var(--u)) calc(20 * var(--u)) calc(6 * var(--u)) calc(20 * var(--u)); background: var(--vz-ask); color: var(--vz-ask-ink); font: 600 calc(16 * var(--u))/calc(21 * var(--u)) var(--font); letter-spacing: -.005em; }
.chat-reply { display: flex; align-items: flex-end; gap: calc(8 * var(--u)); }
.chat-avatar { display: grid; place-items: center; flex-shrink: 0; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: var(--vz-acc); color: var(--vz-acc-ink); }
.chat-avatar :is(.coach, .signal) { font-size: calc(12 * var(--u)); }
.chat-bubble { position: relative; display: grid; flex: 1; min-width: 0; gap: calc(8 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(13 * var(--u)); border-radius: calc(20 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)) calc(6 * var(--u)); background: var(--vz-bubble); }
.chat-bubble p { font: 400 calc(14.5 * var(--u))/calc(20 * var(--u)) var(--font); }
.chat-bubble strong { font-weight: 700; color: var(--vz-acc); }
.chat-typing { position: absolute; left: calc(16 * var(--u)); bottom: calc(16 * var(--u)); display: flex; gap: calc(4 * var(--u)); opacity: 0; }
.chat-typing i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--vz-ink4); }
.chat-chart { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: calc(6 * var(--u)); height: calc(64 * var(--u)); padding-top: calc(14 * var(--u)); }
.chat-top { position: absolute; left: 0; right: 0; top: calc(14 * var(--u)); border-top: calc(1.5 * var(--u)) dashed color-mix(in srgb, var(--vz-acc) 60%, transparent); }
.chat-top small { position: absolute; right: 0; top: calc(-15 * var(--u)); color: var(--vz-acc); font: 600 calc(10 * var(--u))/calc(12 * var(--u)) var(--font); }
.chat-bar { display: grid; place-items: end center; height: calc(50 * var(--u)); padding-bottom: calc(6 * var(--u)); border-radius: calc(8 * var(--u)) calc(8 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u)); background: linear-gradient(180deg, var(--vz-bar) 0%, var(--vz-acc) 100%); transform-origin: bottom; }
.chat-bar b { color: var(--vz-acc-ink); font: 700 calc(13 * var(--u))/calc(14 * var(--u)) var(--font); }
.chat-choices { display: flex; gap: calc(8 * var(--u)); margin-top: calc(2 * var(--u)); }
.chat-choices span { flex: 1; display: flex; align-items: center; justify-content: center; gap: calc(5 * var(--u)); min-height: calc(42 * var(--u)); border-radius: 99px; background: var(--vz-field); font: 600 calc(14 * var(--u))/calc(18 * var(--u)) var(--font); white-space: nowrap; }
.chat-choices .chosen { background: var(--vz-acc); color: var(--vz-acc-ink); }
.chat-choices .i { font-size: calc(16 * var(--u)); stroke-width: 3; }

/* Each visual's one-time story, played when it becomes the current moment
   (the timings are the app's introduction). */
.viz.is-active .viz-tray { animation: rise .55s var(--ease-out) both; }
.viz.is-active .viz-glow { animation: glow 1.6s var(--ease-out) var(--at) both; }
.viz.is-active .ex-roll .old { animation: roll-old .5s var(--ease-pres) .9s both; }
.viz.is-active .ex-roll .new { animation: roll-new .5s var(--ease-pres) .9s both; }
.viz.is-active .ex-last span { animation: pop .3s var(--ease-out) calc(.35s + var(--i) * .08s) both; }
.viz.is-active .queue-card { animation: queue-in .5s var(--ease-pres) calc(1.3s + var(--i) * .2s) both; }
.viz.is-active .engine-sets span { animation: pop .3s var(--ease-out) calc(.25s + var(--i) * .1s) both; }
.viz.is-active .engine-checks::after { animation: scan 1.3s linear .6s both; }
.viz.is-active .engine-checks li { animation: check-row .3s ease-out calc(.7s + var(--i) * .25s) both; }
.viz.is-active .engine-checks .tick { animation: pop .3s var(--ease-out) calc(.7s + var(--i) * .25s) both; }
.viz.is-active .engine-out { animation: decide .55s var(--ease-pres) 2.2s both; }
.viz.is-active .viz-big { animation: rise .45s var(--ease-out) .3s both; }
.viz.is-active .viz-chart .chart-line { animation: draw 1.9s cubic-bezier(.45, 0, .25, 1) .5s both; }
.viz.is-active .viz-chart .dot { animation: pop .3s var(--ease-out) calc(.5s + var(--i) * .25s) both; }
.viz.is-active .viz-callout { animation: pop .45s var(--ease-out) 2.5s both; }
.viz.is-active .viz-status.late { animation: drop .5s var(--ease-out) 1.9s both; }
.viz.is-active .dip-row { animation: rise .45s var(--ease-out) calc(.2s + var(--i) * .08s) both; }
.viz.is-active .spark-line { animation: draw .7s cubic-bezier(.45, 0, .25, 1) calc(.4s + var(--i) * .12s) both; }
.viz.is-active .spark-drop { animation: draw .35s cubic-bezier(.55, 0, .45, 1) calc(1.2s + var(--i) * .15s) both; }
.viz.is-active .spark-dot { animation: pop .25s var(--ease-out) calc(.4s + var(--i) * .12s + var(--j) * .22s) both; }
.viz.is-active .spark-dip { animation: pop .3s var(--ease-out) calc(1.5s + var(--i) * .15s) both; }
.viz.is-active .dip { animation: fill-in .4s var(--ease-out) calc(1.5s + var(--i) * .15s) both; }
.viz.is-active .dip-insight { animation: rise .5s var(--ease-out) 2.15s both; }
.viz.is-active .review-time { animation: pop .35s var(--ease-out) 1.35s both; }
.viz.is-active .review-row { animation: rise .35s var(--ease-out) calc(.25s + var(--i) * .07s) both; }
.viz.is-active .review-bracket { animation: bracket .45s var(--ease-pres) 1s both; }
.viz.is-active .review-note { animation: rise-s .45s var(--ease-out) 1.55s both; }
.viz.is-active .review-milo { animation: pop .35s var(--ease-out) 2.1s both; }
.viz.is-active .chat-ask { animation: rise .45s var(--ease-out) .35s both; }
/* The reply starts as a small typing bubble by the avatar and opens to its full size once the answer is there, as a message
   does; its words and the chart come in as it opens. */
.viz.is-active .chat-reply { animation: rise .45s var(--ease-out) .75s both; }
.viz.is-active .chat-bubble { animation: bubble-open .5s cubic-bezier(.22, 1, .36, 1) 1.75s both; }
.viz.is-active .chat-typing { animation: typing-life 1s linear .8s both; }
.viz.is-active .chat-typing i { animation: typing-dot .5s ease-in-out calc(.85s + var(--d, 0s)) 2 alternate; }
@keyframes bubble-open { from { clip-path: inset(calc(100% - 39 * var(--u)) calc(100% - 68 * var(--u)) 0 0 round calc(19 * var(--u)) calc(19 * var(--u)) calc(19 * var(--u)) calc(6 * var(--u))); }
  to { clip-path: inset(0 0 0 0 round calc(20 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)) calc(6 * var(--u))); } }
.chat-typing i:nth-child(2) { --d: .12s; }
.chat-typing i:nth-child(3) { --d: .24s; }
.viz.is-active .chat-bubble p { animation: rise-s .45s var(--ease-out) 1.95s both; }
.viz.is-active .chat-bubble p:last-child { animation-delay: 2.5s; }
.viz.is-active .chat-chart { animation: fade .3s ease 2.05s both; }
.viz.is-active .chat-bar { animation: bar-grow .55s var(--ease-pres) calc(2.15s + var(--i) * .1s) both; }
.viz.is-active .chat-choices { animation: rise .45s var(--ease-out) 2.65s both; }
.viz.is-active .chat-choices .chosen { animation: press .5s ease 3.05s both; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise-s { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes press { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes glow { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } 45% { opacity: 1; } to { opacity: .55; transform: translate(-50%, -50%) scale(1); } }
@keyframes queue-in { from { transform: translateY(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scan { 0% { opacity: 0; transform: translateY(-34px); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(150px); } }
@keyframes check-row { from { opacity: .28; } to { opacity: 1; } }
@keyframes decide { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fill-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes bracket { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }
@keyframes typing-life { 0% { opacity: 0; } 12%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes typing-dot { from { transform: none; } to { transform: translateY(-4px); background: #6A675F; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }

/* ---- Try it: pick a session, SET answers as the app does -------------------- */
.try { padding: var(--section) 0 0; }
.try-grid { display: grid; gap: clamp(44px, 6vw, 80px); }
.try-head { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.try-head .lead { max-width: 38ch; }
.try-board { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; padding: clamp(22px, 3.4vw, 52px); border-radius: var(--radius-moment); background: var(--stage-bg); box-shadow: var(--stage-edge); overflow: hidden; }
.try-picker { display: grid; gap: 10px; }
.try-label { margin-bottom: 6px; color: var(--stage-status-2); font: 600 14px/1.35 var(--font); }
.try-option { position: relative; display: grid; gap: 6px; padding: 18px 20px; border: 0; border-radius: 22px; background: var(--stage-queue-2); box-shadow: inset 0 0 0 1px transparent; color: var(--stage-queue-ink); text-align: left; cursor: pointer; transition: background-color .3s ease, box-shadow .35s ease, transform .2s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.try-option:active { transform: scale(.985); }
.try-option[aria-checked="true"] { background: var(--stage-queue); box-shadow: inset 0 0 0 2px var(--stage-signal), 0 18px 34px -24px rgb(18 38 29 / .55); }
@media (hover: hover) { .try-option:not([aria-checked="true"]):hover { background: var(--stage-queue); } }
.try-option:focus-visible { outline-color: var(--stage-signal); outline-offset: 3px; }
.try-option-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.try-option-head strong { font: 650 17px/1.25 var(--font); letter-spacing: -.012em; }
.try-option-sub { color: color-mix(in srgb, var(--stage-queue-ink) 66%, transparent); font-size: 15px; line-height: 1.4; }
.try-sets { display: flex; gap: 5px; }
.try-sets b { display: grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border-radius: 9px; background: color-mix(in srgb, var(--stage-queue-ink) 8%, transparent); font: 650 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.try-sets b.top { background: color-mix(in srgb, var(--stage-signal) 18%, transparent); color: var(--stage-signal); }
.try-sets b.low { color: color-mix(in srgb, var(--stage-queue-ink) 60%, transparent); }
.try-result { display: grid; justify-items: center; gap: 16px; }
.try-device { width: min(100%, 420px); container-type: inline-size; }
.try-app { font-family: var(--font); color: var(--app-ink); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.try-ex { margin: 0; box-shadow: var(--app-tray-edge), 0 40px 70px -34px rgb(18 38 29 / .55); }
.try-next { margin-left: auto; color: var(--app-ink-3); font: 600 calc(13 * var(--u))/1 var(--font); }
.try-target { position: relative; overflow: hidden; margin-bottom: 0; }
.try-target .app-kicker .signal { font-size: calc(13 * var(--u)); transition: transform .5s var(--spring-bounce); }
.try-target .app-value { height: calc(50 * var(--u)); }
.try-roll { position: relative; display: inline-grid; overflow: hidden; }
.try-roll > span { grid-area: 1 / 1; font: 700 calc(42 * var(--u))/calc(50 * var(--u)) var(--font); letter-spacing: -.035em; color: var(--app-accent-text); transition: color .4s ease; }
.try-target[data-tone="keep"] .try-roll > span { color: var(--app-ink); }
/* The value rolls a whole line: the old number is gone upward before the new one has risen, so the two never stack. */
.try-roll .cur.is-in { animation: try-in .5s cubic-bezier(.22, 1, .36, 1) .07s both; }
.try-roll .out { animation: try-out .26s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes try-in { from { opacity: 0; transform: translateY(100%); } }
@keyframes try-out { to { opacity: 0; transform: translateY(-100%); } }
/* The other values roll the same way (js/sections.js, swap). */
.rt { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.rt > span { grid-area: 1 / 1; }
.try-target .is-new { animation: try-text .5s var(--ease-pres) both; }
@keyframes try-text { from { opacity: 0; transform: translateY(5px); filter: blur(2px); } }
.try-why { display: grid; gap: calc(4 * var(--u)); margin-top: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--app-why); box-shadow: 0 1px 2px rgb(21 21 20 / .06); }
.try-why-label { color: var(--app-accent-text); font: 600 calc(13 * var(--u))/1.2 var(--font); }
.try-why p { min-height: calc(3 * 1.45em); color: var(--app-ink-2); font: 400 calc(14 * var(--u))/1.45 var(--font); }
.try-why .w { display: inline; opacity: 0; animation: try-word .4s ease both; animation-delay: calc(var(--i) * 32ms); }
@keyframes try-word { to { opacity: 1; } }
/* The decision landing: a soft light passes over the card and the signal answers. */
.try-target::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); opacity: 0; transform: translateX(-100%); pointer-events: none; }
:root[data-theme="dark"] .try-target::after { background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .08) 50%, transparent 70%); }
.try-target.is-deciding::after { animation: try-scan .75s var(--ease-out) both; }
.try-target.is-deciding .app-kicker .signal { animation: try-ping .7s var(--spring-bounce) .3s both; }
@keyframes try-scan { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(100%); } }
@keyframes try-ping { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.try-note { max-width: 36ch; color: var(--stage-status-2); font-size: 14px; line-height: 1.45; text-align: center; }

/* ---- Loop ------------------------------------------------------------------- */
.loop { padding: var(--section) 0; }
.loop-head { display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 32px); text-align: center; }
.loop-head .lead { max-width: 40ch; }
.loop-ring { --turn: 0; position: relative; width: min(600px, 100%); aspect-ratio: 1; margin: clamp(48px, 7vw, 96px) auto 0; container-type: inline-size; }
/* The instrument: a fine scale outside the ring, the track, and the arc of
   this session so far (a soft halo under a forest to mint line). */
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring-ticks { fill: none; stroke: var(--line-2); stroke-width: 5; stroke-dasharray: .7 9.3; opacity: .6; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ring-arc, .ring-halo { fill: none; stroke-linecap: round; stroke-dasharray: var(--arc, 0) 600; transition: stroke-dasharray 1.1s var(--ease-drawer); }
.ring-arc { stroke: url(#ring-grad); stroke-width: 3; }
.ring-halo { stroke: var(--accent); stroke-width: 12; opacity: .1; }
.ring-grad-a { stop-color: var(--accent); }
.ring-grad-b { stop-color: color-mix(in srgb, var(--accent) 45%, var(--mint)); }
.loop-ring.is-resetting :is(.ring-arc, .ring-halo) { transition: none; }
/* A full loop: the ring glows once before the next session starts. */
.loop-ring.is-complete .ring-halo { animation: ring-complete 1.2s ease both; }
@keyframes ring-complete { 0% { opacity: .1; } 35% { opacity: .38; } 100% { opacity: .1; } }
/* The light that travels: a dot with a fading trail behind it. */
.ring-tail { position: absolute; left: 50%; top: 50%; width: calc(80cqi + 6px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from -38deg, transparent 0deg, color-mix(in srgb, var(--accent) 75%, transparent) 38deg, transparent 38.2deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px), #000 calc(100% - 1px), transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px), #000 calc(100% - 1px), transparent 100%);
  transform: rotate(calc(var(--turn) * 60deg)); transition: transform 1.1s var(--ease-drawer); }
.ring-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(var(--turn) * 60deg)); transition: transform 1.1s var(--ease-drawer); pointer-events: none; }
.ring-dot { position: absolute; left: -8px; top: calc(-40cqi - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 34px 6px color-mix(in srgb, var(--accent) 40%, transparent); }
.ring-node {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  translate: -50% -50%; transform: rotate(calc(var(--k) * 60deg)) translateY(-40cqi) rotate(calc(var(--k) * -60deg));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink-2); box-shadow: var(--shadow-card);
  font: 600 15px/44px var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease, scale .6s var(--spring-bounce);
}
.ring-node .i { font-size: 15px; stroke-width: 2.2; color: var(--ink-3); transition: color .45s ease; }
.ring-node.is-passed { color: var(--ink); }
.ring-node.is-passed .i { color: var(--accent); }
.ring-node[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); scale: 1.06; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.ring-node[aria-pressed="true"] .i { color: var(--accent-ink); }
@media (hover: hover) { .ring-node:hover:not([aria-pressed="true"]) { color: var(--ink); } }
.ring-center { position: absolute; left: 50%; top: 50%; width: 54%; translate: -50% -50%; display: grid; text-align: center; }
.ring-copy { grid-area: 1 / 1; display: grid; gap: 10px; justify-items: center; align-content: center; opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .35s ease, transform .5s var(--ease-exit), filter .35s ease; }
.ring-copy.is-current { opacity: 1; transform: none; filter: none; transition: opacity .6s ease .12s, transform .9s var(--ease-pres) .12s, filter .6s ease .12s; }
.ring-copy.is-gone { transform: translateY(-14px); }
.ring-step { font: 700 clamp(28px, 6.2cqi, 42px)/1 var(--font); letter-spacing: -.04em; color: var(--ink); }
.ring-text { font-size: clamp(14px, 2.9cqi, 18px); line-height: 1.42; color: var(--ink-2); text-wrap: balance; }

/* One app moment per station, small, playing as its station comes round. */
.ring-scene { --s: max(calc(1cqi / 5.2), .78px); display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--s)); min-height: calc(46 * var(--s)); margin-bottom: calc(4 * var(--s)); color: var(--ink); font: 600 calc(13 * var(--s))/1 var(--font); font-variant-numeric: tabular-nums; }
.ring-scene .i { stroke-width: 2.6; }
/* Goal: the goal you picked. */
.scene-goal .chip { white-space: nowrap; display: inline-flex; align-items: center; gap: calc(5 * var(--s)); height: calc(32 * var(--s)); padding: 0 calc(12 * var(--s)); border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.scene-goal .chip.on { background: var(--accent); box-shadow: none; color: var(--accent-ink); }
.scene-goal .chip .i { font-size: calc(13 * var(--s)); stroke-dasharray: 24; stroke-dashoffset: 24; }
.is-current .scene-goal .chip.on { animation: scene-pop .6s var(--spring-bounce) .35s both; }
.is-current .scene-goal .chip.on .i { animation: scene-draw .35s var(--ease-out) .7s forwards; }
/* Plan: your training days in the week. */
.scene-plan span { display: grid; place-items: center; width: calc(26 * var(--s)); height: calc(30 * var(--s)); border-radius: calc(9 * var(--s)); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.scene-plan span.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-text); }
.is-current .scene-plan span.on { animation: scene-pop .55s var(--spring-bounce) calc(.35s + var(--n) * .14s) both; }
/* Train: a set, ticked. */
.scene-train { gap: calc(5 * var(--s)); }
.scene-train .n { width: calc(18 * var(--s)); color: var(--ink-3); }
.scene-train .v { display: grid; place-items: center; min-width: calc(44 * var(--s)); height: calc(32 * var(--s)); padding: 0 calc(8 * var(--s)); border-radius: calc(10 * var(--s)); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: calc(15 * var(--s)); }
.scene-train .tick { display: grid; place-items: center; width: calc(32 * var(--s)); height: calc(32 * var(--s)); border-radius: calc(10 * var(--s)); background: var(--accent); color: var(--accent-ink); }
.scene-train .tick .i { font-size: calc(16 * var(--s)); stroke-dasharray: 24; stroke-dashoffset: 0; }
.is-current .scene-train .tick { animation: check-fill .45s cubic-bezier(.34, 1.56, .64, 1) .55s both; }
.is-current .scene-train .tick .i { stroke-dashoffset: 24; animation: scene-draw .3s var(--ease-out) .7s forwards; }
/* Learn: the sets flow into SET's signal. */
.scene-learn .b { display: grid; place-items: center; width: calc(28 * var(--s)); height: calc(30 * var(--s)); border-radius: calc(9 * var(--s)); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: calc(14 * var(--s)); }
.scene-learn .signal { width: calc(30 * var(--s)); height: calc(30 * var(--s)); margin-left: calc(8 * var(--s)); fill: var(--accent); }
.is-current .scene-learn .b { animation: scene-flow 1.3s var(--ease-pres) calc(.35s + var(--n) * .12s) both; }
.is-current .scene-learn .signal { animation: scene-pop .6s var(--spring-bounce) 1.1s both; }
/* Adapt: the target moves, by the smallest step. */
.scene-adapt { gap: calc(8 * var(--s)); font-size: calc(24 * var(--s)); letter-spacing: -.03em; }
.scene-adapt .from { color: var(--ink-3); }
.scene-adapt .to { color: var(--accent-text); }
.scene-adapt .i { font-size: calc(16 * var(--s)); color: var(--ink-3); }
.scene-adapt small { margin-left: calc(-4 * var(--s)); color: var(--ink-2); font-size: calc(13 * var(--s)); letter-spacing: 0; }
.is-current .scene-adapt .to { animation: roll-new .6s var(--ease-pres) .55s both; }
/* Progress: the line of a lift, drawing itself. */
.scene-progress svg { width: calc(132 * var(--s)); height: calc(44 * var(--s)); overflow: visible; }
.scene-progress .spark { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.scene-progress .spark-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.scene-progress circle { fill: var(--accent); }
.is-current .scene-progress .spark { animation: scene-line 1.2s var(--ease-pres) .35s both; }
.is-current .scene-progress .spark-area { animation: scene-fade .8s ease .9s both; }
.is-current .scene-progress circle { animation: scene-pop .5s var(--spring-bounce) 1.35s both; }
@keyframes scene-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes scene-draw { to { stroke-dashoffset: 0; } }
@keyframes scene-flow { 0% { opacity: 0; transform: translateX(calc(-14 * var(--s))); } 60% { opacity: 1; transform: none; } }
@keyframes scene-line { from { stroke-dashoffset: 100; } }
@keyframes scene-fade { from { opacity: 0; } }
/* Small rings keep the words only, and the stations lose their icons, so nothing crowds. */
@container (max-width: 460px) { .ring-scene, .ring-node .i { display: none; } }
.reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); max-width: 920px; margin: clamp(56px, 7vw, 96px) auto 0; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.reads-col h3 { display: flex; align-items: center; gap: 10px; font: 600 clamp(19px, 1.6vw, 22px)/1.25 var(--font); letter-spacing: -.015em; color: var(--ink); }
.reads-col h3 .i { font-size: 18px; stroke-width: 2.6; color: var(--accent); }
.reads-col.muted h3 .i { color: var(--ink-3); }
.reads-col p { margin-top: 10px; max-width: 36ch; color: var(--ink-2); font-size: 17px; line-height: 1.5; }

/* ---- Honest: a timeline of one lift -------------------------------------------- */
.honest { padding: var(--section) 0; }
.honest-head { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.timeline { margin-top: clamp(56px, 7vw, 96px); }
.timeline-label { color: var(--ink-3); font-size: 15px; }
.timeline-label strong { color: var(--ink); font-weight: 600; }
.timeline-track { position: relative; height: 2px; margin: 18px 0 0; border-radius: 2px; background: var(--line); }
.timeline-track i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(var(--tl, 0)); }
.timeline-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.moment {
  position: relative; display: grid; align-content: start; gap: 8px; min-height: 180px; padding: 22px 20px 24px;
  border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card);
  transition: opacity .6s ease, transform .9s var(--ease-pres), box-shadow .6s ease;
}
.moment::before { content: ""; position: absolute; left: 22px; top: -37px; width: 12px; height: 12px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color .4s ease, box-shadow .4s ease, transform .6s var(--spring-bounce); }
.moment.is-on::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); transform: scale(1.1); }
.js .timeline .moment:not(.is-on) { opacity: .35; transform: translateY(12px); }
.moment-when { color: var(--ink-3); font: 600 13px/1 var(--font); letter-spacing: .01em; }
.moment-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; color: var(--ink); font: 600 17px/1.3 var(--font); letter-spacing: -.012em; }
.moment-line .signal { margin-top: 3px; font-size: 14px; color: var(--accent); }
.moment-why { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); }
@media (min-width: 901px) and (max-width: 1180px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .principles li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.principles li { padding: 4px clamp(20px, 3vw, 40px) 0; border-left: 1px solid var(--line); }
.principles li:first-child { padding-left: 0; border-left: 0; }
.principles h3 { font: 600 clamp(19px, 1.6vw, 22px)/1.25 var(--font); letter-spacing: -.015em; color: var(--ink); }
.principles p { margin-top: 10px; color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 30ch; }

/* ---- Tracker: the bento ----------------------------------------------------------- */
.tracker { padding: var(--section) 0; }
.tracker-head { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 470px; overflow: hidden; border-radius: 32px; background: var(--card); box-shadow: var(--shadow-card); }
.tile-log { grid-column: span 4; }
.tile-rest { grid-column: span 2; }
.tile-plates, .tile-swap, .tile-progress { grid-column: span 2; min-height: 430px; }
.tile-copy { position: relative; z-index: 1; padding: 30px 30px 0; }
.tile-copy h3 { font: 700 clamp(22px, 1.9vw, 26px)/1.15 var(--font); letter-spacing: -.025em; color: var(--ink); }
.tile-copy p { max-width: 34ch; margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.tile-visual { position: relative; flex: 1; display: grid; place-items: center; padding: 24px 26px 28px; container-type: inline-size; }

/* Log */
.tile-log { background: radial-gradient(80% 90% at 85% 100%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%), var(--card); }
.log-ui { --u: calc(min(100cqi, 640px) / 600); display: grid; max-width: 640px; margin-inline: auto; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: calc(24 * var(--u)); width: 100%; font-variant-numeric: tabular-nums; }
.log-card { padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--app-inner); box-shadow: var(--app-inner-edge), 0 calc(30 * var(--u)) calc(50 * var(--u)) calc(-30 * var(--u)) rgb(21 21 20 / .35); color: var(--app-ink); }
.log-head, .log-row { display: grid; grid-template-columns: calc(40 * var(--u)) 1fr 1fr calc(54 * var(--u)); align-items: center; gap: calc(10 * var(--u)); }
.log-head { padding: 0 calc(6 * var(--u)) calc(8 * var(--u)); color: var(--app-ink-3); font: 600 calc(14 * var(--u))/1 var(--font); text-align: center; }
.log-row { position: relative; min-height: calc(66 * var(--u)); padding: 0 calc(6 * var(--u)); border-radius: calc(16 * var(--u)); }
.log-row::before { content: ""; position: absolute; inset: calc(3 * var(--u)) 0; z-index: 0; border-radius: inherit; background: var(--app-accent-soft); opacity: 0; transition: opacity .45s ease; }
.log-row > * { position: relative; z-index: 1; }
.log-row .n { text-align: center; color: var(--app-ink-2); font: 600 calc(18 * var(--u))/1 var(--font); }
.cell-v { display: grid; place-items: center; height: calc(54 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--app-card-2); font: 600 calc(21 * var(--u))/1 var(--font); transition: background-color .3s ease, box-shadow .3s ease; }
.cell-v.muted { color: var(--app-ink-3); }
.cell-v.active { background: var(--app-card); box-shadow: 0 0 0 calc(2.5 * var(--u)) var(--app-accent); }
.log-row .tick { display: grid; place-items: center; width: calc(54 * var(--u)); height: calc(54 * var(--u)); border: calc(1.8 * var(--u)) solid var(--app-check); border-radius: calc(15 * var(--u)); color: transparent; transition: background-color .3s ease, border-color .3s ease; }
.log-row .tick .i { font-size: calc(24 * var(--u)); stroke-width: 2.8; stroke-dasharray: 24; stroke-dashoffset: 24; }
.log-row.done::before, .log-row.is-done::before { opacity: 1; }
.log-row.done .cell-v, .log-row.is-done .cell-v { background: transparent; box-shadow: none; }
.log-row.done .tick, .log-row.is-done .tick { border-color: transparent; background: var(--app-accent); color: var(--app-accent-ink); }
.log-row.done .tick .i { stroke-dashoffset: 0; }
.log-row.is-done .tick { animation: check-fill .42s cubic-bezier(.34, 1.56, .64, 1) both; }
.log-row.is-done .tick .i { animation: check-draw .28s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--app-card-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5); }
:root[data-theme="dark"] .keypad { box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.keypad span { display: grid; place-items: center; height: calc(52 * var(--u)); border-radius: calc(13 * var(--u)); background: var(--app-card); color: var(--app-ink); font: 500 calc(22 * var(--u))/1 var(--font); box-shadow: 0 1px 1px rgb(21 21 20 / .12); transition: transform .12s var(--ease-out), background-color .12s ease; }
.keypad span.done { background: var(--app-accent); color: var(--app-accent-ink); font-size: calc(17 * var(--u)); font-weight: 600; }
.keypad span.is-pressed { transform: scale(.92); background: var(--app-card-2); }
.keypad span.done.is-pressed { background: var(--accent-hover); }

/* Rest on the Lock Screen */
.tile-rest { background: radial-gradient(90% 70% at 50% 108%, var(--forest) 0%, var(--forest-deep) 45%, transparent 78%), radial-gradient(40% 24% at 50% 104%, rgb(216 199 161 / .2) 0%, transparent 70%), var(--mineral); color: var(--ivory); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07); }
:root[data-theme="dark"] .tile-rest { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .08); }
.tile-rest .tile-copy h3 { color: var(--ivory); }
.tile-rest .tile-copy p { color: var(--ivory-2); }
.lock-ui { --u: calc(min(100cqi, 340px) / 300); display: grid; max-width: 340px; margin-inline: auto; justify-items: center; width: 100%; color: var(--ivory); text-align: center; }
.lock-date { font: 600 calc(15 * var(--u))/1.2 var(--font); color: var(--ivory-2); }
.lock-time { margin-top: calc(2 * var(--u)); font: 700 calc(76 * var(--u))/1 var(--font); letter-spacing: -.04em; }
.live { width: 100%; margin-top: calc(26 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); border-radius: calc(24 * var(--u)); background: rgb(30 30 28 / .72); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); text-align: left; }
.live-top { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.live-app .wordmark { width: calc(42 * var(--u)); }
.live-label { color: var(--ivory-2); font: 600 calc(13 * var(--u))/1 var(--font); }
.live-time { margin-left: auto; color: var(--mint); font: 700 calc(26 * var(--u))/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.live-bar { height: calc(5 * var(--u)); margin-top: calc(12 * var(--u)); border-radius: 99px; background: rgb(243 238 226 / .14); overflow: hidden; }
.live-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mint); transform-origin: left; transform: scaleX(var(--live, .42)); transition: transform 1s linear; }
.live-bottom { display: flex; justify-content: space-between; gap: calc(8 * var(--u)); margin-top: calc(10 * var(--u)); color: var(--ivory-2); font: 500 calc(13 * var(--u))/1.2 var(--font); }
.live-bottom span:first-child { color: var(--ivory); font-weight: 600; }

/* Rest on Apple Watch: the rest Live Activity in the Smart Stack, in the
   system's default layout for it (the Dynamic Island's ring and countdown).
   A dark studio stage in both themes, so the screen can light it. Without
   script it shows the open stack; with script the wrist comes up, the stack
   opens, the last seconds of a rest run out and the stage answers. */
.tile-watch { --glow-x: 70%; --glow-y: 54%; order: 1; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 580px; color: var(--ivory);
  background:
    radial-gradient(30% 56% at var(--glow-x) var(--glow-y), rgb(29 59 45 / .95) 0%, rgb(18 38 29 / .7) 48%, transparent 80%),
    radial-gradient(46% 40% at var(--glow-x) 112%, rgb(29 59 45 / .6) 0%, transparent 72%),
    radial-gradient(14% 26% at var(--glow-x) calc(var(--glow-y) - 4%), rgb(216 199 161 / .14) 0%, transparent 70%),
    var(--mineral);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07); }
:root[data-theme="dark"] .tile-watch { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .08); }
.tile-watch .tile-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 40px clamp(40px, 5vw, 72px); }
.tile-watch .tile-copy h3 { color: var(--ivory); font-size: clamp(26px, 2.5vw, 34px); }
.tile-watch .tile-copy p { max-width: 32ch; margin-top: 12px; color: var(--ivory-2); font-size: 17px; }
.tile-watch .tile-copy .tile-note { margin-top: 18px; color: var(--ivory-3); font-size: 14px; line-height: 1.4; }
/* The stage: the light behind the watch, which the screen adds to. */
.watch-ui { --u: calc(min(100cqi, 390px) / 300); --band: 180; position: relative; display: grid; place-items: center; width: 100%; padding-block: calc(40 * var(--u)); }
.watch-light { position: absolute; left: 50%; top: 50%; width: calc(560 * var(--u)); height: calc(600 * var(--u)); margin: calc(-300 * var(--u)) 0 0 calc(-280 * var(--u)); pointer-events: none; }
.watch-light::before, .watch-light::after { content: ""; position: absolute; inset: 0; border-radius: 50%; transition: opacity 1s ease; }
.watch-light::before { background: radial-gradient(closest-side, rgb(220 236 226 / .13), rgb(127 191 156 / .07) 42%, transparent 74%); }
.watch-light::after { opacity: 0; background: radial-gradient(closest-side, rgb(127 191 156 / .26), rgb(127 191 156 / .09) 38%, transparent 70%); }
.watch-float { position: relative; transform: translate3d(0, calc(var(--watch-shift, 0) * 1px), 0); }
/* The watch: a 46 mm case with continuous corners (see the SVG), lit from the
   top left, with the stage's green catching its far edges. */
.watch { position: relative; width: calc(232 * var(--u)); height: calc(272 * var(--u)); transition: transform 1.1s var(--spring); }
.watch::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34%; bottom: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .55), transparent); }
.watch-case { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.watch-band { position: absolute; left: 50%; width: calc(142 * var(--u)); height: calc(var(--band) * var(--u)); margin-left: calc(-71 * var(--u));
  background: linear-gradient(90deg, rgb(159 211 181 / .2) 0%, rgb(0 0 0 / .5) 3%, transparent 9%, rgb(255 255 255 / .05) 14%, transparent 22%, transparent 78%, rgb(255 255 255 / .04) 86%, transparent 91%, rgb(0 0 0 / .5) 97%, rgb(159 211 181 / .16) 100%), #161618; }
.watch-band::after { content: ""; position: absolute; inset: 0; }
.watch-band.top { bottom: calc(100% - 30 * var(--u)); -webkit-mask-image: linear-gradient(to top, #000 50%, transparent); mask-image: linear-gradient(to top, #000 50%, transparent); }
.watch-band.top::after { background: linear-gradient(to top, rgb(0 0 0 / .55) calc(30 * var(--u)), transparent calc(50 * var(--u)), transparent 40%, rgb(6 9 8 / .7)); }
.watch-band.bottom { top: calc(100% - 30 * var(--u)); -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent); }
.watch-band.bottom::after { background: linear-gradient(to bottom, rgb(0 0 0 / .55) calc(30 * var(--u)), transparent calc(50 * var(--u)), transparent 40%, rgb(6 9 8 / .7)); }
.watch-crown { position: absolute; top: calc(64 * var(--u)); left: calc(100% - 8 * var(--u)); width: calc(24 * var(--u)); height: calc(50 * var(--u)); overflow: hidden; border-radius: calc(5 * var(--u)) calc(11 * var(--u)) calc(11 * var(--u)) calc(5 * var(--u)) / calc(5 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)) calc(5 * var(--u)); background: linear-gradient(180deg, #0C0C0D 0%, #36363A 14%, #7A7A80 33%, #505055 50%, #2A2A2E 72%, #0E0E0F 100%); }
.watch-crown i { position: absolute; inset: 0 calc(5 * var(--u)) 0 calc(8 * var(--u)); background: repeating-linear-gradient(180deg, rgb(0 0 0 / .5) 0 calc(.9 * var(--u)), transparent calc(.9 * var(--u)) calc(2.4 * var(--u))); background-position: 0 calc(-24 * var(--u)); transition: background-position .9s var(--ease-out); }
.watch-crown::after { content: ""; position: absolute; top: calc(4 * var(--u)); bottom: calc(4 * var(--u)); right: 0; width: calc(4 * var(--u)); border-radius: 0 calc(11 * var(--u)) calc(11 * var(--u)) 0; background: linear-gradient(180deg, transparent, rgb(255 255 255 / .22) 38%, rgb(159 211 181 / .18) 70%, transparent); }
.watch-button { position: absolute; top: calc(142 * var(--u)); left: calc(100% - 4 * var(--u)); width: calc(9 * var(--u)); height: calc(76 * var(--u)); border-radius: calc(4 * var(--u)); background: linear-gradient(90deg, #0E0E0F, #3A3A3E 45%, #626267 62%, #1B1B1D); box-shadow: inset 0 calc(1 * var(--u)) 0 rgb(255 255 255 / .12); }
.watch-display { position: absolute; z-index: 2; left: calc(18 * var(--u)); top: calc(18 * var(--u)); width: calc(196 * var(--u)); height: calc(236 * var(--u)); border-radius: calc(46 * var(--u)); overflow: hidden; background: #000; color: #FFFFFF; font-variant-numeric: tabular-nums; }
/* The glass: a soft reflection that slides as the wrist turns, and its top edge catching the light. */
.watch-glare { position: absolute; z-index: 3; inset: calc(6 * var(--u)); border-radius: calc(58 * var(--u)); overflow: hidden; pointer-events: none; }
.watch-glare::before { content: ""; position: absolute; inset: -60%; background: linear-gradient(116deg, transparent 41%, rgb(255 255 255 / .07) 47%, rgb(255 255 255 / .018) 53%, transparent 58%); transform: translate3d(calc(-10 * var(--u)), calc(-14 * var(--u)), 0); transition: transform 1.25s var(--spring); }
.watch-glare::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 22% at 38% 0%, rgb(255 255 255 / .1), transparent 72%); }
/* The screen: a face (the time) and the Smart Stack with the rest on top. */
.watch-face { position: absolute; left: 50%; top: 50%; margin: 0; font: 600 calc(70 * var(--u))/1 var(--font); letter-spacing: -.02em; opacity: 0; transform: translate(-50%, -54%) translate(calc(52.4 * var(--u)), calc(-96.2 * var(--u))) scale(.257); transition: transform .75s var(--spring), opacity .3s ease; }
.watch-clock { position: absolute; top: calc(10 * var(--u)); right: calc(28 * var(--u)); font: 600 calc(18 * var(--u))/1 var(--font); transform-origin: 100% 0; transition: transform .75s var(--spring), opacity .4s ease .08s; }
.watch-stack { position: absolute; top: calc(44 * var(--u)); left: calc(6 * var(--u)); right: calc(6 * var(--u)); display: grid; gap: calc(6 * var(--u)); transition: transform .85s var(--spring-bounce), opacity .3s ease; }
.watch-live, .watch-next { height: calc(132 * var(--u)); border-radius: calc(32 * var(--u)); box-shadow: inset 0 calc(1 * var(--u)) 0 rgb(255 255 255 / .07); }
.watch-live { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(20 * var(--u)) 0 calc(18 * var(--u)); background: linear-gradient(180deg, #252528, #1C1C1E); }
.watch-next { background: #121213; box-shadow: inset 0 calc(1 * var(--u)) 0 rgb(255 255 255 / .05); }
.watch-ring { position: relative; display: grid; place-items: center; width: calc(42 * var(--u)); height: calc(42 * var(--u)); }
.watch-ring svg:first-child { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 calc(3 * var(--u)) rgb(127 191 156 / .45)); transition: opacity .3s ease, transform .5s var(--ease-out); }
.watch-ring circle { fill: none; stroke-width: 4.4; }
.watch-ring .track { stroke: rgb(127 191 156 / .22); }
.watch-ring .fill { stroke: #7FBF9C; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 27.8; transition: stroke-dashoffset 1s linear; }
.watch-check { position: absolute; font-size: calc(26 * var(--u)); color: #7FBF9C; stroke-width: 3; filter: drop-shadow(0 0 calc(4 * var(--u)) rgb(127 191 156 / .5)); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .6s var(--spring-bounce); }
.watch-count { font: 600 calc(34 * var(--u))/1 var(--font); letter-spacing: -.01em; transition: color .35s ease, text-shadow .35s ease; }
.watch-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
[data-watch].is-ready .watch-ring svg:first-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-watch].is-ready .watch-check { opacity: 1; transform: none; }
[data-watch].is-ready .watch-count { color: #7FBF9C; text-shadow: 0 0 calc(14 * var(--u)) rgb(127 191 156 / .4); }
[data-watch].is-ready .watch-light::after { opacity: 1; transition: opacity .7s ease .1s; }
/* Asleep (the wrist down): tilted away, the screen dimmed, the face showing, the stage darker. */
.js [data-watch]:not(.is-awake) .watch { transform: perspective(calc(1100 * var(--u))) rotateX(14deg) translateY(calc(10 * var(--u))) scale(.975); transition: transform .9s var(--spring); }
.js [data-watch]:not(.is-awake) .watch-dim { opacity: .62; transition: opacity .6s ease; }
.js [data-watch]:not(.is-awake) .watch-light::before { opacity: 0; transition: opacity .8s ease; }
.js [data-watch]:not(.is-awake) .watch-glare::before { transform: translate3d(calc(30 * var(--u)), calc(36 * var(--u)), 0); transition: transform 1s var(--spring); }
.js [data-watch]:not(.is-stack) .watch-face { opacity: 1; transform: translate(-50%, -54%); transition: transform .8s var(--spring) .08s, opacity .4s ease .16s; }
.js [data-watch]:not(.is-stack) .watch-clock { opacity: 0; transform: translate(calc(-1.5 * var(--u)), calc(70.2 * var(--u))) scale(3.889); transition: transform .8s var(--spring) .08s, opacity .3s ease .1s; }
.js [data-watch]:not(.is-stack) .watch-stack { opacity: 0; transform: translateY(calc(220 * var(--u))); transition: transform .5s var(--ease-exit), opacity .26s ease .06s; }
.js [data-watch]:not(.is-stack) .watch-crown i { background-position: 0 0; transition: background-position .7s var(--ease-out); }

/* Plates */
.plates-ui { --u: calc(min(100cqi, 340px) / 300); display: grid; max-width: 340px; margin-inline: auto; justify-items: center; gap: calc(18 * var(--u)); width: 100%; color: var(--ink); }
.plates-total { font: 400 calc(18 * var(--u))/1 var(--font); color: var(--ink-2); }
.plates-total strong { color: var(--ink); font: 700 calc(46 * var(--u))/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bar { position: relative; display: flex; align-items: center; gap: calc(3 * var(--u)); width: 100%; height: calc(150 * var(--u)); }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(14 * var(--u)); margin-top: calc(-7 * var(--u)); border-radius: calc(4 * var(--u)); background: linear-gradient(180deg, #B8B4AC, #8E8A82 60%, #A9A59D); }
:root[data-theme="dark"] .bar::before { background: linear-gradient(180deg, #6C6963, #4A4844 60%, #5E5B55); }
.bar-sleeve { position: relative; width: calc(46 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(5 * var(--u)); background: linear-gradient(180deg, #CFCBC2, #9C988F 60%, #B4B0A7); }
:root[data-theme="dark"] .bar-sleeve { background: linear-gradient(180deg, #8A8780, #5C5A55 60%, #77746E); }
.plate { position: relative; display: grid; place-items: center; border-radius: calc(7 * var(--u)); color: #F3EEE2; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 calc(10 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgb(0 0 0 / .45); }
.plate b { font: 700 calc(12 * var(--u))/1 var(--font); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }
.plate.p25 { width: calc(36 * var(--u)); height: calc(150 * var(--u)); background: linear-gradient(90deg, #2F6E50, #24573F 55%, #1B4532); }
.plate.p5 { width: calc(24 * var(--u)); height: calc(96 * var(--u)); background: linear-gradient(90deg, #3A3A37, #262624 60%, #1A1A18); }
.plate.p125 { width: calc(16 * var(--u)); height: calc(64 * var(--u)); background: linear-gradient(90deg, #C9A35A, #B08A43 60%, #93702F); color: #1A1407; }
.plate.p125 b { font-size: calc(9 * var(--u)); }
.bar-collar { width: calc(14 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(4 * var(--u)); background: linear-gradient(90deg, #8E8A82, #6F6B64); }
.plates-note { color: var(--ink-3); font: 500 calc(14 * var(--u))/1.2 var(--font); }
.js .tile-plates:not(.is-in) .plate { opacity: 0; transform: translateX(calc(60 * var(--u))); }
.tile-plates .plate { transition: opacity .5s ease calc(.35s + var(--i) * .14s), transform .9s var(--spring-bounce) calc(.35s + var(--i) * .14s); }

/* Swap */
.swap-ui { --u: calc(min(100cqi, 340px) / 300); display: grid; max-width: 340px; margin-inline: auto; gap: calc(8 * var(--u)); width: 100%; }
.swap-group { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(6 * var(--u)); color: var(--ink-2); font: 600 calc(14 * var(--u))/1 var(--font); }
.swap-group span { padding: calc(4 * var(--u)) calc(9 * var(--u)); border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: calc(12 * var(--u)); }
.swap-row { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); min-height: calc(54 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--card-2); color: var(--ink); font: 600 calc(16 * var(--u))/1.2 var(--font); }
.swap-row .i { font-size: calc(17 * var(--u)); color: var(--accent-text); }
.js .tile-swap:not(.is-in) .swap-row { opacity: 0; transform: translateY(14px); }
.tile-swap .swap-row { transition: opacity .5s ease calc(.3s + var(--i) * .1s), transform .8s var(--ease-pres) calc(.3s + var(--i) * .1s); }

/* Progress */
.tile-progress { background: radial-gradient(110% 70% at 10% 0%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 70%), var(--card); }
.progress-ui { --u: calc(min(100cqi, 340px) / 300); display: grid; max-width: 340px; margin-inline: auto; width: 100%; }
.progress-label { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-bottom: calc(6 * var(--u)); color: var(--ink-2); font: 600 calc(14 * var(--u))/1 var(--font); }
.change { display: grid; grid-template-columns: calc(40 * var(--u)) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(10 * var(--u)); padding: calc(13 * var(--u)) 0; border-top: 1px solid var(--line); }
.change span { grid-row: span 2; color: var(--ink-3); font: 600 calc(13 * var(--u))/1.5 var(--font); }
.change strong { color: var(--ink); font: 600 calc(16 * var(--u))/1.3 var(--font); }
.change em { color: var(--accent-text); font: 600 calc(15 * var(--u))/1.4 var(--font); font-style: normal; font-variant-numeric: tabular-nums; }
.change em s { margin-left: calc(4 * var(--u)); color: var(--ink-3); font-weight: 500; text-decoration-thickness: 1.5px; }
.js .tile-progress:not(.is-in) .change { opacity: 0; transform: translateY(12px); }
.tile-progress .change { transition: opacity .5s ease, transform .8s var(--ease-pres); }
.tile-progress .change:nth-child(3) { transition-delay: .42s; }
.tile-progress .change:nth-child(4) { transition-delay: .52s; }
.tile-progress .change:nth-child(2) { transition-delay: .32s; }

/* ---- Plans: the beta first, the 14 days as a line, then the two plans ------------------------- */
.plans { padding: var(--section) 0; }
.plans-head { display: grid; gap: clamp(20px, 2.4vw, 32px); justify-items: start; }
.plans-head .lead { max-width: 40ch; }
/* What is true today: the beta is free. The dot pings twice when it arrives. */
.plans-beta { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px 9px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 600 15px/1.2 var(--font); }
.plans-beta-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plans-beta-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--accent); opacity: 0; }
.plans-beta.is-in .plans-beta-dot::after { animation: beta-ping 1.5s var(--ease-out) .55s 2; }
@keyframes beta-ping { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(1.9); } }

/* The 14 days: three moments on one line that fills as it arrives. */
.trial { --gap: clamp(20px, 3vw, 40px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 96px); }
.trial::before, .trial::after { content: ""; position: absolute; top: 7px; left: 8px; right: calc((100% - 2 * var(--gap)) / 3 - 8px); height: 2px; border-radius: 2px; }
.trial::before { background: var(--line); }
.trial::after { background: var(--accent); transform-origin: 0 50%; transition: transform 1.6s var(--ease-out) .3s; }
.js .trial:not(.is-in)::after { transform: scaleX(0); }
.trial-step { position: relative; padding-top: 40px; }
.trial-node { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, var(--canvas)); transition: background-color .4s ease, box-shadow .5s ease, transform .6s var(--spring-bounce); transition-delay: calc(.3s + var(--i) * .66s); }
.js .trial:not(.is-in) .trial-node { background: var(--canvas); box-shadow: inset 0 0 0 2px var(--line-2), 0 0 0 5px transparent; transform: scale(.75); }
.trial-when { color: var(--accent-text); font: 600 14px/1.3 var(--font); letter-spacing: .005em; }
.trial-step h3 { margin-top: 8px; font: 700 clamp(21px, 1.8vw, 25px)/1.2 var(--font); letter-spacing: -.022em; color: var(--ink); }
.trial-step h3 + p { max-width: 30ch; margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.trial-step > p, .trial-step > h3 { transition: opacity .6s ease calc(.4s + var(--i) * .66s), transform .9s var(--ease-pres) calc(.4s + var(--i) * .66s); }
.js .trial:not(.is-in) .trial-step > p, .js .trial:not(.is-in) .trial-step > h3 { opacity: 0; transform: translateY(12px); }
.js [data-reveal="steps"] { opacity: 1; transform: none; }

/* The plans: the free tracker, and SET Pro on the Mineral field. */
.plan-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 16px; align-items: stretch; margin-top: clamp(48px, 6vw, 80px); }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-radius: 32px; }
.plan-free { background: var(--card); box-shadow: var(--shadow-card); }
.plan-name { font: 700 clamp(24px, 2vw, 28px)/1.1 var(--font); letter-spacing: -.025em; color: inherit; }
.plan-tag { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: clamp(28px, 3vw, 40px); }
.plan-price .amount { display: inline-block; font: 700 clamp(52px, 5vw, 68px)/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--ink-2); font-size: 16px; }
.plan-price .save { align-self: center; padding: 6px 10px; border-radius: 999px; font: 600 13px/1 var(--font); animation: save-in .55s var(--spring-bounce) both; }
.plan-price .amount.is-rolling { animation: price-in .55s var(--ease-pres) both; }
@keyframes price-in { from { opacity: 0; transform: translateY(40%); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes save-in { from { opacity: 0; transform: scale(.6); } }
.plan-list { display: grid; gap: 15px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.plan-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.4; }
.plan-list .i { flex: none; margin-top: .22em; font-size: 17px; stroke-width: 2.6; color: var(--accent); stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out) calc(.55s + var(--n, 0) * .09s); }
.js .plan:not(.is-in) .plan-list .i { stroke-dashoffset: 24; }

.plan-pro { isolation: isolate; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(90% 70% at 0% 0%, rgb(36 87 63 / .92) 0%, rgb(24 50 38 / .55) 42%, transparent 74%),
    radial-gradient(34% 26% at 10% 4%, rgb(216 199 161 / .16) 0%, transparent 70%),
    radial-gradient(70% 60% at 100% 110%, rgb(29 59 45 / .5) 0%, transparent 70%),
    var(--mineral);
  box-shadow: 0 34px 64px -34px rgb(12 20 16 / .75), inset 0 1px 0 rgb(255 255 255 / .09); }
:root[data-theme="dark"] .plan-pro { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07), inset 0 1px 0 rgb(255 255 255 / .1), 0 34px 64px -34px rgb(0 0 0 / .9); }
/* A soft light that follows a mouse over the card. */
.plan-pro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 0%), rgb(127 191 156 / .13), transparent 62%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .plan-pro:hover::before { opacity: 1; } }
.plan-pro-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; }
.plan-badge { display: inline-flex; align-self: flex-start; margin-bottom: 16px; padding: 7px 12px; border-radius: 999px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 600 13px/1 var(--font); }
.plan-pro .plan-badge { background: rgb(127 191 156 / .14); box-shadow: inset 0 0 0 1px rgb(127 191 156 / .24); color: var(--mint); }
.plan-pro .plan-tag, .plan-pro .plan-price .per { color: var(--ivory-2); }
.plan-pro .plan-price .save { background: rgb(127 191 156 / .16); color: var(--mint); }
.plan-note { min-height: 1.45em; margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.plan-pro .plan-note { color: var(--ivory-2); }
.plan-note.is-rolling { animation: note-in .45s var(--ease-pres) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } }
.plan-pro .plan-list { border-top-color: rgb(243 238 226 / .12); }
.plan-pro .plan-list .i { color: var(--mint); }
.plan-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 36px; }
.btn-quiet { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .btn-quiet:hover { background: var(--card-3); } }
.plan-cta p { color: var(--ivory-3); font-size: 15px; }
.plan-pro :focus-visible { outline-color: var(--mint); }
/* Monthly or yearly: the navigation's switch, an ivory thumb on a spring. */
.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: rgb(243 238 226 / .08); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .12); isolation: isolate; }
.segmented button { position: relative; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ivory-2); font: 600 14px/1 var(--font); cursor: pointer; transition: color .3s ease; -webkit-tap-highlight-color: transparent; }
.segmented button[aria-checked="true"] { color: var(--forest-deep); }
@media (hover: hover) { .segmented button:not([aria-checked="true"]):hover { color: var(--ivory); } }
.segmented-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ivory); box-shadow: 0 2px 10px -2px rgb(0 0 0 / .45); transition: transform .55s var(--spring-bounce); }
.segmented[data-value="year"] .segmented-thumb { transform: translateX(100%); }

/* ---- FAQ ------------------------------------------------------------------------------ */
.faq { padding: var(--section) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > h2 { position: sticky; top: 120px; }
.faq-list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa button { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 76px; padding: 22px 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--font); letter-spacing: -.018em; -webkit-tap-highlight-color: transparent; }
.qa-icon { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); transition: background-color .3s ease, transform .6s var(--spring-bounce); }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease-drawer); }
.qa-icon::after { transform: rotate(90deg); }
.qa.is-open .qa-icon { background: var(--accent); transform: rotate(180deg); }
.qa.is-open .qa-icon::before, .qa.is-open .qa-icon::after { background: var(--accent-ink); }
.qa.is-open .qa-icon::after { transform: rotate(0deg); }
@media (hover: hover) { .qa button:hover .qa-icon { background: var(--card-3); } .qa.is-open button:hover .qa-icon { background: var(--accent-hover); } }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-drawer); }
.qa-a > div { overflow: hidden; }
.qa-a p { max-width: 58ch; padding: 0 56px 28px 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .45s var(--ease-out); }
.qa.is-open .qa-a { grid-template-rows: 1fr; }
.qa.is-open .qa-a p { opacity: 1; transform: none; transition-delay: .08s; }
.no-js .qa-a, html:not(.js) .qa-a { grid-template-rows: 1fr; }
html:not(.js) .qa-a p { opacity: 1; transform: none; }

/* ---- Join: the closing moment ----------------------------------------------------------- */
.join { padding: 12px; }
.join-stage { position: relative; isolation: isolate; display: grid; justify-items: center; gap: clamp(36px, 4vw, 56px); overflow: hidden; padding: clamp(104px, 13vw, 200px) var(--gutter) clamp(88px, 11vw, 168px); border-radius: var(--radius-moment); background: var(--mineral); color: var(--ivory); text-align: center; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
:root[data-theme="dark"] .join-stage { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .08); }
.join-light { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 26% at 50% 104%, rgb(216 199 161 / .22) 0%, transparent 70%), radial-gradient(95% 66% at 50% 112%, var(--forest) 0%, var(--forest-deep) 46%, transparent 78%); opacity: 0; transform: translateY(18%); transition: opacity 1.6s ease, transform 2s var(--ease-pres); }
.join.is-in .join-light { opacity: 1; transform: none; }
html:not(.js) .join-light { opacity: 1; transform: none; }
.join-title { display: grid; font-size: clamp(52px, 9vw, 140px); font-weight: 700; line-height: .98; letter-spacing: -.05em; }
.join-line { display: block; }
.type-word { display: inline-block; white-space: nowrap; }
.join-line.accent { color: var(--mint); }
.join-title .opener-char { opacity: 0; }
.join-title.is-typing .opener-char { animation: type-ink .24s var(--ease-pres) var(--d) both; }
.join-title.is-typing .opener-char::after { animation: type-caret var(--gap) linear var(--d); }
.join-title.is-typing .opener-char.last::after { animation: type-blink 1.05s linear var(--d) 4; }
html:not(.js) .join-title .opener-char { opacity: 1; }
.join-copy { display: grid; justify-items: center; gap: 22px; }
.join-copy p { color: var(--ivory-2); font-size: clamp(18px, 1.6vw, 22px); }
.join-copy small { color: var(--ivory-3); font-size: 14px; }
.join-copy > p:first-child { max-width: 38ch; text-align: center; text-wrap: balance; }
/* The launch list: one capsule, the field and the button inside it (the app's search field on the dark moment). */
.join-form { position: relative; display: flex; align-items: center; gap: 6px; width: min(100%, 520px); padding: 6px; border-radius: 999px;
  background: rgb(243 238 226 / .08); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .16), inset 0 1px 0 rgb(255 255 255 / .06); transition: box-shadow .25s ease, background-color .25s ease; }
.join-form:focus-within { background: rgb(243 238 226 / .11); box-shadow: inset 0 0 0 1.5px rgb(127 191 156 / .7), 0 0 0 4px rgb(127 191 156 / .14); }
.join-input { flex: 1; min-width: 0; height: 52px; padding: 0 8px 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ivory); font: 500 17px/1 var(--font); outline: none; }
.join-input::placeholder { color: var(--ivory-3); }
.join-input[aria-invalid="true"] { color: #F4B7AE; }
.join-form .join-submit { --h: 52px; flex: none; padding: 0 24px; font-size: 17px; }
.join-form .join-submit:disabled { opacity: .7; cursor: progress; }
.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-form.is-done { box-shadow: inset 0 0 0 1.5px rgb(127 191 156 / .55); }
.join-status { min-height: 1.4em; margin: -8px 0 -6px; font-size: 15px !important; color: var(--ivory-2); text-align: center; }
.join-status[data-tone="ok"] { color: var(--mint); }
.join-status[data-tone="error"] { color: #F4B7AE; }
.join-fine a { color: var(--ivory-2); text-decoration: underline; text-underline-offset: 3px; }
.join-mail { flex: none; margin-left: 18px; margin-right: 0; font-size: 18px; color: var(--ivory-3); stroke-width: 1.8; transition: color .25s ease; }
.join-form:focus-within .join-mail { color: var(--mint); }
/* Phones: two full, separate pieces (a roomy field with its icon, the button under it), not a narrow strip inside a frame. */
@media (max-width: 520px) {
  .join-form { flex-wrap: wrap; gap: 10px; width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .join-form:focus-within { background: none; box-shadow: none; }
  .join-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 58px; border-radius: 999px; z-index: -1;
    background: rgb(243 238 226 / .08); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .16), inset 0 1px 0 rgb(255 255 255 / .06); transition: box-shadow .25s ease, background-color .25s ease; }
  .join-form:focus-within::before { background: rgb(243 238 226 / .11); box-shadow: inset 0 0 0 1.5px rgb(127 191 156 / .7), 0 0 0 4px rgb(127 191 156 / .14); }
  .join-form { isolation: isolate; }
  .join-mail { margin-left: 20px; margin-right: 0; }
  .join-input { flex: 1 1 0; height: 58px; padding: 0 20px 0 12px; font-size: 17px; text-align: left; }
  .join-form .join-submit { flex: 1 1 100%; --h: 56px; width: 100%; }
  .join-form.is-done::before { box-shadow: inset 0 0 0 1.5px rgb(127 191 156 / .55); }
}

/* ---- Footer --------------------------------------------------------------------------------- */
.footer { padding: clamp(64px, 8vw, 104px) 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 48px; }
.footer-brand .wordmark { width: 104px; color: var(--ink); }
.footer-brand p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-links a { color: var(--ink-2); font-size: 15px; text-decoration: none; transition: color .2s ease; }
@media (hover: hover) { .footer-links a:hover { color: var(--ink); } }
.footer-fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-mark { margin-top: clamp(40px, 5vw, 72px); padding: 0 12px 14px; color: var(--footer-mark); }
.footer-mark .wordmark { width: 100%; transform: translateY(calc((1 - var(--fm, 1)) * 42%)); }

/* ---- Reveal on scroll ---------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease calc(var(--d, 0) * 90ms), transform 1.1s var(--ease-pres) calc(var(--d, 0) * 90ms); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line > span { transform: translateY(108%); transition: transform 1.05s var(--ease-pres); }
.js [data-reveal="lines"] .line + .line > span { transition-delay: .08s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="lines"].is-in .line > span { transform: none; }

/* ---- Theme change: a circle of the new theme grows from the toggle --------------------------------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-switching *:not(.theme-toggle .i), .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ---- Responsive ---------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-log { grid-column: 1 / -1; }
  .tile-rest, .tile-plates, .tile-swap, .tile-progress { grid-column: span 1; }
  .tile-progress { grid-column: 1 / -1; min-height: 360px; }
  /* Two columns: the watch stands like the other tiles, next to the swap tile. */
  .tile-watch { --glow-x: 50%; --glow-y: 68%; order: 0; grid-column: span 1; display: flex; min-height: 470px; }
  .tile-watch .tile-copy { display: block; padding: 30px 30px 0; }
  .tile-watch .tile-copy h3 { font-size: clamp(22px, 1.9vw, 26px); }
  .tile-watch .tile-copy p { max-width: 34ch; margin-top: 8px; font-size: 16px; }
  .tile-watch .tile-copy .tile-note { margin-top: 10px; }
  .watch-ui { --u: calc(min(100cqi, 310px) / 300); --band: 86; padding-block: calc(46 * var(--u)) calc(36 * var(--u)); }
  .timeline-list { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .timeline-list::-webkit-scrollbar { display: none; }
  .moment { scroll-snap-align: start; }
  .timeline-track { display: none; }
  .moment::before { display: none; }
}

@media (max-width: 900px) {
  .nav { top: calc(12px + env(safe-area-inset-top, 0px)); }
  .nav-bar { height: 56px; padding: 0 8px 0 20px; }
  .nav.is-condensed .nav-bar { --nav-w: min(100% - 16px, 900px); }
  .hero { padding: 8px; }
  .hero-stage { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 112px; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero-device { justify-content: center; }
  .phone { --w: min(76vw, 340px); margin-bottom: calc(var(--w) * -.95); }
  .hero-light { background: radial-gradient(60% 34% at 50% 100%, rgb(216 199 161 / .2) 0%, transparent 70%), radial-gradient(110% 56% at 50% 108%, var(--forest) 0%, var(--forest-deep) 46%, transparent 76%); }
  /* Phones scroll the story like any page: each moment is its own block,
     illustration first, and nothing is pinned. */
  .story-grid { display: block; }
  .story-stage { display: none; }
  .story-steps { display: grid; gap: clamp(64px, 16vw, 96px); }
  .story-step { min-height: 0; padding: 0; opacity: 1; justify-content: flex-start; }
  .step-stage { display: block; position: relative; isolation: isolate; height: min(122vw, 540px); margin-bottom: 28px; overflow: hidden; border-radius: var(--radius-moment); background: var(--stage-bg); box-shadow: var(--stage-edge); }
  .step-stage .viz { width: min(84%, 340px); top: 50%; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > h2 { position: static; }
  .plan-grid { grid-template-columns: 1fr; }
  .try-board { grid-template-columns: 1fr; }
  .plan-pro { order: -1; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .principles li { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles li:first-child { padding-top: 24px; }
  .reads { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .hero-actions { flex-wrap: wrap; gap: 8px; }
  .hero-actions .btn { --h: 50px; flex: 1 1 auto; padding: 0 16px; font-size: 16px; }
  .hero-actions .btn .i { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-log, .tile-rest, .tile-watch, .tile-plates, .tile-swap, .tile-progress { grid-column: 1 / -1; min-height: 0; }
  .tile-watch .tile-copy { padding: 26px 24px 0; }
  .tile-copy { padding: 26px 24px 0; }
  .tile-visual { padding: 24px 20px 26px; }
  .log-ui { grid-template-columns: 1fr; --u: calc(100cqi / 360); }
  .keypad { display: none; }
  .ring-node { padding: 0 12px; font-size: 13px; line-height: 38px; min-height: 38px; }
  .loop-ring { width: min(100%, 420px); }
  .ring-center { width: 50%; }
  .plan-pro-top { flex-direction: column; }
  .plan-pro .segmented { align-self: stretch; }
  /* The 14 days read top to bottom, the line down the left. */
  .trial { grid-template-columns: 1fr; gap: 28px; }
  .trial::before, .trial::after { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .trial::after { transform-origin: 50% 0; }
  .js .trial:not(.is-in)::after { transform: scaleY(0); }
  .trial-step { padding: 0 0 0 40px; }
  .qa-a p { padding-right: 0; }
  .story-step h3 { font-size: clamp(32px, 9vw, 40px); }
}

/* ---- Reduced motion: still pages, final states, short fades ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .viz { filter: none !important; transform: none !important; transition: opacity .2s ease !important; }
  .hero-stage, .hero-copy, .hero-device, .footer-mark .wordmark { transform: none !important; opacity: 1 !important; }
  .opener-char::after { display: none; }
}

@media print {
  .nav, .menu, .hero-opener, .footer-mark { display: none !important; }
  .js [data-reveal], .js [data-reveal] .line > span, .story-step, .moment { opacity: 1 !important; transform: none !important; }
}

/* ---- Language: English and Dutch ---------------------------------------------------------------------- */
/* Dutch is applied before the first paint; until then nothing shows in English. */
html.lang-pending body { visibility: hidden; }
:root:not([data-lang="nl"]) [data-lang-only="nl"] { display: none; }
:root[data-lang="nl"] [data-lang-only="en"] { display: none; }
/* The switch: the app's segmented control, ivory thumb on a spring. */
.lang { position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 40px; padding: 4px; border-radius: 999px; background: rgb(243 238 226 / .08); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .1); }
.lang button { position: relative; min-width: 38px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--ivory-2); font: 600 13px/1 var(--font); letter-spacing: .03em; cursor: pointer; transition: color .3s ease; -webkit-tap-highlight-color: transparent; }
.lang button[aria-checked="true"] { color: var(--forest-deep); }
@media (hover: hover) { .lang button:not([aria-checked="true"]):hover { color: var(--ivory); } }
.lang-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ivory); box-shadow: 0 2px 8px -2px rgb(0 0 0 / .4); transition: transform .6s var(--spring-bounce); }
:root[data-lang="nl"] .lang-thumb { transform: translateX(100%); }
/* A language change: the words dissolve and the new ones settle in. */
html.lang-switching::view-transition-old(root) { animation: lang-out .3s var(--ease-exit) both; }
html.lang-switching::view-transition-new(root) { animation: lang-in .62s var(--ease-pres) both; }
@keyframes lang-out { to { opacity: 0; filter: blur(8px); transform: translateY(-6px); } }
@keyframes lang-in { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } }
/* The navigation needs the menu sooner with the longer Dutch labels. */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 360px) {
  .lang button { min-width: 32px; padding: 0 7px; }
  .nav-actions { gap: 6px; }
}

/* ---- Phones and touch: scrolling stays native ----------------------------------------------------------- */
/* No blur on moving illustrations (cheaper while scrolling), and the hero's
   wide-screen exit layers are promoted only where that exit runs. */
@media (pointer: coarse) { .viz { filter: none; } }
@media (min-width: 901px) and (pointer: fine) { .hero-stage, .hero-copy, .hero-device { will-change: transform; } }
/* The timeline reads top to bottom on phones, a line down the left. */
@media (max-width: 640px) {
  .timeline-list { grid-template-columns: 1fr; gap: 12px; overflow: visible; scroll-snap-type: none; margin: 22px 0 0; padding: 0 0 0 30px; position: relative; }
  .timeline-list::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
  .moment { min-height: 0; scroll-snap-align: none; }
  .moment::before { display: block; left: -27px; top: 24px; }
  .moment.is-on::before { transform: none; }
}
/* Touch: reveals are shorter, so content is settled by the time a thumb stops. */
@media (pointer: coarse) {
  .js [data-reveal] { transition-duration: .55s, .7s; }
  .js [data-reveal="lines"] .line > span { transition-duration: .75s; }
}

/* ---- Dark theme: graphite with white (owner choice 2026-10-16) ----------------------------------------
   Dark-only copies of the shared rules that carry green: the mint and forest light become white and graphite. The light
   theme is unchanged; the light brand green in small light cards stays. */
:root[data-theme="dark"] { --forest-deep: #252422; --forest: #363432; --moss: #A5A199; --mint: #F1F1F0; }
:root[data-theme="dark"] .nav-bar::before { background: radial-gradient(120% 160% at 50% -60%, rgb(72 70 66 / .55), transparent 70%), rgb(22 22 20 / .94); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { :root[data-theme="dark"] .nav-bar::before { background: radial-gradient(120% 160% at 50% -60%, rgb(72 70 66 / .5), transparent 70%), rgb(22 22 20 / .82); } }
:root[data-theme="dark"] .hero-stage { background: radial-gradient(60% 50% at 0% 0%, rgb(54 52 50 / .42) 0%, transparent 70%), var(--mineral); }
:root[data-theme="dark"] .hero-opener::before { background: radial-gradient(circle, rgb(72 70 66 / .55) 0%, transparent 62%); }
:root[data-theme="dark"] .phone::before { background: radial-gradient(closest-side, rgb(241 241 240 / .3), rgb(241 241 240 / .1) 55%, transparent); }
:root[data-theme="dark"] .app-apply { box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgb(72 70 66 / .7); }
:root[data-theme="dark"] .app-set.is-done .check { box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) calc(-8 * var(--u)) rgb(72 70 66 / .85); }
:root[data-theme="dark"] .engine-checks::after { background: linear-gradient(180deg, transparent, rgb(241 241 240 / .24), transparent); }
:root[data-theme="dark"] .engine-out { box-shadow: 0 calc(12 * var(--u)) calc(26 * var(--u)) calc(-12 * var(--u)) rgb(72 70 66 / .8); }
:root[data-theme="dark"] .viz-callout { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 calc(14 * var(--u)) calc(44 * var(--u)) calc(-8 * var(--u)) rgb(241 241 240 / .7); }
:root[data-theme="dark"] .try-option[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--stage-signal), 0 18px 34px -24px rgb(37 36 34 / .55); }
:root[data-theme="dark"] .try-ex { box-shadow: var(--app-tray-edge), 0 40px 70px -34px rgb(37 36 34 / .55); }
:root[data-theme="dark"] .tile-watch { background:
    radial-gradient(30% 56% at var(--glow-x) var(--glow-y), rgb(54 52 50 / .95) 0%, rgb(37 36 34 / .7) 48%, transparent 80%),
    radial-gradient(46% 40% at var(--glow-x) 112%, rgb(54 52 50 / .6) 0%, transparent 72%),
    radial-gradient(14% 26% at var(--glow-x) calc(var(--glow-y) - 4%), rgb(216 199 161 / .14) 0%, transparent 70%),
    var(--mineral); }
:root[data-theme="dark"] .watch-light::before { background: radial-gradient(closest-side, rgb(243 243 241 / .13), rgb(241 241 240 / .07) 42%, transparent 74%); }
:root[data-theme="dark"] .watch-light::after { background: radial-gradient(closest-side, rgb(241 241 240 / .26), rgb(241 241 240 / .09) 38%, transparent 70%); }
:root[data-theme="dark"] .watch-band { background: linear-gradient(90deg, rgb(243 243 241 / .2) 0%, rgb(0 0 0 / .5) 3%, transparent 9%, rgb(255 255 255 / .05) 14%, transparent 22%, transparent 78%, rgb(255 255 255 / .04) 86%, transparent 91%, rgb(0 0 0 / .5) 97%, rgb(243 243 241 / .16) 100%), #161618; }
:root[data-theme="dark"] .watch-crown::after { background: linear-gradient(180deg, transparent, rgb(255 255 255 / .22) 38%, rgb(243 243 241 / .18) 70%, transparent); }
:root[data-theme="dark"] .watch-ring svg:first-child { filter: drop-shadow(0 0 calc(3 * var(--u)) rgb(241 241 240 / .45)); }
:root[data-theme="dark"] .watch-ring .track { stroke: rgb(241 241 240 / .22); }
:root[data-theme="dark"] .watch-ring .fill { stroke: #F1F1F0; }
:root[data-theme="dark"] .watch-check { color: #F1F1F0; filter: drop-shadow(0 0 calc(4 * var(--u)) rgb(241 241 240 / .5)); }
:root[data-theme="dark"] [data-watch].is-ready .watch-count { color: #F1F1F0; text-shadow: 0 0 calc(14 * var(--u)) rgb(241 241 240 / .4); }
:root[data-theme="dark"] .plan-pro { background:
    radial-gradient(90% 70% at 0% 0%, rgb(72 70 66 / .92) 0%, rgb(46 45 43 / .55) 42%, transparent 74%),
    radial-gradient(34% 26% at 10% 4%, rgb(216 199 161 / .16) 0%, transparent 70%),
    radial-gradient(70% 60% at 100% 110%, rgb(54 52 50 / .5) 0%, transparent 70%),
    var(--mineral); }
:root[data-theme="dark"] .plan-pro::before { background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 0%), rgb(241 241 240 / .13), transparent 62%); }
:root[data-theme="dark"] .plan-pro .plan-badge { background: rgb(241 241 240 / .14); box-shadow: inset 0 0 0 1px rgb(241 241 240 / .24); }
:root[data-theme="dark"] .plan-pro .plan-price .save { background: rgb(241 241 240 / .16); }
/* Laptop widths with a mouse: the five weeks stay on one line with their track, instead of a sideways scroller that a
   mouse cannot swipe (touch keeps the swipe). */
@media (min-width: 641px) and (max-width: 1080px) and (pointer: fine) {
  .timeline-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 0; }
  .timeline-track { display: block; }
  .moment { padding: 18px 16px 20px; scroll-snap-align: none; }
  .moment::before { display: block; left: 18px; }
  .moment-line { font-size: 15.5px; }
  .moment-why { font-size: 14px; }
}

/* ==========================================================================
   Phones (2026-11-16 mobile pass): calmer section rhythm, and every control
   at least 44 pt to the finger. The hit areas grow invisibly (a pseudo
   element), so nothing changes size on screen.
   ========================================================================== */
@media (max-width: 640px) {
  :root { --section: clamp(64px, 18vw, 80px); }
}
@media (pointer: coarse) {
  .lang button::after, .theme-toggle::after, .menu-toggle::after, .ring-node::after { content: ""; position: absolute; inset: -6px -3px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .latest-all { min-height: 44px; }
}
