/* Kalzone AI — design system
   Display: Bricolage Grotesque. Body: Instrument Sans.
   Scale: Tailwind steps. Spacing: 4/8/12/16/24/32/40/48/64/80/96.
   Palette: deep ink-violet base with tinted surfaces and colour glows. Accent: #3d8bff. */
:root {
  --bg: #0e0d0b;
  --band: #131210;
  --surface: #191815;
  --raised: #23211c;
  --ink: #0e0d0b;
  --fg: #f3efe6;
  --dim: #a8a295;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --accent: #ead9c2;
  --accent-fill: #f3efe6;
  --accent-ink: #0e0d0b;
  --accent-deep: #126efa;
  --ok: #4ade80;
  --err: #ff6b6b;
  --scrim: rgba(0,0,0,.72);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
  --shadow-lg: 0 40px 100px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.4);
  --ease: cubic-bezier(.32,.72,0,1);
  --spring: cubic-bezier(.34,1.3,.64,1);
  --ease-out: cubic-bezier(.23,1,.32,1);
  /* a damped spring (ratio .8), sampled; browsers without linear() fall back to the default ease */
  --ease-spring: linear(0, .028, .096, .189, .293, .399, .501, .595, .679, .752, .813, .864, .905, .937, .962, .981, .994, 1.004, 1.01, 1.013, 1.015, 1.015, 1.015, 1.013, 1.012, 1.01, 1.009, 1.007, 1.006, 1.003, 1);
  --display: "Gabarito", "Figtree", system-ui, sans-serif;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Gabarito", sans-serif;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  /* App UI tokens: only for the parts of the Kalzone app the site redraws (coach sheet, toast, coach note, hero count-up).
     Values are the app's dark theme from the app team's notes. Never use them in site chrome. */
  --app-font: "Instrument Sans", var(--font);
  --app-accent: #1b74fa;
  --app-on: #fff;
  --app-muted: #a0a0a0;
  --app-faint: #969696;
  --app-sheet: #232326;
  --app-reply: #17171a;
  --app-coach-fg: #f3f5fb;
  --app-link: #6aa0ff;
  --app-line: #333;
  --app-hair: rgba(255,255,255,.078);
  --app-ok: #7adb95;
  --app-wait-fg: #69696a;
  --app-wait-bg: #343539;
  --app-wait-icon: #a5a5a6;
  --app-send-ink: #0c0c0c;
  /* the app's card gradient colours (#1e212f > #181b28 at .52 > #12141e). Its geometry was fitted to the captures per element:
     the coach note completes over about 400 dp of 45-degree diagonal, the input pill left to right over 55% of its width. */
  --app-card-a: #1e212f;
  --app-card-b: #181b28;
  --app-card-c: #12141e;
  --app-card-edge: rgba(58,61,75,.75);
  --app-toast: linear-gradient(#1c1c20, #111114);
  --app-toast-fg: #f2f4f8;
  --app-dim: rgba(0,0,0,.55);
  --app-touch: rgba(255,255,255,.25);
  --app-shadow: rgba(0,0,0,.4);
  --app-ease: cubic-bezier(.2,0,0,1);
  color-scheme: dark;
}
.is-dark { --bg: #0a0a09; --band: #0f0e0c; --surface: #161512; background: var(--bg); color: var(--fg); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 1rem; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }
h3, .screen-title { font-family: var(--display); font-weight: 700; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.dim { color: var(--dim); }
.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: .5rem .75rem; background: var(--fg); color: var(--ink); border-radius: 9999px; font-weight: 600; font-size: .875rem; }
.skip:focus { top: 1rem; }

/* ---------- Serif accent words ---------- */
.serif { position: relative; display: inline-block; font-family: var(--display); font-style: normal; font-weight: 800; color: var(--accent); }
.uline { position: absolute; left: -2%; right: -2%; bottom: -.18em; width: 104%; height: .22em; overflow: visible; }
.uline path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.display.on .uline path { animation: draw-line 1.1s var(--ease) 1s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0 } }
.display .serif.accent { color: var(--accent); -webkit-text-fill-color: var(--accent); padding-right: .04em; }
.title .serif, .tagline-text .serif { color: var(--accent); padding-right: .06em; }
.title .dim { color: #857f72; }
.sub, .lede { color: #b8b2a5; }
.cap p, .spot-text p, .ptile p, .step p, .cu figcaption span, .faq-body p { color: #aaa397; }



/* ---------- Cursor light ---------- */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E") repeat; background-size: 200px 200px; }
/* a warm lamp that sits over the content (screen blend, so it only ever lightens) */
.cursor-light { position: fixed; left: 0; top: 0; z-index: 55; width: 34rem; height: 34rem; margin: -17rem 0 0 -17rem; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .8s var(--ease);
  background: radial-gradient(closest-side, rgba(234,217,194,.05), rgba(234,217,194,.015) 55%, rgba(234,217,194,0)); transform: translate3d(var(--cx, -100vw), var(--cy, -100vh), 0); will-change: transform; }
.cursor-light.on { opacity: 1; }
/* a soft ring trails the pointer and opens up over anything you can press */
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 70; width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; border-radius: 50%; pointer-events: none; border: 1px solid rgba(234,217,194,.5); box-shadow: 0 0 1.25rem rgba(234,217,194,.16), inset 0 0 .75rem rgba(234,217,194,.06); opacity: 0; transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) scale(var(--rs, 1)); transition: opacity .4s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
.cursor-ring.on { opacity: 1; }
.cursor-ring.hover { border-color: rgba(234,217,194,.85); background-color: rgba(234,217,194,.07); box-shadow: 0 0 1.75rem rgba(234,217,194,.28), inset 0 0 .75rem rgba(234,217,194,.1); }
@media (pointer: coarse) { .cursor-ring, .cursor-light { display: none; } }
main, .footer { position: relative; z-index: 1; }
.hero-copy { transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); transition: transform .9s var(--ease); }
.btn.magnet { transition: transform .35s var(--ease), background .3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  appearance: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; padding: 0 1.5rem; border-radius: 9999px; gap: .5rem;
  background: var(--accent-fill); color: var(--accent-ink); font: 600 .9375rem/1 var(--font); letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 28px -12px rgba(243,239,230,.35);
  transition: transform .4s var(--ease), background .3s var(--ease), box-shadow .4s var(--ease), opacity .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(0,0,0,.06) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn:hover { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -12px rgba(230,205,184,.35); }
.btn .arrow { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover::before { transform: translateX(120%); }
.btn.pressed, .btn:active { transform: scale(.97); transition-duration: .1s; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { height: 2.5rem; padding: 0 1.125rem; font-size: .875rem; box-shadow: none; }
.btn-dark { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-dark:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: none; }

/* ---------- Floating island nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.nav.hide { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.nav.hide .nav-inner { pointer-events: none; }
.nav-inner {
  position: relative; z-index: 1; pointer-events: auto; width: 100%; max-width: 80rem;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  height: 4.5rem; padding: 0 var(--gutter);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(14,13,11,.72); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border-bottom: 1px solid transparent; opacity: 0; transition: opacity .5s var(--ease), border-color .5s var(--ease); pointer-events: none; }
.nav.scrolled::before { opacity: 1; border-bottom-color: var(--line); }

.brand { display:inline-flex; align-items:center; gap:.5rem; text-decoration:none; font-family: var(--display); font-weight:700; font-size: 1.0625rem; letter-spacing:-.02em; }
.brand-mark { flex: none; }
.nav-links { display: flex; justify-content: center; gap: clamp(1.5rem, 3.2vw, 3rem); }
/* nav links: full bone at rest; hover draws a bone underline, the current section a sand one */
.nav-links a {
  position: relative; display: block; padding: .625rem 0;
  color: var(--fg); text-decoration: none; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -.01em;
  transition: color .25s var(--ease-out);
}
.nav-links a:hover, .nav-links a.current { color: var(--fg); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1875rem; height: 2px; border-radius: 2px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease), background-color .25s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); background: color-mix(in srgb, var(--fg) 45%, transparent); }
.nav-links a.current::after { transform: scaleX(1); background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.burger { display: none; position: relative; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 9999px; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 50%; top: 50%; width: 1.125rem; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .5s var(--ease); }
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3px)); }
.burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3px)); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: rgba(14,13,11,.88);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu[hidden] { display: grid; }
.menu.open { opacity: 1; visibility: visible; }
.menu ul { display: grid; gap: .5rem; text-align: center; }
.menu a {
  display: block; padding: .75rem 1.5rem; color: var(--fg); font-family: var(--display); font-size: 2.5rem; line-height: 2.75rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none;
  opacity: 0; transform: translateY(3rem); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.menu.open a { opacity: 1; transform: none; }
.menu li:nth-child(1) a { transition-delay: .1s } .menu li:nth-child(2) a { transition-delay: .15s }
.menu li:nth-child(3) a { transition-delay: .2s } .menu li:nth-child(4) a { transition-delay: .25s }
.menu li:nth-child(5) a { transition-delay: .3s } .menu li:nth-child(6) a { transition-delay: .35s; color: var(--accent); }
/* the five links, brand and button need about 860px; below that the hamburger takes over */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: block; }
  .nav-inner { grid-template-columns: 1fr auto; gap: .75rem; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: block; }
  .nav-inner { grid-template-columns: 1fr auto; gap: .75rem; height: 3.75rem; }
  .nav::before { opacity: 1; }
}

/* ---------- Hero ---------- */
.hero-wrap { position: relative; isolation: isolate; overflow: clip; background: radial-gradient(70rem 36rem at 50% -4rem, rgba(243,239,230,.08), transparent 70%), linear-gradient(180deg, #121110 0%, #0e0d0b 55%, #0b0b0a 100%); }
body { background: linear-gradient(180deg, #0e0d0b, #0b0b0a 40%, #0e0d0b); }
.blob { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; will-change: transform; }
.blob-a { display: none; }
.blob-b, .blob-c, .orb { display: none; }

/* a glossy 3D orb behind the phone */
.orb { position: absolute; z-index: -1; right: clamp(-6rem, 8vw, 10rem); top: 9rem; width: 24rem; height: 24rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), rgba(255,255,255,0) 28%), radial-gradient(circle at 50% 50%, #3d8bff 0%, #5b3df5 45%, #140f30 100%);
  box-shadow: 0 60px 120px rgba(61,139,255,.25), inset -30px -40px 80px rgba(0,0,0,.5); opacity: .55; filter: saturate(1.2);
  animation: orbit 16s ease-in-out infinite; will-change: transform; }
.orb::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 70% 75%, rgba(255,181,71,.35), transparent 50%); }
@keyframes orbit { 0%, 100% { transform: translate3d(0,0,0) scale(1) } 50% { transform: translate3d(-2rem, 2.5rem, 0) scale(1.06) } }
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4rem;
  max-width: 68rem; margin: 0 auto;
  padding: 6.25rem var(--gutter) 3.5rem;
}
.hero-copy { order: 1; max-width: 36rem; }
.hero .chips { flex-direction: column; align-items: flex-start; gap: .75rem; }
.hero-stage { order: 2; position: relative; }
.hero-stage .stage { width: 22rem; max-width: none; transform: none !important; }
/* hero phone: one screen, a slightly heavier bezel, nothing laid over the bottom of the screenshot */
#device { padding: .4rem; border-radius: 3.35rem; }
#screen { border-radius: 2.95rem; }
#screen .shot::after { display: none; }
.hero-stage .stage::before { display: none; }
.hero-stage .stage::after { bottom: -1.5rem; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2rem; padding-top: 5rem; }
  .hero .lede, .hero .signup { margin-left: auto; margin-right: auto; }
  .hero .chips { align-items: center; margin-top: 1.75rem; padding-top: 1.25rem; }
}
@media (max-width: 560px) {
  .hero .lede { font-size: 1.0625rem; line-height: 1.625rem; }
  .hero .chips { gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; }
  .hero .chips li { font-size: .75rem; }
  .hero-stage .stage { width: min(86vw, 21rem); }
}
/* floating objects */
.fo { position: absolute; z-index: 2; pointer-events: none; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .9s var(--ease); }
.fo-inner { animation: fofloat var(--dur, 7s) ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0,0,0,.6)); }
.fo .render { width: 100%; max-width: none; margin: 0; }
.fo-1 { left: 10%; top: 4rem; width: 10rem; --dur: 8s; } .fo-1 .fo-inner { rotate: -8deg; }
.fo-2 { right: 9%; top: 3.5rem; width: 8rem; --dur: 6.5s; animation-delay: -2s; } .fo-2 .fo-inner { rotate: 10deg; animation-delay: -2s; }
.fo-3 { left: 9%; top: 17rem; width: 6.5rem; --dur: 7.5s; } .fo-3 .fo-inner { rotate: 12deg; animation-delay: -4s; }
.fo-4 { right: 15%; top: 16rem; width: 6.5rem; --dur: 9s; } .fo-4 .fo-inner { rotate: -6deg; animation-delay: -1s; }
@keyframes fofloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
[data-parallax] { will-change: transform; }
.hero-copy { max-width: 42.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--dim); font-family: var(--mono); font-weight: 500; font-size: .75rem; line-height: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; padding: .375rem .75rem .375rem .625rem; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface); }
.eyebrow::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--accent); animation: dotpulse 2.8s var(--ease) infinite; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 rgba(230,205,184,.5) } 70% { box-shadow: 0 0 0 .5rem rgba(230,205,184,0) } 100% { box-shadow: 0 0 0 0 rgba(230,205,184,0) } }
.display {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem); line-height: 1; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance; color: #f3f3f8;
}
.display .line { display: block; opacity: 0; transform: translateY(.35em); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 140ms); color: var(--fg); padding-right: .1em; }
.display.on .line { opacity: 1; transform: none; }
.lede { margin-top: 1rem; max-width: 32rem; color: var(--dim); font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -.01em; text-wrap: pretty; }
.fine { margin-top: .75rem; color: var(--dim); font-size: .875rem; line-height: 1.25rem; }
.signup { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; max-width: 28rem; margin-top: 1.5rem; padding: .375rem .375rem .375rem 1.125rem; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-md); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); position: relative; }
.signup::before { content: ""; width: 1rem; height: 1rem; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a295' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); margin-right: .5rem; }
.signup:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230,205,184,.12), var(--shadow-md); }
.signup input {
  flex: 1 1 10rem; min-width: 0; height: 2.75rem; padding: 0; border: 0; background: transparent; color: var(--fg);
  font: 400 1rem/1 var(--font);
}
.signup input::placeholder { color: var(--dim); }
.signup input:focus { outline: none; }
.signup .btn { height: 2.75rem; }
.signup:has(input[aria-invalid="true"]) { border-color: var(--err); }
/* a long address: main.js steps the type down; if it still will not fit beside the button, the form takes the phone layout */
.signup.is-long { padding: .375rem; }
.signup.is-long::before { display: none; }
.signup.is-long input { flex-basis: 100%; height: 2.5rem; padding: 0 .75rem; }
.signup.is-long .btn { width: 100%; }
.form-msg { position: absolute; left: 0; top: calc(100% + .5rem); margin: 0; font-size: .875rem; line-height: 1.25rem; color: var(--dim); }
.form-msg:empty { display: none; }
.fine { margin-top: 2.25rem; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--err); }
.btn.loading { color: transparent; }
.btn.loading::after { content: ""; position: absolute; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Waitlist success: toast + confirmation card ---------- */
/* The resting state below is the whole design; every bit of motion is added further down, only when motion is allowed. */
/* toast sits in the top layer (popover) so it still shows above the card's backdrop; it is visual only, the card does the announcing */
.kz-toast { position: fixed; inset: auto 1.5rem 1.5rem auto; margin: 0; z-index: 80; display: flex; align-items: center; gap: .625rem; width: max-content; max-width: calc(100vw - 2rem); padding: .5rem 1.125rem .5rem .5rem; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--fg); font: 600 .9375rem/1.25rem var(--font); letter-spacing: -.005em; box-shadow: var(--shadow-md); opacity: 0; transition: opacity .2s var(--ease-out); pointer-events: none; overflow: visible; }
.kz-toast.on { opacity: 1; transition-duration: .3s; }
.kz-toast-ic { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.kz-toast-ic svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .kz-toast { inset: auto 0 calc(4rem + env(safe-area-inset-bottom)) 0; margin: 0 auto; }
  /* the card is a bottom sheet on phones, so the toast moves to the top while it is open */
  .kz-dialog[open] + .kz-toast { inset: calc(1rem + env(safe-area-inset-top)) 0 auto 0; }
}

