/* Fonts are bundled with the page: it makes no request to anyone else. */
@font-face { font-family: 'Archivo'; src: url(/fonts/archivo-var.woff2) format('woff2'); font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(/fonts/figtree-var.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

/* ---------- design tokens: the app's dark violet, and a light, airy theme ---------- */
:root {
  --bg: #faf9ff; --bg-soft: #f1eefc; --surface: #ffffff; --raised: #f6f3ff; --line: #e4def7;
  --ink: #17112a; --ink-2: #4a4268; --ink-3: #6e668d;
  --primary: #6d3df0; --primary-ink: #ffffff; --primary-soft: rgba(109, 61, 240, .1);
  --good: #15803d; --warn: #b45309; --bad: #b91c1c; --info: #0369a1;
  --good-bg: rgba(34, 197, 94, .16); --fair-bg: rgba(251, 191, 36, .22); --low-bg: rgba(248, 113, 113, .2); --teal-bg: rgba(45, 212, 191, .2);
  --glow: radial-gradient(900px 480px at 85% -10%, rgba(139, 92, 246, .16), transparent 70%), radial-gradient(700px 400px at -10% 110%, rgba(244, 114, 182, .08), transparent 70%);
  --shadow: 0 30px 80px -30px rgba(70, 40, 160, .35);
  --ring-recovery: #16a34a; --ring-sleep: #2563eb; --ring-stress: #16a34a; --track: rgba(110, 102, 141, .18);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0e0a1a; --bg-soft: #130e24; --surface: #17112a; --raised: #221a3a; --line: #2a2147;
  --ink: #e9e3fa; --ink-2: #c9bfe6; --ink-3: #a595c9; --primary: #8b5cf6; --primary-ink: #ffffff; --primary-soft: rgba(139, 92, 246, .18);
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171; --info: #38bdf8;
  --good-bg: rgba(74, 222, 128, .18); --fair-bg: rgba(251, 191, 36, .18); --low-bg: rgba(248, 113, 113, .2); --teal-bg: rgba(45, 212, 191, .2);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --ring-recovery: #4ade80; --ring-sleep: #3987e5; --ring-stress: #4ade80; --track: rgba(165, 149, 201, .18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0e0a1a; --bg-soft: #130e24; --surface: #17112a; --raised: #221a3a; --line: #2a2147;
    --ink: #e9e3fa; --ink-2: #c9bfe6; --ink-3: #a595c9; --primary: #8b5cf6; --primary-ink: #ffffff; --primary-soft: rgba(139, 92, 246, .18);
    --good: #4ade80; --warn: #fbbf24; --bad: #f87171; --info: #38bdf8;
    --good-bg: rgba(74, 222, 128, .18); --fair-bg: rgba(251, 191, 36, .18); --low-bg: rgba(248, 113, 113, .2); --teal-bg: rgba(45, 212, 191, .2);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
    --ring-recovery: #4ade80; --ring-sleep: #3987e5; --ring-stress: #4ade80; --track: rgba(165, 149, 201, .18); }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: var(--glow); background-attachment: fixed; color: var(--ink); font: 400 1.0625rem/1.6 'Figtree', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .wide { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 115%; letter-spacing: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--primary); color: var(--primary-ink); padding: .6rem 1rem; border-radius: 10px; z-index: 10; }
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-2); max-width: 36rem; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar { display: flex; align-items: center; gap: 1.25rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: 'Archivo'; font-stretch: 125%; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand svg { width: 1.9rem; height: 1.9rem; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
nav.links a.l { text-decoration: none; padding: .5rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
nav.links a.l:hover { background: var(--primary-soft); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: 14px; font: 700 1rem 'Figtree'; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 30px -10px var(--primary); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.small { padding: .5rem 1rem; font-size: .92rem; border-radius: 11px; }
.theme { width: 2.4rem; height: 2.4rem; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.theme:hover { background: var(--primary-soft); }
.theme svg { width: 1.2rem; height: 1.2rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.hero .grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--primary), #e879f9 70%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.fine { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-3); }

/* ---------- phone mock-ups (drawn in HTML, with sample data) ---------- */
.phone { position: relative; width: min(300px, 100%); aspect-ratio: 9 / 18.4; margin-inline: auto; border-radius: 42px; padding: 11px; background: linear-gradient(160deg, color-mix(in srgb, var(--ink) 20%, var(--surface)), var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.screen { height: 100%; border-radius: 32px; background: var(--bg); overflow: hidden; padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .8rem; font-size: .8rem; position: relative; }
.screen::before { content: ""; position: absolute; left: 50%; top: 8px; width: 74px; height: 20px; transform: translateX(-50%); border-radius: 12px; background: var(--ink); opacity: .9; }
.screen > :first-child { margin-top: 1.1rem; }
.strip { display: flex; gap: 4px; }
.chip { flex: 1; border-radius: 10px; padding: .35rem 0 .3rem; text-align: center; font-size: .62rem; color: var(--ink-3); display: grid; justify-items: center; gap: 2px; border: 2px solid transparent; }
.chip b { font-weight: 700; font-size: .78rem; color: var(--ink); }
.chip.sel { border-color: var(--primary); }
.chip .mini { width: 16px; height: 16px; }
.t-great { background: var(--good-bg); } .t-good { background: var(--teal-bg); } .t-fair { background: var(--fair-bg); } .t-low { background: var(--low-bg); }
.mock-title { font: 800 1.9rem/1 'Archivo'; font-stretch: 125%; letter-spacing: -.02em; }
.mock-date { font-size: .58rem; letter-spacing: .16em; font-weight: 700; color: var(--ink-3); text-transform: uppercase; margin-bottom: .2rem; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-weight: 700; font-size: .68rem; background: var(--good-bg); color: var(--good); }
.rings3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; text-align: center; }
.rings3 small { display: block; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; margin-top: .25rem; }
.ring { width: 100%; max-width: 78px; aspect-ratio: 1; display: block; margin-inline: auto; }
.ring .t { fill: none; stroke: var(--track); }
.ring .v { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; animation: sweep 1.2s cubic-bezier(.22, 1, .36, 1) both; }
.ring text { font: 800 15px 'Archivo'; fill: var(--ink); }
@keyframes sweep { from { stroke-dasharray: 0 100; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem; }
.row { display: flex; align-items: center; gap: .6rem; }
.row .g { flex: 1; min-width: 0; }
.row b { display: block; font-size: .82rem; }
.row span { color: var(--ink-3); font-size: .66rem; }
.dotsport { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(249, 115, 22, .16); color: #f97316; }
.bar2 { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar2 i { display: block; height: 100%; border-radius: 99px; }
.stack { display: grid; gap: .55rem; }

/* ---------- features ---------- */
.head { max-width: 46rem; margin-bottom: 3rem; }
.head .lede { margin-top: 1.1rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.fc { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; display: grid; gap: .8rem; align-content: start; transition: transform .2s, box-shadow .2s; }
.fc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fc .ico { width: 2.9rem; height: 2.9rem; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.fc .ico svg { width: 1.5rem; height: 1.5rem; }
.fc p { color: var(--ink-2); font-size: 1rem; }

.split { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split .copy > * + * { margin-top: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .8rem; color: var(--ink-2); }
.ticks svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--primary); }
.band { background: var(--bg-soft); border-block: 1px solid var(--line); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.badge.g { background: var(--good-bg); color: var(--good); } .badge.r { background: var(--low-bg); color: var(--bad); } .badge.b { background: rgba(56, 189, 248, .18); color: var(--info); } .badge.n { background: var(--primary-soft); color: var(--ink-2); }

.privacy { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 3rem; }
.pv { border-top: 2px solid var(--primary); padding-top: 1rem; }
.pv p { color: var(--ink-2); margin-top: .5rem; font-size: 1rem; }

.final { text-align: center; }
.final h2 { max-width: 14ch; margin-inline: auto; }
.final .lede { margin: 1.4rem auto 0; }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding-block: 2.2rem 3rem; color: var(--ink-3); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }


/* =====================================================================
   v2: multi-page site, charts and effects
   Charts are drawn as static SVG (final state) by deploy/build-landing.mjs.
   site.js only adds motion and hover on top, so everything works without it.
   ===================================================================== */
:root {
  --sleep-deep: #3987e5; --sleep-core: #199e70; --sleep-rem: #9085e9; --sleep-awake: #d95926;
  --m-protein: #3987e5; --m-carb: #c98500; --m-fat: #d55181;
  --r-move: #ff2d55; --r-exercise: #7ab800; --r-stand: #00b8aa;
  --hr: #e5484d; --grid: color-mix(in srgb, var(--ink-3) 22%, transparent);
}
:root[data-theme="dark"] { --m-carb: #c98500; --r-exercise: #b4ff39; --r-stand: #2ee6d6; --hr: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --r-exercise: #b4ff39; --r-stand: #2ee6d6; --hr: #f87171; } }

html { scroll-padding-top: 5rem; }
nav.links a.l[aria-current="page"] { color: var(--ink); background: var(--primary-soft); }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 2.4rem; height: 2.4rem; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--primary-soft); }
.menu .pop { position: absolute; right: 0; top: 3rem; min-width: 14rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .5rem; box-shadow: var(--shadow); display: grid; }
.menu .pop a { padding: .7rem .9rem; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.menu .pop a:hover, .menu .pop a[aria-current="page"] { background: var(--primary-soft); color: var(--ink); }
@media (max-width: 980px) { nav.links a.l { display: none; } .menu { display: block; margin-left: 0; } nav.links { margin-left: auto; } }
@media (max-width: 420px) { nav.links .btn { display: none; } }

/* ----- scroll reveal (only when JS is on; otherwise everything is simply visible) ----- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ----- hero ----- */
.hero2 { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .85;
  background: radial-gradient(40% 40% at 78% 28%, rgba(139, 92, 246, .38), transparent 70%), radial-gradient(34% 34% at 92% 70%, rgba(244, 114, 182, .22), transparent 70%), radial-gradient(30% 30% at 55% 18%, rgba(56, 189, 248, .18), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate; }
:root:not([data-theme="dark"]) .aurora { opacity: .6; }
@keyframes drift { to { transform: translate3d(-4%, 5%, 0) scale(1.08) rotate(3deg); } }
.hero2 .grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero2 .grid { grid-template-columns: 1.05fr .95fr; } }
.hero2 h1 { font-size: clamp(2.7rem, 8.4vw, 5.8rem); }
.hero2 h1 em, .ph h1 em { font-style: normal; background: linear-gradient(95deg, var(--primary), #e879f9 70%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage { position: relative; min-height: 34rem; display: grid; place-items: center; }
.stage .phone { z-index: 1; }
.float { position: absolute; z-index: 2; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: .8rem .9rem; box-shadow: var(--shadow); font-size: .8rem; }
.float b { font-family: 'Archivo'; font-stretch: 125%; font-weight: 800; font-size: 1.15rem; display: block; line-height: 1.1; }
.float small { color: var(--ink-3); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.f1 { left: -9%; top: 22%; width: 9.6rem; animation: bob 7s ease-in-out infinite; }
.f2 { right: -12%; bottom: 14%; width: 10.5rem; animation: bob 8s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 959px) { .stage { min-height: 0; } .float { display: none; } }

/* ----- sub-page header ----- */
.ph { padding-block: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem); position: relative; overflow: hidden; isolation: isolate; }
.ph h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); max-width: 16ch; }
.ph .lede { margin-top: 1.4rem; }
.ph .aurora { height: 160%; }
.crumb { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.2rem; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }

/* ----- charts ----- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 1.4rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1rem; }
.panel h3 { font-size: 1rem; }
.ptop { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.ptop .g { flex: 1; min-width: 0; }
.ptop small { display: block; color: var(--ink-3); font-size: .85rem; font-weight: 500; font-family: 'Figtree'; font-stretch: 100%; letter-spacing: 0; }
.cap { margin-top: .8rem; font-size: .86rem; color: var(--ink-3); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 600 11px 'Figtree'; fill: var(--ink-3); }
.chart .gl { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 2 4; }
.chart [tabindex]:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .9rem; font-size: .85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: .75rem; height: .75rem; border-radius: 4px; margin-right: .4rem; vertical-align: -.05rem; }
.tip { position: absolute; z-index: 4; pointer-events: none; background: var(--ink); color: var(--bg); padding: .45rem .7rem; border-radius: 10px; font-size: .82rem; font-weight: 600; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .12s; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.tip.on { opacity: 1; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk { transition: opacity .15s; } .chart:hover .hv, .chart:focus-within .hv { opacity: .55; } .chart .hv:hover, .chart .hv:focus { opacity: 1; }

/* draw-on-scroll: lines, bars, rings and fills start empty and animate in once visible */
.js .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1) var(--d, 0s); }
.js .in .dr, .js .dr.in { stroke-dashoffset: 0; }
.js .fadeup { opacity: 0; transition: opacity 1s ease var(--d, .5s); }
.js .in .fadeup, .js .fadeup.in { opacity: 1; }
.js .grow { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.js .growx { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.js .in .grow, .js .in .growx { transform: none; }
.arc { stroke-dasharray: var(--v) 100; }
.js .arc { stroke-dasharray: 0 100; transition: stroke-dasharray 1.5s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.js .in .arc { stroke-dasharray: var(--v) 100; }
.rg .t { fill: none; stroke: var(--track); }
.rg .arc { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.rg text { font: 800 22px 'Archivo'; font-stretch: 125%; fill: var(--ink); }
.rg .sub { font: 700 9px 'Figtree'; letter-spacing: .12em; fill: var(--ink-3); text-transform: uppercase; font-stretch: 100%; }

/* ----- tiles, stats ----- */
.tiles { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; }
.tile small { color: var(--ink-3); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.tile b { display: block; margin-top: .3rem; font: 800 1.75rem/1.05 'Archivo'; font-stretch: 125%; letter-spacing: -.02em; }
.tile b u { text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-left: .25rem; font-stretch: 100%; font-family: 'Figtree'; }
.tile .badge { margin-top: .5rem; font-size: .78rem; padding: .2rem .6rem; }
.tile .vs { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-3); }
.big { font: 800 clamp(3rem, 9vw, 6rem)/1 'Archivo'; font-stretch: 125%; letter-spacing: -.03em; }

/* ----- home: feature teasers ----- */
.teasers { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.tz { display: grid; gap: 1rem; align-content: start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 1.5rem; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.tz:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.tz .viz { height: 9rem; display: grid; align-items: end; }
.tz p { color: var(--ink-2); font-size: 1rem; }
.tz .more { font-weight: 700; color: var(--primary); display: inline-flex; gap: .4rem; align-items: center; }
.tz:hover .more svg { transform: translateX(4px); } .tz .more svg { transition: transform .2s; width: 1.1rem; height: 1.1rem; }
.tz.span2 { grid-column: 1 / -1; }
@media (min-width: 900px) { .tz.span2 { grid-template-columns: 1fr 1.2fr; align-items: center; } .tz.span2 .viz { height: 11rem; } }

/* big number marquee */
.nums { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); text-align: center; }
.nums div > span { display: block; margin-top: .4rem; color: var(--ink-2); font-size: .98rem; }

/* ----- day scrubber (today) ----- */
.demo { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: .9fr 1.1fr; } }
.dstrip { display: flex; gap: 6px; }
.dchip { flex: 1; font: inherit; color: inherit; cursor: pointer; border-radius: 14px; padding: .55rem 0 .5rem; text-align: center; border: 2px solid transparent; display: grid; gap: 2px; justify-items: center; transition: transform .15s; }
.dchip:hover { transform: translateY(-2px); }
.dchip small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.dchip b { font: 800 1.15rem 'Archivo'; font-stretch: 125%; }
.dchip[aria-pressed="true"] { border-color: var(--primary); }
.dchip .mini { width: 20px; height: 20px; }
.dword { font-size: .7rem; font-weight: 700; }
.readout { display: grid; gap: .8rem; }
.readout .card { padding: 1rem 1.1rem; border-radius: 18px; }
.mbar { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; margin-top: .5rem; }
.mbar i { display: block; height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.rg-live .arc { transition: stroke-dasharray .8s cubic-bezier(.22, 1, .36, 1); }

/* goal cards */
.goal { display: grid; gap: .5rem; }
.pace { position: relative; height: 14px; border-radius: 99px; background: var(--track); margin-top: .6rem; }
.pace .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.pace .mark { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 3px; background: var(--ink); }
.goal .row2 { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--ink-2); }

/* tabs */
.tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; flex-wrap: wrap; }
.tabs button { font: 700 .95rem 'Figtree'; padding: .55rem 1.1rem; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); }
.js .tp[hidden] { display: none; }

/* meals & fasting */
.window { position: relative; height: 3rem; border-radius: 14px; background: var(--track); overflow: hidden; }
.window i { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--primary) 35%, transparent); border-inline: 2px solid var(--primary); }
.window b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--m-carb); border: 2px solid var(--surface); }

.statement { display: grid; gap: 1.4rem; }
.statement article { display: grid; gap: .5rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.statement article p { color: var(--ink-2); }
.flow { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: stretch; margin-top: 1.5rem; }
.flow .node { padding: 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: .3rem; align-content: start; }
.flow .node small { color: var(--ink-3); font-size: .85rem; }
.flow .node.you { border-color: var(--primary); background: var(--primary-soft); }
.nolist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.nolist li { display: flex; gap: .7rem; color: var(--ink-2); }
.nolist svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .25rem; }

.next { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.next a { text-decoration: none; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: grid; gap: .3rem; transition: transform .2s, border-color .2s; }
.next a:hover { transform: translateY(-3px); border-color: var(--primary); }
.next small { color: var(--ink-3); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.next b { font: 800 1.2rem 'Archivo'; font-stretch: 125%; letter-spacing: -.01em; }
footer .wrap { align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
footer nav a { text-decoration: none; } footer nav a:hover { text-decoration: underline; }
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .float { animation: none; }
  .js .rv, .js .dr, .js .fadeup, .js .grow, .js .growx, .js .arc, .btn, .fc, .tz, .mbar i, .rg-live .arc { transition: none; }
  .js .rv { opacity: 1; transform: none; }
  .js .dr { stroke-dashoffset: 0; } .js .fadeup { opacity: 1; } .js .grow, .js .growx { transform: none; }
  .js .arc { stroke-dasharray: var(--v) 100; }
}

/* readouts reuse .row from the phone mock-up, whose type is tiny: restore normal sizes outside the phone */
.readout .row b, .goal .row b { font-size: 1rem; }
.readout .row span, .goal .row span { font-size: .95rem; color: var(--ink-2); }
.readout .row b span { font-size: inherit; color: inherit; }
.readout .row > b.wide { font-size: 1.1rem; }
.goal .row b.wide { font-size: 1.05rem; }

/* sized rings keep their intrinsic size instead of stretching to the card */
.chart svg.rg { width: auto; max-width: 100%; height: auto; }
body { overflow-x: clip; }

/* nav icons */
nav.links a.l { display: inline-flex; align-items: center; gap: .45rem; }
nav a svg { width: 1.15rem; height: 1.15rem; flex: none; }
.menu .pop a { display: flex; align-items: center; gap: .7rem; }
footer nav a { display: inline-flex; align-items: center; gap: .45rem; }
footer .wrap { align-items: center; }
footer .theme { margin-left: auto; }
@media (max-width: 1060px) { nav.links a.l { display: none; } .menu { display: block; margin-left: 0; } nav.links { margin-left: auto; } }

/* parallax layers: site.js moves them with the independent `translate` property, so they never fight other transforms */
.band.final { position: relative; overflow: hidden; isolation: isolate; }

/* a table ignores overflow:hidden, so the screen-reader-only tables must be blocks or they widen the page */
table.vh { display: block; }
.tile { min-width: 0; }
@media (max-width: 520px) { .tile b { font-size: 1.45rem; } }

/* =====================================================================
   The hero phone: the real app's screens, rebuilt from the SwiftUI source (deploy/landing-phone.mjs).
   Authored in the app's points at 390 x 844, scaled to the device. Always dark, like the app.
   ===================================================================== */
.dev { --dbg: #0E0A1A; --dline: #2A2147; --dtext: #E9E3FA; --dmuted: #A595C9; --dprimary: #7C3AED; --dpt: #C4B5FD;
  width: 300px; max-width: 100%; margin-inline: auto; position: relative; color: var(--dtext); }
.dev-frame { position: relative; padding: 10px; border-radius: 52px; transform-style: preserve-3d;
  background: linear-gradient(150deg, #4a4363 0%, #19142a 38%, #2c2546 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 5px #0a0712, 0 50px 90px -40px rgba(60, 20, 160, .7), 0 20px 40px -20px rgba(0, 0, 0, .6); }
.dev-frame > span { position: absolute; background: linear-gradient(90deg, #2c2546, #4a4363); border-radius: 2px; }
.btn-a { left: -3px; top: 96px; width: 3px; height: 26px; } .btn-b { left: -3px; top: 142px; width: 3px; height: 46px; }
.btn-c { left: -3px; top: 198px; width: 3px; height: 46px; } .btn-p { right: -3px; top: 156px; width: 3px; height: 74px; }
.dev-screen { position: relative; width: 280px; height: 606px; border-radius: 42px; overflow: hidden; background: var(--dbg); isolation: isolate; }
.dev-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .04) 100%); }
.scr { width: 390px; height: 844px; transform: scale(.7179); transform-origin: 0 0; position: relative; font: 400 17px/1.3 'Figtree', system-ui, sans-serif; letter-spacing: 0; text-align: left; }
.scr * { box-sizing: border-box; }
.scr small, .scr em, .scr u { font-style: normal; text-decoration: none; }
.scr h4, .scr h6, .scr p { margin: 0; }
.scr svg.i { flex: none; }
.sbar { position: absolute; z-index: 5; inset: 0 0 auto 0; height: 54px; padding: 18px 34px 0; display: flex; justify-content: space-between; align-items: flex-start; font-weight: 600; font-size: 17px; background: linear-gradient(var(--dbg) 60%, transparent); }
.sbar b { font-weight: 600; } .sbar > span { display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.isl { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
.hind { position: absolute; z-index: 6; bottom: 8px; left: 50%; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: var(--dtext); opacity: .85; }
.pages { position: absolute; inset: 54px 0 83px 0; overflow: hidden; }
.pg { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: translateX(26px) scale(.985); transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.pg.on { opacity: 1; transform: none; }
.pg:first-child { opacity: 1; transform: none; }
.js .pg:first-child:not(.on) { opacity: 0; transform: translateX(-26px) scale(.985); }
.scroll { padding: 0 20px 30px; will-change: transform; }
.pg.on .scroll { animation: pgscroll var(--dur, 9s) cubic-bezier(.45, 0, .25, 1) 1.4s both; }
@keyframes pgscroll { to { transform: translateY(var(--sc, 0px)); } }
.tabbar { position: absolute; z-index: 4; inset: auto 0 0 0; height: 83px; padding-top: 8px; display: flex; justify-content: space-around; align-items: flex-start; background: rgba(14, 10, 26, .88); backdrop-filter: blur(16px); border-top: .5px solid var(--dline); }
.tb { display: grid; justify-items: center; gap: 2px; width: 70px; color: var(--dmuted); transition: color .4s; }
.tb small { font-size: 10px; font-weight: 500; } .tb.on { color: var(--dprimary); }
.tb .i { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); } .tb.on .i { transform: scale(1.12); }

.strip { height: 84px; display: flex; gap: 6px; justify-content: flex-end; padding: 4px 0 0; border-bottom: 1px solid var(--dline); margin-inline: -20px; padding-inline: 16px; }
.chp { width: 42px; height: 76px; border-radius: 14px; display: grid; justify-items: center; align-content: center; gap: 4px; }
.chp small { font-size: 11px; color: var(--dmuted); } .chp b { font-size: 15px; font-weight: 400; } .chp.sel { box-shadow: inset 0 0 0 2px var(--dpt); }
.ttl { padding: 12px 0 16px; } .ttl small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--dmuted); margin-bottom: 2px; }
.ttl h4, .lt { font: 800 42px/1.05 'Archivo', system-ui, sans-serif; font-stretch: 125%; letter-spacing: -.02em; } .ttl .bdg { margin-top: 10px; }
.lt { font-size: 36px; padding: 4px 0 10px; } .nav { height: 40px; display: flex; justify-content: space-between; align-items: center; color: var(--dpt); }
.blk { border-top: .5px solid var(--dline); padding: 16px 0; } .ttl + .blk { border-top: .5px solid var(--dline); }
.sec { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; color: var(--dmuted); margin-bottom: 12px; text-transform: uppercase; }
.sec em { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--dpt); text-transform: none; }
.ft { font-size: 13px; color: var(--dmuted); } .ft.pad { padding: 0 0 20px; }
.bdg { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); white-space: nowrap; }
.r3 { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; text-align: center; }
.r3 h6 { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--dmuted); }
.r3 h6 .i { color: var(--dpt); } .r3 h6.top { margin: 0 0 8px; text-transform: none; font-weight: 600; letter-spacing: 0; font-size: 12px; }
.rg2 { position: relative; display: inline-block; } .rg2 svg { display: block; }
.rg2t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rg2t b { font: 800 27px/1 'Archivo', system-ui, sans-serif; font-stretch: 125%; } .rg2t small { font-size: 11px; color: var(--dmuted); margin-top: 3px; }
.arow { display: flex; align-items: center; gap: 22px; } .alines { display: grid; gap: 8px; }
.alines div { display: flex; align-items: center; gap: 8px; } .alines i { width: 9px; height: 9px; border-radius: 50%; }
.alines span { width: 66px; font-size: 15px; color: var(--dmuted); } .alines b, .vv, .actrow strong, .nx > b, .hv2 b { font: 800 20px/1.1 'Archivo', system-ui, sans-serif; font-stretch: 125%; }
.alines small, .vv small, .hv2 em { font: 400 12px 'Figtree', system-ui, sans-serif; color: var(--dmuted); margin-left: 3px; }
.actrow { display: flex; align-items: center; gap: 12px; padding: 4px 0; } .actrow > div { flex: 1; } .actrow b { display: block; font-weight: 600; } .actrow small { color: var(--dmuted); font-size: 12px; } .actrow strong { font-size: 19px; }
.nrow2 { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; } .nx { display: grid; gap: 7px; justify-items: start; } .nx small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dmuted); }
.nrow { margin-top: 14px; } .nl { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; } .nl .i { color: var(--dpt); } .nl span { flex: 1; }
.nl b { font-weight: 600; } .nl small { font-weight: 400; color: var(--dmuted); } .nl u { font-size: 12px; color: var(--dmuted); width: 34px; text-align: right; }
.nb { height: 10px; border-radius: 99px; background: rgba(165, 149, 201, .18); overflow: hidden; } .nb i { display: block; height: 100%; border-radius: 99px; transform-origin: 0 50%; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; } .vl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dmuted); margin-bottom: 4px; }
.vv { font-size: 24px; margin-bottom: 6px; }
.gcard { margin-top: 12px; padding: 16px; border-radius: 16px; background: #17112A; box-shadow: inset 0 0 0 1px var(--dline); }
.gtop { display: flex; gap: 14px; align-items: center; } .gtx { display: grid; gap: 4px; justify-items: start; } .gtx b { font-weight: 600; font-size: 17px; } .gtx span { font-size: 12px; color: var(--dmuted); }
.gl { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; } .gl small { color: var(--dmuted); } .gl em { font-size: 12px; color: var(--dmuted); align-self: center; }
.gbar { position: relative; height: 10px; border-radius: 99px; background: rgba(165, 149, 201, .18); margin-top: 8px; } .gbar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transform-origin: 0 50%; }
.gbar s { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--dtext); } .gcard p { margin-top: 8px; font-size: 11px; color: var(--dmuted); }
.trow { display: flex; align-items: center; gap: 12px; color: var(--dpt); } .trow b { flex: 1; font: 800 17px 'Archivo', system-ui, sans-serif; font-stretch: 125%; color: var(--dtext); } .trow span { color: var(--dmuted); font-size: 22px; }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(120, 100, 170, .2); margin: 4px 0 6px; }
.seg span { flex: 1; text-align: center; font-size: 13px; padding: 6px 4px; border-radius: 7px; color: var(--dmuted); } .seg .on { background: rgba(255, 255, 255, .15); color: var(--dtext); font-weight: 600; }
.chips { display: flex; gap: 8px; margin: 8px -20px 10px; padding: 0 20px; overflow: hidden; }
.fc2 { padding: 7px 12px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--dmuted); white-space: nowrap; } .fc2.on { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--dtext); }
.alist { margin-top: 8px; } .arw { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: .5px solid var(--dline); } .am { flex: 1; }
.am b { font-weight: 500; display: flex; align-items: center; gap: 6px; } .am u { font-size: 11px; font-weight: 600; color: var(--dmuted); background: rgba(42, 33, 71, .7); padding: 1px 7px; border-radius: 99px; }
.am small, .ar small { display: block; font-size: 13px; color: var(--dmuted); } .ar { text-align: right; } .ar b { font-size: 15px; font-weight: 600; }
.shead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--dpt); } .shead small { flex: 1; font-size: 13px; color: var(--dmuted); } .shead span { color: var(--dmuted); letter-spacing: 6px; }
.leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--dmuted); } .leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; } .leg b { color: var(--dtext); font-weight: 400; }
.hv2 { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: .5px solid var(--dline); } .hl { display: flex; gap: 12px; align-items: flex-start; color: var(--dpt); }
.hl small { display: block; font-size: 12px; color: var(--dmuted); } .hl > div > div { margin-top: 4px; font-size: 11px; color: var(--dmuted); }
.s3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; text-align: center; } .sm3 { display: grid; justify-items: center; gap: 2px; color: var(--dpt); } .sm3 b { color: var(--dtext); font-size: 15px; font-weight: 600; } .sm3 small { font-size: 11px; color: var(--dmuted); }

