/* Step Buddy landing. Palette, outlines and offset shadows follow the app's game layer (design/assets/game.css). */

@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito_semibold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito_bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito_extrabold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("../fonts/nunito_black.woff2") format("woff2"); }

:root {
  --ink: #292536;
  --ink-2: #504A60;
  --muted: #6A6372;
  --cream: #FFFBF4;
  --paper: #FFFFFF;
  --canvas: #E9E3F5;
  --sun: #FFD66B;
  --sun-deep: #F4BF3E;
  --sun-soft: #FFF3CC;
  --lilac: #C3B1F5;
  --lilac-soft: #F1EBFF;
  --grape: #6A48B8;
  --mint: #80C9A5;
  --mint-soft: #E3F2E7;
  --sky: #A9DBF5;
  --sky-soft: #EAF7FE;
  --coral: #FF8E72;
  --coral-soft: #FFE3DE;
  --night: #292536;
  --night-2: #41394F;
  --night-ink: #FFFBF4;
  --night-muted: rgba(255, 251, 244, 0.74);
  --line: 2px solid var(--ink);
  --pop: 0 4px 0 var(--ink);
  --pop-lg: 0 6px 0 var(--ink);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 26px 26px 36px 26px;
  --wrap: 1160px;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background: var(--cream); color: var(--ink);
  font: 600 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px;
  border: var(--line); border-radius: 14px; background: var(--sun); box-shadow: var(--pop);
  font-weight: 900; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons, chips, cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: var(--line); border-radius: 18px; background: var(--sun); box-shadow: var(--pop); color: var(--ink);
  font: 900 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--spring), box-shadow .18s var(--spring), background-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--ghost { background: var(--paper); }
.btn--small { min-height: 42px; padding: 0 16px; border-radius: 14px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px;
  border: var(--line); border-radius: 999px; background: var(--paper); box-shadow: 0 3px 0 var(--ink);
  font-size: 14px; font-weight: 900; white-space: nowrap;
}
.chip img { width: 24px; height: 24px; }
.chip--sun { background: var(--sun); }
.chip .dot { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mint); }

.kicker { color: var(--grape); font-size: 14px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.card { border: var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--pop-lg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 244, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent; transition: border-color .2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--ink); }
.nav { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden;
  border: var(--line); border-radius: 14px; background: var(--lilac-soft); box-shadow: 0 3px 0 var(--ink);
}
.brand-mark .sprite { position: absolute; left: 50%; top: 50%; width: 64px; translate: -50% -40%; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.nav-links a:hover { background: var(--canvas); }
.nav .btn { flex: none; }

/* ---------- Sprite strips: one row of square frames, cropped to one frame and stepped ---------- */
.sprite {
  display: block; aspect-ratio: 1; flex: none;
  background-repeat: no-repeat; background-position: 0 0; background-size: calc(var(--n) * 100%) 100%;
  animation: sprite-play var(--dur, 1500ms) steps(var(--n), jump-none) infinite;
}
.sprite[data-still] { animation: none; }
@keyframes sprite-play { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 0;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(41, 37, 54, 0.13) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  border-bottom: var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-bottom: 40px; }
.hero h1 { margin-top: 18px; font-size: clamp(44px, 7vw, 84px); }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: 0.06em; z-index: -1; height: 0.32em;
  border-radius: 8px; background: var(--sun); transform: rotate(-1.5deg);
}
.hero h1 .mark { z-index: 0; }
.lede { margin-top: 20px; max-width: 34ch; color: var(--ink-2); font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; font-weight: 800; }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--grape); flex: none; }

