/* Hallmark · macrostructure: Narrative Workflow · H2 split diptych (art-left, 6/6, screenshot + egg) · F4 stage rail 0.0 to 4.0 · F5 annotated screenshot · F3 price sheet
 * genre: playful · nav: N1b (3-section, always-solid, 2 links) · footer: Ft8 marquee (Feed · Bathe · Play · Sleep) · enrichment: real app screenshots + app sprites (no generated art)
 * theme: custom · vibe: "pocket pet, pastel app palette, soft but exact" · paper: oklch(96.8% 0.012 75) · accent: oklch(76% 0.14 16) + mint/blue/lavender stage accents
 * display: Unbounded 700 · body: Onest 400/600 · axes: light / rounded-display-heavy / multi-accent
 * tone: playful, warm, exact · anchor hue: 16 (tamoPink) · studied: no · context: inferred (brief delegated)
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5
 */
/* Hallmark · tokens · theme: custom (Tamolife app palette, DESIGN_SYSTEM.md)
 * axes: light / rounded-display-heavy / multi-accent (chromatic pastel)
 * Every colour and font in site.css references a token below.
 */
:root {
  color-scheme: light dark;

  /* Paper + ink. Paper = tamoBackground #FAF3EB, ink = the Night wallpaper plum. */
  --color-paper:   oklch(96.8% 0.012 75);
  --color-paper-2: oklch(94% 0.02 75);
  --color-paper-3: oklch(90.5% 0.026 75);
  --color-ink:     oklch(26% 0.05 290);
  --color-ink-2:   oklch(43% 0.04 290);
  --color-rule:    oklch(80% 0.022 75);
  --color-rule-2:  oklch(87% 0.018 75);
  --color-on-accent: oklch(26% 0.05 290);

  /* App accents, one per job (see DESIGN_SYSTEM.md §1). */
  --color-pink:     oklch(76% 0.14 16);   /* tamoPink #FF8B94: primary action, baby */
  --color-pink-deep: oklch(63% 0.16 16);
  --color-pink-ink: oklch(50% 0.17 16);   /* text-safe pink for links */
  --color-blue:     oklch(80% 0.075 215); /* tamoBlue #82CCDD: child, cleanliness */
  --color-mint:     oklch(88% 0.075 165); /* tamoMint #A8E6CF: teen */
  --color-lav:      oklch(78% 0.06 305);  /* tamoLavender #C3AED6: adult, sleep */
  --color-yellow:   oklch(89% 0.17 95);   /* tamoYellow #FFD93D: energy, coins */
  --color-orange:   oklch(83% 0.13 70);   /* tamoOrange #FFB74D: hunger, feed */
  --color-focus:    oklch(55% 0.2 16);
  --color-shadow:   oklch(26% 0.05 290 / 0.14);
  --color-shadow-2: oklch(26% 0.05 290 / 0.07);

  /* Wallpaper gradients, straight from the app (Customize > Wallpaper). */
  --wall-cream-a:  oklch(97% 0.025 80);  --wall-cream-b:  oklch(94% 0.03 78);
  --wall-sky-a:    oklch(88% 0.06 235);  --wall-sky-b:    oklch(80% 0.09 235);
  --wall-sunset-a: oklch(88% 0.08 70);   --wall-sunset-b: oklch(84% 0.09 16);
  --wall-forest-a: oklch(93% 0.05 165);  --wall-forest-b: oklch(73% 0.12 150);
  --wall-night-a:  oklch(34% 0.09 285);  --wall-night-b:  oklch(80% 0.05 305);

  /* Stage bands: the accent mixed into paper. */
  --band-mix: 30%;

  /* Type. Unbounded + Onest both ship full Cyrillic. */
  --font-display: "Unbounded", "Onest", ui-rounded, sans-serif;
  --font-body:    "Onest", ui-sans-serif, sans-serif;

  --text-xs:   0.8rem;
  --text-sm:   0.9rem;
  --text-base: 1.0625rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   clamp(1.6rem, 1.5vw + 1.1rem, 2.2rem);
  --text-2xl:  clamp(2rem, 2.6vw + 1.1rem, 3.1rem);
  --text-display: clamp(2.3rem, 3.6vw + 1rem, 4.4rem);
  --text-numeral: clamp(4.5rem, 9vw + 1rem, 9rem);

  /* 4pt spacing scale. */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --page-max: 72rem;
  --page-gutter: clamp(1rem, 4vw, 3rem);

  --radius-sm: 12px;
  --radius-card: 28px;
  --radius-shot: 30px;
  --radius-pill: 999px;
  --rule-hair: 1px;
  --rule-bold: 3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-press: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 480ms;

  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
}