/* the phone's own motion: each screen builds when it comes on */
.pg .arc { stroke-dasharray: var(--v) 100; }
.js .pg .arc { stroke-dasharray: 0 100; }
.js .pg.on .arc { stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.3s cubic-bezier(.22, 1, .36, 1) calc(.3s + var(--d, 0s)); }
.js .pg .gx { transform: scaleX(0); } .js .pg.on .gx { transform: none; transition: transform 1s cubic-bezier(.22, 1, .36, 1) .5s; }
.js .pg .gx2 { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; } .js .pg.on .gx2 { transform: none; transition: transform .7s cubic-bezier(.22, 1, .36, 1) calc(.4s + var(--d, 0s)); }
.js .pg .gy { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; } .js .pg.on .gy { transform: none; transition: transform .9s cubic-bezier(.34, 1.3, .64, 1) calc(.4s + var(--d, 0s)); }
.js .pg .dr { stroke-dashoffset: 1; } .js .pg.on .dr { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease calc(.5s + var(--d, 0s)); }
.stage .dev { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .pg, .tb, .tb .i, .dev-frame { transition: none; }
  .pg.on .scroll { animation: none; }
  .js .pg .arc { stroke-dasharray: var(--v) 100; } .js .pg .gx, .js .pg .gx2, .js .pg .gy { transform: none; } .js .pg .dr { stroke-dashoffset: 0; }
  .js .pg:first-child:not(.on) { opacity: 1; transform: none; }
}

