/* =====================================================================
   Goalivery landing page
   Two visual registers on purpose: ".world" is the warm illustrated
   alien village, ".shell" is the clean disciplined tracking shell.
   Accent is the only chroma in shell sections and is driven entirely by
   --accent / --accent-soft, set live by the picker in main.js.
   No red-as-error, no green-as-success. 8pt spacing only.
   ===================================================================== */

:root {
  /* accent (default amber, light). main.js overwrites these live.
     --accent is the brand hex used for fills, glows, and illustration.
     --accent-ink is a slightly deeper, AA-contrast shade used only for accent
     text and text-bearing buttons, so small copy stays legible. */
  --accent: #D97706;
  --accent-ink: #B45309;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --on-accent: #ffffff;

  /* monochrome scale, light */
  --ink: #1A1A1A;
  --ink-soft: #5C5C5C;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --divider: #E6E6E3;

  /* world gradient stops, light (dusk) */
  --sky-top: #9AD9F0;
  --sky-mid: #C8ECF7;
  --sky-low: #FCE9C2;
  --hut: #E9DCC6;
  --hut-edge: #C9B79A;
  --grass: #BFD9A6;
  --grass-edge: #9DBE84;

  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-text: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

html[data-theme="dark"] {
  --accent: #FBBF24;
  --accent-ink: #FBBF24;
  --accent-soft: rgba(251, 191, 36, 0.16);
  --on-accent: #1A1A1A;
  --ink: #F2F2F0;
  --ink-soft: #A0A0A0;
  --surface: #0E0F14;
  --surface-2: #15171D;
  --divider: #262830;
  --sky-top: #1B1E3A;
  --sky-mid: #16182B;
  --sky-low: #0E0F14;
  --hut: #2A2D3A;
  --hut-edge: #3A3E50;
  --grass: #1E2A22;
  --grass-edge: #2C3B30;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-rounded); margin: 0; line-height: 1.18; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

/* ---- type roles ---- */
.display { font-size: clamp(34px, 5.2vw, 52px); font-weight: 800; }
.title { font-size: clamp(27px, 3.4vw, 36px); font-weight: 800; }
.section-h { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.eyebrow { font-family: var(--font-rounded); font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }
.kicker { font-family: var(--font-rounded); font-size: 15px; font-weight: 600; color: var(--accent-ink); margin-bottom: 16px; }
.kicker.light { color: var(--ink); opacity: .75; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink); opacity: .9; margin-top: 24px; max-width: 38ch; }
.body-lg { font-size: 19px; color: var(--ink-soft); margin-top: 16px; max-width: 46ch; }
.body { font-size: 17px; color: var(--ink-soft); margin-top: 16px; max-width: 42ch; }
.center-body { margin-left: auto; margin-right: auto; }

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 16px; top: 16px; }

section { padding: 96px 0; }
.bridge { padding: 72px 0; text-align: center; }

/* ===== top bar ===================================================== */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.3) blur(14px); background: color-mix(in srgb, var(--surface) 72%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--divider) 60%, transparent); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-rounded); font-weight: 800; }
.brand-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.brand-name { font-size: 18px; letter-spacing: -0.01em; }
.topbar-controls { display: flex; align-items: center; gap: 16px; }
.accent-picker { display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--divider); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; background: var(--dot); cursor: pointer; padding: 0; transition: transform .18s ease, box-shadow .18s ease; }
.swatch:hover { transform: translateY(-1px); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--dot); }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--divider); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.theme-ico { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--ink) 0 48%, transparent 50%); box-shadow: inset -5px -3px 0 -2px var(--surface-2); }