/* Illustrated Today card */
.today { position: relative; max-width: 420px; margin-inline: auto; padding: 18px 18px 16px; overflow: hidden;
  background: linear-gradient(180deg, #E9E0FF 0%, var(--sun-soft) 100%); transform: rotate(1.5deg); }
.today::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -54px; height: 150px; border-radius: 50% 50% 0 0;
  background: #CDEBD9; border-top: var(--line);
}
.today > * { position: relative; }
.today-hud { display: flex; align-items: center; gap: 8px; }
.today-hud .spacer { flex: 1; }
.today-hud .label { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink-2); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ring { position: relative; width: min(260px, 72vw); aspect-ratio: 1; margin: 10px auto 0; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: #fff; stroke-width: 18; }
.ring .track-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.ring .fill { fill: none; stroke: #7758C8; stroke-width: 14; stroke-linecap: round; stroke-dasharray: var(--p, 0) 100; transition: stroke-dasharray 1.6s cubic-bezier(.2,.8,.2,1); }
.ring-buddy {
  position: absolute; left: 50%; top: 49%; width: 96%; translate: -50% -50%;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.ring-buddy .sprite { width: 100%; }
.ring-buddy:not([data-cheer]) .sprite { animation: sprite-play var(--dur) steps(var(--n), jump-none) infinite, bob 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4%) scale(.98, 1.02); } }
.ring-buddy:active .sprite { scale: .96 1.03; }
.flag {
  position: absolute; right: 0; top: 16px; padding: 4px 10px; border: var(--line); border-radius: 12px; background: var(--sun);
  box-shadow: 0 3px 0 var(--ink); font-size: 15px; font-weight: 900; transform: rotate(6deg);
}
.speech {
  position: absolute; left: 0; top: 74px; max-width: 124px; padding: 8px 12px; border: var(--line); border-radius: 16px 16px 16px 4px;
  background: #fff; box-shadow: 0 3px 0 var(--ink); font-size: 13px; font-weight: 900; line-height: 1.25; transform: rotate(-4deg);
}
.heart { position: absolute; left: 50%; top: 4%; z-index: 3; color: #E0567A; font-size: 28px; font-weight: 900; pointer-events: none;
  text-shadow: 0 2px 0 var(--ink); animation: heart-up .9s ease-out forwards; }
@keyframes heart-up { from { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } to { opacity: 0; transform: translateY(-40px) scale(1); } }
.count { margin-top: -2px; text-align: center; }
.count strong { display: block; font-size: 48px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { color: var(--ink-2); font-size: 14px; font-weight: 800; }
.reward { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; margin-top: 14px; padding: 8px 12px 8px 8px;
  border: var(--line); border-radius: 18px; background: #fff; }
.reward img { width: 52px; }
.reward b { display: block; font-size: 15px; font-weight: 900; line-height: 1.2; }
.reward span { color: var(--ink-2); font-size: 12px; font-weight: 800; }
.reward .xp { padding: 4px 10px; border: var(--line); border-radius: 999px; background: var(--lilac-soft); color: var(--grape); font-size: 13px; font-weight: 900; }
.illus-note { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 13px; font-weight: 800; }
.hero-art { position: relative; }
.hero-art .sticker { position: absolute; width: 74px; filter: drop-shadow(0 3px 0 rgba(41,37,54,.18)); animation: float 5s ease-in-out infinite; }
.hero-art .s1 { left: -30px; top: 46%; rotate: -10deg; }
.hero-art .s2 { right: -26px; top: 30%; rotate: 12deg; animation-delay: -2s; }
.hero-art .s3 { right: -22px; bottom: 26%; width: 60px; rotate: 8deg; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Trail: the three starters walk along the bottom of the hero */
.trail { position: relative; height: 140px; border-top: var(--line); background: var(--sun-soft); overflow: hidden; }
.trail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 104px; border-top: 3px dashed rgba(41,37,54,.28);
}
.walker { position: absolute; left: 0; top: -12px; width: 128px; animation: walk-across var(--cross, 26s) linear infinite; animation-delay: var(--delay, 0s); }
.walker .sprite { --dur: 720ms; width: 100%; animation: sprite-play var(--dur) steps(var(--n), jump-none) infinite, step-bounce 360ms ease-in-out infinite; }
@keyframes walk-across { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes step-bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3%; } }
.trail-props { position: absolute; inset: 0; pointer-events: none; }
.trail-props img { position: absolute; bottom: 30px; width: 50px; }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--ink); color: var(--night-ink); border-bottom: var(--line); }
.ribbon ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 0; padding: 18px 0; list-style: none; font-weight: 900; font-size: 16px; }
.ribbon li { display: flex; align-items: center; gap: 10px; }
.ribbon li::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--night-ink); border-radius: 4px; background: var(--sun); rotate: 45deg; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; font-size: clamp(34px, 5vw, 54px); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 19px; font-weight: 700; }
.section-head .kicker { color: var(--grape); font-size: 14px; }
.section--canvas {
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(41, 37, 54, 0.11) 1.2px, transparent 1.4px); background-size: 22px 22px;
  border-block: var(--line);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.feature { padding: 24px; transition: transform .25s var(--spring); }