/* =====================================================================
   Borderless: no boxes, no fills, no shadows on content. Structure comes from space, type and hairlines,
   like the app itself (ios/Gradual/Theme.swift: "a section is plain content under a hairline").
   ===================================================================== */
:root { --hair: color-mix(in srgb, var(--ink-3) 30%, transparent); }
.panel, .tile, .fc, .tz, .statement article, .flow .node, .next a, .card, .goal { background: none; border: 0; box-shadow: none; border-radius: 0; }
.panel { padding: 0; } .panel + .panel { margin-top: 2.5rem; }
.card { padding: 0; }
.band { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-soft) 70%, transparent) 18%, color-mix(in srgb, var(--bg-soft) 70%, transparent) 82%, transparent); border-block: 0; }
.final.band { background: none; }
.theme, .menu summary, .tabs { border-color: transparent; background: var(--primary-soft); }
.menu .pop { border: 0; box-shadow: var(--shadow); }
header.top { border-bottom-color: var(--hair); border-bottom-width: .5px; }
footer { border-top: .5px solid var(--hair); }
.float { border: 0; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .55); backdrop-filter: blur(16px) saturate(1.3); }

/* number groups instead of tiles */
.tiles { gap: 1.4rem 2rem; }
.tile { padding: .9rem 0 0; border-top: .5px solid var(--hair); position: relative; }
.tile::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.2rem; height: 2px; background: var(--primary); border-radius: 2px; transform-origin: 0 50%; }
.js .tile::before { transform: scaleX(0); transition: transform .9s cubic-bezier(.22, 1, .36, 1) .3s; } .js .tile.in::before { transform: none; }

