/* OneThingDev landing. Tokens follow the app's palette (lib/core/theme/app_colors.dart),
   type (lib/core/theme/app_typography.dart: Nunito 800 display, Inter body, JetBrains Mono
   code) and mascot study (tool/mascot/mascot_lottie.dart). */

:root {
  --bg: #F4F5F3;
  --surface: #FCFCFB;
  --surface-2: #EBEFED;
  --surface-3: #E3E9E7;
  --ink: #15181D;
  --ink-2: #2A3040;
  --muted: #5E6573;
  --line: rgba(21, 24, 29, .09);
  --line-strong: rgba(21, 24, 29, .16);
  --teal: #1A6B62;          /* AppPalette.action */
  --teal-hover: #145850;
  --teal-ink: #1A6B62;      /* AppPalette.primaryInk (light) */
  --teal-deep: #0D3F39;
  --mint: #57D3B6;          /* mascot body */
  --mint-soft: #D9F1EA;
  --rest: #C5CBD1;
  --on-teal: #FFFFFF;
  --shadow: 0 30px 60px -24px rgba(13, 63, 57, .32), 0 12px 24px -12px rgba(13, 63, 57, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-card: 32px;
  --r-big: 40px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1312;
    --surface: #171C1B;
    --surface-2: #1B2221;
    --surface-3: #212A29;
    --ink: #F3F5F7;
    --ink-2: #D5DAD8;
    --muted: #9CA5A2;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --teal-ink: #5FBFB3;   /* AppPalette.primaryInk (dark) */
    --teal-deep: #0B2F2B;
    --mint-soft: #16302C;
    --rest: #4A505A;       /* AppPalette.restRing (dark) */
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 12px 24px -12px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .08em .35em; border-radius: 6px; }
:focus-visible { outline: 2.5px solid var(--teal-ink); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--teal); color: var(--on-teal); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 16px; }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.1rem, 8.4vw, 6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  padding-bottom: .04em;
}
.display-2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display em, .display-2 em { font-style: normal; color: var(--teal-ink); }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40ch; margin-inline: auto; }
.section-title { text-align: center; max-width: 18ch; margin: 0 auto; }
.section-sub { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 46ch; }

/* Buttons: pill, one radius for every control */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15.5px/1 var(--sans);
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), transform .2s var(--ease), border-color .25s var(--ease), translate .45s cubic-bezier(.34, 1.56, .64, 1);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { background: var(--teal); }
.btn[aria-disabled="true"]:active { transform: none; }

/* Nav */
.nav-wrap { position: fixed; inset: 14px 16px auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(1080px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  position: relative;
}
.nav-progress {
  position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--teal));
  transform-origin: left; transform: scaleX(0); opacity: 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17.5px/1 var(--display); letter-spacing: -.005em; }
.brand img { border-radius: 9px; }