.kz-dialog { width: min(34rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border-radius: 2rem; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
.kz-dialog::backdrop { background: var(--scrim); }
.kz-dialog-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 3.25rem 3rem 2.75rem; text-align: center; }
.kz-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.kz-close svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.kz-close:active { color: var(--fg); background-color: var(--raised); }
@media (hover: hover) and (pointer: fine) { .kz-close:hover { color: var(--fg); border-color: var(--line-strong); background-color: var(--raised); } }

/* the mark: a hairline track, a sand ring that completes it, then the tick */
.kz-mark { width: 4.5rem; height: 4.5rem; margin-bottom: 1.75rem; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kz-mark-track { stroke: var(--line-strong); stroke-width: 1.5; }
.kz-mark-ring { stroke: var(--accent); stroke-width: 2; }
.kz-mark-check { stroke: var(--accent); stroke-width: 3.25; }
.kz-mark-halo { stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }

.kz-dialog-h { max-width: 18ch; font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -.035em; text-wrap: balance; }
.kz-dialog-p { max-width: 26rem; margin-top: .75rem; color: var(--dim); font-size: 1.0625rem; line-height: 1.625rem; text-wrap: balance; }
.kz-dialog-p .kz { font-weight: 600; white-space: nowrap; }

/* what happens next, as two plain rows: where we write to, and when */
.kz-facts { width: 100%; max-width: 26rem; margin: 2rem 0 0; border-radius: 1rem; border: 1px solid var(--line); background: var(--band); text-align: left; }
.kz-fact { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .875rem 1.125rem; }
.kz-fact + .kz-fact { border-top: 1px solid var(--line); }
.kz-fact dt { display: inline-flex; align-items: center; gap: .5rem; flex: none; color: var(--dim); font: 500 .75rem/1rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kz-fact dd { min-width: 0; margin: 0; color: var(--fg); font: 600 .9375rem/1.375rem var(--font); letter-spacing: -.005em; font-variant-numeric: tabular-nums; text-align: right; }
.kz-fact-email { overflow-wrap: anywhere; }
/* main.js sizes the address to fit on one line; if it cannot fit beside the label, it moves under it */
.kz-fact-email .kz-em { display: inline-block; max-width: 100%; }
.kz-fact-email.is-fit { white-space: nowrap; overflow-wrap: normal; }
.kz-fact-email.is-fit .kz-em { display: inline; }
.kz-fact.is-stacked { flex-direction: column; align-items: flex-start; gap: .375rem; }
.kz-fact.is-stacked dd { align-self: stretch; text-align: left; }
.kz-glyph { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-.0625rem); }
.kz-dialog-fine { margin-top: .75rem; color: var(--dim); font-size: .8125rem; line-height: 1.25rem; }
.kz-dialog-done { min-width: 11rem; margin-top: 2rem; }
@media (max-width: 560px) {
  /* phones: a bottom sheet the width of the screen */
  .kz-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); margin: auto auto .5rem; border-radius: 1.75rem; }
  .kz-dialog-in { padding: 2.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
  .kz-mark { width: 4rem; height: 4rem; margin-bottom: 1.5rem; }
  .kz-dialog-h { font-size: 1.875rem; line-height: 2.25rem; }
  .kz-dialog-p { max-width: 20rem; font-size: 1rem; line-height: 1.5rem; }
  .kz-facts { margin-top: 1.5rem; }
  .kz-fact { padding: .875rem 1rem; gap: 1rem; }
  .kz-dialog-done { width: 100%; margin-top: 1.5rem; }
}

/* Motion: one sequence. Backdrop fades, the card rises (a sheet slides up on phones), the ring completes,
   the tick strokes in, the text follows 50 ms apart; one quiet pulse closes it. Nothing here runs with reduced motion or Pause motion on. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) .kz-dialog[open] { animation: kz-in .6s var(--ease-spring) both; }
  html:not(.paused) .kz-dialog[open]::backdrop { animation: kz-fade .24s var(--ease-out) both; }
  html:not(.paused) .kz-dialog[open] .kz-mark-ring { stroke-dasharray: 100; animation: kz-draw .36s var(--ease-out) .1s both; }
  html:not(.paused) .kz-dialog[open] .kz-mark-check { stroke-dasharray: 100; animation: kz-draw .26s var(--ease-out) .38s both; }
  html:not(.paused) .kz-dialog[open] .kz-mark-halo { animation: kz-halo .6s var(--ease-out) .56s both; }
  html:not(.paused) .kz-dialog[open] :is(.kz-dialog-h, .kz-dialog-p, .kz-facts, .kz-dialog-fine, .kz-dialog-done) { animation: kz-rise .45s var(--ease-out) both; }
  html:not(.paused) .kz-dialog[open] .kz-dialog-h { animation-delay: .16s; }
  html:not(.paused) .kz-dialog[open] .kz-dialog-p { animation-delay: .21s; }
  html:not(.paused) .kz-dialog[open] .kz-facts { animation-delay: .26s; }
  html:not(.paused) .kz-dialog[open] .kz-dialog-fine { animation-delay: .31s; }
  html:not(.paused) .kz-dialog[open] .kz-dialog-done { animation-delay: .36s; }
  html:not(.paused) .kz-dialog[open] .kz-close { animation: kz-fade .3s var(--ease-out) .2s both; }
  /* exit: the class is set by main.js, which calls close() once this finishes */
  html:not(.paused) .kz-dialog.closing { animation: kz-out .2s var(--ease-out) both; }
  html:not(.paused) .kz-dialog.closing::backdrop { animation: kz-fade-out .22s var(--ease-out) both; }
  .kz-close { transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .16s var(--ease-out); }
  html:not(.paused) .kz-close:active { transform: scale(.92); }
  @media (max-width: 560px) {
    html:not(.paused) .kz-dialog[open] { animation: kz-up .5s var(--ease) both; }
    html:not(.paused) .kz-dialog.closing { animation: kz-down .28s var(--ease-out) both; }
  }
  /* toast: rises in from the corner and drops back the same way; transitions, so a second signup retargets instead of restarting */
  html:not(.paused) .kz-toast { transform: translateY(1rem) scale(.96); transition: opacity .2s var(--ease-out), transform .24s var(--ease-out); }
  html:not(.paused) .kz-toast.on { transform: none; transition: opacity .3s var(--ease-out), transform .5s var(--ease-spring); }
  html:not(.paused) .kz-toast.on .kz-toast-ic path { stroke-dasharray: 100; animation: kz-draw .32s var(--ease-out) .18s both; }
  @media (max-width: 560px) {
    html:not(.paused) .kz-dialog[open] + .kz-toast { transform: translateY(-1rem) scale(.96); }
    html:not(.paused) .kz-dialog[open] + .kz-toast.on { transform: none; }
  }
}
@keyframes kz-in { from { opacity: 0; transform: translateY(1.25rem) scale(.97); } 30% { opacity: 1; } }
@keyframes kz-out { to { opacity: 0; transform: translateY(.5rem) scale(.98); } }
@keyframes kz-up { from { transform: translateY(100%); } }
@keyframes kz-down { to { transform: translateY(100%); } }
@keyframes kz-fade { from { opacity: 0; } }
@keyframes kz-fade-out { to { opacity: 0; } }
@keyframes kz-draw { from { stroke-dashoffset: 100; } }
@keyframes kz-rise { from { opacity: 0; transform: translateY(.5rem); } }
@keyframes kz-halo { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.chips { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.chips li { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg); font-family: var(--mono); font-size: .8125rem; }
.chips svg { width: .9375rem; height: .9375rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* marquee of logged items */
/* the strip spans the hero content box only: from the left edge of the text to the right edge of the phone */
.marquee { position: relative; z-index: 1; width: min(calc(68rem - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin-inline: auto; padding: 3rem 0 3rem; overflow: hidden; --mq-head: 5rem; /* the label row stays solid; only the chips fade at the ends */ -webkit-mask: linear-gradient(#000 0 0) top / 100% var(--mq-head) no-repeat, linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(#000 0 0) top / 100% var(--mq-head) no-repeat, linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .75rem; width: max-content; animation: marquee 72s linear infinite; }
.marquee-track.reverse { display: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { flex: none; height: 2.75rem; display: inline-flex; align-items: center; gap: .625rem; padding: 0 .875rem 0 .375rem; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; letter-spacing: .01em; white-space: nowrap; color: var(--fg); }
.marquee-track img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.marquee-label { margin: 0 0 1rem; padding: 0; color: var(--dim); font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Device: dark frame, light app, cycling screens ---------- */
.stage { position: relative; justify-self: center; width: 100%; max-width: 19.5rem; }
.stage::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 2rem; height: 3rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 10% -30% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(156,196,255,.18), transparent); filter: blur(10px); }
.note-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: .75rem; background: rgba(20,19,15,.88); color: #f2efe6; border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .8125rem; font-weight: 600; white-space: nowrap; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: chipfloat 6s ease-in-out infinite; }
.note-chip small { color: var(--dim); font-weight: 500; }
.note-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 8px rgba(156,196,255,.8); }
.note-chip.c1 { left: -13rem; top: 18%; animation-delay: -1s; }
.note-chip.c2 { right: -11rem; top: 44%; animation-delay: -3s; }
@keyframes chipfloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@media (max-width: 1100px) { .note-chip.c1 { left: -8rem; } .note-chip.c2 { right: -7rem; } }
@media (max-width: 860px) { .note-chip { display: none; } }
/* the hero phone bobs from main.js in whole-pixel steps: a CSS transform animation makes the browser rasterise the screenshot at low resolution, which blurred the app's text */
.device {
  position: relative; border-radius: 2.75rem; padding: .3rem;
  background: linear-gradient(160deg, #3b3b40 0%, #202023 28%, #121214 60%, #2c2c30 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #3c3c41, 0 0 0 2.5px rgba(255,255,255,.1), 0 60px 110px -24px rgba(0,0,0,.85), 0 24px 48px -20px rgba(0,0,0,.7);
}
/* side keys */
.device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #55555b, #26262a); box-shadow: 0 0 0 1px #000; }
.device::before { right: -5px; top: 21%; height: 10%; }
.device::after { left: -5px; top: 17%; height: 5%; }
/* bezel and punch-hole camera, no glare */
.screen::before { content: ""; position: absolute; left: 50%; top: 1rem; width: .5rem; height: .5rem; margin-left: -.25rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26262c, #000 60%); box-shadow: 0 0 0 1.5px #000; z-index: 6; pointer-events: none; }
.screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px #000 inset; z-index: 6; pointer-events: none; }
/* 3D entrance for the hero phone */

.screen { position: relative; aspect-ratio: 1344 / 2992; border-radius: 2.45rem; background: #0a0b12; overflow: hidden; }
.screen-dots { position: absolute; left: 0; right: 0; bottom: .5rem; display: flex; justify-content: center; gap: .3rem; z-index: 2; }
.screen-dots i { width: .3rem; height: .3rem; border-radius: 50%; background: rgba(255,255,255,.3); transition: width .4s var(--ease), border-radius .4s var(--ease); }
.screen-dots i.on { width: 1.1rem; border-radius: 2px; background-color: rgba(255,255,255,.28); background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 0 100%; animation: dotfill 4.4s linear forwards; }
@keyframes dotfill { to { background-size: 100% 100% } }
.panels { position: absolute; inset: 0; }
.panel { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); }
.panel.active { opacity: 1; }
.panel.leaving { opacity: 0; }
.shot { position: absolute; inset: 0; container-type: size; }
.shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: linear-gradient(transparent, #0a0b12 85%); z-index: 1; pointer-events: none; }
.ov, .toast { z-index: 2; }
.shot img { display: block; width: 100%; height: 100%; }

.stage-caption { margin-top: 1.5rem; text-align: center; color: var(--dim); font-size: .875rem; line-height: 1.25rem; }

/* Overlays animate parts of the real screenshots. Hero positions are % of the 1280x2856 capture (assets/screens/v2), measured from pixels. */
#screen { aspect-ratio: 1280 / 2856; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 36; }
.ov { position: absolute; pointer-events: none; font-style: normal; }
@keyframes draw { to { --a: 360deg } }
.sweep { left: 5.78%; top: 61.73%; width: 88.36%; height: 5.71%; border-radius: 9999px; overflow: hidden; }
.sweep.on-light::after { background: linear-gradient(100deg, transparent 30%, rgba(14,13,11,.1) 50%, transparent 70%); }
.sweep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-100%); }
.panel.active .sweep::after { animation: sweep 1.4s var(--ease) 1.6s both; }
@keyframes sweep { to { transform: translateX(100%) } }
@keyframes drain { to { transform: scaleX(1) } }
@keyframes countdown { to { --n: 32 } }
@keyframes pop { 0% { transform: scale(0) } 70% { transform: scale(1.12) } 100% { transform: scale(1) } }
.wipe { left: 9.38%; top: 74.75%; width: 70.3%; height: 2.3%; background: linear-gradient(90deg, #1f2230, #1b1e2c); transform-origin: right; }
/* workout progress bar fills from the left: a track-coloured cover over the white fill shrinks away */
.bar-fill { left: 5.62%; top: 14.71%; width: 29.6%; height: .315%; border-radius: 9999px; background: #333333; transform-origin: right; }
.panel.active .bar-fill { animation: wipe 1.4s var(--ease) .5s both; }
.panel.active .wipe { animation: wipe 1.6s var(--ease) 1s both; }
@keyframes wipe { to { transform: scaleX(0) } }

@media (max-width: 560px) {
  .signup { padding: .375rem; }
  .signup::before { display: none; }
  .signup input { flex-basis: 100%; height: 2.5rem; padding: 0 .75rem; }
  .signup .btn { width: 100%; }
}
@media (max-width: 860px) {
  .hero { padding-top: 5rem; padding-bottom: 2rem; }
  .marquee { padding: 1.5rem 0 2rem; --mq-head: 3.5rem; }
  .fo-1, .fo-4 { display: none; } .fo-3 { display: block; width: 4.5rem; left: 4%; top: 13rem; } .fo-2 { width: 4.5rem; right: 4%; top: 13rem; } .fo-2 .fo-inner, .fo-3 .fo-inner { opacity: .55; }
  .note-chip { display: none; }
}

/* ---------- Tagline (deep violet band) ---------- */
.tagline { padding: 7rem var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tagline-text { max-width: 44rem; margin: 0 auto; text-align: center; text-wrap: balance; font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; }
.tagline-text .w { display: inline-block; opacity: .3; transition: opacity .7s var(--ease); }
.tagline-text .w.on { opacity: 1; }
.glow-host { position: relative; isolation: isolate; }
.glow-host::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(26rem 26rem at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 60%); }
.glow-host.lit::after { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 7rem var(--gutter); }
#detail { padding-top: 5rem; }
.section > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.section-narrow > * { max-width: 46rem; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-glow { position: relative; isolation: isolate; overflow: clip; }
.band-glow::before, .band-glow::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.band-glow::before { width: 60rem; height: 40rem; left: 50%; margin-left: -30rem; top: -10rem; background: radial-gradient(closest-side, rgba(255,255,255,.04), transparent); }
.band-glow::after { display: none; }
.section-head { margin-bottom: 4rem; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
.title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.title.words .wd { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * 55ms); }
.title.words.in .wd { opacity: 1; transform: none; filter: none; }
.title.words.reveal { transform: none; filter: none; opacity: 1; }
.sub { margin-top: 1rem; max-width: 34rem; color: var(--dim); font-size: 1.125rem; line-height: 1.75rem; text-wrap: pretty; }

/* ---------- Coach story (sticky, scroll-driven) ---------- */
.story-section { padding: 7rem 0 0; scroll-margin-top: 0; }
.story-head { padding: 0 var(--gutter); max-width: 68rem; margin: 0 auto 1rem; }
.story { position: relative; }
.story-pin { display: grid; padding-top: 1rem !important; padding-bottom: 6rem !important; grid-template-columns: minmax(0, 26rem) minmax(0, 18rem); justify-content: center; align-items: center; gap: 4.5rem; max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }
.captions { display: grid; gap: 1.5rem; max-width: 26rem; }
.cap { position: relative; padding: 1.25rem 1.5rem; border-radius: 1.25rem; cursor: pointer; border: 1px solid transparent; opacity: .35; transform: translateX(-.5rem); transition: opacity .6s var(--ease), transform .6s var(--ease), background .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.cap.on { opacity: 1; transform: none; background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.cap-n { display: inline-grid; place-items: center; height: 1.5rem; padding: 0 .5rem; border-radius: 9999px; background: var(--raised); color: var(--dim); font-family: var(--mono); font-size: .75rem; margin-bottom: .75rem; transition: background .5s var(--ease), color .5s var(--ease); }
.cap.on .cap-n { background: var(--accent-fill); color: var(--accent-ink); }
.cap-btn { position: absolute; inset: 0; border: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.cap-btn:focus-visible { outline: 2px solid var(--accent); }
.cap:hover { opacity: .75; }
.cap.on:hover { opacity: 1; }
.cap h3 { font-size: 1.25rem; line-height: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
/* side by side: a hairline runs from the active card toward the phone, ending in a sand dot, so the two read as one unit */
@media (min-width: 861px) {
  .cap::after { content: ""; position: absolute; left: 100%; top: 50%; width: 3.25rem; height: 1px; margin-left: .5rem; background: var(--line-strong); transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease-out); pointer-events: none; }
  .cap.on::after { transform: scaleX(1); }
  .cap::before { content: ""; position: absolute; left: calc(100% + 3.75rem); top: 50%; width: .375rem; height: .375rem; margin-top: -.1875rem; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .3s var(--ease-out) .25s; pointer-events: none; }
  .cap.on::before { opacity: 1; }
}
.cap p { margin-top: .375rem; color: var(--dim); font-size: .9375rem; line-height: 1.375rem; }
.story-phone { position: relative; justify-self: center; width: 100%; max-width: 18rem; }
.story-phone::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -1.25rem; height: 3rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }
.story-progress { position: absolute; left: 50%; bottom: -1.75rem; width: 6rem; height: 3px; border-radius: 3px; background: var(--line-strong); transform: translateX(-50%); overflow: hidden; }
.story-progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story-hint { position: absolute; left: 0; right: 0; bottom: -3.25rem; text-align: center; color: var(--dim); font-size: .75rem; line-height: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.device-story .screen { aspect-ratio: 1280 / 2856; }
.toast { position: absolute; left: 6%; right: 6%; top: 3.5%; z-index: 3; display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem; border-radius: .875rem; background: #f3f3f8; color: #0a0a0b; font-size: .75rem; line-height: 1rem; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(-150%); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.toast-ok { display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #ead9c2; color: #0e0d0b; font-size: .625rem; }
.sheet-handle { align-self: center; width: 2.25rem; height: 4px; border-radius: 2px; background: #3a3732; }
@media (max-width: 860px) {
  .story-pin { grid-template-columns: 1fr; align-content: center; gap: 1.5rem; }
  .story-phone { max-width: 16rem; order: -1; }
  .captions { max-width: none; display: flex; gap: .5rem; }
  .cap { flex: 1; opacity: .5; transform: none; padding: .75rem .625rem; text-align: center; border: 1px solid var(--line); border-radius: 1rem; }
  .cap.on { opacity: 1; background: var(--surface); border-color: var(--accent); box-shadow: none; }
  .cap-n { margin: 0 auto .5rem; }
  .cap h3 { font-size: .8125rem; line-height: 1.1rem; }
  .cap p { display: none; }
  .story-progress { display: block; bottom: -1.25rem; }
  .story-hint { display: none; }
  .captions { margin-top: 2rem; }
}

/* ---------- Spotlights with 3D depth ---------- */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4rem; padding: 3rem 0; }
.spot + .spot { border-top: 1px solid var(--line); }
.spot-flip .spot-text { order: 2; }
.spot-text { max-width: 26rem; }
/* coach notes sit in Chapter 03, between the training moment and How it works, with the beat's own rhythm around them */
#how > #notes { padding: 0; margin-bottom: 7rem; }
@media (max-width: 900px) { #how > #notes { margin-bottom: 4.5rem; } }
.spot-n { display: inline-grid; place-items: center; height: 1.75rem; padding: 0 .625rem; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); font-family: var(--mono); font-size: .8125rem; margin-bottom: 1.5rem; }
.spot-text h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.spot-text p { margin-top: 1rem; color: var(--dim); font-size: 1.125rem; line-height: 1.75rem; text-wrap: pretty; }
.spot-art { display: grid; justify-items: center; perspective: 1200px; }
[data-tilt] { transform: rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); transition: box-shadow .5s var(--ease); }
.row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 2.5rem; padding: 0 .875rem; border-radius: .75rem; background: var(--raised); font-weight: 500; font-size: .875rem; }
.row b { font-weight: 600; white-space: nowrap; }
/* Photo logging: the app's real stills, crossfaded (PACE.photo in main.js); captions beside it follow the same clock */
.snap-phone { position: relative; width: min(100%, 18rem); }
.snap-phone::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -1.25rem; height: 3rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }
#photo .spot-art { justify-items: start; padding-left: 2rem; }
.snap-steps { display: grid; gap: .375rem; margin-top: 2rem; }
.snap-step-btn { position: relative; display: flex; align-items: center; gap: .875rem; width: 100%; padding: .75rem 1rem; border-radius: 1rem; border: 1px solid transparent; background: transparent; color: var(--dim); font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; transition: color .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease); }
.snap-step-btn:hover { color: var(--fg); }
.snap-step-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.snap-step-n { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.snap-steps li.on .snap-step-btn { color: var(--fg); background: var(--surface); border-color: var(--line-strong); }
.snap-steps li.on .snap-step-n { background: var(--accent); box-shadow: 0 0 0 4px rgba(234,217,194,.16); }
.snap-step-bar { position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 2px; opacity: 0; transition: opacity .4s var(--ease); }
.snap-step-bar b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--k, 0)); }
.snap-steps li.on .snap-step-bar { opacity: 1; }
@media (max-width: 760px) {
  .snap-phone { width: min(100%, 15rem); }
  #photo { row-gap: 0; }
  #photo .spot-text { display: contents; }
  #photo .spot-n { justify-self: start; }
  #photo .spot-art { order: 1; margin-top: 2rem; justify-items: center; padding-left: 0; }
  #photo .snap-steps { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 3rem; }
  .snap-step-btn { flex-direction: column; justify-content: center; gap: .5rem; padding: .75rem .5rem; border-color: var(--line); font-size: .8125rem; line-height: 1.1rem; text-align: center; }
  .snap-steps li.on .snap-step-btn { border-color: var(--accent); }
  .snap-step-bar { left: .75rem; right: .75rem; }
}
/* Coach reads (Chapter 03): workout summary, then the Session read, then the Weekly read, from the app's stills (PACE.reads) */
.reads-phone { position: relative; width: min(100%, 18rem); }
.reads-phone::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -1.25rem; height: 3rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }
@media (max-width: 760px) { .reads-phone, .snap-phone { width: min(100%, 15rem); } }
/* frame phones: stacked full-screen stills, opacity set per frame from main.js; .fr-clip shows one block of a still (a read) */
.fphone .screen { aspect-ratio: 1280 / 2856; background: #000; }
.fphone .fr, .fr-clip { position: absolute; inset: 0; width: 100%; height: 100%; }
.fphone .fr { display: block; opacity: 0; }
.fphone .fr:first-child { opacity: 1; }
.fr-clip { clip-path: inset(var(--t) 0 var(--b) 0); }
.fr-clip img { display: block; width: 100%; height: 100%; opacity: 0; }
/* the coach thread's list viewport (rows 1724-2590 of the capture); a strip of the thread (no input in it) scrolls inside it */
#reads .fr-thread { clip-path: inset(60.364% 0 9.314% 0); }
/* photo logging phone (Chapter 02): the result sheet as its own layer (slides down), the dimmed Today above it, and two windows onto Today that scroll as one strip */
.fphone .fr-sheet { top: 29.97%; bottom: 0; height: auto; border-radius: calc(32 * var(--dp)) calc(32 * var(--dp)) 0 0; overflow: hidden; }
.fr-sheet img { position: absolute; left: 0; top: -42.8%; width: 100%; height: 142.8%; display: block; }
.fphone [data-f="p5bg"] { clip-path: inset(0 0 70.03% 0); }
.fphone .fr-win { top: 4.552%; bottom: 14.04%; height: auto; overflow: hidden; }
.fr-win img { position: absolute; left: 0; top: -5.591%; width: 100%; height: 122.84%; display: block; }
.fphone .ks-touch { z-index: 20; }
.fr-win[data-f="w6"] img { clip-path: inset(16.81% 0 0 0); }
/* the thread's top 24 dp fades under the header while something is scrolled above (main.js sets --fa from the scroll) */
#reads .fr-thread { -webkit-mask-image: linear-gradient(#000 60.364%, rgb(0 0 0 / calc(1 - var(--fa, 0))) 60.364%, #000 calc(60.364% + 2.52%)); mask-image: linear-gradient(#000 60.364%, rgb(0 0 0 / calc(1 - var(--fa, 0))) 60.364%, #000 calc(60.364% + 2.52%)); }
#reads .fr-thread img { opacity: 1; }
/* the workout summary is a sheet: it slides down off the thread (its top strip, the screen behind the sheet, crossfades) */
#reads [data-f="done"] { clip-path: inset(5.4% 0 2.5% 0); z-index: 3; opacity: 1; }
#reads [data-f="done-bottom"] { clip-path: inset(97.5% 0 0 0); z-index: 4; opacity: 1; }
#reads [data-f="done-top"] { clip-path: inset(0 0 94.6% 0); z-index: 3; opacity: 1; }
@media (max-width: 760px) {
  .spot { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .spot-flip .spot-text { order: 0; }
  .spot-text { max-width: none; }
}

/* ---------- Free tiles with illustrations, 3D hover ---------- */
.render { width: 100%; max-width: 11rem; height: auto; margin: -.5rem auto 1rem; display: block; overflow: visible; }
.render .laser { opacity: 0; transform-origin: 80px 85px; }
@keyframes laser { 0% { opacity: 0; transform: translateY(-14px) } 15% { opacity: 1 } 50% { transform: translateY(14px); opacity: 1 } 65% { opacity: 0 } 100% { opacity: 0; transform: translateY(-14px) } }
.render .bell { transform-origin: 80px 80px; }
@keyframes hoist { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-5px) rotate(-3deg) } }
.render .fast-arc { stroke: #ead9c2; stroke-dasharray: 238.8; stroke-dashoffset: 238.8; transition: stroke-dashoffset 2.2s var(--ease) .4s; }
.render .pulse { stroke-dasharray: 90; stroke-dashoffset: 90; }
@keyframes pulse-draw { 0% { stroke-dashoffset: 90; opacity: 1 } 60% { stroke-dashoffset: 0; opacity: 1 } 85% { opacity: 0 } 100% { stroke-dashoffset: 90; opacity: 0 } }
.illo { width: 5rem; height: 5rem; margin-bottom: 1.5rem; overflow: visible; }
.illo-sm { width: 4rem; height: 4rem; margin-bottom: 1rem; }
.illo .spot { fill: rgba(255,255,255,.05); transform-origin: 50% 55%; transition: transform .8s var(--ease); }
.illo .ink { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.illo .ink.thin { stroke-width: 2; }
.illo .ink.fill { fill: var(--accent); stroke: var(--accent); }
.illo .beam { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 52; stroke-dashoffset: 52; }
@keyframes beam { 0% { stroke-dashoffset: 52; opacity: 1 } 50% { stroke-dashoffset: 0; opacity: 1 } 100% { stroke-dashoffset: -52; opacity: 0 } }
.illo .motion { stroke: var(--accent); opacity: 0; }
@keyframes motion { 0% { opacity: 0; transform: translateY(4px) } 40% { opacity: 1 } 100% { opacity: 0; transform: translateY(-4px) } }
.illo .arc { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 32; stroke-dashoffset: 32; transition: stroke-dashoffset 1.4s var(--ease) .5s; }
.illo .pulse-line { stroke: var(--accent); stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.illo .line-up { stroke: var(--accent); stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.4s var(--ease) .6s; }
.illo .star { transform-origin: 53px 37px; animation: twinkle 2.6s var(--ease) infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.8); opacity: .6 } 50% { transform: scale(1.15); opacity: 1 } }

/* ---------- Dark gallery, fanned in 3D ---------- */
.gallery-wrap { background: var(--bg); color: #fff; overflow: clip; }
.gallery-wrap .sub { color: var(--dim); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; max-width: 64rem; align-items: start; }
.mini { position: relative; margin: 0; border-radius: 3.1rem; padding: .38rem; background: linear-gradient(160deg, #3b3b40 0%, #202023 28%, #121214 60%, #2c2c30 100%); box-shadow: 0 0 0 1px #000, 0 0 0 2px #3c3c41, 0 0 0 2.5px rgba(255,255,255,.1), 0 50px 100px -20px rgba(0,0,0,.85); }
.mini img { display: block; width: 100%; height: auto; border-radius: 2.72rem; box-shadow: 0 0 0 1px #000; }
.mini:nth-child(2) { margin-top: 3rem; }
/* reveal fans them out from a 3D arc into place */
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; max-width: 19rem; gap: 2.25rem; } .mini:nth-child(2) { margin-top: 0; } }

/* ---------- How it works: three cards, each with a live mini screen ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.step { position: relative; display: flex; flex-direction: column; border-radius: 1.5rem; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); }
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.step-body { padding: 1.25rem 1.5rem 1.5rem; }
.step-n { display: inline-grid; place-items: center; height: 1.75rem; padding: 0 .625rem; margin-bottom: .75rem; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 500; font-size: .8125rem; transition: transform .6s var(--spring); transition-delay: calc(var(--d, 0ms) + 500ms); }
.step:not(.in) .step-n { transform: scale(0); }
.step h3 { font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.step p { margin-top: .5rem; color: var(--dim); text-wrap: pretty; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; } }




/* real screenshots in the How it works cards */
.hw-shot { position: relative; aspect-ratio: 1; margin: .75rem .75rem 0; overflow: hidden; isolation: isolate; border-radius: 1.125rem; background: #1a1c29; box-shadow: 0 0 0 1px var(--line-strong), 0 18px 40px -24px rgba(0,0,0,.9); }
.hw-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* the product name stands out wherever it appears in copy */
.kz { color: var(--accent); font-weight: 600; }
.tagline-text .kz, .title .kz, .qa h3 .kz { font-weight: inherit; }

@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Close-ups, grouped by part of the app ---------- */
/* each group is a header (number, title, one line) directly above its two cards, left-aligned with them */
.closeups { display: grid; gap: 4rem; }
.cu-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.cu-group + .cu-group { padding-top: 4rem; border-top: 1px solid var(--line); }
.cu-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .375rem; align-items: center; }
.cu-n { display: inline-grid; place-items: center; height: 2rem; padding: 0 .75rem; border-radius: 9999px; background: var(--raised); border: 1px solid var(--line-strong); color: var(--fg); font-family: var(--mono); font-size: .875rem; }
.cu-head h3 { margin: 0; font-family: var(--display); font-size: 2.5rem; line-height: 2.75rem; font-weight: 800; letter-spacing: -.03em; }
.cu-head p { grid-column: 2; color: var(--dim); font-size: 1.125rem; line-height: 1.75rem; }
.cu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cu { margin: 0; }
.cu-cards.cu-one { grid-template-columns: minmax(0, 1fr); }
.cu-media { overflow: hidden; border-radius: 1.25rem; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 50px -28px rgba(0,0,0,.9); }
.cu-media img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.cu:hover .cu-media img { transform: scale(1.03); }
.cu figcaption { padding: 1rem .25rem 0; }
.cu figcaption b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.cu figcaption span { display: block; margin-top: .25rem; color: var(--dim); font-size: .9375rem; line-height: 1.375rem; text-wrap: pretty; }
@media (max-width: 860px) {
  .cu-group { gap: 1.25rem; }
  .cu-head { column-gap: .75rem; }
  .cu-head h3 { font-size: 1.875rem; line-height: 2.25rem; }
  .cu-head p { grid-column: 1 / -1; font-size: 1.0625rem; line-height: 1.625rem; }
}
@media (max-width: 560px) { .cu-cards { grid-template-columns: 1fr; } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
.plan { display: flex; flex-direction: column; padding: 2rem; border-radius: 1.5rem; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.plan-featured { position: relative; overflow: hidden; background: var(--fg); border: 1px solid var(--fg); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.sheen { display: none; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(0,0,0,.05) 80%, transparent 90%); animation: spin 9s linear infinite; pointer-events: none; }
.plan-featured > :not(.sheen) { position: relative; }
.plan h3 { font-family: var(--display); font-size: 1.75rem; line-height: 2rem; font-weight: 800; letter-spacing: -.03em; }
.price { display: flex; align-items: baseline; gap: .5rem; margin-top: .75rem; }
.price b { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -.03em; }
.price span { color: var(--dim); font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
.plan-featured .price span { color: rgba(14,13,11,.6); }
.plan-sub { margin-top: .75rem; color: var(--dim); }
.plan-featured .plan-sub { color: rgba(14,13,11,.62); }
.plan ul { margin: 1.5rem 0; display: grid; gap: .5rem; flex: 1; }
.plan li { position: relative; padding-left: 1.5rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .75rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.plan-featured li::before { border-color: #1a1a18; }
.plan-fine { margin: 0 0 1.5rem; color: rgba(14,13,11,.62); font-size: .875rem; line-height: 1.25rem; }
/* reveal: features tick in one by one, each check draws itself */
.plan li { opacity: 0; transform: translateX(-.5rem); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0ms) + 350ms + var(--i, 0) * 90ms); }
.plan li::before { clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease); transition-delay: calc(var(--d, 0ms) + 500ms + var(--i, 0) * 90ms); }
.plan.in li { opacity: 1; transform: none; }
.plan.in li::before { clip-path: inset(0); }
.plan li:nth-child(2) { --i: 1 } .plan li:nth-child(3) { --i: 2 } .plan li:nth-child(4) { --i: 3 } .plan li:nth-child(5) { --i: 4 }
.price b { font-variant-numeric: tabular-nums; }
.plan .btn { align-self: flex-start; }
.plan-featured .btn { background: var(--ink); color: var(--fg); box-shadow: none; }
.plan-featured .btn:hover { background: #000; color: var(--fg); }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--raised); transition: transform .5s var(--ease), background .3s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--fg); transform: translate(-50%, -50%); }
.plus::before { width: .625rem; height: 1.5px; } .plus::after { width: 1.5px; height: .625rem; }
details[open] .plus { transform: rotate(45deg); background: var(--accent-fill); }
details[open] .plus::before, details[open] .plus::after { background: var(--accent-ink); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--dim); padding-bottom: 1.5rem; max-width: 40rem; text-wrap: pretty; }

/* ---------- CTA ---------- */
.cta { padding: 4rem var(--gutter) 7rem; text-align: center; }
.cta-card { position: relative; isolation: isolate; overflow: clip; max-width: 68rem; margin: 0 auto; padding: 6rem var(--gutter); border-radius: 2rem; border: 1px solid var(--line-strong); background: var(--surface); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(44rem 22rem at 50% 115%, rgba(230,205,184,.12), transparent 70%); }
.cta-card > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.cta .sub, .cta .signup { margin-left: auto; margin-right: auto; }
.cta .signup { justify-content: center; }
.cta .fine { text-align: center; }

/* Launch countdown: split-flap tiles, each digit rolls up when it changes */
.countdown { margin-bottom: 3.5rem; --cd-fs: clamp(2.25rem, 7vw, 5.25rem); }
.cd-eyebrow { margin-bottom: 1.75rem; color: var(--fg); border-color: color-mix(in srgb, var(--accent) 42%, transparent); background: var(--raised); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 5%, transparent), 0 0 1.5rem -.25rem color-mix(in srgb, var(--accent) 40%, transparent); }
.cd-eyebrow time { color: var(--accent); }
.cd-dot { width: .1875rem; height: .1875rem; border-radius: 50%; background: var(--dim); }
.cd-row { display: flex; justify-content: center; align-items: stretch; gap: .75rem; }
.cd-unit { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1.5rem 1.125rem; min-width: calc(var(--cd-fs) * 1.24 + 3rem); border-radius: 1.5rem; border: 1px solid var(--line); background: var(--bg); box-shadow: inset 0 1px 0 var(--line), var(--shadow-sm); }
/* the flap seam: a hairline gap across the middle of the numerals, notched at both edges */
.cd-unit::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: calc(1.5rem + var(--cd-fs) * .52); height: 1px; background: var(--line-strong); }
.cd-unit::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: calc(1.5rem + var(--cd-fs) * .52 - .1875rem); height: .5rem; border-left: .1875rem solid var(--line-strong); border-right: .1875rem solid var(--line-strong); border-radius: 0 2px 2px 0 / 0 50% 50% 0; }
.cd-num { position: relative; z-index: 1; display: flex; font-family: var(--display); font-weight: 800; font-size: var(--cd-fs); line-height: 1; letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-d { position: relative; display: block; width: .62em; height: 1em; overflow: hidden; text-align: center; }
.cd-d i { position: absolute; inset: 0; font-style: normal; }
.cd-lab { margin-top: 1rem; color: var(--dim); font-family: var(--mono); font-size: .6875rem; line-height: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.cd-sep { align-self: flex-start; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--cd-fs) * .2); height: var(--cd-fs); margin-top: 1.5rem; }
.cd-sep::before, .cd-sep::after { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--line-strong); }
.cd-done { display: none; font-family: var(--display); font-weight: 800; font-size: var(--cd-fs); line-height: 1; letter-spacing: -.035em; }
.countdown.is-done .cd-row { display: none; }
.countdown.is-done .cd-done { display: block; }
@media (max-width: 760px) {
  .cd-row { gap: .5rem; }
  .cd-unit { flex: 1 1 0; min-width: 0; max-width: 7.5rem; padding: 1rem .25rem .875rem; border-radius: 1rem; }
  .cd-unit::before { top: calc(1rem + var(--cd-fs) * .52); }
  .cd-unit::after { top: calc(1rem + var(--cd-fs) * .52 - .1875rem); }
  .cd-lab { margin-top: .625rem; font-size: .625rem; letter-spacing: .1em; }
  .cd-sep { display: none; }
}

/* ---------- Hero highlights: one raised panel, three rows ----------
   Depth instead of rules: the panel sits on --surface with the site's shadow and a 1px top highlight (as .chapter and .kz-dialog);
   rows are separated by space, each led by a filled sand badge (the row's one accent moment, as .ch-n).
   Motion (no-preference and not paused only): the panel rises and settles, rows follow in a stagger, each glyph plays once,
   then a slow tint walks the rows. Reduced motion and Pause motion show the finished, static panel. */
.hl-list { --hl-r: 1.75rem; --hl-pad: .5rem; position: relative; margin-top: 2.5rem; max-width: 34rem; padding: var(--hl-pad); display: grid; gap: .25rem; border-radius: var(--hl-r); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--line), var(--shadow-md); }
.hl { position: relative; isolation: isolate; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 1.125rem; padding: 1.125rem 1.25rem; border-radius: calc(var(--hl-r) - var(--hl-pad)); text-align: left; }
/* the row surface: invisible at rest, used by hover and the slow cue */
.hl::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--raised); box-shadow: inset 0 1px 0 var(--line); opacity: 0; transition: opacity .3s var(--ease-out); }
.hl-n, .hl-arrow { display: none; }
.hl-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 9999px; background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 70%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ink) 18%, transparent), 0 0 1.25rem -.25rem color-mix(in srgb, var(--accent) 50%, transparent); transition: box-shadow .3s var(--ease-out); }
.hl-ic svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hl-ic svg * { transform-box: fill-box; transform-origin: center; }
.hl-tx b { display: block; font-family: var(--display); font-size: 1.375rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--fg); }
.hl-tx small { display: block; margin-top: .1875rem; color: var(--dim); font-size: 1rem; line-height: 1.375rem; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .hl:hover::before { opacity: 1; }
  .hl:hover .hl-ic { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 70%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ink) 18%, transparent), 0 0 1.75rem -.125rem color-mix(in srgb, var(--accent) 62%, transparent); }
}
/* stacked, the panel is reached by scrolling, so it should not wait for the hero's load-time cascade */
@media (max-width: 960px) { .hl-list { margin-left: auto; margin-right: auto; --d: 60ms !important; } }
@media (max-width: 560px) {
  .hl-list { --hl-r: 1.5rem; --hl-pad: .375rem; }
  .hl { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .875rem; padding: 1rem .875rem; }
  .hl-ic { width: 2.75rem; height: 2.75rem; }
  .hl-ic svg { width: 1.25rem; height: 1.25rem; }
  .hl-tx b { font-size: 1.25rem; line-height: 1.5rem; }
  .hl-tx small { font-size: .9375rem; line-height: 1.3125rem; }
}
/* Pause motion: the panel simply fades in, no travel */
html.paused .hl-list.reveal { transform: none; filter: none; transition: opacity .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  /* weighted entrance: a short rise with a little scale, settling on the site's damped spring */
  html:not(.paused) .hl-list.reveal { transform: translateY(1.75rem) scale(.97); filter: none; transform-origin: 50% 0; transition: opacity .6s var(--ease-out), transform 1.1s var(--ease-spring); transition-delay: var(--d, 0ms); }
  html:not(.paused) .hl-list.reveal.in { transform: none; }
  html:not(.paused) .hl-list.in .hl { --t: calc(var(--d, 0ms) + 140ms + var(--i) * 110ms); animation: hl-row .8s var(--ease-out) var(--t) both; }
  html:not(.paused) .hl-list.in .hl-ic { animation: hl-badge .7s var(--ease-spring) calc(var(--t) + 100ms) both; }
  .hl:nth-child(1) { --i: 0; } .hl:nth-child(2) { --i: 1; } .hl:nth-child(3) { --i: 2; }
  /* once per row: the camera's shutter blinks, the sparkle twinkles, the check draws in */
  html:not(.paused) .hl-list.in .hl:nth-child(1) circle { animation: hl-shutter .55s var(--ease-out) calc(var(--t) + 520ms) both; }
  html:not(.paused) .hl-list.in .hl:nth-child(2) path:first-child { animation: hl-twinkle .8s var(--ease-spring) calc(var(--t) + 480ms) both; }
  html:not(.paused) .hl-list.in .hl:nth-child(2) path:last-child { animation: hl-twinkle-s .7s var(--ease-spring) calc(var(--t) + 640ms) both; }
  html:not(.paused) .hl-list.in .hl:nth-child(3) path { stroke-dasharray: 24; animation: hl-draw .5s var(--ease-out) calc(var(--t) + 480ms) both; }
  /* a slow, quiet cue: the row surface walks the three rows, 4s each; it gives way to the pointer */
  html:not(.paused) .hl-list.in .hl::before { animation: hl-cue 12s ease-in-out calc(var(--d, 0ms) + 2.6s + var(--i) * 4s) infinite; }
  html:not(.paused) .hl-list.in:hover .hl::before { animation: none; }
  @media (hover: hover) and (pointer: fine) {
    html:not(.paused) .hl { transition: transform .3s var(--ease-out); }
    html:not(.paused) .hl:hover { transform: translateY(-2px); }
    html:not(.paused) .hl-ic { transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
    html:not(.paused) .hl:hover .hl-ic { transform: scale(1.05); }
  }
}
@keyframes hl-row { from { opacity: 0; transform: translateY(.875rem); } }
@keyframes hl-badge { from { transform: scale(.82); } }
@keyframes hl-shutter { 40% { transform: scale(.3); } 75% { transform: scale(1.1); } }
@keyframes hl-twinkle { from { opacity: .2; transform: scale(.55) rotate(-35deg); } }
@keyframes hl-twinkle-s { from { opacity: 0; transform: scale(.3) rotate(45deg); } }
@keyframes hl-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes hl-cue { 0%, 36%, 100% { opacity: 0; } 8%, 26% { opacity: .5; } }

/* ---------- Hero phone: a gentle drift, and it comes forward on hover ---------- */
.hero-stage .stage { --dx: 0px; --dy: 0px; --rz: 0deg; }
.hero-stage .stage::before { display: block; inset: 4% -16% 2%; background: radial-gradient(closest-side, rgba(234,217,194,.16), transparent 72%); filter: blur(18px); opacity: .45; transition: opacity .8s var(--ease), transform .8s var(--ease); }
/* position comes only from main.js (one spring for pointer drift and hover lift); no CSS transition on transform, which used to re-ease every frame and made the phone trail */
#device { transform: translate(var(--dx), var(--dy)); }
/* hover glow: a ready-made layer whose opacity fades, instead of animating the phone's large box-shadow (a full repaint every frame) */
.hero-stage .stage-float { position: relative; }
.hero-stage .stage-float::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3.35rem; pointer-events: none; box-shadow: 0 0 0 2.5px rgba(234,217,194,.25), 0 0 60px -10px rgba(234,217,194,.25); opacity: 0; transition: opacity .35s var(--ease-out); }
.hero-stage .stage:hover .stage-float::after { opacity: 1; }