/* teasers: open columns; a tint fades in on hover, no outline */
.tz { padding: 1.2rem 0 1.4rem; border-top: .5px solid var(--hair); position: relative; transition: transform .3s; }
.tz::after { content: ""; position: absolute; inset: 0 -1rem; border-radius: 22px; background: var(--primary-soft); opacity: 0; transition: opacity .3s; z-index: -1; }
.tz:hover { transform: none; box-shadow: none; border-color: var(--hair); } .tz:hover::after { opacity: 1; }
.teasers { gap: 1.2rem 3rem; }

/* how it works / privacy flow: a line with dots, not four boxes */
.flow { gap: 0; position: relative; margin-top: 2rem; }
.flow .node { padding: 1.6rem 1rem 0 0; position: relative; }
.flow .node::before { content: ""; position: absolute; left: 0; right: 0; top: .45rem; height: 1px; background: var(--hair); transform-origin: 0 50%; }
.flow .node::after { content: ""; position: absolute; left: 0; top: 0; width: .9rem; height: .9rem; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink-3); }
.flow .node.you::after { background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.flow .node.you { background: none; }
.js .flow .node::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.22, 1, .36, 1) calc(var(--d, 0s) + .2s); } .js .flow .node.in::before { transform: none; }

/* privacy statements: hairline rows */
.statement { gap: 0 3rem; }
.statement article { padding: 1.4rem 0; border-top: .5px solid var(--hair); }