/* ===== pills / links ============================================== */
.pill { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-rounded); font-weight: 600; font-size: 17px; padding: 16px 24px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .16s ease, background .2s ease; }
.pill-primary { background: var(--accent-ink); color: var(--on-accent); }
.pill-primary:hover { transform: translateY(-2px); }
.pill-ghost { background: transparent; color: var(--ink); border-color: var(--divider); }
.pill-ghost:hover { transform: translateY(-2px); border-color: var(--ink-soft); }
.pill.big { padding: 16px 32px; font-size: 18px; }
a:focus-visible, button:focus-visible, [role="radio"]:focus-visible, [role="switch"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cta-row { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.text-link { background: none; border: none; padding: 0; margin-top: 24px; color: var(--accent-ink); font-family: var(--font-rounded); font-weight: 600; font-size: 17px; cursor: pointer; border-bottom: 1.5px solid var(--accent-ink); }
.hint { margin-top: 24px; font-size: 15px; color: var(--ink-soft); }

/* re-tint hook: anything with .glow follows the accent */
.glow { fill: var(--accent); }

/* ===== HERO ======================================================= */
.hero { position: relative; overflow: hidden; padding: 120px 0 80px; }
.sky { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-low) 100%); }
.hero::before { content: ""; position: absolute; left: 50%; top: 30%; width: 720px; height: 720px; transform: translate(-10%, -30%); background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%); z-index: 1; pointer-events: none; }
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 12% 22%, color-mix(in srgb, var(--ink) 22%, transparent) 50%, transparent), radial-gradient(1.5px 1.5px at 28% 12%, color-mix(in srgb, var(--ink) 18%, transparent) 50%, transparent), radial-gradient(1.5px 1.5px at 72% 18%, color-mix(in srgb, var(--ink) 16%, transparent) 50%, transparent), radial-gradient(1.5px 1.5px at 88% 30%, color-mix(in srgb, var(--ink) 20%, transparent) 50%, transparent), radial-gradient(1.5px 1.5px at 58% 8%, color-mix(in srgb, var(--ink) 14%, transparent) 50%, transparent); opacity: .5; animation: twinkle 6s ease-in-out infinite; }
.clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; border-radius: 999px; background: color-mix(in srgb, #ffffff 70%, transparent); filter: blur(2px); opacity: .55; }
html[data-theme="dark"] .cloud { background: color-mix(in srgb, #ffffff 10%, transparent); }
.cloud.c1 { width: 160px; height: 38px; top: 16%; left: -180px; animation: drift 46s linear infinite; }
.cloud.c2 { width: 120px; height: 30px; top: 28%; left: -160px; animation: drift 64s linear infinite; animation-delay: -20s; }

.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 3; }

/* the diorama + phone */
.hero-stage { position: relative; min-height: 420px; }
.diorama { position: relative; width: 100%; height: 420px; }
.ground { position: absolute; left: -6%; right: -6%; bottom: 0; height: 150px; background: linear-gradient(180deg, var(--grass) 0%, color-mix(in srgb, var(--grass) 80%, #000 6%) 100%); border-top: 3px solid var(--grass-edge); border-radius: 60% 60% 0 0 / 36% 36% 0 0; z-index: 1; }
.hut { position: absolute; bottom: 96px; width: 78px; height: 64px; background: var(--hut); border: 3px solid var(--hut-edge); border-radius: 10px 10px 6px 6px; z-index: 2; }
.hut::before { content: ""; position: absolute; left: -10px; right: -10px; top: -34px; height: 40px; background: var(--accent); opacity: .85; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 6px; }
.hut::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 30px; transform: translateX(-50%); background: color-mix(in srgb, var(--hut-edge) 70%, #000 16%); border-radius: 8px 8px 0 0; }
.hut-a { left: 10%; bottom: 120px; transform: scale(.8); }
.hut-b { left: 34%; bottom: 122px; transform: scale(.68); }
.hut-c { display: none; }

.citizen { position: absolute; z-index: 3; width: 104px; }
.citizen svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 8px rgba(0,0,0,.12)); }
.citizen::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 64%; height: 14px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(0,0,0,.18) 0%, transparent 70%); z-index: -1; }
.citizen.tiny { width: 64px; opacity: .92; }
.cz-mossback { left: 2%; bottom: 78px; width: 104px; }
.cz-fox { left: 25%; bottom: 80px; width: 82px; }
.cz-jelly { left: 43%; bottom: 114px; width: 112px; z-index: 4; }

/* meal delivery toy */
.meal { position: absolute; left: 47%; bottom: 224px; z-index: 6; width: 44px; height: 44px; border: none; background: none; cursor: grab; padding: 0; touch-action: none; animation: float 3.4s ease-in-out infinite; }
.meal:active { cursor: grabbing; }
.meal-dot { display: block; width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 6px 12px rgba(0,0,0,.18); }
.meal.dragging { animation: none; transition: none; z-index: 9; }
.meal.gone { opacity: 0; transform: scale(.2); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.fill-circle { position: absolute; left: 56%; bottom: 148px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 28%, transparent); background: transparent; z-index: 5; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.fill-circle.filled { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.delivered-line { position: absolute; left: 40%; bottom: 168px; transform: translate(-50%, 6px); text-align: center; font-family: var(--font-rounded); font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); padding: 8px 16px; border-radius: 16px; max-width: 200px; opacity: 0; transition: opacity .4s ease, transform .4s ease; z-index: 7; pointer-events: none; }
.delivered-line.show { opacity: 1; transform: translate(-50%, 0); }
.cz-jelly.eat { animation: squash .42s ease; }

/* phone frames */
.phone { width: 188px; border-radius: 30px; padding: 8px; background: var(--surface); border: 1px solid var(--divider); box-shadow: 0 24px 50px rgba(0,0,0,.16); }
html[data-theme="dark"] .phone { box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.phone-screen { border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 17.5; position: relative; background: var(--surface); }
.hero-phone { position: absolute; right: -18px; bottom: -12px; z-index: 5; width: 142px; }
.mini-sky { height: 42%; background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
.mini-scene { position: absolute; top: 10%; left: 0; right: 0; height: 36%; display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.mini-citizen { width: 46px; }
.mini-citizen svg { width: 100%; height: auto; display: block; }
.mini-list { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.mini-row { display: flex; align-items: center; gap: 8px; }
.mini-circle { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--divider); flex: none; }
.mini-circle.done { background: var(--accent); border-color: var(--accent); }
.mini-label { font-size: 12px; color: var(--ink); }

.register-seam { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: var(--surface); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 2; }

/* ===== bridge ===================================================== */
.bridge { background: var(--surface); }
.bridge .body-lg { margin: 16px auto 0; }

/* ===== shell sections ============================================ */
.shell { background: var(--surface); }
.shell.alt { background: var(--surface-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.col-text.center { text-align: center; max-width: 680px; margin: 0 auto; }

/* if-then plan card */
.plan-card { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
html[data-theme="dark"] .plan-card { background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 15px; color: var(--ink-soft); font-family: var(--font-rounded); font-weight: 600; }
.field-input { font-size: 21px; padding-bottom: 8px; border-bottom: 2px solid var(--divider); color: var(--ink-soft); transition: color .25s ease, border-color .25s ease; min-height: 34px; }
.field-input.filled { color: var(--ink); border-color: var(--accent); }

/* trajectory */
.toggle-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 32px; flex-wrap: wrap; }
.toggle-label { font-family: var(--font-rounded); font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.toggle-label.active { color: var(--ink); }
.switch { width: 52px; height: 30px; border-radius: 999px; border: none; background: var(--divider); cursor: pointer; padding: 0; position: relative; transition: background .2s ease; flex: none; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch[aria-checked="true"], .switch.on { background: var(--accent); }
.switch[aria-checked="true"] .knob, .switch.on .knob { transform: translateX(22px); }

.grid-stage { position: relative; min-height: 168px; display: grid; place-items: center; }
.trajectory { display: grid; grid-template-columns: repeat(13, 1fr); gap: 8px; max-width: 460px; width: 100%; }
.cell { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--divider); background: transparent; transition: background .3s ease, border-color .3s ease; }
.cell.on { background: var(--accent); border-color: var(--accent); }
.streak-view { position: absolute; inset: 0; display: none; place-content: center; text-align: center; }
.streak-count { font-family: var(--font-rounded); font-weight: 800; font-size: 64px; color: var(--ink); }
.streak-sub { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }

/* ===== comeback (world) ========================================== */
.comeback { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--sky-mid) 60%, var(--surface)) 0%, var(--surface) 100%); }
.recovery { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, var(--surface)) 0%, var(--surface) 70%); height: 100%; }
.recovery-citizen { width: 92px; }
.recovery-citizen svg { width: 100%; height: auto; display: block; }
.rec-h { font-family: var(--font-rounded); font-weight: 800; font-size: 24px; }
.rec-sub { font-size: 15px; color: var(--ink-soft); max-width: 22ch; }
.rec-btn { margin-top: 8px; font-size: 15px; padding: 8px 24px; }

/* ===== buddy ===================================================== */
.chat { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
html[data-theme="dark"] .chat { background: var(--surface); }
.msg { max-width: 84%; padding: 16px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.msg.buddy { align-self: flex-start; background: var(--surface); border: 1px solid var(--divider); border-bottom-left-radius: 6px; }
html[data-theme="dark"] .msg.buddy { background: var(--surface-2); }
.msg.me { align-self: flex-end; background: var(--accent-ink); color: var(--on-accent); border-bottom-right-radius: 6px; display: flex; align-items: flex-start; gap: 8px; }
.lock-badge { width: 12px; height: 12px; margin-top: 4px; flex: none; border-radius: 2px; border: 1.5px solid currentColor; position: relative; }
.lock-badge::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; transform: translateX(-50%); border: 1.5px solid currentColor; border-bottom: none; border-radius: 6px 6px 0 0; }
.local-only { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.local-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-rounded); font-weight: 600; font-size: 15px; }
.lock { width: 14px; height: 13px; border-radius: 3px; border: 2px solid var(--accent); position: relative; display: inline-block; }
.lock::before { content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; transform: translateX(-50%); border: 2px solid var(--accent); border-bottom: none; border-radius: 6px 6px 0 0; }

/* ===== not-list ================================================= */
.not-list { list-style: none; margin: 48px auto 0; padding: 0; max-width: 720px; display: grid; gap: 0; }
.not-list li { font-family: var(--font-rounded); font-weight: 600; font-size: clamp(18px, 2.2vw, 22px); padding: 24px 8px; border-bottom: 1px solid var(--divider); color: var(--ink); }
.not-list li:first-child { border-top: 1px solid var(--divider); }

/* ===== citizens gallery (world) ================================= */
.citizens { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--sky-low) 50%, var(--surface)) 100%); }
.citizen-gallery { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--divider); }
.gcard .art { width: 84px; position: relative; }
.gcard .art svg { width: 100%; height: auto; display: block; }
.gcard .art::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 60%; height: 8px; transform: translateX(-50%); background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%); z-index: -1; }
.gcard .gname { font-family: var(--font-rounded); font-weight: 600; font-size: 14px; color: var(--ink-soft); }