.hero-stage .stage:hover::before { opacity: 1; transform: scale(1.08); }

/* ---------- Story: a day with the app. Chapters 01, 02, 03 and 07 open on one moment of it ---------- */
.beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; margin-bottom: 7rem; }
.story-section > .beat { max-width: calc(68rem + 2 * var(--gutter)); margin: 0 auto 7rem; padding: 0 var(--gutter); }
.beat-flip .beat-copy { order: 2; }
.beat-copy .chapter { margin-bottom: 0; }
/* where this moment sits in the day: 06:00 on the left, midnight on the right */
.beat-day { position: relative; height: 2px; max-width: 22rem; margin: 2rem .4375rem 1.875rem; border-radius: 2px; background: var(--line-strong); }
.beat-day::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit; background: var(--accent); transform-origin: left center; }
.beat-day i { position: absolute; left: var(--at); top: 50%; width: .5rem; height: .5rem; margin: -.25rem 0 0 -.25rem; border-radius: 50%; background: var(--bg); border: 1.5px solid rgba(255,255,255,.3); }
.beat-day i.past { background: var(--accent); border-color: var(--accent); }
.beat-day i.now { width: .875rem; height: .875rem; margin: -.4375rem 0 0 -.4375rem; border: 2px solid var(--accent); box-shadow: 0 0 0 5px rgba(234,217,194,.1); }
.nw { white-space: nowrap; }
.beat-line { max-width: 32rem; font-family: var(--display); font-size: clamp(1.625rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--fg); text-wrap: pretty; }
.app-chip { display: inline-flex; align-items: center; padding: .05em .45em .1em; margin: 0 .05em; border-radius: .45em; background: #1d1f2c; border: 1px solid rgba(255,255,255,.12); color: #f3f3f8; font-family: var(--font); font-size: .78em; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; vertical-align: .08em; box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); }
/* the real app screen (or the lunch photo) for each moment */
.beat-media { position: relative; isolation: isolate; }
.beat-media::before { content: ""; position: absolute; inset: -14% max(-12%, calc(-1 * var(--gutter))); z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, rgba(234,217,194,.1), transparent 72%); pointer-events: none; }
.beat-media::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.75rem; box-shadow: 0 48px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.beat-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 1.75rem; background: var(--surface); }
.beat-frame::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-strong); pointer-events: none; }
.beat-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* lunch: the photo, framed like the camera sees it */
.beat-photo .beat-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(14,13,11,.55)); pointer-events: none; }
.vf { position: absolute; z-index: 2; width: 2rem; height: 2rem; border: 0 solid var(--fg); }
.vf-tl { left: 1.25rem; top: 1.25rem; border-width: 2.5px 0 0 2.5px; border-top-left-radius: .625rem; }
.vf-tr { right: 1.25rem; top: 1.25rem; border-width: 2.5px 2.5px 0 0; border-top-right-radius: .625rem; }
.vf-bl { left: 1.25rem; bottom: 1.25rem; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: .625rem; }
.vf-br { right: 1.25rem; bottom: 1.25rem; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: .625rem; }
.beat-scan { position: absolute; z-index: 2; left: 2rem; right: 2rem; top: 14%; height: 72%; pointer-events: none; opacity: 0; }
.beat-scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 14px 3px rgba(243,239,230,.5); }
@media (prefers-reduced-motion: no-preference) {
  .beat-media.reveal { transform: none; filter: none; }
  .beat-frame { clip-path: inset(9% 7% round 1.75rem); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
  .beat-frame img { transform: scale(1.14); transition: transform 1.8s var(--ease) var(--d, 0ms); }
  .beat-media::after { opacity: 0; transition: opacity 1s var(--ease) .5s; }
  .beat-media.in .beat-frame { clip-path: inset(0 round 1.75rem); }
  .beat-media.in .beat-frame img { transform: none; }
  .beat-media.in::after { opacity: 1; }
  .beat-day::before { transform: scaleX(0); transition: transform 1.4s var(--ease) .35s; }
  .beat-copy.in .beat-day::before { transform: none; }
  .beat-day i.now { transform: scale(0); transition: transform .6s var(--spring) 1.3s; }
  .beat-copy.in .beat-day i.now { transform: none; animation: dotpulse 2.8s var(--ease) 2s infinite; }
  .beat-copy.in .app-chip { animation: chip-ping 1.4s var(--ease) 1.1s 2 backwards; }
  .beat-media.in .beat-scan { animation: beat-scan 4.8s var(--ease) 1.4s infinite; }
}
@keyframes chip-ping { 0% { box-shadow: 0 0 0 0 rgba(234,217,194,.55), 0 8px 20px -10px rgba(0,0,0,.8); } 100% { box-shadow: 0 0 0 .55em rgba(234,217,194,0), 0 8px 20px -10px rgba(0,0,0,.8); } }
@keyframes beat-scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 55% { opacity: 1; transform: translateY(100%); } 65%, 100% { opacity: 0; transform: translateY(100%); } }
@media (max-width: 900px) {
  .beat, .story-section > .beat { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; margin-bottom: 4.5rem; }
  .beat-flip .beat-copy { order: 0; }
  .beat-line { max-width: 36rem; font-size: clamp(1.5rem, 6.4vw, 2rem); line-height: 1.2; }
  .beat-day { max-width: none; margin: 1.75rem .4375rem 1.625rem; }
  .beat-media::before { inset: -10% 0; }
}
@media (max-width: 560px) {
  .beat-frame, .beat-media::after { border-radius: 1.25rem; }
  .vf { width: 1.5rem; height: 1.5rem; }
  .vf-tl, .vf-bl { left: .875rem; } .vf-tr, .vf-br { right: .875rem; } .vf-tl, .vf-tr { top: .875rem; } .vf-bl, .vf-br { bottom: .875rem; }
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  .beat-frame { clip-path: inset(9% 7% round 1.25rem); }
  .beat-media.in .beat-frame { clip-path: inset(0 round 1.25rem); }
}
/* Chapter 01: the coach sheet opens over the real Today screen (shared .ks-* app UI below). main.js plays it while on screen. */
.cphone-media { justify-self: center; width: 19rem; }
.cphone-media::after { display: none; }
.cphone .screen { aspect-ratio: 1280 / 2856; }
@media (max-width: 900px) {
  .cphone-media { width: min(78vw, 19rem); }
}
/* chapter pills: the sand badge carries the number */
/* Larger and weightier than the other eyebrows: these pills carry the page's chapter structure.
   Layers: ::before is the glow halo (sits behind the pill, its opacity breathes), .ch-sheen clips a white light streak to the pill. */