/* Dark: the app's Night wallpaper. Hue stays, lightness flips. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-paper:   oklch(21% 0.045 290);
    --color-paper-2: oklch(25% 0.05 290);
    --color-paper-3: oklch(29% 0.055 290);
    --color-ink:     oklch(95% 0.014 75);
    --color-ink-2:   oklch(81% 0.03 290);
    --color-rule:    oklch(40% 0.045 290);
    --color-rule-2:  oklch(33% 0.045 290);
    --color-pink-ink: oklch(80% 0.12 16);
    --color-focus:   oklch(80% 0.14 16);
    --color-shadow:   oklch(8% 0.03 290 / 0.5);
    --color-shadow-2: oklch(8% 0.03 290 / 0.3);
    --band-mix: 20%;
  }
}


*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-md); top: -4rem; z-index: var(--z-sticky);
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.skip:focus-visible { top: var(--space-md); }

.shell { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); }

/* ---------- Links + buttons ---------- */
.link {
  color: var(--color-pink-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-micro) var(--ease-out), text-decoration-color var(--dur-micro) var(--ease-out);
}
.link:hover { color: var(--color-ink); text-decoration-color: var(--color-pink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.62rem 1.15rem; min-height: 44px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  color: var(--color-on-accent); background: var(--color-pink);
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 0 var(--color-pink-deep), 0 6px 12px -3px var(--color-shadow);
  transform: translateY(0);
  transition: transform 140ms var(--ease-press), box-shadow 140ms var(--ease-press);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--color-pink-deep), 0 12px 22px -6px var(--color-shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--color-pink-deep), 0 2px 6px -2px var(--color-shadow); transition-duration: 70ms; }
.btn:focus-visible { outline-offset: 4px; }

/* Apple's official badge. The badge art is untouched; only the press moves. */
.badge {
  display: inline-block; border-radius: 10px; line-height: 0;
  transition: transform 140ms var(--ease-press);
}
.badge img { height: 54px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: translateY(2px); transition-duration: 70ms; }
@media (prefers-color-scheme: dark) {
  .badge img { outline: 1px solid var(--color-rule); outline-offset: -1px; border-radius: 9px; }
}

/* ---------- N1b bar ---------- */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); }
.bar__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--space-md); min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.bar__links { display: none; justify-content: center; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.bar__links a, .bar__lang {
  font-weight: 600; font-size: var(--text-sm); text-decoration: none; white-space: nowrap;
  color: var(--color-ink-2);
  padding: var(--space-xs) var(--space-2xs);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.bar__links a:hover, .bar__lang:hover { color: var(--color-ink); border-bottom-color: var(--color-pink); }
.bar__links a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-pink); }
.bar__end { display: inline-flex; align-items: center; gap: var(--space-sm); justify-self: end; }
@media (min-width: 46rem) { .bar__links { display: flex; } }
@media (max-width: 22rem) { .bar__cta { display: none; } }