/* ===== pricing ================================================== */
.tiers { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin-left: auto; margin-right: auto; }
.tier { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 22px; padding: 32px; }
html[data-theme="dark"] .tier { background: var(--surface); }
.tier-featured { border: 2px solid var(--accent); background: var(--surface); }
.tier-name { font-family: var(--font-rounded); font-weight: 700; font-size: 18px; }
.tier-price { font-family: var(--font-rounded); font-weight: 800; font-size: 40px; margin-top: 8px; }
.tier-price .per { font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.tier-note { font-size: 14px; color: var(--accent-ink); margin-top: 4px; font-weight: 600; }
.tier-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.tier-list li { position: relative; padding-left: 24px; font-size: 16px; color: var(--ink); }
.tier-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tier-trial { font-size: 14px; color: var(--ink-soft); margin-top: 24px; line-height: 1.5; }

/* ===== footer (world, night) ==================================== */
.footer { position: relative; overflow: hidden; padding: 112px 0 88px; text-align: center; }
.sky.night { background: linear-gradient(180deg, #0c0f24 0%, #131736 60%, #1b1f3f 100%); }
.footer-inner { color: #F2F2F0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer .title { color: #F8F6F2; max-width: 18ch; }
.footer-note { color: #C7C9D6; font-size: 15px; }
.footer-links { display: flex; align-items: center; gap: 16px; font-size: 15px; color: #C7C9D6; }
.footer-links a, .footer-theme { color: #C7C9D6; text-decoration: none; background: none; border: none; cursor: pointer; font: inherit; }
.footer-links a:hover, .footer-theme:hover { color: #fff; }
.dot-sep { opacity: .5; }
.footer-copy { color: #9A9DB0; font-size: 13px; margin-top: 8px; }

/* ===== legal pages (privacy / terms) ============================ */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 24px 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.legal .updated { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 48px; margin-bottom: 8px; }
.legal p, .legal li { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }
.legal p { margin-top: 16px; }
.legal ul { margin-top: 16px; padding-left: 24px; }
.legal li { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-ink); }
.legal .note { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 16px; padding: 24px; margin-top: 40px; font-size: 15px; }
html[data-theme="dark"] .legal .note { background: var(--surface-2); }

/* ===== reveal ==================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== motion keyframes ========================================= */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.bob { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
/* grounded creatures gently breathe in place (no lift), only the jelly floats */
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.018); } }
.breathe { animation: breathe 4s ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: bottom center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 220px)); } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }
@keyframes squash { 0% { transform: scale(1, 1); } 35% { transform: scale(1.08, 0.9); } 70% { transform: scale(0.96, 1.05); } 100% { transform: scale(1, 1); } }

/* ===== responsive =============================================== */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 96px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; min-height: 360px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .col-card.center, .col-card { display: flex; justify-content: center; }
  .hero-phone { display: none; }
  .citizen-gallery { grid-template-columns: repeat(4, 1fr); }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar-inner { padding: 8px 16px; }
  .brand-name { display: none; }
  .wrap { padding: 0 16px; }
  .citizen-gallery { grid-template-columns: repeat(3, 1fr); }
  .diorama { height: 340px; }
  .cta-row .pill { flex: 1 1 auto; }
}

/* ===== reduced motion =========================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .breathe, .meal, .cloud, .stars, .cz-jelly.eat { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .delivered-line, .fill-circle, .field-input, .cell, .pill, .swatch { transition: none !important; }
}