.chapter { position: relative; isolation: isolate; gap: .875rem; padding: .375rem 1.375rem .375rem .375rem; margin-bottom: 1.5rem; color: var(--fg); font-size: 1rem; line-height: 1.5rem; letter-spacing: .08em; border-color: color-mix(in srgb, var(--accent) 42%, transparent); background: var(--raised); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 5%, transparent), 0 14px 36px -16px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.07); }
.chapter::before { content: ""; position: absolute; inset: -1px; z-index: -1; width: auto; height: auto; border-radius: inherit; background: none; box-shadow: 0 0 1.5rem .125rem color-mix(in srgb, var(--accent) 30%, transparent); opacity: .55; animation: none; pointer-events: none; }
.ch-n { position: relative; display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; white-space: nowrap; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 70%, transparent), 0 0 1.25rem -.25rem color-mix(in srgb, var(--accent) 55%, transparent); }
.ch-name { position: relative; font-weight: 500; white-space: nowrap; }
/* the first pill people meet: a brighter rim and a stronger halo */
#coach .chapter { border-color: color-mix(in srgb, var(--accent) 58%, transparent); }
#coach .chapter::before { box-shadow: 0 0 2rem .25rem color-mix(in srgb, var(--accent) 34%, transparent); opacity: .7; }
.ch-sheen { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; }
@media (max-width: 560px) {
  .chapter { gap: .625rem; padding: .3125rem 1rem .3125rem .3125rem; font-size: .875rem; line-height: 1.25rem; letter-spacing: .06em; }
  .ch-n { height: 2rem; padding: 0 .75rem; }
}
/* Motion (no reduced-motion preference, Pause motion off), only while the pill is on screen (.ch-live from main.js) and revealed (.in):
   ch-breathe  4.8s ease-in-out, infinite: the halo's opacity rises and settles
   ch-sweep    6s cycle: a white streak crosses the pill in the first 1.3s, then rests off-pill; first pass 1.4s after reveal, 0.5s on Chapter 01.
               It travels -75% to 75%: the streak is the middle 40% of the layer, so that is just off-pill at both ends and the eased
               start and finish happen at the pill's edges instead of off it (at -100%/100% only a fast ~0.4s middle was ever seen).
   Removing either condition removes the animation, so reduced motion, Pause motion and off-screen pills show the static halo and no streak. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) .ch-sheen::before { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.05) 40%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.05) 60%, transparent 70%); }
  html:not(.paused) :is(.in .chapter, .chapter.in).ch-live::before { animation: ch-breathe 4.8s ease-in-out infinite; }
  html:not(.paused) :is(.in .chapter, .chapter.in).ch-live .ch-sheen::before { animation: ch-sweep 6s linear 1.4s infinite both; will-change: transform; }
  html:not(.paused) #coach :is(.in .chapter, .chapter.in).ch-live .ch-sheen::before { animation-delay: .5s; }
}
@keyframes ch-breathe { 0%, 100% { opacity: var(--ch-rest, .55); } 50% { opacity: 1; } }
@keyframes ch-sweep {
  0%    { transform: translateX(-75%); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  21.7% { transform: translateX(75%); }
  100%  { transform: translateX(75%); }
}
#coach .chapter { --ch-rest: .7; }
/* Hero launch pill ("Coming soon to Android"): the chapter-pill treatment (glow halo, breathing, sweep) with an Android badge.
   The robot is drawn in ink on the sand badge, not in Android green, which the chrome rules keep out. A sand dot pings like a live signal. */