.feature:nth-child(3n+2) { transform: rotate(-0.8deg); }
.feature:nth-child(3n) { transform: rotate(0.8deg); }
.feature:hover { transform: rotate(0) translateY(-4px); }
.feature-ico { display: grid; place-items: center; width: 64px; height: 64px; border: var(--line); border-radius: 20px; background: var(--bg, var(--sun-soft)); }
.feature-ico img { width: 48px; }
.feature-ico svg { width: 30px; height: 30px; }
.feature h3 { margin-top: 18px; font-size: 23px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-weight: 700; }
.feature small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 800; }

/* Journey */
.journey { padding: 34px; border: var(--line); border-radius: 34px 34px 44px 34px; background: var(--night); color: var(--night-ink); box-shadow: var(--pop-lg); }
.journey-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border: 2px solid rgba(255,251,244,.22); border-radius: 18px; }
.tab {
  min-height: 44px; padding: 0 16px; border: 2px solid transparent; border-radius: 12px; background: none; color: var(--night-ink);
  font: 900 16px/1 var(--font); cursor: pointer; transition: background-color .15s;
}
.tab:hover { background: rgba(255,251,244,.1); }
.tab[aria-selected="true"] { border-color: var(--ink); background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.tab:focus-visible { outline-color: var(--sun); }
.type-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 14px; font-weight: 900; }
.journey-blurb { margin-top: 10px; color: var(--night-muted); font-size: 18px; font-weight: 700; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.stage { position: relative; display: grid; justify-items: center; padding: 18px 14px 20px; border: 2px solid rgba(255,251,244,.16); border-radius: 26px; background: rgba(255,251,244,.05); text-align: center; }
.stage:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 42%; z-index: 1; width: 14px; height: 14px;
  border-top: 3px solid var(--sun); border-right: 3px solid var(--sun); rotate: 45deg;
}
.stage-art { position: relative; width: min(100%, 220px); }
.stage-art::before { content: ""; position: absolute; left: 50%; bottom: 7%; width: 70%; height: 12%; translate: -50% 0; border: 2px solid rgba(255,251,244,.5); border-radius: 50%; }
.stage-art .sprite { position: relative; width: 100%; }
.stage b { display: block; margin-top: 6px; font-size: 22px; font-weight: 900; }
.stage span { color: var(--night-muted); font-size: 15px; font-weight: 800; }
.stage .lv { display: inline-block; margin-top: 6px; padding: 3px 10px; border: 2px solid rgba(255,251,244,.4); border-radius: 999px; color: var(--night-ink); }
.journey-panel[hidden] { display: none; }
.journey-panel:not([hidden]) .stage { animation: pop-in .45s var(--spring) both; }
.journey-panel:not([hidden]) .stage:nth-child(2) { animation-delay: .07s; }
.journey-panel:not([hidden]) .stage:nth-child(3) { animation-delay: .14s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: loop; }
.loop li { position: relative; padding: 20px; border: var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--pop); counter-increment: loop; }
.loop li::before {
  content: counter(loop); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border: var(--line); border-radius: 50%; background: var(--sun); font-weight: 900;
}
.loop b { display: block; font-size: 19px; font-weight: 900; }
.loop p { margin-top: 4px; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.loop img { position: absolute; right: 12px; top: 10px; width: 48px; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.privacy-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; width: 100%; margin-inline: auto;
  border: var(--line); border-radius: 50%; background: var(--sky-soft); box-shadow: var(--pop-lg); }
.privacy-art .sprite { width: 70%; }
.privacy-art .lock {
  position: absolute; right: 8%; top: 10%; display: grid; place-items: center; width: 84px; height: 84px; border: var(--line); border-radius: 26px;
  background: var(--sun); box-shadow: var(--pop); rotate: 10deg;
}
.privacy-art .lock svg { width: 42px; height: 42px; }
.checks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: var(--line); border-radius: 18px; background: var(--paper); }
.checks li::before {
  content: ""; width: 30px; height: 30px; border: var(--line); border-radius: 10px; background: var(--mint) center / 18px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292536' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.checks b { display: block; font-weight: 900; }
.checks span { color: var(--ink-2); font-size: 15px; font-weight: 700; }
.text-link { font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--grape); }

/* Download status */
.status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 34px 40px;
  background: var(--sun); border-radius: 34px 34px 44px 34px; }