/* Hero */
.hero { padding: 148px 16px 40px; text-align: center; position: relative; overflow-x: clip; }
.hero-copy { position: relative; z-index: 2; }
.hero .lead { margin-top: 22px; }
.hero-ctas { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-stage { position: relative; height: clamp(440px, 40vw, 540px); margin-top: 24px; }
.glow {
  position: absolute; left: 50%; top: 46%; width: min(1100px, 140vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 32%, transparent), transparent 72%);
  filter: blur(10px);
  opacity: .8;
}
.ribbon { position: absolute; left: 50%; top: 4%; width: max(100vw, 1100px); height: 92%; transform: translateX(-50%); overflow: visible; }
.ribbon path { fill: none; stroke: var(--teal-deep); stroke-width: 46; stroke-linecap: round; }
.ribbon-text { font: 500 16px var(--mono); fill: #BDEBDD; dominant-baseline: central; letter-spacing: .02em; }

.token-card {
  position: absolute; z-index: 2;
  left: calc(50% + var(--x)); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * .2);
  padding: calc(var(--s) * .11);
  color: #fff; font: 500 calc(var(--s) * .125)/1.25 var(--mono);
  text-align: left; overflow-wrap: anywhere;
  box-shadow: 0 18px 30px -14px rgba(13, 40, 36, .45);
  transform: rotate(var(--r));
  user-select: none; -webkit-user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .token-card { cursor: grab; touch-action: none; }
  .token-card.is-dragging { cursor: grabbing; z-index: 6; box-shadow: 0 30px 50px -18px rgba(13, 40, 36, .55); }
}
.c1 { --x: -390px; --y: 30px;  --s: 118px; --r: -10deg; }
.c2 { --x: -290px; --y: 250px; --s: 104px; --r: 7deg; }
.c3 { --x: -520px; --y: 200px; --s: 92px;  --r: -4deg; }
.c4 { --x: 262px;  --y: 20px;  --s: 112px; --r: 9deg; }
.c5 { --x: 300px;  --y: 236px; --s: 104px; --r: -7deg; }
.c6 { --x: 450px;  --y: 110px; --s: 90px;  --r: 5deg; }
.hero-mascot { position: absolute; z-index: 3; left: 50%; top: 0; width: clamp(240px, 24vw, 320px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.mascot-btn, .get-mascot-btn { all: unset; display: block; width: 100%; cursor: pointer; transform-origin: 50% 90%; -webkit-tap-highlight-color: transparent; }
.mascot-btn:focus-visible, .get-mascot-btn:focus-visible { outline: 2.5px solid var(--teal-ink); outline-offset: 4px; border-radius: 40%; }
.mascot-lottie { display: block; width: 100%; aspect-ratio: 1; }
.hero-bubble { font-size: 1.15rem; margin-bottom: 14px; white-space: nowrap; min-height: 1.25em; }
.hero-bubble em { font-style: normal; color: var(--teal-ink); }
.typing { display: none; gap: 5px; align-items: center; height: 1.25em; padding: 0 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.hero-bubble.is-typing .typing { display: inline-flex; }
.hero-bubble.is-typing .msg { display: none; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 24px; margin: 30px auto 0; }
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 14px; font: 800 1.12rem/1.3 var(--display); }
.pillars i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 22px; color: var(--teal-ink); }

/* Manifesto */
.manifesto { padding: 120px 16px; }
.manifesto-card {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) clamp(24px, 6vw, 96px);
  border-radius: var(--r-big);
  background:
    radial-gradient(520px circle at var(--mx, 85%) var(--my, 0%), rgba(87, 211, 182, .22), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(87, 211, 182, .12), transparent 70%),
    #0E433C;
  color: #EEF8F5;
  text-align: center;
}
.manifesto-card h2 { max-width: 20ch; margin: 0 auto; }
.manifesto-card em { color: #9FE3D9; }
.manifesto-card.is-scrub .word { opacity: calc(.16 + .84 * var(--lit, 0)); transition: opacity .25s linear; }
.manifesto-card p { color: #B9D6CF; max-width: 40ch; margin: 28px auto 0; font-size: 1.12rem; }

/* Memory bento */
.memory { padding: 100px 16px; }
.bento { max-width: 1120px; margin: 56px auto 0; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile { border-radius: var(--r-card); padding: 36px; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.tile h3 { font: 800 1.6rem/1.2 var(--display); letter-spacing: -.01em; }
.tile p { color: var(--muted); margin-top: 8px; max-width: 34ch; }
.tile-review { grid-row: span 2; background: linear-gradient(170deg, var(--mint-soft), var(--surface-2) 70%); justify-content: space-between; }
.tile-sharp { background: #0E433C; color: #EEF8F5; flex-direction: row; align-items: center; }
.tile-sharp p { color: #B9D6CF; }
.tile-run { background: var(--surface-2); }

.review-card { background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.review-eyebrow { font: 500 12.5px/1.4 var(--mono); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.review-q { margin-top: 12px; font-weight: 500; font-size: 1.04rem; line-height: 1.45; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-hint { font: 600 12px/1 var(--sans); color: var(--teal-ink); background: var(--mint-soft); padding: 6px 10px; border-radius: 999px; flex: none; }
.is-answered .review-hint { opacity: 0; transition: opacity .3s; }
.review-options { margin-top: 16px; display: grid; gap: 10px; }
.opt {
  all: unset; box-sizing: border-box; position: relative; cursor: pointer;
  padding: 13px 44px 13px 16px; border-radius: 16px; border: 1.5px solid var(--line-strong);
  font: 400 .97rem/1.4 var(--sans); color: var(--ink-2); background: var(--surface);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .2s var(--ease);
}
.opt:hover { border-color: var(--teal-ink); }
.opt:active { transform: scale(.985); }
.opt:focus-visible { outline: 2.5px solid var(--teal-ink); outline-offset: 2px; }
.opt i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(.3); opacity: 0; font-size: 22px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .25s; }
.opt .ph-check-circle { color: var(--teal-ink); }
.opt .ph-x-circle { color: #C4625A; }
.opt.is-right { border-color: var(--teal-ink); background: color-mix(in srgb, var(--teal-ink) 9%, var(--surface)); }
.opt.is-wrong { border-color: #D9776F; background: color-mix(in srgb, #EF8A86 10%, var(--surface)); }
.opt.is-right .ph-check-circle, .opt.is-wrong .ph-x-circle { opacity: 1; transform: translateY(-50%) scale(1); }
.review-feedback { display: flex; align-items: center; gap: 10px; min-height: 0; max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), margin-top .45s var(--ease), opacity .35s .1s; }
.is-answered .review-feedback { max-height: 120px; margin-top: 14px; opacity: 1; }
.quiz-mascot { width: 52px; height: 52px; flex: none; }
.quiz-line { font-size: .95rem; color: var(--ink-2); }

.ring-wrap { position: relative; width: 132px; flex: none; }
.ring { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-track { stroke: rgba(255, 255, 255, .12); }
.ring-fill { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s var(--ease) .1s; }
.is-on .ring-fill { stroke-dashoffset: calc(100 - var(--pct)); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring-label strong { font: 800 1.9rem var(--display); }
.ring-label > span { font-size: .82rem; color: #B9D6CF; }
.roll { display: inline-flex; font-variant-numeric: tabular-nums; }
.slot { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
.reel { display: block; }
.reel span { display: block; height: 1em; line-height: 1; text-align: center; }
.due-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #CFEDE6; font: 500 13px/1 var(--sans); }
.js .due-chip { opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js .due-chip.is-in { opacity: 1; transform: none; }

.tile-run { position: relative; }
.replay { all: unset; position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, transform .5s var(--ease); }
.replay:hover { background: var(--surface); color: var(--teal-ink); transform: rotate(-200deg); }
.replay:focus-visible { outline: 2.5px solid var(--teal-ink); }
/* The run, drawn as the app draws it (lib/features/home/presentation/widgets/
   run_chain.dart and run_badge.dart, iOS palette): a badge with the chain mark,
   and a week where consecutive read days share one capsule. */
.tile-run { --chain: #3D9E93; --on-chain: #0B2B27; --today-done: #9FE3D9; --chain-rest: #C9CDD3; --upcoming: #6A6E76; --tile-bg: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  .tile-run { --chain: #5FBFB3; --on-chain: #0D1B19; --chain-rest: #4A505A; --upcoming: #8A919F; }
}
.run { width: 100%; max-width: 400px; }
.run-badge {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 8px 18px -12px rgba(13, 63, 57, .3);
  margin-bottom: 22px; transition: box-shadow .5s var(--ease);
}
.glyph { width: 24px; height: 12px; overflow: visible; flex: none; }
.glyph-link, .glyph-fill { fill: var(--chain); }
.glyph-ring { fill: none; stroke: var(--chain); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 19.5px 6px; }
.glyph-fill { transform-origin: 19.5px 6px; transform: scale(0); }
.run-num { margin-left: 8px; font: 800 19px/1 var(--display); color: var(--ink); transition: color .3s; }
.run-unit { margin-left: 6px; font: 500 13px/1 var(--sans); color: var(--muted); }
.run.is-lit .run-num { color: var(--teal-ink); }
.run.is-lit .run-badge { box-shadow: 0 0 0 4px color-mix(in srgb, var(--chain) 16%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--chain) 55%, transparent); }
.run.is-lit .glyph-fill { transform: scale(1); }

.week { --h: 38px; }
.week-letters { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font: 600 11px/1 var(--sans); letter-spacing: .4px; color: var(--muted); margin-bottom: 7px; }
.week-row { position: relative; height: var(--h); }
.cap {
  position: absolute; top: 0; height: var(--h); border-radius: calc(var(--h) / 2); background: var(--chain);
  left: calc(var(--i) * 100% / 7 + (100% / 7 - var(--h)) / 2);
  width: calc(var(--n) * 100% / 7 + var(--h));
}
.cap-run { --n: 1; }
.run.is-lit .cap-run { --n: 2; }
.mark, .num { position: absolute; top: 0; height: var(--h); left: calc(var(--i) * 100% / 7); width: calc(100% / 7); display: grid; place-items: center; }
.mark::before { content: ""; width: var(--h); height: var(--h); border-radius: 50%; box-sizing: border-box; }
.rest::before { border: 1.5px solid var(--chain-rest); }
.today::before { background: transparent; box-shadow: 0 0 0 5px color-mix(in srgb, var(--chain) 12%, transparent); }
.today svg { position: absolute; width: var(--h); height: var(--h); transform: rotate(-90deg); overflow: visible; }
.today circle { fill: none; stroke: var(--chain); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.today-done { opacity: 0; }
.today-done::before { width: calc(var(--h) + 6px); height: calc(var(--h) + 6px); background: var(--today-done); box-shadow: 0 0 0 3px var(--tile-bg); }
.run.is-lit .today { opacity: 0; }
.run.is-lit .today-done { opacity: 1; }
.num { z-index: 1; font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.num.is-done { color: var(--on-chain); }
.num.is-rest { color: var(--muted); }
.num.is-up { color: var(--upcoming); }
.num.is-today { color: var(--teal-ink); font-weight: 800; }
.run.is-lit .num.is-today { color: #0B2B27; }

/* Forged as it lands: the badge's link grows and its ring closes, the capsules
   sweep in, the rest day's ring and today's ring draw. Once read, the run sweeps
   on into today's place, which fills and swells, and the count rolls on. */
.js .run .glyph-link { transform: scaleX(0); transform-origin: 0.5px 6px; }
.js .run .glyph-ring { stroke-dashoffset: 100; }
.js .run .cap { clip-path: inset(0 100% 0 0 round 999px); }
.js .run .rest { opacity: 0; transform: scale(.5); }
.js .run .today circle { stroke-dashoffset: 100; }
.js .run .today::before { opacity: 0; }
.js .run.is-on .glyph-link { transform: none; transition: transform .45s cubic-bezier(.3, .9, .3, 1) .1s; }
.js .run.is-on .glyph-ring { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease-in-out .35s; }
.js .run.is-on .cap-mon { clip-path: inset(0 0 0 0 round 999px); transition: clip-path .45s cubic-bezier(.3, .9, .3, 1) .25s; }
.js .run.is-on .rest { opacity: 1; transform: none; transition: opacity .3s .55s, transform .5s cubic-bezier(.34, 1.56, .64, 1) .55s; }
.js .run.is-on .cap-run { clip-path: inset(0 0 0 0 round 999px); transition: clip-path .6s cubic-bezier(.3, .9, .3, 1) .75s, width .45s cubic-bezier(.3, .9, .3, 1); }
.js .run.is-on .today circle { stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease-out 1.15s; }
.js .run.is-on .today::before { opacity: 1; transition: opacity .4s 1.5s; }
.js .run.is-lit .today-done::before { animation: swell .6s cubic-bezier(.3, .9, .3, 1) .2s both; }
.js .run.is-lit .glyph-fill { animation: swell .6s cubic-bezier(.3, .9, .3, 1) .15s both; }
.js .run .today-done, .js .run .today { transition: opacity .2s .2s; }
@keyframes swell { 0% { transform: scale(0); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Orbit */
.orbit { padding: 100px 16px; }
.orbit-grid { max-width: 1120px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 56px; position: relative; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ol { fill: none; stroke: var(--teal-ink); stroke-width: 1.5; stroke-linecap: round; opacity: .28; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .8, .3, 1) var(--d, 0s), opacity .3s, stroke-width .3s; }
.is-drawn .ol { stroke-dashoffset: 0; }
.ol.is-hot { opacity: .9; stroke-width: 2.5; }
.pulse { fill: var(--mint); opacity: 0; transition: opacity .6s 1.2s; }
.is-drawn .pulse { opacity: .9; }
.orbit-col li { position: relative; z-index: 1; }
.orbit-col { display: grid; gap: 52px; }
.orbit-col:first-of-type { text-align: right; }
.orbit-col:first-of-type li { justify-items: end; }
.orbit-col li { display: grid; gap: 8px; }
.orbit-col i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--teal-ink); font-size: 20px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s; }
.orbit-col li:hover i { transform: scale(1.18) rotate(-8deg); background: var(--teal); color: #fff; }
.orbit-col h3 { font: 600 1.02rem/1.3 var(--sans); margin-top: 6px; }
.orbit-col p { color: var(--muted); font-size: .97rem; max-width: 26ch; }
.orbit-col:first-of-type p { margin-left: auto; }
.orbit-mascot { width: clamp(240px, 26vw, 340px); position: relative; z-index: 1; }

/* Tracks */
.tracks { padding: 100px 16px; }
.track-list { max-width: 1120px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.covers { position: relative; height: 128px; }
.cover {
  position: absolute; top: 12px; left: 50%;
  width: 104px; height: 104px; border-radius: 20px;
  padding: 11px; color: #fff; font: 500 12.5px/1.25 var(--mono);
  overflow-wrap: anywhere; overflow: hidden;
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .45);
  transition: transform .5s var(--ease);
}
.cover:nth-child(1) { transform: translateX(-108%) rotate(-9deg); }
.cover:nth-child(2) { transform: translateX(-50%) translateY(-6px); z-index: 2; }
.cover:nth-child(3) { transform: translateX(8%) rotate(9deg); }
.track:hover .cover:nth-child(1) { transform: translateX(-122%) rotate(-15deg) translateY(4px); }
.track:hover .cover:nth-child(2) { transform: translateX(-50%) translateY(-14px) rotate(-2deg); }
.track:hover .cover:nth-child(3) { transform: translateX(22%) rotate(15deg) translateY(4px); }
.js .track-list.is-stacked .track { opacity: 0; }
.h0 { background: linear-gradient(160deg, #6B73DB, #23275A); }
.h1 { background: linear-gradient(160deg, #3E9AD0, #0F3550); }
.h2 { background: linear-gradient(160deg, #D0607F, #4A1A2B); }
.h3 { background: linear-gradient(160deg, #43AE9F, #0F3F39); }
.h4 { background: linear-gradient(160deg, #D9932F, #47300F); }
.h5 { background: linear-gradient(160deg, #8DAA3C, #2A3614); }
.track:not(.is-live) .covers { opacity: .42; filter: saturate(.45); }
.track-name { display: flex; align-items: center; gap: 10px; font: 600 1.15rem/1 var(--sans); }
.track-name i { font-size: 22px; color: var(--muted); }
.track.is-live .track-name i { color: var(--teal-ink); }
.track:not(.is-live) .track-name { color: var(--muted); }
.badge { position: absolute; top: 16px; right: 16px; font: 500 12.5px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.track .badge { position: static; align-self: flex-start; }
.badge-live { background: var(--mint-soft); color: var(--teal-ink); }
.track .badge:not(.badge-live) { background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface) 50%, var(--surface-2) 60%) 0 0 / 300% 100%; }

/* Get started */
.get { padding: 60px 16px 120px; }
.get-card {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  border-radius: var(--r-big);
  padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(150deg, var(--mint-soft), var(--surface-3));
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px;
  overflow: hidden;
}
.get-steps { margin: 30px 0 34px; display: grid; gap: 14px; }
.get-steps li { display: flex; align-items: center; gap: 14px; font-size: 1.12rem; }
.step-n { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font: 500 14px var(--mono); color: var(--teal-ink); flex: none; transition: background .3s, border-color .3s; }
.step-n b { font-weight: 500; transition: opacity .2s, transform .3s; }
.step-n i { position: absolute; inset: -1px; display: grid; place-items: center; font-size: 36px; color: var(--teal); opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .2s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.get-steps li.is-done .step-n { background: transparent; border-color: transparent; }
.get-steps li.is-done .step-n b { opacity: 0; transform: scale(.4); }
.get-steps li.is-done .step-n i { opacity: 1; transform: none; }
.js .get-steps li { transition: color .3s; }
.js .get-steps li:not(.is-done) { color: var(--muted); }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.get-copy, .get-mascot { position: relative; z-index: 2; }
.get-mascot-btn { width: min(300px, 70vw); }
.js .get-bubble { opacity: 0; transform: scale(.6) translateY(10px); transform-origin: 50% 100%; transition: opacity .3s, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.js .is-said .get-bubble { opacity: 1; transform: none; }
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.get-mascot { position: relative; display: flex; flex-direction: column; align-items: center; }
.mascot-big { display: block; width: 100%; aspect-ratio: 1; }
.bubble {
  position: relative; z-index: 1; margin-bottom: -18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 12px 20px; font: 800 1.15rem/1.25 var(--display);
  box-shadow: 0 10px 24px -14px rgba(13, 63, 57, .35);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px;
  background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg); border-bottom-right-radius: 4px;
}

/* Footer */
.footer { background: #0B3A34; color: #CFE9E2; border-radius: var(--r-big) var(--r-big) 0 0; padding: 56px clamp(16px, 5vw, 64px) 0; overflow: hidden; }
.footer-top { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-light { color: #EEF8F5; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: .95rem; }
.footer-links a { text-decoration: none; color: #A9CCC3; }
.footer-links a:hover { color: #fff; }
.wordmark {
  font: 900 clamp(2.6rem, 14.2vw, 14.2rem)/.8 var(--display);
  letter-spacing: -.035em; text-align: center; color: #9FE3D9;
  margin: 40px 0 0; white-space: nowrap;
  transform: translateY(.12em);
}
.wordmark .ch { display: inline-block; }
.copyright { max-width: 1120px; margin: 28px auto 0; font-size: .82rem; color: #7FA89E; }

/* Legal pages (generated by tool/site/build_legal.py) */
.legal { padding: 136px 16px 96px; }
.legal article { max-width: 720px; margin: 0 auto; }
.legal-eyebrow { font: 500 13px/1 var(--mono); color: var(--teal-ink); }
.legal-eyebrow a { text-decoration: none; }
.legal h1 { font: 800 clamp(2.4rem, 6vw, 3.6rem)/1.08 var(--display); letter-spacing: -.02em; margin-top: 14px; }
.legal-date { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.legal-body { margin-top: 40px; color: var(--ink-2); }
.legal-body h2 { font: 800 1.45rem/1.25 var(--display); color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 100px; }
.legal-body h3 { font: 600 1rem/1.4 var(--sans); color: var(--ink); margin: 22px 0 6px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.2em; list-style: disc; }
.legal-body li { margin: 6px 0; padding-left: 2px; }
.legal-body li::marker { color: var(--teal-ink); }
.legal-body a { color: var(--teal-ink); text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body code { font-size: .85em; }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.legal-body th { text-align: left; font-weight: 600; color: var(--ink); background: var(--surface-2); }
.legal-body th, .legal-body td { padding: 12px 16px; vertical-align: top; }
.legal-body tbody tr + tr td { border-top: 1px solid var(--line); }
.draft-note { background: #FFF4D6; color: #5C4300; border: 1px solid #F4CC65; border-radius: 14px; padding: 12px 16px; }
mark.todo { background: #FFE58A; color: #3D2E00; border-radius: 4px; padding: 0 3px; }
.legal-page .wordmark { opacity: .9; }

/* Motion (only once JS confirms it runs; reduced motion skips all of it) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .display .w { display: inline-block; white-space: nowrap; }
  /* The hero headline plays the section titles' word rise on load. */
  .js .display .word { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg); animation: word-up .85s cubic-bezier(.34, 1.4, .64, 1) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
  .js .display em .word { animation-name: word-pop; animation-duration: .95s; }
  .js .ch.jig { animation: jig .55s cubic-bezier(.34, 1.56, .64, 1) both !important; }
  .js .section-title .word, .js .get h2 .word { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg); }
  .js .section-title.is-in .word, .js .get-card.is-in h2 .word { animation: word-up .85s cubic-bezier(.34, 1.4, .64, 1) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
  .js .section-title.is-in em .word, .js .get-card.is-in h2 em .word { animation-name: word-pop; animation-duration: .95s; }
  .js .pillars .reveal.is-in i { animation: icon-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--d, 0s) + .15s); }
  .js .wordmark .ch { opacity: 0; transform: translateY(.45em); }
  .js .wordmark.is-in .ch { animation: wave .9s cubic-bezier(.34, 1.4, .64, 1) forwards; animation-delay: calc(var(--c) * 55ms); }
  .js .wordmark.is-in .ch.jig { animation: jig .55s cubic-bezier(.34, 1.56, .64, 1) both !important; opacity: 1; }
  .track .badge:not(.badge-live) { animation: shimmer 3.2s ease-in-out infinite; }
  .shine::after { animation: shine 4s ease-in-out 2.5s infinite; }
  .glow { animation: breathe 7s ease-in-out infinite; }

  @supports (animation-timeline: scroll()) {
    .nav-progress { opacity: 1; animation: progress linear both; animation-timeline: scroll(root); }
  }
  .js .rise { opacity: 0; animation: rise 1s var(--ease) var(--d, 0s) forwards; }
  .js .token-card { animation: card-in .9s var(--ease) both, bob 7s ease-in-out infinite; animation-delay: var(--d, .5s), calc(var(--d, .5s) + 1s); }
  .js .c1 { --d: .45s; } .js .c2 { --d: .6s; } .js .c3 { --d: .75s; }
  .js .c4 { --d: .52s; } .js .c5 { --d: .67s; } .js .c6 { --d: .82s; }
  .js .hero-mascot { animation: rise-x 1s var(--ease) .3s both; }
  .js .hero-bubble { animation: pop 0.6s var(--ease) 1.2s both; transform-origin: 50% 100%; }

  @supports (animation-timeline: view()) {
    .manifesto-card { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes jig { 0% { transform: none; } 30% { transform: translateY(-.18em) rotate(-8deg) scale(1.08); } 60% { transform: translateY(.03em) rotate(4deg) scale(.97, 1.03); } 100% { transform: none; } }
@keyframes word-up { to { opacity: 1; transform: none; } }
@keyframes word-pop { 0% { opacity: 0; transform: translateY(.55em) scale(.8); } 60% { opacity: 1; transform: translateY(-.06em) scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes icon-pop { 0% { transform: scale(.2) rotate(-40deg); } 100% { transform: none; } }
@keyframes wave { 0% { opacity: 0; transform: translateY(.45em); } 100% { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 55% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes breathe { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .95; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.7) rotate(0deg); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes bob { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: translateY(-8px) rotate(var(--r)); } }
@keyframes rise-x { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scale(.9); opacity: .6; } to { transform: none; opacity: 1; } }

/* Tilt: tiles and track cards lean toward the pointer */
.tile, .track { position: relative; }
.tile::after, .track::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%);
  transition: opacity .3s;
}
.js .tile.is-tilting, .js .track.is-tilting { transition: transform .12s ease-out; }
.js .tile.is-settling, .js .track.is-settling { transition: transform .65s cubic-bezier(.34, 1.4, .64, 1); }
.tile.is-tilting::after, .track.is-tilting::after { opacity: 1; }

/* Sparks */
.spark { position: fixed; z-index: 70; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; }
.spark.star { width: 13px; height: 13px; border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* Tablet */
@media (max-width: 1020px) {
  .c3, .c6 { display: none; }
  .c1 { --x: -330px; } .c2 { --x: -260px; } .c4 { --x: 220px; } .c5 { --x: 240px; }
  .track-list { grid-template-columns: repeat(2, 1fr); }
  .orbit-grid { gap: 32px; }
}

/* Phone and small tablet */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .br-desk { display: none; }
  .hero { padding-top: 120px; }
  .hero-stage { height: 430px; }
  .hero-mascot { width: 230px; top: 40px; }
  .hero-bubble { font-size: 1rem; white-space: normal; max-width: 250px; }
  .c1 { --x: -178px; --y: 8px;   --s: 84px; }
  .c2 { --x: -168px; --y: 300px; --s: 80px; }
  .c4 { --x: 92px;   --y: 4px;   --s: 84px; }
  .c5 { --x: 90px;   --y: 300px; --s: 80px; }
  .ribbon-text { font-size: 17px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pillars li { font-size: 1.05rem; }

  .manifesto { padding: 72px 12px; }

  .memory, .orbit, .tracks { padding: 72px 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile-review { grid-row: auto; }
  .tile { padding: 28px 22px; }
  .tile-sharp { flex-direction: column; align-items: flex-start; }

  .orbit-grid { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
  .orbit-lines { display: none; }
  .orbit-mascot { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 200px; }
  .orbit-col, .orbit-col:first-of-type { text-align: left; gap: 32px; }
  .orbit-col:first-of-type li { justify-items: start; }
  .orbit-col:first-of-type p { margin-left: 0; }

  .get-card { grid-template-columns: 1fr; text-align: left; }
  .get-mascot { order: -1; }
  .get-mascot-btn { width: 220px; }
}

@media (max-width: 420px) {
  .track-list { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}