/* toned down a step from the chapter pills (owner: "not so prominent"): smaller type, softer rim, dimmer halo and sweep */
.launch-pill { --ch-rest: .35; margin-bottom: 1.5rem; gap: .625rem; padding: .3125rem 1rem .3125rem .3125rem; font-size: .875rem; line-height: 1.25rem; letter-spacing: .07em; border-color: color-mix(in srgb, var(--accent) 34%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 3%, transparent), 0 10px 28px -16px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.06); }
.launch-pill .lp-badge { height: 1.875rem; }
.launch-pill .ch-sheen::before { opacity: .55; }
.launch-pill::before { box-shadow: 0 0 1.25rem 0 color-mix(in srgb, var(--accent) 22%, transparent); opacity: .35; }
.lp-badge { gap: .5rem; padding: 0 .875rem 0 .625rem; letter-spacing: .06em; }
.lp-bot { width: 1.125rem; height: 1.125rem; flex: none; }
.lp-bot path:first-child { fill: currentColor; }
.lp-ant { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lp-eye { fill: var(--accent); }
.lp-ping { position: relative; width: .5rem; height: .5rem; margin-left: -.125rem; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 .5rem color-mix(in srgb, var(--accent) 70%, transparent); }
.lp-ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--accent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) :is(.in .launch-pill, .launch-pill.in).ch-live .ch-sheen::before { animation-delay: .6s; }
  html:not(.paused) :is(.in .launch-pill, .launch-pill.in).ch-live .lp-ping::after { animation: lp-ping 2.4s cubic-bezier(.23, 1, .32, 1) infinite; }
  html:not(.paused) :is(.in .launch-pill, .launch-pill.in) .lp-ant { transform-origin: 12px 9px; animation: lp-wave 6s ease-in-out 1.6s infinite; }
}
@keyframes lp-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes lp-wave { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(6deg); } }
/* chapters that open on a moment of the day: the time sits on its own line above the day track, so it reads as the label for the lit dot */
.ch-when { display: flex; align-items: baseline; gap: .875rem; margin: 2rem 0 0; line-height: 1; }
.ch-when time { color: var(--fg); font: 800 2.5rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ch-when span { color: var(--fg); font: 500 1.125rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ch-when + .beat-day { margin-top: 1.375rem; }
@media (max-width: 560px) {
  .ch-when { margin-top: 1.75rem; gap: .75rem; }
  .ch-when time { font-size: 2rem; }
  .ch-when span { font-size: 1rem; }
}

/* the chapter index, fixed on wide screens */
.story-rail { position: fixed; left: 1.5rem; top: 50%; z-index: 40; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.story-rail.on { opacity: 1; pointer-events: auto; }
.story-rail ol { position: relative; display: grid; gap: .875rem; }
.story-rail ol::before { content: ""; position: absolute; left: .21875rem; top: .375rem; bottom: .375rem; width: 1px; background: var(--line-strong); }
.story-rail a { position: relative; display: flex; align-items: center; gap: .625rem; color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; }
.story-rail i { position: relative; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--spring); }
.story-rail em { font-style: normal; opacity: 0; transform: translateX(-.25rem); transition: opacity .35s var(--ease), transform .4s var(--ease); white-space: nowrap; }
.story-rail a:hover em { opacity: 1; transform: none; }
.story-rail a.on { color: var(--fg); }
.story-rail a.on i { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.story-rail a.done i { background: var(--dim); border-color: var(--dim); }
@media (max-width: 1279px) { .story-rail { display: none; } }

/* ---------- Free features: real photos ---------- */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ptile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.5rem; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.ptile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.ptile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ptile-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.85) brightness(.92); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.ptile.in .ptile-media img { transform: scale(1); }
.ptile:hover .ptile-media img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.ptile-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -60px 50px -40px var(--surface); pointer-events: none; }
.ptile-tx { padding: 1rem 1.375rem 1.5rem; }
.ptile-free { display: inline-block; padding: .2rem .55rem; border-radius: 9999px; border: 1px solid rgba(234,217,194,.3); color: var(--accent); font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.ptile h3 { margin-top: .75rem; font-family: var(--display); font-size: 1.25rem; line-height: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.ptile p { margin-top: .5rem; color: var(--dim); font-size: .9375rem; line-height: 1.375rem; text-wrap: pretty; }
@media (max-width: 960px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ptiles { grid-template-columns: 1fr; } }

/* ---------- Plans: billing switch and premium cards ---------- */
.bill { position: relative; display: grid; width: fit-content; margin-left: auto; margin-right: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.75rem; padding: .3125rem; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--line); }
.bill button { position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer; padding: .625rem 1.25rem; border-radius: 9999px; color: var(--dim); font: 600 .9375rem/1 var(--font); transition: color .4s var(--ease); }
.bill button[aria-checked="true"] { color: var(--accent-ink); }
.bill button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bill-thumb { position: absolute; top: .3125rem; bottom: .3125rem; left: .3125rem; width: calc((100% - .625rem) / 3); border-radius: 9999px; background: var(--fg); box-shadow: 0 6px 18px -8px rgba(243,239,230,.45); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .55s var(--spring); }
.plans { align-items: stretch; }
.plan { position: relative; padding: 2.25rem 2rem 2rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -40px rgba(0,0,0,.9); }
.plan::before { content: ""; position: absolute; inset: .375rem; border-radius: 1.125rem; border: 1px solid rgba(255,255,255,.04); pointer-events: none; }
.plan-featured::before { border-color: rgba(14,13,11,.08); }
.plan-featured { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(234,217,194,.5), 0 0 80px -20px rgba(234,217,194,.25); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan-mark { margin-right: .4rem; font-size: .8em; vertical-align: .1em; }
.plan-tag { padding: .3rem .65rem; border-radius: 9999px; border: 1px solid var(--line-strong); color: var(--dim); font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.plan-featured .plan-tag { background: var(--ink); border-color: var(--ink); color: var(--fg); }
.price { margin-top: 1.25rem; }
.price b { font-size: 3.25rem; display: inline-block; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.price b.swap { opacity: 0; transform: translateY(.35em); }
.price-note { min-height: 1.5rem; margin-top: .5rem; color: var(--dim); font-size: .875rem; line-height: 1.25rem; }
.plan-featured .price-note { color: rgba(14,13,11,.62); }
.save { display: inline-block; margin: 0 .25rem; padding: .1rem .5rem; border-radius: 9999px; background: var(--ink); color: var(--accent); font-style: normal; font-weight: 600; font-size: .75rem; }
.save[hidden] { display: none; }
.ph { display: block; margin-top: .25rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.plan-sub { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.plan-featured .plan-sub { border-color: rgba(14,13,11,.1); }
@media (max-width: 560px) { .bill { display: grid; width: 100%; } .bill button { padding: .625rem .5rem; font-size: .875rem; } .price b { font-size: 2.75rem; } }

/* ---------- FAQ as question cards ---------- */
.qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.qa:last-child { grid-column: span 2; display: grid; grid-template-columns: auto minmax(0, 18rem) minmax(0, 1fr); column-gap: 1.5rem; align-items: center; border-color: rgba(234,217,194,.3); }
.qa:last-child .qa-n { margin: 0; }
.qa:last-child p { margin: 0; }
/* the launch card shares the last row with the card before it: two columns wide at 3 columns, one at 2 columns */
@media (max-width: 960px) { .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qa:last-child { grid-column: auto; display: block; } .qa:last-child .qa-n { margin-bottom: 1rem; } .qa:last-child p { margin-top: .625rem; } }
@media (max-width: 640px) { .qa-grid { grid-template-columns: 1fr; } .qa:last-child { display: block; } .qa:last-child .qa-n { margin-bottom: 1rem; } .qa:last-child p { margin-top: .625rem; } }
.qa { display: block; padding: 1.5rem; border-radius: 1.25rem; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.qa:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.qa-n { display: inline-grid; place-items: center; height: 1.5rem; padding: 0 .5rem; margin-bottom: 1rem; border-radius: 9999px; background: var(--raised); color: var(--dim); font-family: var(--mono); font-size: .75rem; }
.qa h3 { font-family: var(--display); font-size: 1.1875rem; line-height: 1.5rem; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.qa p { margin-top: .625rem; color: var(--dim); font-size: .9375rem; line-height: 1.5rem; text-wrap: pretty; }
.qa-more { margin-top: 1rem; color: var(--dim); }
.qa-more a { color: var(--fg); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--band); border-top: 1px solid var(--line); padding: 3rem var(--gutter) max(2rem, env(safe-area-inset-bottom)); }
.footer-inner { max-width: 68rem; margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer-brand p { margin-top: .75rem; font-size: .875rem; line-height: 1.25rem; max-width: 16rem; }
.footer-cols { display: flex; gap: 4rem; }
.footer-cols .foot-h { font-size: .875rem; line-height: 1.25rem; font-weight: 600; margin-bottom: .75rem; }
.footer-cols a { position: relative; display: block; width: max-content; color: var(--dim); text-decoration: none; font-size: .875rem; line-height: 1.25rem; padding: .25rem 0; transition: color .3s var(--ease); }
.footer-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.footer-cols a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-cols a:hover { color: var(--fg); }
.copyright { max-width: 68rem; margin: 3rem auto 0; font-size: .75rem; line-height: 1rem; }

/* ---------- Legal and 404 ---------- */
.prose { max-width: 42.5rem; margin: 0 auto; padding: 8rem var(--gutter) 5rem; }
.prose h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -.03em; }
.prose h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.02em; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--dim); margin-top: .75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose a { color: var(--fg); }
.notfound { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: var(--gutter); gap: 1rem; }
.notfound .btn { justify-self: center; margin-top: 1rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(4rem); filter: blur(12px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-parallax] { transition-property: opacity, filter; }
.stage.reveal { transform: none; }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mini.reveal, .display .sw, .title.words .wd { transform: none !important; filter: none !important; transition: opacity .3s ease; }
  .display .sw, .title.words .wd { opacity: 1; }
  .device, .device-story, [data-tilt], [data-parallax], .step-n { transform: none !important; }
  .stage-float, .orb, .sheen, .scan-line, .illo *, .panel.active .shot, .panel.active .ov, .panel.active .sweep::after { animation: none !important; }
  .ov { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .zoom.in .zoom-inner, .eyebrow::before, .screen-dots i.on, .fo-inner { animation: none; }
  .fo { transform: none !important; }
  .uline path, .display.on .uline path { stroke-dashoffset: 0; animation: none; }
  .nav.hide { transform: none; opacity: 1; }
  .marquee { mask: none; -webkit-mask: none; }
  .menu a { transform: none; transition: opacity .2s ease; }
  .tagline-text .w { transition: opacity .2s ease; }
  .steps-line i, .panel, .cap, .pin, .seq { transition: none; }
  .pin, .seq { opacity: 1; transform: none; }
  .plan li::before { clip-path: none !important; transition: none; }
  .hw-shot * { transition: none !important; }
  .hw-item { opacity: 1; transform: none; }
  .plan li { opacity: 1; transform: none; transition: none; }
  .cursor-ring { display: none; }
  #device, .hl, .hl::after, .bill-thumb, .price b, .ptile-media img { transition: none !important; }
  .ptile-media img { transform: none !important; }
  .cursor-light { display: none; }
  .hero-copy { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-inner, .menu { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,.3); --line-strong: rgba(255,255,255,.5); --dim: #c5c5d4; }
}

/* ---------- Pause motion (WCAG 2.2.2): one switch stops everything that moves on its own ---------- */
.motion-toggle { position: fixed; left: 1rem; bottom: 1rem; z-index: 65; display: inline-flex; align-items: center; gap: .45rem; height: 2.25rem; padding: 0 .875rem 0 .7rem; border-radius: 9999px; border: 1px solid var(--line-strong); background: rgba(20,19,15,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--dim); font: 500 .8125rem/1 var(--font); cursor: pointer; transition: color .3s var(--ease), border-color .3s var(--ease); }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--fg); border-color: rgba(234,217,194,.5); }
.motion-toggle svg { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .mt-play { display: none; fill: currentColor; stroke: none; }
html.paused .motion-toggle .mt-play { display: block; }
html.paused .motion-toggle .mt-pause { display: none; }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 560px) { .motion-toggle { left: .75rem; bottom: .75rem; height: 2.25rem; } }

/* ---------- Legal pages ---------- */
.legal-page { background: var(--bg); }
.legal-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; max-width: 68rem; margin: 0 auto; padding: 1.25rem var(--gutter); background: rgba(14,13,11,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.legal-back { color: var(--dim); font-size: .9375rem; text-decoration: none; padding: .5rem 0; }
.legal-back:hover { color: var(--fg); }
.legal { padding: 2rem var(--gutter) 5rem; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 42.5rem; margin: 0 auto; }
.legal-tabs a { padding: .5rem .95rem; border-radius: 9999px; border: 1px solid var(--line-strong); color: var(--dim); font-size: .875rem; text-decoration: none; transition: color .3s var(--ease), border-color .3s var(--ease); }
.legal-tabs a:hover { color: var(--fg); }
.legal-tabs a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.legal .prose { padding: 3rem 0 0; }
.legal .prose h1 { font-family: var(--display); font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.05; font-weight: 800; }
.legal-meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-toc { margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.legal-toc p { margin: 0 0 .5rem; color: var(--fg); font-weight: 600; }
.legal-toc ol { columns: 2 12rem; column-gap: 2rem; list-style: decimal; padding-left: 1.25rem; }
.legal-toc li { margin: 0; padding: .2rem 0; break-inside: avoid; }
.legal-toc a { color: var(--dim); text-underline-offset: 3px; }
.legal-toc a:hover { color: var(--fg); }
.legal .prose section { scroll-margin-top: 6rem; }
.legal .prose h2 { font-family: var(--display); font-size: 1.375rem; font-weight: 700; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal .prose h3 { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; color: var(--fg); margin-top: 1.75rem; }
.legal .prose strong { color: var(--fg); font-weight: 600; }
.legal .prose code { font-family: var(--mono); font-size: .875em; color: var(--fg); }
.tbc { padding: 0 .3em; border-radius: .3em; background: rgba(234,217,194,.14); color: var(--accent); font-family: var(--mono); font-size: .85em; }
.legal-dl { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; margin-top: 2rem; border-top: 1px solid var(--line); }
.legal-dl dt, .legal-dl dd { padding: .875rem 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { color: var(--fg); font-weight: 600; }
.legal-dl dd { margin: 0; color: var(--dim); }
.legal-foot .copyright { margin-top: 0; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl dt { padding-bottom: 0; border-bottom: 0; } }
/* consent line under the email forms */
.consent { margin-top: .75rem; color: var(--dim); font-size: .8125rem; line-height: 1.25rem; }
.consent a { color: var(--fg); text-underline-offset: 3px; }
.cta .consent { text-align: center; }
/* make room for the form message (success or error) so it never sits on top of the consent line */
.signup:has(.form-msg:not(:empty)) + .consent { margin-top: 2.25rem; }
@media (max-width: 560px) { .signup:has(.form-msg:not(:empty)) + .consent { margin-top: 3.5rem; } }
.footer-legal { max-width: 68rem; margin: 1.5rem auto 0; color: var(--dim); font-size: .75rem; line-height: 1.125rem; }

/* ---------- Premium: one story, told lightly ----------
   .pm-badge marks the paid features where they appear (coach, photo logging, coach notes); .pb is the one Premium summary band,
   just before the free basics; the Premium plan card leads the Plans grid. Sand accent and the site's soft glow, no gradients. */
/* Premium pill: filled sand with ink text so the paid features read first; a soft sand glow and a twinkling star */
.pm-badge { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .4375rem; margin: 0 0 1rem; padding: .375rem .875rem .375rem .75rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--fg) 55%, var(--accent)); background: var(--accent); color: var(--accent-ink); font: 600 .75rem/1rem var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 85%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 1.5rem -.125rem color-mix(in srgb, var(--accent) 55%, transparent); }
.pm-badge .pm-star { display: inline-block; font-size: .9375rem; letter-spacing: 0; }
/* the one in the Premium band is the loudest: larger, a wider ring, a breathing halo and the same light sweep as the chapter pills */
.pm-hero { margin-bottom: 1.25rem; padding: .5rem 1.125rem .5rem 1rem; gap: .5rem; font-size: .875rem; line-height: 1.25rem; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 90%, transparent), 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent), 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.pm-hero .pm-star { font-size: 1.0625rem; }
.pm-hero::before { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; box-shadow: 0 0 2.25rem .375rem color-mix(in srgb, var(--accent) 42%, transparent); opacity: .6; pointer-events: none; }
.pm-hero .ch-sheen::before { background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--fg) 30%, transparent) 42%, color-mix(in srgb, var(--fg) 85%, transparent) 50%, color-mix(in srgb, var(--fg) 30%, transparent) 58%, transparent 70%) !important; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) .in .pm-badge .pm-star, html:not(.paused) .pm-badge.in .pm-star { animation: pm-twinkle 3.6s ease-in-out infinite; }
  html:not(.paused) .in .pm-hero::before { animation: ch-breathe 4.8s ease-in-out infinite; --ch-rest: .6; }
  html:not(.paused) .in .pm-hero .ch-sheen::before { animation: ch-sweep 5s linear .8s infinite both; will-change: transform; }
}
@keyframes pm-twinkle { 0%, 70%, 100% { transform: scale(1) rotate(0); opacity: 1; } 80% { transform: scale(1.3) rotate(20deg); opacity: .85; } 90% { transform: scale(.9) rotate(0); opacity: 1; } }
.section-head .pm-badge { margin-bottom: 1.25rem; }
.spot-text .pm-badge { margin-bottom: 1.25rem; }

.premium { padding-top: 6rem; padding-bottom: 3rem; }
.pb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: center; padding: 3.5rem; border-radius: 2rem; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 6px color-mix(in srgb, var(--accent) 4%, transparent), 0 40px 90px -40px rgba(0,0,0,.9), 0 0 90px -30px color-mix(in srgb, var(--accent) 30%, transparent); }
.pb-title { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.pb-sub { margin-top: 1rem; max-width: 28rem; color: var(--dim); font-size: 1.125rem; line-height: 1.75rem; text-wrap: pretty; }
.pb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.pb-link { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color .25s var(--ease-out); }
.pb-link:hover { text-decoration-color: var(--accent); }
/* the four Premium features sit inside one large bone box with ink text, the same pairing as the site's primary buttons */
.pb-list { display: grid; gap: .25rem; padding: 1.25rem; border-radius: 1.75rem; background: var(--accent-fill); color: var(--accent-ink); box-shadow: inset 0 1px 0 var(--fg), 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -24px color-mix(in srgb, var(--accent) 45%, transparent), 0 40px 80px -40px rgba(0,0,0,.8); }
.pb-list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1rem; border-radius: 1.125rem; }
.pb-ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: var(--accent-ink); color: var(--accent-fill); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent-fill) 18%, transparent), 0 6px 14px -6px rgba(0,0,0,.45); }
.pb-ic svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pb-tx b { display: block; font-family: var(--display); font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.pb-list .pb-tx small { color: color-mix(in srgb, var(--accent-ink) 64%, transparent); }
.pb-tx small { display: block; margin-top: .125rem; color: var(--dim); font-size: .9375rem; line-height: 1.375rem; text-wrap: pretty; }
@media (max-width: 960px) { .pb { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem; } }
@media (max-width: 560px) {
  .premium { padding-top: 4.5rem; padding-bottom: 1.5rem; }
  .pb { padding: 2rem 1.25rem 1.25rem; border-radius: 1.5rem; gap: 2rem; }
  .pb-list { padding: .75rem; border-radius: 1.375rem; }
  .pb-list li { padding: .875rem .75rem; gap: .875rem; }
  .pb-actions .btn { flex: 1 0 100%; }
  .pb-actions { justify-content: center; }
}

/* Free basics: reassurance, not the offer. A smaller plain heading and compact rows with a small photo. */
.title-sm { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.12; }
.free-basics { padding-top: 4rem; padding-bottom: 5rem; }
.free-basics .section-head { margin-bottom: 2rem; }
.free-basics .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 52rem; }
.free-basics .ptile { flex-direction: row; align-items: center; gap: 1rem; padding: .75rem; border-radius: 1.25rem; }
.free-basics .ptile:hover { transform: none; box-shadow: none; }
.free-basics .ptile-media { flex: none; width: 4.5rem; aspect-ratio: 1; border-radius: .75rem; }
.free-basics .ptile-media::after { display: none; }
.free-basics .ptile-tx { padding: 0 .5rem 0 0; }
.free-basics .ptile h3 { margin: 0; font-size: 1.0625rem; line-height: 1.375rem; }
.free-basics .ptile p { margin-top: .25rem; font-size: .875rem; line-height: 1.25rem; }
@media (max-width: 680px) { .free-basics .ptiles { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .free-basics { padding-top: 3.5rem; padding-bottom: 4rem; } .free-basics .section-head { margin-bottom: 1.5rem; } }

/* Plans: Premium leads (wider, taller, glowing, first on phones); Free stays plain */
.plans { max-width: 56rem; }
@media (min-width: 681px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); align-items: center; } }
.plan:not(.plan-featured) { box-shadow: none; }
.plan-featured { padding: 2.75rem 2.5rem 2.5rem; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 7px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 110px -20px color-mix(in srgb, var(--accent) 38%, transparent); }
.plan-featured .plan-tag { padding: .4375rem .875rem; font-size: .8125rem; line-height: 1rem; font-weight: 500; }
.plan-featured .plan-tag::before { content: "✦ "; }
@media (max-width: 680px) { .plan-featured { order: -1; padding: 2.25rem 1.75rem 2rem; } }
.plan-top { flex-wrap: wrap; row-gap: .5rem; }
@media (max-width: 560px) { .plan-featured .plan-tag { padding: .375rem .75rem; font-size: .75rem; letter-spacing: .06em; } }