/* ---------- Hero: art left, copy right ---------- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; gap: var(--space-2xl); align-items: center; }
.hero__art { position: relative; margin: 0; justify-self: center; width: min(100%, 22rem); padding: var(--space-md) var(--space-lg) var(--space-xl) var(--space-2xl); }
.hero__shot {
  border-radius: var(--radius-shot);
  border: var(--rule-hair) solid var(--color-rule);
  transform: rotate(-3deg);
  box-shadow: 0 2px 4px var(--color-shadow-2), 0 30px 60px -30px var(--color-shadow);
  background: var(--color-paper-2);
}
.hero__egg {
  position: absolute; left: -0.5rem; bottom: -0.25rem; width: 42%;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 14px 16px var(--color-shadow));
}
.hero__art figcaption {
  position: absolute; right: -0.25rem; top: 10%;
  background: var(--color-yellow); color: var(--color-on-accent);
  font-weight: 700; font-size: var(--text-xs); line-height: 1.3;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm);
  transform: rotate(4deg); max-width: 9.5rem;
  box-shadow: 0 8px 18px -10px var(--color-shadow);
}
.hero__copy { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { font-size: var(--text-display); max-width: 13ch; }
.hero__lede { font-size: var(--text-md); line-height: 1.5; max-width: 34ch; color: var(--color-ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.meta li + li::before { content: "·"; margin-right: var(--space-sm); color: var(--color-pink-deep); }
@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); }
  .hero__art { justify-self: start; }
}

/* The one character moment: the egg wobbles when you reach for the download. */
@keyframes egg-wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-9deg); }
  45% { transform: rotate(7deg); }
  70% { transform: rotate(-4deg); }
  85% { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero:has(.badge:hover) .hero__egg,
  .hero:has(.badge:focus-visible) .hero__egg,
  .hero__egg:hover { animation: egg-wobble 700ms var(--ease-in-out); }
}

/* ---------- Section heads ---------- */
.head { display: grid; gap: var(--space-md); justify-items: start; align-content: start; }
.head > * { max-width: 44rem; }
.head h2 { font-size: var(--text-2xl); }
.head p { font-size: var(--text-md); line-height: 1.5; color: var(--color-ink-2); max-width: 40ch; }

/* ---------- Narrative Workflow: the stage rail ---------- */
.grow { padding-top: var(--space-2xl); }
.grow > .shell { padding-bottom: var(--space-2xl); }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.stage {
  --stage: var(--color-pink);
  background: color-mix(in oklab, var(--stage) var(--band-mix), var(--color-paper));
  border-top: var(--rule-bold) dashed color-mix(in oklab, var(--stage) 70%, var(--color-ink));
}
.stage[data-stage="0"] { --stage: var(--color-yellow); }
.stage[data-stage="1"] { --stage: var(--color-pink); }
.stage[data-stage="2"] { --stage: var(--color-blue); }
.stage[data-stage="3"] { --stage: var(--color-mint); }
.stage[data-stage="4"] { --stage: var(--color-lav); }
.stage__inner {
  display: grid; gap: var(--space-lg) var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mark" "body" "art";
  padding-block: var(--space-2xl);
}
.stage[data-stage="0"] .stage__inner, .stage[data-stage="4"] .stage__inner { padding-block: var(--space-xl) var(--space-2xl); }
.stage__mark { grid-area: mark; display: flex; align-items: center; gap: var(--space-md); position: relative; }
.stage__num {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-numeral);
  line-height: 0.85; letter-spacing: -0.06em;
  color: color-mix(in oklab, var(--stage) 55%, var(--color-ink));
  font-variant-numeric: tabular-nums;
}
.stage__pet { width: clamp(4.5rem, 10vw, 7rem); filter: drop-shadow(0 10px 10px var(--color-shadow-2)); }
.stage__body { grid-area: body; display: grid; gap: var(--space-md); align-content: start; max-width: 36rem; }
.stage__label {
  justify-self: start;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--color-paper); color: var(--color-ink);
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill);
  border: var(--rule-hair) solid color-mix(in oklab, var(--stage) 70%, var(--color-ink));
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stage h3 { font-size: var(--text-xl); }
.stage__body > p { max-width: 58ch; }
.stage__art { grid-area: art; margin: 0; position: relative; min-width: 0; }