.status .egg { position: relative; width: 150px; }
.status .egg img { width: 100%; animation: wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -6deg; } 82% { rotate: 5deg; } 88% { rotate: -3deg; } 94% { rotate: 2deg; } }
.status h2 { font-size: clamp(32px, 4.4vw, 48px); }
.status p { margin-top: 12px; max-width: 54ch; font-size: 18px; font-weight: 700; }
.status .chip { margin-bottom: 14px; }
.status-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.status-facts li { padding: 6px 14px; border: var(--line); border-radius: 999px; background: var(--cream); font-size: 15px; font-weight: 900; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 104px; }
.faq { display: grid; gap: 14px; }
.faq details { border: var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--pop); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 900; border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: var(--line); border-radius: 10px;
  background: var(--sun-soft); font-size: 20px; line-height: 1; transition: rotate .25s var(--spring);
}
.faq details[open] summary::after { rotate: 45deg; background: var(--sun); }
.faq details > div { padding: 0 20px 20px; color: var(--ink-2); font-weight: 700; }
.faq details > div p + p { margin-top: 10px; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: var(--line); background: var(--night); color: var(--night-ink); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand-mark { background: var(--night-2); border-color: var(--night-ink); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.footer-note { margin-top: 14px; max-width: 40ch; color: var(--night-muted); font-size: 15px; font-weight: 700; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; margin: 0; padding: 0; list-style: none; align-content: start; }
.footer-links a { font-weight: 800; text-decoration: none; color: var(--night-ink); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links .tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--night-2); color: var(--sun); font-size: 12px; font-weight: 900; }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px;
  border-top: 2px solid rgba(255,251,244,.14); color: var(--night-muted); font-size: 14px; font-weight: 700; }

/* Reveal on scroll (only when JS ran and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s var(--spring); }
.js .reveal[data-shown] { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-main { padding: 56px 0 96px; }
.legal { max-width: 760px; margin-inline: auto; }
.legal-head h1 { margin-top: 12px; font-size: clamp(40px, 6vw, 60px); }
.legal-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; font-weight: 700; }
.draft-note { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-top: 28px; padding: 16px 18px; border: var(--line); border-radius: 18px; background: var(--sun-soft); box-shadow: var(--pop); font-weight: 700; }
.draft-note svg { width: 36px; height: 36px; }
.draft-note b { display: block; font-weight: 900; }
.legal-toc { margin-top: 28px; padding: 18px 22px; border: 2px dashed rgba(41,37,54,.35); border-radius: 18px; }
.legal-toc ol { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 22px; font-weight: 800; }
.legal section { margin-top: 40px; }
.legal h2 { font-size: 28px; }
.legal section p, .legal section li { color: var(--ink-2); font-weight: 600; }
.legal section > * + * { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; padding-left: 22px; }
.legal strong { color: var(--ink); font-weight: 900; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--canvas); font-size: .92em; }
.legal .meta { margin-top: 48px; padding-top: 20px; border-top: 2px solid rgba(41,37,54,.14); color: var(--muted); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid .section-head { position: static; }
  .privacy-art { max-width: 320px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .section { padding: 72px 0; }
  .journey { padding: 22px 16px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 8px; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stage { padding: 10px 6px 14px; border-radius: 18px; }
  .stage b { font-size: 16px; }
  .stage span { font-size: 13px; }
  .stage:not(:last-child)::after { right: -9px; width: 9px; height: 9px; border-width: 2px; }
  .status { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .status .egg { width: 110px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .features, .loop { grid-template-columns: 1fr; }
  .feature:nth-child(n) { transform: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .today { transform: none; }
  .hero-art .sticker { width: 54px; }
  .hero-art .s3 { display: none; }
  .brand-text-long { display: none; }
  .footer-links { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav .btn { padding: 0 12px; font-size: 14px; }
  .brand { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .sprite, .ring-buddy .sprite, .walker .sprite { animation: none !important; }
  .walker { animation: none !important; transform: translateX(var(--rest, 0)); }
  .js .reveal { opacity: 1; transform: none; }
}

/* Late additions */
.legal-head .kicker, .section-head .kicker { color: var(--grape); font-size: 14px; }
.nav-links a[aria-current="page"] { background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.notfound { display: grid; justify-items: center; gap: 16px; padding: 96px 0; text-align: center; }
.notfound .sprite { width: 220px; }
.notfound h1 { font-size: clamp(40px, 6vw, 60px); }
.notfound p { color: var(--ink-2); font-size: 18px; font-weight: 700; }