/* hero phone polish sweep */
/* A soft colourless light band passes over the hero screen from top left to bottom right, like a cloth polishing glass.
   Clipped by .screen (overflow hidden, rounded). Only runs with motion allowed and Pause motion off; otherwise nothing is drawn.
   The layer is 3x the screen wide but only one screen tall, and plain alpha white (identical to screen blending on white, but cheaper). */
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) #device .panels::after {
    content: ""; position: absolute; left: -100%; top: 0; width: 300%; height: 100%;
    z-index: 5; pointer-events: none; will-change: transform;
    background: linear-gradient(118deg, transparent 0%, rgba(255,255,255,0.000) 36%, rgba(255,255,255,0.002) 37%, rgba(255,255,255,0.004) 38%, rgba(255,255,255,0.006) 39%, rgba(255,255,255,0.009) 40%, rgba(255,255,255,0.014) 41%, rgba(255,255,255,0.019) 42%, rgba(255,255,255,0.026) 43%, rgba(255,255,255,0.035) 44%, rgba(255,255,255,0.046) 45%, rgba(255,255,255,0.055) 45.5%, rgba(255,255,255,0.067) 46%, rgba(255,255,255,0.086) 46.5%, rgba(255,255,255,0.113) 47%, rgba(255,255,255,0.150) 47.5%, rgba(255,255,255,0.195) 48%, rgba(255,255,255,0.243) 48.5%, rgba(255,255,255,0.287) 49%, rgba(255,255,255,0.319) 49.5%, rgba(255,255,255,0.330) 50%, rgba(255,255,255,0.319) 50.5%, rgba(255,255,255,0.287) 51%, rgba(255,255,255,0.243) 51.5%, rgba(255,255,255,0.195) 52%, rgba(255,255,255,0.150) 52.5%, rgba(255,255,255,0.113) 53%, rgba(255,255,255,0.086) 53.5%, rgba(255,255,255,0.067) 54%, rgba(255,255,255,0.055) 54.5%, rgba(255,255,255,0.046) 55%, rgba(255,255,255,0.040) 55.5%, rgba(255,255,255,0.035) 56%, rgba(255,255,255,0.026) 57%, rgba(255,255,255,0.019) 58%, rgba(255,255,255,0.014) 59%, rgba(255,255,255,0.009) 60%, rgba(255,255,255,0.006) 61%, rgba(255,255,255,0.004) 62%, rgba(255,255,255,0.002) 63%, rgba(255,255,255,0.000) 64%, transparent 100%);
    transform: translateX(-46%);
    animation: kz-polish 4s linear .9s infinite both;
  }
}
@keyframes kz-polish {
  0%     { transform: translateX(-46%); animation-timing-function: cubic-bezier(.4,.15,.6,.85); }
  37.5%  { transform: translateX(46%); }
  100%   { transform: translateX(46%); }
}