@media (min-width: 60rem) {
  .stage__inner {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "mark body art";
    align-items: start;
  }
  .stage__mark { flex-direction: column; align-items: flex-start; }
  /* The rail: a dashed spine running down through every numeral. */
  .stage__mark::after {
    content: ""; position: absolute; left: 1.6rem; top: calc(100% + var(--space-md));
    height: 100vh; max-height: 40rem;
    border-left: var(--rule-bold) dashed color-mix(in oklab, var(--stage) 60%, var(--color-ink));
    opacity: 0.45; z-index: 0;
  }
  .stage:last-child .stage__mark::after { display: none; }
  .stage { overflow: clip; }
  .stage[data-stage="0"] .stage__inner, .stage[data-stage="4"] .stage__inner { grid-template-areas: "mark body art"; }
}

/* Screenshots inside stages: real captures, hairline + radius, no drawn device. */
.shot {
  border-radius: var(--radius-shot);
  border: var(--rule-hair) solid color-mix(in oklab, var(--stage) 60%, var(--color-rule));
  box-shadow: 0 2px 4px var(--color-shadow-2), 0 24px 48px -28px var(--color-shadow);
  background: var(--color-paper-2);
  width: min(100%, 17rem);
}
.stage__art .shot { margin-inline: auto; }
@media (min-width: 60rem) { .stage__art .shot { margin-inline: 0 auto; } }

/* F5 annotated screenshot: numbered pins over the real Home screen. */
.annotated { position: relative; width: min(100%, 17rem); margin-inline: auto; }
@media (min-width: 60rem) { .annotated { margin-inline: 0 auto; } }
.annotated .shot { width: 100%; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-paper);
  font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px var(--color-paper);
  transform: translate(-50%, -50%);
}

/* Needs to actions: the four pairs, colour-keyed to the app. */
.pairs { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; max-width: 30rem; }
.pairs li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: var(--space-sm); padding: var(--space-xs) 0;
  border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--stage) 50%, var(--color-rule));
}
.pairs .n {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 700; background: var(--color-ink); color: var(--color-paper);
}
.pairs .need { font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-xs); }
.pairs .need::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: var(--radius-pill); background: var(--dot); flex: none; }
.pairs .arrow { color: var(--color-ink-2); }
.pairs .act { color: var(--color-ink-2); }
.pairs .hunger { --dot: var(--color-orange); }
.pairs .happy { --dot: var(--color-pink-deep); }
.pairs .clean { --dot: var(--color-blue); }
.pairs .energy { --dot: var(--color-yellow); }
.pairs-note { font-size: var(--text-sm); color: var(--color-ink-2); }

/* Mini-game list: definition rows, no cards. */
.games { display: grid; gap: var(--space-md); margin: 0; }
.games div { display: grid; gap: var(--space-3xs); padding-left: var(--space-md); border-left: var(--rule-bold) solid color-mix(in oklab, var(--stage) 80%, var(--color-ink)); }
.games dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); letter-spacing: -0.01em; }
.games dd { margin: 0; color: var(--color-ink-2); }
.games dd b { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* F3 price sheet: the whole shop, dense on purpose. */
.sheet { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.sheet section h4 {
  margin: 0 0 var(--space-2xs); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-2);
}
.sheet dl { margin: 0; }
.sheet dl div {
  display: flex; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-2xs) 0;
  border-bottom: var(--rule-hair) dotted color-mix(in oklab, var(--stage) 40%, var(--color-ink-2));
}
.sheet dt { margin: 0; }
.sheet dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: var(--space-2xs); }
.sheet dd::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: var(--radius-pill);
  background: var(--color-yellow); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--color-yellow) 60%, var(--color-orange));
}
.walls { display: flex; flex-wrap: wrap; gap: var(--space-sm); list-style: none; margin: 0; padding: 0; }
.walls li { display: grid; gap: var(--space-2xs); justify-items: center; font-size: var(--text-xs); color: var(--color-ink-2); }
.walls i {
  display: block; width: 3.1rem; height: 3.1rem; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--a), var(--b));
  border: var(--rule-hair) solid var(--color-rule);
}
.w-cream  { --a: var(--wall-cream-a);  --b: var(--wall-cream-b); }
.w-sky    { --a: var(--wall-sky-a);    --b: var(--wall-sky-b); }
.w-sunset { --a: var(--wall-sunset-a); --b: var(--wall-sunset-b); }
.w-forest { --a: var(--wall-forest-a); --b: var(--wall-forest-b); }
.w-night  { --a: var(--wall-night-a);  --b: var(--wall-night-b); }