/* next links: plain rows with a sliding arrow */
.next { gap: 0 3rem; }
.next a { padding: 1.1rem 0; border-top: .5px solid var(--hair); position: relative; transition: padding .25s; }
.next a::after { content: "→"; position: absolute; right: 0; top: 1.1rem; color: var(--primary); font-size: 1.3rem; transition: transform .25s; }
.next a:hover { padding-left: .5rem; border-color: var(--hair); transform: none; } .next a:hover::after { transform: translateX(6px); }
.pv { border-top-width: .5px; border-top-color: var(--hair); position: relative; } .pv::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.4rem; height: 2px; background: var(--primary); }
.goal { padding: 1rem 0; border-top: .5px solid var(--hair); }
.dchip { border-radius: 14px; } .readout .card { padding: 1rem 0; border-top: .5px solid var(--hair); border-radius: 0; }
.nolist li { padding-bottom: .2rem; }
.ph + section, .head { border: 0; }
.ph h1 { max-width: 18ch; }

/* a thin read-progress line under the header */
.progress { position: fixed; z-index: 6; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--primary), #e879f9, #fb923c); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* page transitions: a short fade and lift between pages (browsers without support just navigate) */
@view-transition { navigation: auto; }
header.top { view-transition-name: site-header; }
::view-transition-old(root) { animation: .22s ease both vt-out; } ::view-transition-new(root) { animation: .45s cubic-bezier(.22, 1, .36, 1) .05s both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } } @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .tile::before, .flow .node::before { transition: none; } .js .tile::before, .js .flow .node::before { transform: none; } .progress { display: none; } }