/* mobile finalisation */
/* Appended as one block: overrides only, no earlier rule is edited. Desktop (wider than 960px) is untouched
   except the stacked email form, which only ever appears there with a long address (.is-long). */

/* Email form, stacked (phones, or a long address on any width): the stadium radius of a one-row pill would cut across the
   button's corners on a two-row box. Use a card radius that nests the pill button concentrically:
   outer radius = button radius (half of 2.75rem) + inner padding (.375rem) + border (1px). Equal insets on all sides. */
.signup.is-long { border-radius: calc(1.375rem + .375rem + 1px); row-gap: .375rem; }
.signup.is-long::before { display: block; margin: 0 0 0 .75rem; }
.signup.is-long input { flex: 1 1 0; height: 2.75rem; padding: 0 .75rem 0 .125rem; }
.signup.is-long .btn { flex: 1 0 100%; width: 100%; }
@media (max-width: 560px) {
  .signup { border-radius: calc(1.375rem + .375rem + 1px); row-gap: .375rem; }
  .signup::before { display: block; margin: 0 0 0 .75rem; }
  .signup input { flex: 1 1 0; height: 2.75rem; padding: 0 .75rem 0 .125rem; }
  .signup .btn { flex: 1 0 100%; width: 100%; }
  /* the hero sits centred on phones, so the success or error line under the form centres with it */
  .hero .form-msg, .cta .form-msg { left: 0; right: 0; text-align: center; }
}

/* Hero on phones and small tablets (where it stacks): eyebrow, title, then the phone, then the rest of the copy.
   .hero-copy steps out of the box tree so its children and the phone share one column; DOM and reading order are unchanged. */
@media (max-width: 960px) {
  .hero { gap: 0; padding-top: 5.75rem; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; }
  .hero-copy > .display { order: 2; max-width: 42.5rem; }
  .hero-stage { order: 3; margin-top: 2rem; }
  .hero-copy > .lede { order: 4; margin-top: 2.75rem; }
  .hero-copy > .hl-list { order: 5; width: 100%; margin-top: 2rem; }
  .hero-copy > .signup { order: 6; width: 100%; }
  .hero-copy > .consent { order: 7; max-width: 32rem; }
  /* reached by scrolling here, so the form follows the panel without the desktop load-time delays */
  .hero-copy > .signup { --d: 140ms !important; }
  .hero-copy > .consent { --d: 200ms !important; }
}
@media (max-width: 560px) {
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero-stage { margin-top: 1.75rem; }
  .hero-stage .stage { width: min(78vw, 20rem); }
  .hero-copy > .lede { margin-top: 2.5rem; }
  .hero .signup { margin-top: 1.5rem; }
  .hero-copy > .hl-list { margin-top: 1.75rem; }
  .hero .consent { margin-top: 1rem; }
  .hero .signup:has(.form-msg:not(:empty)) + .consent { margin-top: 3rem; }
}
@media (max-width: 760px) { .hero { padding-top: 4.75rem; } }
@media (max-width: 560px) { .hero { padding-top: 4.5rem; } }
/* short phones: a little less air so the top of the phone shows under the title */
@media (max-width: 560px) and (max-height: 700px) {
  .hero { padding-top: 4.25rem; }
  .hero-stage { margin-top: 1.5rem; }
}

/* Header and menu: 44px targets */
@media (max-width: 760px) {
  .burger { width: 2.75rem; height: 2.75rem; margin-right: -.25rem; }
  .nav .brand { min-height: 2.75rem; }
  .menu a { min-height: 2.75rem; }
}
@media (max-width: 760px) { .skip { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 1rem; } }

/* Pause motion on touch screens: an icon-only round button in the bottom-right corner (ragged text edge, so it covers less),
   44px to tap, with the label kept for screen readers (main.js still swaps it to "Play motion"). */
@media (max-width: 560px) {
  .motion-toggle { left: auto; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); width: 2.75rem; height: 2.75rem; padding: 0; justify-content: center; gap: 0; color: var(--fg); }
  .motion-toggle svg { width: 1rem; height: 1rem; }
  .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Section rhythm on phones: 7rem of padding top and bottom left 14rem of empty band between sections */
@media (max-width: 560px) {
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .story-section { padding-top: 4.5rem; }
  .tagline { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-head { margin-bottom: 2.5rem; }
  .cta { padding: 2rem var(--gutter) 4.5rem; }
  .cta-card { padding: 3.5rem 1rem; border-radius: 1.5rem; }
  /* the launch pill stays on one line at 360 */
  .cd-eyebrow { white-space: nowrap; letter-spacing: .04em; }
}

/* Footer on phones: 44px link rows, and room at the bottom so the fixed Pause button never sits on the last line */
@media (max-width: 560px) {
  .footer { padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4.25rem)); }
  .footer-cols { gap: 2.5rem; }
  .footer-cols a { min-width: 2.75rem; padding: .75rem 0; }
  .footer-cols .foot-h { margin-bottom: .25rem; }
  .footer-brand .brand { min-height: 2.75rem; }
}

/* Success card close button: 44px on phones (size only; the card itself is unchanged) */
@media (max-width: 560px) {
  .kz-close { width: 2.75rem; height: 2.75rem; top: .75rem; right: .75rem; }
}

/* the hero phone is smaller on phones; scale its corner radius with it (3.35rem at 22rem wide is 15.2% of the width),
   so the screen's rounded corner does not eat the status-bar time */
@media (max-width: 560px) {
  #device { border-radius: min(3.05rem, 11.9vw); }
  #screen { border-radius: calc(min(3.05rem, 11.9vw) - .4rem); }
}

/* Plans billing switch: 44px segments on phones (the thumb follows, it is pinned top and bottom) */
@media (max-width: 560px) {
  .bill button { min-height: 2.75rem; }
}