.pair-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 24rem; margin-inline: auto; }
.pair-shots .shot:first-child { transform: rotate(-2.5deg) translateX(8%); position: relative; z-index: var(--z-raised); }
.pair-shots .shot:last-child { transform: rotate(3deg) translate(-6%, 12%); }
@media (min-width: 60rem) { .pair-shots { margin-inline: 0 auto; } }

/* Stage 4: the pet's own reminder lines, as speech. */
.says { display: grid; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; justify-items: start; }
.says li {
  background: var(--color-paper); padding: var(--space-xs) var(--space-md);
  border-radius: 18px 18px 18px 4px; font-weight: 600;
  box-shadow: 0 6px 16px -10px var(--color-shadow);
}
.says li:nth-child(even) { margin-left: var(--space-lg); }
.stage__art--sad { display: grid; justify-items: center; gap: var(--space-lg); }
.stage__art--sad img { width: min(60%, 12rem); filter: drop-shadow(0 12px 14px var(--color-shadow-2)); }
/* The designed exception: one deadpan sticky note, tilted off the grid. */
.note {
  background: var(--color-yellow); color: var(--color-on-accent);
  padding: var(--space-md) var(--space-lg); border-radius: 6px 6px 22px 6px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); line-height: 1.25;
  transform: rotate(-3deg); max-width: 15rem;
  box-shadow: 0 2px 3px var(--color-shadow-2), 0 16px 24px -14px var(--color-shadow);
}
.note small { display: block; margin-top: var(--space-xs); font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); }

/* Stage reveal: horizontal sweep as a stage scrolls in. CSS only, progressive. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage__inner > * {
      animation: sweep linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 260px;
    }
    .stage__inner > .stage__art { animation-range: entry 40px entry 320px; }
  }
}
@keyframes sweep { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* ---------- Facts: the small print, in large print ---------- */
.facts { padding-block: var(--space-3xl) var(--space-2xl); }
.facts__grid { display: grid; gap: var(--space-xl); }
.spec { margin: 0; border-top: var(--rule-bold) solid var(--color-ink); }
.spec div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs);
  padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule);
}
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--color-ink-2); max-width: 52ch; }
@media (min-width: 44rem) { .spec div { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--space-lg); } }
@media (min-width: 60rem) { .facts__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); } }

/* ---------- Start: one CTA, the egg is waiting ---------- */
.start { padding-block: var(--space-xl) var(--space-3xl); }
.start__box {
  display: grid; gap: var(--space-lg); align-items: center;
  background: var(--color-ink); color: var(--color-paper);
  border-radius: var(--radius-card); padding: var(--space-xl) var(--space-lg);
  position: relative; overflow: clip;
}
.start__box h2 { font-size: var(--text-2xl); max-width: 14ch; }
.start__box p { color: color-mix(in oklab, var(--color-paper) 82%, var(--color-ink)); max-width: 40ch; }
.start__pet { width: 7rem; justify-self: end; }
@media (min-width: 48rem) {
  .start__box { grid-template-columns: minmax(0, 1fr) auto auto; padding: var(--space-2xl); }
  .start__pet { width: 9rem; margin-block: calc(var(--space-2xl) * -1) calc(var(--space-2xl) * -1.4); align-self: end; }
}