/* more, subtle motion */
.hero2 h1 em, .ph h1 em { background-size: 220% 100%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.btn.primary { position: relative; overflow: hidden; } .btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); }
.btn.primary:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.chart .mk:last-of-type { transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-in-out 2s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
nav.links a.l, footer nav a, .crumb a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .3s, color .2s, background-color .2s; }
.crumb a:hover, footer nav a:hover { background-size: 100% 1px; text-decoration: none; }
.dev.paused .pg.on .scroll { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero2 h1 em, .ph h1 em, .chart .mk:last-of-type { animation: none; } }

.js .rv-s { transform: translateY(22px) scale(.975); }
.js .rv-s.in { transform: none; }

/* minimal devices: just a line silhouette around the screen, no bezel, no glare, no shadow */
.dev-frame { padding: 8px; border-radius: 52px; background: none; box-shadow: none; border: 1.5px solid color-mix(in srgb, var(--ink) 36%, transparent); }
.dev-frame > span, .dev-glare { display: none; }
.dev-screen { border-radius: 42px; }

/* ---------- the web app in a line-art browser and tablet (deploy/landing-web.mjs) ---------- */
.dev-browser, .dev-tablet { width: 100%; perspective: none; --ws: .4; }
.dev-line { border: 1.5px solid color-mix(in srgb, var(--ink) 36%, transparent); border-radius: 16px; overflow: hidden; background: #0E0A1A; }
.dev-tablet .dev-line { border-radius: 30px; padding: 10px; background: none; }
.dev-tablet .dev-view { border-radius: 20px; overflow: hidden; background: #0E0A1A; }
.dev-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 36%, transparent); background: color-mix(in srgb, var(--ink) 6%, #0E0A1A); }
.dev-bar i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px color-mix(in srgb, #E9E3FA 45%, transparent); }
.dev-url { margin: 0 auto; padding: 1px 36px; border-radius: 9px; font-size: 10px; color: #A595C9; box-shadow: inset 0 0 0 1.2px color-mix(in srgb, #E9E3FA 25%, transparent); }
.dev-view { position: relative; width: 100%; overflow: hidden; container-type: inline-size; }
.wscr { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--ws)); color: #E9E3FA; font: 400 14px/1.4 'Figtree', system-ui, sans-serif; text-align: left;
  background: radial-gradient(900px 480px at 85% -10%, rgba(139, 92, 246, .16), transparent 70%), radial-gradient(700px 400px at -10% 110%, rgba(244, 114, 182, .06), transparent 70%), #0E0A1A; }
.wscr * { box-sizing: border-box; } .wscr small, .wscr em, .wscr u { font-style: normal; text-decoration: none; } .wscr h1, .wscr h2, .wscr h5, .wscr p { margin: 0; }
.wpages { inset: 0; } .wview { position: absolute; inset: 0; }
.w-app { display: flex; height: 100%; } .w-side { width: 240px; flex: none; padding: 24px; border-right: 1px solid rgba(48, 38, 77, .7); background: rgba(14, 10, 26, .6); display: flex; flex-direction: column; }
.w-logo { font: 800 20px 'Archivo', system-ui, sans-serif; font-stretch: 125%; letter-spacing: -.015em; margin-bottom: 40px; color: #f3effb; }
.w-side nav { display: grid; gap: 4px; } .w-nav, .w-out { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: #a595c9; } .w-nav em, .w-out em { flex: 1; }
.w-nav.on { background: rgba(139, 92, 246, .15); color: #ddd6fe; } .w-nav u { font-size: 11px; font-weight: 600; background: #8b5cf6; color: #fff; border-radius: 99px; padding: 0 7px; } .w-out { margin-top: auto; color: #7f6ba6; }
.w-main { flex: 1; overflow: hidden; min-width: 0; } .wscroll { padding: 32px 40px 48px; display: grid; gap: 28px; align-content: start; }
.narrow .wscroll { padding: 28px 28px 40px; gap: 22px; } .narrow .w-side { width: 200px; padding: 18px; }
.w-head { display: flex; justify-content: space-between; align-items: flex-start; } .w-head small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: #a595c9; margin-bottom: 4px; }
.w-head h1 { font: 800 50px/1.05 'Archivo', system-ui, sans-serif; font-stretch: 125%; letter-spacing: -.015em; color: #f3effb; } .w-head .bdg { margin-top: 12px; }
.narrow .w-head h1 { font-size: 40px; } .w-btns { display: flex; gap: 8px; } .w-btns i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 22px; color: #a595c9; box-shadow: inset 0 0 0 1px #30264d; }
.wseg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(48, 38, 77, .55); } .wseg i { font-style: normal; padding: 6px 14px; border-radius: 9px; font-size: 13px; color: #a595c9; } .wseg i.on { background: rgba(255, 255, 255, .14); color: #f3effb; font-weight: 600; }
.wstrip { display: flex; gap: 6px; justify-content: flex-start; margin: -4px 0; } .wc { width: 44px; height: 76px; border-radius: 16px; display: grid; justify-items: center; align-content: center; gap: 6px; } .wc small { font-size: 11px; color: #a595c9; } .wc b { font: 650 14px 'Archivo', system-ui, sans-serif; font-stretch: 110%; } .wc.sel { box-shadow: inset 0 0 0 2px #a78bfa; }
.wp { background: rgba(23, 17, 42, .72); border: 1px solid #2a2147; border-radius: 18px; padding: 20px; } .wp.c { padding: 20px 8px; text-align: center; }
.wr3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .wr3 .wp { display: grid; justify-items: center; gap: 10px; } .rg-c { display: flex; justify-content: center; } .wp .rg2 { margin: 0 auto; }
.wp h5 { display: flex; align-items: center; gap: 6px; font: 600 12px 'Figtree', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #a595c9; } .wp h5 .i { color: #c4b5fd; }
.wh3 h5 { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.wact { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; } .wact h2, .wsp h2, .w-h2 { font: 700 18px 'Archivo', system-ui, sans-serif; font-stretch: 115%; color: #c6b9e3; margin: 0; } .w-h2 { margin-bottom: -8px; }
.wrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .wrow i { width: 10px; height: 10px; border-radius: 50%; } .wrow span { width: 80px; color: #a595c9; }
.wrow b, .wvv, .wx b, .wact2 strong { font: 650 20px 'Archivo', system-ui, sans-serif; font-stretch: 110%; } .wrow small, .wvv small, .wx b small { font: 400 14px 'Figtree', system-ui, sans-serif; color: #a595c9; margin-left: 4px; }
.wsp { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; } .wsp > b { font: 650 14px 'Archivo', system-ui, sans-serif; } .wl { font-size: 12px; color: #c4b5fd; }
.wact2 { display: flex; align-items: center; gap: 16px; } .wact2 > div { flex: 1; } .wact2 b { display: block; font-size: 18px; font-weight: 700; color: #f3effb; } .wact2 small { font-size: 12px; color: #7f6ba6; } .wact2 em { width: 80px; text-align: right; font-size: 14px; color: #a595c9; }
.wnf { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } .narrow .wnf { grid-template-columns: 1fr; }
.wnr { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; } .wx { display: grid; gap: 8px; justify-items: start; } .wx b { font: 800 26px/1 'Archivo', system-ui, sans-serif; font-stretch: 125%; } .wx small { font-size: 13px; color: #a595c9; }
.wn { margin-top: 14px; } .wnl { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; } .wnl .i { color: #c4b5fd; } .wnl span { flex: 1; } .wnl b { font-weight: 600; } .wnl small { color: #a595c9; font-weight: 400; }
.wnb { position: relative; height: 8px; border-radius: 99px; background: rgba(48, 38, 77, .5); overflow: hidden; } .wnb i { display: block; height: 100%; border-radius: 99px; transform-origin: 0 50%; } .wnb s { position: absolute; left: 80%; top: 0; width: 2px; height: 100%; background: rgba(233, 227, 250, .55); }
.wvit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .wv { padding: 14px 16px; display: grid; gap: 6px; align-content: start; } .wvl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a595c9; } .wvv { font-size: 30px; line-height: 1.1; } .wv > div:nth-child(3) { font-size: 12px; color: #7f6ba6; } .wv .wsk { margin-top: 4px; } .wsm { color: #7f6ba6; font-size: 12px; }
.wgoals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -12px; } .narrow .wgoals { grid-template-columns: 1fr 1fr; } .wgoal { display: flex; gap: 14px; align-items: center; padding: 16px; } .wgoal > div { display: grid; gap: 4px; justify-items: start; } .wgoal b { font-size: 16px; font-weight: 600; } .wgoal small { font-size: 11px; color: #a595c9; } .wgoal p { font-size: 13px; color: #c6b9e3; }
.wtr { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: #c4b5fd; border-radius: 16px; } .wtr b { flex: 1; font-size: 18px; color: #f3effb; font-weight: 700; } .wtr span { color: #a595c9; }
.wh3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .wh3 .wp { text-align: center; } .wh3 h5 { justify-content: flex-start; } .wnote { margin-top: 10px; font-size: 12px; color: #7f6ba6; text-align: center; }
.wleg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: #a595c9; } .wleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; } .wleg b { color: #e9e3fa; font-weight: 400; }
.wnt { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; } .narrow .wnt { grid-template-columns: 1fr; } .wavg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.narrow .wvit.h { grid-template-columns: 1fr 1fr; } .narrow .wh3 { grid-template-columns: 1fr; }
.wscr .bdg { font-size: 12px; }
.dev-browser .pg, .dev-tablet .pg { transform: none; }
@media (prefers-reduced-motion: reduce) { .dev-browser .pg, .dev-tablet .pg { transition: none; } }

/* hero composition: the browser behind, the phone in front */
.stage { min-height: 0; display: block; position: relative; padding-bottom: 5rem; }
.stage-web { width: min(100%, 560px); margin-left: auto; }
.stage-phone { position: absolute; left: -6%; bottom: 0; width: 300px; transform: scale(.72); transform-origin: 0 100%; z-index: 2; }
@media (max-width: 959px) { .stage { padding-bottom: 0; } .stage-web { width: 100%; } .stage-phone { position: relative; left: auto; transform: none; margin: -2rem auto 0; transform-origin: 50% 0; } }
.tabwrap { max-width: 520px; margin-inline: auto; width: 100%; }

/* labels on charts keep a halo in the page colour so a line or bar passing behind never cuts through the text */
.chart svg > text, .chart svg g text { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }

/* teaser hover tint: the card has real inner padding (cancelled by a negative margin, so text and hairlines still line up
   with the rest of the page) and its overflow is visible, so the tint is a soft rounded box with space around the text */
.tz { overflow: visible; border-top: 0; margin-inline: -1.2rem; padding: 1.5rem 1.2rem 1.6rem; }
.tz::before { content: ""; position: absolute; top: 0; left: 1.2rem; right: 1.2rem; height: .5px; background: var(--hair); transition: opacity .25s; }
.tz::after { inset: 0; border-radius: 22px; }
.tz:hover::before { opacity: 0; }
@media (max-width: 520px) { .tz { margin-inline: -1rem; padding-inline: 1rem; } .tz::before { left: 1rem; right: 1rem; } }

/* An empty ring or line still paints its round end cap as a dot, so hide them until their draw-in starts. */
.js .arc, .js .dr { opacity: 0; }
.js .arc { transition: stroke-dasharray 1.5s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), opacity .01s linear var(--d, 0s); }
.js .dr { transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1) var(--d, 0s), opacity .01s linear var(--d, 0s); }
.js .in .arc, .js .in .dr, .js .dr.in { opacity: 1; }
.js .rg-live .arc { opacity: 1; transition: stroke-dasharray .8s cubic-bezier(.22, 1, .36, 1); }
.js .pg .arc, .js .pg .dr { opacity: 0; }
.js .pg.on .arc { opacity: 1; transition: stroke-dasharray 1.3s cubic-bezier(.22, 1, .36, 1) calc(.3s + var(--d, 0s)), opacity .01s linear calc(.3s + var(--d, 0s)); }
.js .pg.on .dr { opacity: 1; transition: stroke-dashoffset 1.6s ease calc(.5s + var(--d, 0s)), opacity .01s linear calc(.5s + var(--d, 0s)); }
.js .pg:not(.on) .arc, .js .pg:not(.on) .dr { transition: none; }
@media (prefers-reduced-motion: reduce) { .js .arc, .js .dr, .js .pg .arc, .js .pg .dr { opacity: 1; transition: none; } }

/* teasers need no top line: spacing and the hover tint are enough */
.tz::before { display: none; }