/* Legal pages on phones: 44px header links and page tabs */
@media (max-width: 560px) {
  .legal-top { padding-top: .75rem; padding-bottom: .75rem; }
  .legal-top .brand, .legal-back { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .legal-tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* 404 on phones: the eyebrow pill keeps its own width instead of stretching to the column */
@media (max-width: 560px) {
  .notfound .eyebrow { justify-self: center; }
}

/* small uppercase labels: nothing under 11px on phones */
@media (max-width: 560px) {
  .cd-lab { font-size: .6875rem; }
}

/* touch screens: a tap must not leave the hero phone stuck in its lifted hover state */
@media (hover: none) {
  .hero-stage .stage:hover::before { opacity: .45; transform: none; }
}

/* Launch countdown in the header (main.js drives it and the waitlist card's from one ticker): the waitlist card's split-flap
   tiles at header size, just left of "Join waitlist". Aria-hidden; the waitlist card carries the screen-reader text. */
.nav-cd { --cd-fs: 1rem; display: flex; align-items: center; gap: .625rem; margin-right: .375rem; white-space: nowrap; }
.ncd-lab { color: var(--dim); font-family: var(--mono); font-size: .6875rem; line-height: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-cd .cd-row { gap: .25rem; }
.nav-cd .cd-unit { flex: none; min-width: 2.25rem; max-width: none; height: 2.375rem; padding: .3125rem .3125rem 0; border-radius: .625rem; box-shadow: inset 0 1px 0 var(--line); }
.nav-cd .cd-unit::before { top: calc(.3125rem + var(--cd-fs) * .52); }
.nav-cd .cd-unit::after { top: calc(.3125rem + var(--cd-fs) * .52 - .125rem); height: .25rem; border-left-width: .125rem; border-right-width: .125rem; }
.nav-cd .cd-lab { margin-top: .1875rem; font-size: .53125rem; line-height: .625rem; letter-spacing: .1em; }
.nav-cd .l-short { display: none; }
.nav-cd .cd-done { font-family: var(--mono); font-weight: 500; font-size: .75rem; line-height: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.nav-cd.is-done :is(.ncd-lab, .cd-row) { display: none; }
.nav-cd.is-done .cd-done { display: block; }
@media (max-width: 1279px) { .ncd-lab { display: none; } }
/* narrow desktop: the five links need the room. At 960-1039px the seconds tile steps out (days, hours and minutes stay);
   at 901-959px even three tiles leave under 48px between the groups, so the timer steps aside (the waitlist card keeps one) */
@media (min-width: 901px) and (max-width: 1039px) { .nav-cd .cd-unit:last-child { display: none; } }
@media (min-width: 901px) and (max-width: 959px) { .nav-cd { display: none; } }
/* hamburger layout: the tiles sit between the brand and the menu button, a little narrower, with one-letter labels
   (D H M S) so they clear both at 360px */
@media (max-width: 900px) {
  .nav-cd { margin-right: .25rem; }
  .nav-cd .cd-unit { min-width: 2rem; }
  .nav-cd .cd-lab { font-size: .5625rem; letter-spacing: 0; }
  .nav-cd .l-long { display: none; }
  .nav-cd .l-short { display: inline; }
}

/* hero headline "The food and workout / tracker that answers / your questions.": three lines at every width.
   On narrow phones the size follows the viewport so the first line never wraps, and a touch more leading keeps the underline under
   "answers" clear of the line below. */
@media (max-width: 560px) {
  .hero .display { font-size: min(2.25rem, 9.4vw); line-height: 1.08; }
}
/* room under the underlined line so the stroke never touches the tall letters of "questions" */
.hero .display .line:nth-child(2) { padding-bottom: .16em; }

/* ---------- App UI the site redraws (batch 1 screenshot refresh, 19 Oct) ----------
   The coach sheet, its bubbles, the confirmation toast and the coach note, rebuilt to the app's own spec (NOTES.md from the
   app session) and checked against real captures (arc-site-shots/out/coach). Sizes are in dp: a phone screen is 1280 px of
   capture = 426.667 dp wide, so 1 dp = screen width / 426.667. Everything here uses the --app-* tokens, never site chrome. */
.app-ui { container-type: inline-size; --dp: calc(100cqw / 426.667); }
.ks-sheet, .ks-toast, .kc-n { font-family: var(--app-font); font-stretch: 100%; font-synthesis: none; -webkit-font-smoothing: antialiased; }

/* dim behind the sheet: black 55%, fades over 180 ms */
.ks-dim { position: absolute; inset: 0; z-index: 3; background: var(--app-dim); opacity: 0; transition: opacity var(--ks-dim, 180ms) ease-out; pointer-events: none; }
/* touch indicator: a soft neutral dot, pressed and released over 300 ms (the coach button by default) */
.ks-touch { position: absolute; z-index: 3; left: 77.5%; top: 91.6%; width: calc(40 * var(--dp)); aspect-ratio: 1; border-radius: 50%; background: var(--app-touch); opacity: 0; transform: translate(-50%, -50%) scale(.6); pointer-events: none; }
.press > .ks-touch, .ks-touch.press { animation: ks-press 300ms ease-out both; }
@keyframes ks-press { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); } }

/* the sheet: SurfaceRaised, 32 dp top corners, 1 dp top line, slides up over 240 ms; heights are the app's states */
.ks-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--ks-h, 46%); display: flex; flex-direction: column; padding-bottom: calc(36 * var(--dp)); border-radius: calc(32 * var(--dp)) calc(32 * var(--dp)) 0 0; background: var(--app-sheet); box-shadow: 0 0 calc(12 * var(--dp)) var(--app-shadow); color: var(--app-on); transform: translateY(100%); transition: transform var(--ks-sheet, 240ms) var(--ks-sheet-ease, cubic-bezier(.2,0,0,1)), height var(--ks-sheet, 240ms) var(--ks-sheet-ease, cubic-bezier(.2,0,0,1)); }
/* the app's sheet heights (fractions of the screen); main.js sets them from PACE.motion */
/* the app's 1 dp top line is a straight rule that sits on the sheet's edge, inside its height (it does not push the content down) */
.ks-sheet::before { content: ""; position: absolute; top: 0; left: calc(25 * var(--dp)); right: calc(25 * var(--dp)); height: calc(1 * var(--dp)); background: var(--app-line); }
[data-h="open"] { --ks-h: var(--ks-h-open, 46%); }
[data-h="answer"] { --ks-h: var(--ks-h-answer, 60%); }
[data-h="log"] { --ks-h: var(--ks-h-log, 74%); }
[data-h="logged"] { --ks-h: var(--ks-h-logged, 30%); }
[data-h="ask"] { --ks-h: 78%; }
[data-sheet]:not([data-sheet="closed"]) > .ks-sheet { transform: none; }
[data-sheet]:not([data-sheet="closed"]) > .ks-dim { opacity: 1; }
.ks-handle { flex: none; align-self: center; width: calc(36 * var(--dp)); height: calc(4 * var(--dp)); margin: calc(12 * var(--dp)) 0 calc(8 * var(--dp)); border-radius: calc(2 * var(--dp)); background: var(--app-faint); }
.ks-head { flex: none; display: flex; align-items: center; gap: calc(8 * var(--dp)); height: calc(36.67 * var(--dp)); padding: 0 calc(16 * var(--dp)); }
.ks-ico { flex: none; display: block; width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); }
.ks-head b { font-size: calc(17 * var(--dp)); line-height: calc(22 * var(--dp)); font-weight: 700; letter-spacing: calc(-.1 * var(--dp)); }
.ks-head span { margin-left: auto; color: var(--app-muted); font-size: calc(12 * var(--dp)); line-height: calc(16 * var(--dp)); font-weight: 500; letter-spacing: calc(.1 * var(--dp)); }
/* the list is top-aligned and keeps its newest bubble in view (main.js shifts it up when it overflows, like the app's scroll) */
.ks-chat { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 calc(16 * var(--dp)); -webkit-mask-image: linear-gradient(rgb(0 0 0 / calc(1 - var(--fa, 0))), #000 calc(24 * var(--dp))); mask-image: linear-gradient(rgb(0 0 0 / calc(1 - var(--fa, 0))), #000 calc(24 * var(--dp))); }
/* the thread fades out under the header (top 24 dp, as the app) only while something is scrolled above; main.js sets --fa from how far the list overflows */
.ks-list { flex: none; min-height: 100%; display: flex; flex-direction: column; gap: calc(8 * var(--dp)); padding-bottom: calc(12 * var(--dp)); transition: transform var(--ks-sheet, 240ms) var(--ks-sheet-ease, cubic-bezier(.2,0,0,1)); }
.ks-list > p { margin: 0; }
.ks-list > .ks-think { margin-bottom: calc(-9 * var(--tg, 0) * var(--dp)); }
/* before anything is sent the thread sits at the top; once the first question is sent the app scrolls to the end, so the newest bubble rests 12 dp above the input (data-end) */
[data-end] .ks-list { justify-content: flex-end; }
/* coach reply: hugs its text; 15/21, 1 dp hairline, radius 24 */
.ks-b { align-self: flex-start; max-width: 100%; padding: calc(8.83 * var(--dp)) calc(15 * var(--dp)); border: calc(1 * var(--dp)) solid var(--app-hair); border-radius: calc(24 * var(--dp)); background: var(--app-reply); color: var(--app-coach-fg); font-size: calc(16 * var(--dp)); line-height: calc(24 * var(--dp)); font-weight: 400; letter-spacing: calc(.035 * var(--dp)); transform-origin: 0 100%; }
/* a reply that types out (main.js typer): the text is laid out at its final wrap inside, the bubble's size follows the typing */
.ks-ty { overflow: hidden; }
.ks-tx { display: block; }
.ks-rest { color: transparent; }
.ks-done { display: flex; align-items: center; gap: calc(8 * var(--dp)); padding-block: calc(8.83 * var(--dp)); }
.ks-tick { flex: none; width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); fill: none; stroke: var(--app-ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* a finished log offers Undo as a text button under the reply */
.ks-undo { align-self: flex-start; display: flex; align-items: center; min-height: calc(40 * var(--dp)); padding: 0 calc(12 * var(--dp)) calc(8 * var(--dp)) calc(11.3 * var(--dp)); color: var(--app-link); font-size: calc(14 * var(--dp)); line-height: calc(20 * var(--dp)); font-weight: 500; letter-spacing: calc(.1 * var(--dp)); }
/* the user's message: accent, 13/18, right-aligned, at most 88% wide */
.ks-u { align-self: flex-end; max-width: 88%; padding: calc(5.83 * var(--dp)) calc(12 * var(--dp)); border-radius: calc(24 * var(--dp)); background: var(--app-accent); font-size: calc(16 * var(--dp)); line-height: calc(24 * var(--dp)); font-weight: 400; letter-spacing: calc(.035 * var(--dp)); transform-origin: 100% 100%; }
/* thinking: three 6 dp accent dots in a reply-coloured pill (22 dp, as captured), each pulsing 30% to 100%, 160 ms apart */
.ks-think { align-self: flex-start; display: inline-flex; align-items: center; height: calc((22 + 9 * var(--tg, 0)) * var(--dp)); padding: 0 calc((15 - 3 * var(--tg, 0)) * var(--dp)) 0 calc(11 * var(--dp)); border: calc(1 * var(--dp)) solid var(--app-hair); border-radius: calc((11 + 4.5 * var(--tg, 0)) * var(--dp)); background: var(--app-reply); transform-origin: 0 100%; }
.ks-think i { flex: none; width: calc(6 * var(--dp)); height: calc(6 * var(--dp)); margin-right: calc(4 * var(--dp)); border-radius: 50%; background: var(--app-accent); opacity: .3; }
.ks-think i:nth-of-type(3) { margin-right: 0; }
/* the thinking line (labelMedium: 13 sp, 500, +0.2 spacing, white) joins the pill 2 s after sending; main.js sets --tg (the pill grows) and --tf (the text fades in) and --tw (the text's own width) from the film's clock */
.ks-tl { display: block; flex: none; overflow: hidden; width: calc(var(--tw, 0px) * var(--tg, 0)); margin-left: calc(8 * var(--dp) * var(--tg, 0)); opacity: var(--tf, 0); color: var(--app-on); font-size: calc(13 * var(--dp)); line-height: calc(18 * var(--dp)); font-weight: 500; letter-spacing: calc(.2 * var(--dp)); white-space: nowrap; }
.ks-think:not(.show) { display: none; }
/* while a film runs, bubbles exist only once shown. Each enters like the app's spring (damping .8, stiffness 1500, about 280 ms):
   fades in, scales from .96 and rises from a sixth of its own height, growing from its own bottom corner. Timing from PACE.motion. */
.film .ks-list > :not(.show) { display: none; }
.ks-list > .show { animation: ks-in var(--ks-bubble, 280ms) var(--ks-bubble-ease, cubic-bezier(.2,.9,.3,1)) both; }
@keyframes ks-in { from { opacity: 0; transform: translateY(16.667%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ks-fade { from { opacity: 0; } }
/* a typed reply takes the place of the dots' pill: it starts a little visible so the swap never leaves an empty frame */
.ks-list > .ks-ty.show { animation-name: ks-in-reply; }
@keyframes ks-in-reply { from { opacity: .4; transform: translateY(16.667%) scale(.96); } to { opacity: 1; transform: none; } }
html.paused .ks-list > .show { animation: none; }
/* input: a 44 dp pill on the card gradient; accent edge while typing; send is accent 35% when empty, full with text */
.ks-input { flex: none; display: flex; align-items: center; height: calc(44 * var(--dp)); margin: calc(8 * var(--dp)) calc(16 * var(--dp)) 0; padding: 0 calc(4 * var(--dp)) 0 calc(12 * var(--dp)); border-radius: calc(44 * var(--dp)); background: linear-gradient(90deg, var(--app-card-a) 0, var(--app-card-b) 28.6%, var(--app-card-c) 55%); box-shadow: inset 0 0 0 calc(1 * var(--dp)) var(--app-card-edge); font-size: calc(13 * var(--dp)); line-height: calc(18 * var(--dp)); transition: box-shadow 250ms ease-out; }
.ks-ph { color: var(--app-muted); white-space: nowrap; }
/* the app's text sits a touch lower in the pill than CSS centring puts it (coach_08b, coach_10) */
.ks-ph, .ks-wait, .ks-typed { position: relative; top: calc(.6 * var(--dp)); }
.ks-typed { color: var(--app-on); white-space: nowrap; overflow: hidden; }
.ks-input:not(.typing) .ks-typed, .ks-input.typing .ks-ph, .ks-input:not(.waiting) .ks-wait, .ks-input.waiting .ks-ph { display: none; }
/* while the coach is answering: "Waiting for the coach…" and a grey send button */
.ks-wait { color: var(--app-wait-fg); white-space: nowrap; }
.ks-input.waiting .ks-send { background: var(--app-wait-bg); }
.ks-input.waiting .ks-send svg { stroke: var(--app-wait-icon); }
.ks-input.typing { box-shadow: inset 0 0 0 calc(1 * var(--dp)) color-mix(in srgb, var(--app-accent) 70%, transparent); }
.ks-input.typing .ks-typed::after { content: ""; display: inline-block; width: calc(2 * var(--dp)); height: calc(16 * var(--dp)); margin-left: calc(1 * var(--dp)); background: var(--app-accent); vertical-align: calc(-3.5 * var(--dp)); }
.ks-send { flex: none; display: grid; place-items: center; width: calc(36 * var(--dp)); height: calc(36 * var(--dp)); margin-left: auto; border-radius: 50%; background: color-mix(in srgb, var(--app-accent) 35%, transparent); transform: scale(.9); transform-origin: 50% 50%; transition: background-color 250ms ease-out, transform 200ms ease-out; }
/* the app's send springs from .9 to 1 when text appears (damping .45, medium stiffness: about 20% overshoot of the 0.1 travel); going back down it does not bounce */
.ks-input.has-text .ks-send { background: var(--app-accent); transform: scale(1); transition: background-color 250ms ease-out, transform var(--ks-send-spring, 380ms) cubic-bezier(.34, 1.85, .64, 1); }
.ks-send svg { width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); fill: none; stroke: var(--app-on); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; transition: stroke 250ms ease-out; }
.ks-input.has-text .ks-send svg { stroke: var(--app-send-ink); }
/* confirmation toast: a centred pill just under the top bar (44 dp, hugs "Logged" and Undo, as captured); the app shows it
   instantly, the site fades it in over 120 ms */
.ks-toast { position: absolute; z-index: 5; left: 50%; top: calc(104 * var(--dp)); display: flex; align-items: center; gap: calc(8 * var(--dp)); width: max-content; height: calc(44 * var(--dp)); padding: 0 calc(11 * var(--dp)); transform: translateX(-50%); white-space: nowrap; border: calc(1 * var(--dp)) solid var(--app-hair); border-radius: calc(24 * var(--dp)); background: var(--app-toast); color: var(--app-toast-fg); font-size: calc(15 * var(--dp)); line-height: calc(21 * var(--dp)); letter-spacing: calc(-.17 * var(--dp)); opacity: 0; transition: opacity var(--ks-toast, 120ms) ease-out; pointer-events: none; }
.ks-toast b { padding: 0 calc(12 * var(--dp)) 0 calc(8.3 * var(--dp)); color: var(--app-accent); font-weight: 500; }
.ks-toast.on { opacity: 1; }
/* post-log Today (coach_16: 1,350 left, macros updated, the "From your coach" note card in the list, the Breakfast card's ring). The plate without
   the note crossfades in under the sheet once the food is logged; the note itself rises in after the sheet closes (24 dp, as the app) */
.shot .post { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease-out; }
.post-note { position: absolute; inset: 0; }
.post-note img { display: block; width: 100%; height: 100%; clip-path: inset(68.84% 0 14.0% 0); opacity: 0; transform: translateY(calc(24 * var(--dp))); transition: opacity var(--ks-bubble, 280ms) ease-out, transform 420ms var(--ease-out); }
.app-ui.logged .shot .post { opacity: 1; }
/* at the loop's end the note goes first (120 ms), then the logged Today dissolves back to the start, so the two screens never show through each other */
.app-ui:not(.noted) .post-note img { transition: opacity 120ms ease-out; }
.app-ui:not(.logged) .shot .post { transition-delay: 120ms; }
.app-ui.noted .post-note img { opacity: 1; transform: none; }
/* the system gesture bar stays on top of the sheet and the dim (108 x 4 dp, #eee, 10 dp from the bottom, as captured) */
.ks-gbar { position: absolute; z-index: 6; left: 50%; bottom: calc(10 * var(--dp)); width: calc(108 * var(--dp)); height: calc(4 * var(--dp)); margin-left: calc(-54 * var(--dp)); border-radius: calc(2 * var(--dp)); background: #eee; pointer-events: none; }
/* first open of the day: a clear band sweeps down through the dim (8% to 92% of the screen) with a thin white line and its glow;
   each region it reads gets an accent outline (fades in over 500 ms from .985, out over 300 ms). Position and timing from main.js. */
.app-ui.sweeping > .ks-dim { -webkit-mask-image: linear-gradient(#000 calc(var(--sy) - 17.2%), rgb(0 0 0 / calc(1 - var(--sa))) calc(var(--sy) - 11.6%), rgb(0 0 0 / calc(1 - var(--sa))) calc(var(--sy) + 11.6%), #000 calc(var(--sy) + 17.2%)); mask-image: linear-gradient(#000 calc(var(--sy) - 17.2%), rgb(0 0 0 / calc(1 - var(--sa))) calc(var(--sy) - 11.6%), rgb(0 0 0 / calc(1 - var(--sa))) calc(var(--sy) + 11.6%), #000 calc(var(--sy) + 17.2%)); }
.ks-sweep { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: calc(1 * var(--dp)); background: linear-gradient(90deg, rgba(255,255,255,.55), #fff 22%, #fff 78%, rgba(255,255,255,.55)); box-shadow: 0 0 calc(3 * var(--dp)) calc(.5 * var(--dp)) rgba(255,255,255,.55), 0 0 calc(14 * var(--dp)) rgba(255,255,255,.22); opacity: 0; pointer-events: none; }
.ks-hl { position: absolute; z-index: 3; inset: var(--y0) var(--x1) var(--y1) var(--x0); border: calc(1.33 * var(--dp)) solid color-mix(in srgb, var(--app-accent) 87%, transparent); border-radius: calc(24 * var(--dp)); background: color-mix(in srgb, var(--app-accent) 5%, transparent); box-shadow: 0 0 0 calc(4 * var(--dp)) color-mix(in srgb, var(--app-accent) 9%, transparent); opacity: 0; transform: scale(.985); transition: opacity 300ms linear, transform 300ms linear; pointer-events: none; }
/* as the app: a region lights 500 ms ease-in once the band's centre is 35% into it (barely visible for the first ~200 ms),
   and all fade out together over 300 ms when the reading is done */
.ks-hl.on { opacity: 1; transform: none; transition: opacity 500ms cubic-bezier(.42,0,1,1), transform 500ms cubic-bezier(.42,0,1,1); }
/* the labelled thinking pill (32 dp): the three dots, then what the coach is reading */
.ks-think-l { --tg: 1; --tf: 1; }
.ks-think-l .ks-tl { width: auto; }
/* the system status bar's glyphs stay bright above the dim (the app's do); identical to the screenshot's own */
.ks-sb { position: absolute; z-index: 3; left: 0; top: 3.906cqw; width: 100%; height: auto; pointer-events: none; }
.app-ui.intro .ks-input { opacity: 0; }
.app-ui .ks-input { transition: box-shadow 250ms ease-out, opacity var(--ks-bubble, 280ms) ease-out; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.paused) .film .ks-think.show i { animation: ks-dot var(--ks-dot, 600ms) ease-in-out infinite alternate; }
  html:not(.paused) .film .ks-think.show i:nth-child(2) { animation-delay: var(--ks-dot-stagger, 160ms); }
  html:not(.paused) .film .ks-think.show i:nth-child(3) { animation-delay: calc(var(--ks-dot-stagger, 160ms) * 2); }
}
@keyframes ks-dot { to { opacity: 1; } }
html.paused .ks-send, html.paused .ks-input.has-text .ks-send { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .ks-sheet, .ks-dim, .ks-list, .ks-toast, .ks-input, .ks-send, .ks-hl, .shot .post, .post-note img, .fr-clip img { transition: none; }
  .ks-touch { animation: none !important; }
  .ks-list > .show { animation: ks-fade var(--ks-bubble-reduced, 200ms) ease-out both; }
  .ks-list > .ks-ty.show { animation-name: ks-fade; }
}

/* How it works 01 "Log it": the real empty diary splits at the Breakfast card and slides down as the card opens,
   then the three real entries rise in one after another and the card's total appears. Layers are crops of the same window:
   diary-base (open card, entries painted out), diary (bands), diary-empty (the empty-diary capture, 4 px higher in the app). */
.hw-item { clip-path: inset(var(--t) var(--x, 0) var(--b) var(--x, 0)); opacity: 0; transform: translateY(calc(8 * var(--dp))); transition: opacity 260ms ease-out, transform 380ms var(--app-ease); }
.hw-item.show { opacity: 1; transform: none; }
.hw-sub { clip-path: inset(var(--t) var(--r) var(--b) var(--l)); opacity: 0; transition: opacity 240ms ease-out; }
.hw-sub.show { opacity: 1; }
.hw-empty { transition: opacity 240ms ease-out, transform 440ms var(--app-ease); }
.hw-empty-top { clip-path: inset(0 0 81% 0); }
.hw-empty-low { clip-path: inset(16.8% 0 0 0); -webkit-mask-image: linear-gradient(transparent 16.8%, #000 19%); mask-image: linear-gradient(transparent 16.8%, #000 19%); }
.hw-diary.grow .hw-empty-top { opacity: 0; }
.hw-diary.grow .hw-empty-low { transform: translateY(61.64%); }
.hw-diary.grown .hw-empty-low { opacity: 0; transition: opacity 200ms ease-out; }
.hw-diary.reset .hw-empty { opacity: 0; transition: none; }
.hw-ask .ks-sheet { padding-bottom: calc(16 * var(--dp)); }
.hw-shot .ks-ico { position: static; inset: auto; width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); }
@media (prefers-reduced-motion: reduce) {
  .hw-sub { opacity: 1; }
  .hw-empty { display: none; }
}

/* Hero count-up (on by default; ?countup=0 turns it off). The app counts its numbers up from 0 over 420 ms, once.
   During the count a clean plate (the same Today capture with these four numbers painted out) covers the screenshot's digits
   and HTML numbers in the app's font count over it; at the end both are removed and the untouched screenshot shows.
   Positions and type are fitted to the capture's pixels (cqw = % of the 1280 px screen width). */
.kc-plate { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.kc-n { position: absolute; z-index: 1; color: var(--app-on); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.kc-big { left: 9.297cqw; top: 51.56cqw; font-size: 12.1875cqw; font-weight: 700; font-stretch: 81.25%; letter-spacing: .1172cqw; }
.kc-mac { top: 126.88cqw; width: 0; display: flex; justify-content: center; font-size: 4.9219cqw; font-weight: 600; letter-spacing: -.0703cqw; }

/* Launch switch: html[data-launched] in index.html. kz-pre = before launch, kz-live = after launch. */
html[data-launched="true"] .kz-pre { display: none !important; }
html:not([data-launched="true"]) .kz-live { display: none !important; }
.play-cta { margin: 1.5rem 0 0; }
.cta .play-cta { margin: 1.5rem auto 0; }
@media (max-width: 960px) { .hero-copy > .play-cta { order: 6; width: 100%; } .hero-copy > .play-cta .btn { width: 100%; } }