/* ---------- Ft8 marquee footer ---------- */
.foot { border-top: var(--rule-bold) solid var(--color-ink); }
.foot__marquee { overflow: clip; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.foot__track { display: flex; width: max-content; white-space: nowrap; animation: marquee 36s linear infinite; }
.foot__track span {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3vw, 2.2rem); padding: var(--space-md) var(--space-lg) var(--space-md) 0;
}
.foot__track span:nth-child(4n+1) { color: var(--color-orange); }
.foot__track span:nth-child(4n+2) { color: var(--color-blue); }
.foot__track span:nth-child(4n+3) { color: var(--color-pink); }
.foot__track span:nth-child(4n+4) { color: var(--color-lav); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.foot__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-sm) var(--space-lg); padding-block: var(--space-lg) var(--space-xl);
  font-size: var(--text-sm); color: var(--color-ink-2);
}
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.foot__links a { text-decoration: none; font-weight: 600; white-space: nowrap; color: var(--color-ink); border-bottom: 2px solid transparent; transition: border-color var(--dur-micro) var(--ease-out); }
.foot__links a:hover { border-bottom-color: var(--color-pink); }

/* ---------- Document pages (support, privacy, terms) ---------- */
.doc { padding-block: var(--space-2xl) var(--space-3xl); }
.doc__grid { display: grid; gap: var(--space-xl); }
.doc__head { display: grid; gap: var(--space-sm); justify-items: start; }
.doc__head h1 { font-size: var(--text-xl); max-width: 18ch; overflow-wrap: break-word; hyphens: auto; }
.doc__head p { color: var(--color-ink-2); }
.doc__head img { width: 6.5rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--text-md); letter-spacing: -0.01em; margin: var(--space-xl) 0 var(--space-xs); line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--space-sm); }
.prose ul { padding-left: 1.2rem; margin: var(--space-xs) 0 0; }
.prose li { margin-bottom: var(--space-2xs); }
.prose li::marker { color: var(--color-pink-deep); }
.prose a { color: var(--color-pink-ink); font-weight: 600; text-underline-offset: 0.2em; }
.date { font-size: var(--text-sm); color: var(--color-ink-2); }
.lang-note { font-size: var(--text-sm); background: var(--color-paper-2); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); max-width: 42rem; }
@media (min-width: 60rem) {
  .doc__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); }
  .doc__head { position: sticky; top: var(--space-xl); align-self: start; }
}

/* Support: contact card + questions. */
.contact {
  display: grid; gap: var(--space-sm); justify-items: start;
  background: color-mix(in oklab, var(--color-mint) var(--band-mix), var(--color-paper));
  border-radius: var(--radius-card); padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-xl);
}
.contact h2 { font-size: var(--text-lg); margin: 0; }
.contact .mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw + 0.4rem, 1.6rem); overflow-wrap: anywhere; color: var(--color-ink); text-decoration-color: var(--color-pink); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.faq { display: grid; gap: 0; border-top: var(--rule-bold) solid var(--color-ink); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md);
  padding-block: var(--space-md); font-weight: 700; font-size: var(--text-md); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--color-pink-deep); transition: transform var(--dur-short) var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-pink-ink); }
.faq details > div { padding-bottom: var(--space-md); color: var(--color-ink-2); max-width: 60ch; }
.faq details > div p + p { margin-top: var(--space-xs); }

/* 404 */
.lost { padding-block: var(--space-3xl); display: grid; gap: var(--space-lg); justify-items: start; }
.lost img { width: 9rem; }
.lost h1 { font-size: var(--text-2xl); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .foot__track { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
.legend { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); text-align: center; }
@media (min-width: 60rem) { .legend { text-align: start; max-width: 17rem; } }
