/* Fluezo marketing site.
   Tokens mirror the app: Playground palette (grape + orange) for the grown-up
   site, Paper Playhouse (chalk blue + cream + ink) for kid sections.
   Source of truth: lib/theme/theme_palettes.dart, lib/theme/style_variants.dart.
   ponytail: hand-written CSS, no build step. Add a bundler when a second dev
   needs one. */

:root {
  /* Playground brand */
  --grape: #7c4dff;
  --grape-lift: #b79cff;
  --orange: #ff8a3d;
  --coral: #ff5a5f;
  --mint: #4ade80;
  --sky: #6bc9ff;
  --orchid: #d98ef0;
  --gold: #ffd84d;
  --teal: #4dd9d6;

  /* Paper Playhouse (kids) — light only by design */
  --paper-ground: #cfdff0;
  --paper-card: #fffdf6;
  --paper-ink: #26232f;
  --tomato: #e8503a;
  --marigold: #f5a623;
  --leaf: #3e9a6a;
  --paper-sky: #3e8fd4;

  /* Nocturne shapes — flat, hairline, tight radii */
  --r-card: 15px;
  --r-btn: 13px;
  --r-pill: 999px;
  --hairline: 1px;

  --wrap: 1120px;
  --gap: clamp(3rem, 7vw, 6rem);

  --font-display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body: Nunito, system-ui, -apple-system, sans-serif;
  --font-kid: Fredoka, ui-rounded, system-ui, sans-serif;
}

/* Light (default) */
:root {
  --bg: #f6f2ff;
  --bg-alt: #efe9ff;
  --surface: #ffffff;
  --surface-2: #f8f5ff;
  --text: #1e1a2e;
  --text-dim: #5b5470;
  --line: rgba(30, 26, 46, 0.12);
  --primary: #7c4dff;
  --on-primary: #ffffff;
  --success: #16a34a;
  --shadow: 0 1px 2px rgba(30, 26, 46, 0.05), 0 12px 32px rgba(30, 26, 46, 0.07);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(124, 77, 255, 0.16), transparent 70%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1a2e;
    --bg-alt: #191627;
    --surface: #282437;
    --surface-2: #221e33;
    --text: #f3f0ff;
    --text-dim: #a79fc4;
    --line: rgba(255, 255, 255, 0.13);
    --primary: #b79cff;
    --on-primary: #1e1a2e;
    --success: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --glow: radial-gradient(60% 60% at 50% 0%, rgba(183, 156, 255, 0.18), transparent 70%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1e1a2e;
  --bg-alt: #191627;
  --surface: #282437;
  --surface-2: #221e33;
  --text: #f3f0ff;
  --text-dim: #a79fc4;
  --line: rgba(255, 255, 255, 0.13);
  --primary: #b79cff;
  --on-primary: #1e1a2e;
  --success: #4ade80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(183, 156, 255, 0.18), transparent 70%);
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  /* Clears the sticky header (68px + hairline) so a jump to #kids etc.
     doesn't land with its heading half-hidden underneath it. */
  scroll-padding-top: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

section {
  padding-block: var(--gap);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: var(--r-btn);
}

/* ── buttons (Nocturne: flat, tight radius, no 3D edge) ───────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-btn);
  border: var(--hairline) solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.btn--accent {
  background: var(--orange);
  color: #241300;
}

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: var(--hairline) solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-btn);
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav a[aria-current="page"] {
  color: var(--text);
}
.nav .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  color: var(--on-primary);
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-btn);
  border: var(--hairline) solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover {
  background: var(--surface-2);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
}
.theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon {
    display: block;
  }
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .moon {
  display: block;
}
:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}
:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}

@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) var(--gap);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 70vh;
  background: var(--glow);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: var(--hairline) solid var(--line);
}
.stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
}
.stats div span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── phone mockup (CSS, not a screenshot) ─────────────────────────────── */

/* ── real screenshots, no fake markup inside ─────────────────────────── */

.shot-frame {
  position: relative;
  width: min(300px, 100%);
  margin-inline: auto;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3350, #17141f);
  box-shadow: var(--shadow), 0 40px 80px -30px rgba(30, 26, 46, 0.45);
}
.shot-frame__screen {
  border-radius: 31px;
  overflow: hidden;
  line-height: 0;
}
.shot-frame__screen img {
  width: 100%;
  height: auto;
  display: block;
}
.shot-frame__screen .shot-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-frame__screen .shot-light {
    display: none;
  }
  :root:not([data-theme="light"]) .shot-frame__screen .shot-dark {
    display: block;
  }
}
:root[data-theme="dark"] .shot-frame__screen .shot-light {
  display: none;
}
:root[data-theme="dark"] .shot-frame__screen .shot-dark {
  display: block;
}
/* Light-only screens (kids mode has no dark theme) skip the toggle entirely —
   just a single .shot-frame__screen img, no .shot-light/.shot-dark split. */

/* Flat (frameless) screenshot, for gallery grids where the device chrome
   would repeat too much. */
.shot-plain {
  border-radius: var(--r-card);
  overflow: hidden;
  border: var(--hairline) solid var(--line);
  line-height: 0;
}
.shot-plain img {
  width: 100%;
  height: auto;
  display: block;
}
.shot-plain .shot-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-plain .shot-light {
    display: none;
  }
  :root:not([data-theme="light"]) .shot-plain .shot-dark {
    display: block;
  }
}
:root[data-theme="dark"] .shot-plain .shot-light {
  display: none;
}
:root[data-theme="dark"] .shot-plain .shot-dark {
  display: block;
}

/* ── rotating screenshot gallery: one .shot-frame, several slides, dots ── */
/* Every source screenshot is the same device capture (1170×2532), so one
   fixed aspect-ratio on the frame fits every slide with no crop. gallery.js
   drives it; falls back to just showing slide 1 with no JS. */

.shot-gallery {
  width: min(300px, 100%);
  margin-inline: auto;
}
.shot-gallery .shot-frame {
  width: 100%;
  margin-bottom: 1rem;
}
.shot-gallery .shot-frame__screen {
  position: relative;
  aspect-ratio: 1170 / 2532;
}
.shot-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.shot-gallery__slide.is-active {
  opacity: 1;
}
.shot-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.shot-gallery__caption {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  min-height: 1.3em;
  margin-bottom: 0.7rem;
}
/* Paper is always a light ground, whatever the site's own dark/light toggle
   says — var(--text) follows that toggle and goes near-white in dark mode,
   which is nearly invisible here. Force the paper ink instead. */
.paper .shot-gallery__caption {
  color: var(--paper-ink);
}
.shot-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.shot-gallery__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.shot-gallery__dots button.is-active {
  width: 22px;
  background: var(--primary);
}
/* Kids mode's own CTA is tomato, not the site's grape primary — the active
   dot follows suit so it matches "Try it free" right above it. */
.paper .shot-gallery__dots button.is-active {
  background: var(--tomato);
}

.shot-gallery__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 16, 30, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.15s ease;
}
.shot-gallery__arrow:hover {
  background: rgba(20, 16, 30, 0.8);
}
.shot-gallery__arrow svg {
  width: 16px;
  height: 16px;
}
/* Inside the frame by default — on a narrow viewport the gallery is close to
   100% width, so there's no gutter to sit in without causing horizontal
   overflow. Once the layout goes two-column (900px, same breakpoint as
   .split) there's slack beside the phone, so the arrows move out into it. */
.shot-gallery__arrow--prev {
  left: 6px;
}
.shot-gallery__arrow--next {
  right: 6px;
}
@media (min-width: 900px) {
  .shot-gallery__arrow--prev {
    left: -48px;
  }
  .shot-gallery__arrow--next {
    right: -48px;
  }
}
/* ── cards & grids ────────────────────────────────────────────────────── */

.section-head {
  max-width: 60ch;
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: var(--hairline) solid var(--line);
  border-radius: var(--r-card);
  padding: 1.6rem;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.97rem;
}
.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* The two avatar illustrations ("The cast dresses for the genre" and "Not
   everyone is human") — same slot size as every other card__icon on this
   page (42px), just with the app's real painter geometry inside instead of
   an emoji. */
.avatar-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.avatar-icon svg {
  width: 80%;
  height: 80%;
}
.avatar-icon .avatar-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: avatar-blink 5.2s ease-in-out infinite;
}
/* Offset per character — same idea as story_avatar.dart's per-name blink phase,
   so the two avatars on the page never blink in sync. */
.avatar-icon--crocodile .avatar-eyes {
  animation-delay: -2.6s;
}
.avatar-icon svg {
  animation: avatar-bob 4.6s ease-in-out infinite;
}
.avatar-icon--crocodile svg {
  animation-delay: -2.3s;
}
@keyframes avatar-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.08);
  }
}
@keyframes avatar-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Talk on hover: an open-mouth shape and (where the avatar has one) a
   distinct closed-mouth shape cross-fade at speaking cadence — the same
   open/closed pair story_avatar.dart and story_species.dart switch on,
   just driven by :hover here instead of the TTS clock. Idles closed. */
.avatar-mouth-open {
  opacity: 0;
}
.card:hover .avatar-mouth-open {
  animation: avatar-talk-open 0.32s steps(2, jump-none) infinite;
}
.card:hover .avatar-mouth-closed {
  animation: avatar-talk-closed 0.32s steps(2, jump-none) infinite;
}
@keyframes avatar-talk-open {
  0%,
  49% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}
@keyframes avatar-talk-closed {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.card--wide {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento .span-2 {
    grid-column: span 2;
  }
}

/* the five review games, in app hue order */
.games {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
/* Paint fills the wash, ink writes the label — the same split the app makes in
   game_hues.dart, because three of the five hues are too pale for small type on
   the light ground and too dark for it on the plum one. */
.game {
  --paint: var(--g);
  --ink: var(--g-ink, var(--g));
  border-radius: var(--r-card);
  padding: 1.1rem;
  border: var(--hairline) solid;
  background: color-mix(in srgb, var(--paint) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--paint) 40%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .game {
    --paint: var(--g-dk, var(--g));
    --ink: var(--g-dk, var(--g));
  }
}
:root[data-theme="dark"] .game {
  --paint: var(--g-dk, var(--g));
  --ink: var(--g-dk, var(--g));
}
.game b {
  font-family: var(--font-display);
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
}
.game span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* The same tile, given room to explain itself on the practice page. */
.game--big {
  padding: 1.6rem;
}
.game--big b {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.game--big span {
  font-size: 0.95rem;
}
.game__icon {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}

/* ── the correction loop ──────────────────────────────────────────────── */

.loop {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: step;
}
.loop__step {
  background: var(--surface);
  border: var(--hairline) solid var(--line);
  border-radius: var(--r-card);
  padding: 1.4rem;
}
.loop__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.loop__step b {
  font-family: var(--font-display);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.loop__step span:not(.loop__n) {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.alt {
  background: var(--bg-alt);
  border-block: var(--hairline) solid var(--line);
}

/* ── genres (same paint/ink split as .game) ───────────────────────────── */

.genres {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.genre {
  --paint: var(--g);
  --ink: var(--g-ink, var(--g));
  border-radius: var(--r-card);
  padding: 1.2rem;
  border: var(--hairline) solid color-mix(in srgb, var(--paint) 40%, transparent);
  background: color-mix(in srgb, var(--paint) 12%, var(--surface));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .genre {
    --paint: var(--g-dk, var(--g));
    --ink: var(--g-dk, var(--g));
  }
}
:root[data-theme="dark"] .genre {
  --paint: var(--g-dk, var(--g));
  --ink: var(--g-dk, var(--g));
}
.genre__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.genre__icon {
  display: flex;
  flex: none;
}
.genre__icon svg {
  /* Matches the app's own scale: a genre icon sits at 50% of a 40px chip
     (_StoryRow in story_home.dart) — 20px, not a headline graphic. */
  width: 19px;
  height: 19px;
  color: var(--ink);
}
.genre b {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}
.genre > span:last-child {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ── language flags: a slow drift, staggered so it never pulses in sync ── */

.flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.flags li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border-radius: var(--r-pill);
  border: var(--hairline) solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.95rem;
  animation: drift 9s ease-in-out infinite;
}
.flags li span {
  font-size: 1.35rem;
  line-height: 1;
}
/* Nine offsets, cycled — 37 chips never land on the same phase as a neighbour. */
.flags li:nth-child(9n + 1) { animation-delay: -0.4s; }
.flags li:nth-child(9n + 2) { animation-delay: -1.7s; }
.flags li:nth-child(9n + 3) { animation-delay: -3.1s; }
.flags li:nth-child(9n + 4) { animation-delay: -4.6s; }
.flags li:nth-child(9n + 5) { animation-delay: -6.2s; }
.flags li:nth-child(9n + 6) { animation-delay: -7.5s; }
.flags li:nth-child(9n + 7) { animation-delay: -2.3s; }
.flags li:nth-child(9n + 8) { animation-delay: -5.4s; }
.flags li:nth-child(9n + 9) { animation-delay: -8.1s; }

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* ── app store badges ─────────────────────────────────────────────────── */

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-btn);
  background: #14101f;
  border: var(--hairline) solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.store:hover {
  transform: translateY(-1px);
  background: #241d38;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: left;
}
.store small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ── kids band (Paper Playhouse, always light) ────────────────────────── */

.paper {
  background: var(--paper-ground);
  color: var(--paper-ink);
  border-block: 2.5px solid var(--paper-ink);
  font-family: var(--font-body);
}
/* Fredoka is already a chunky face — 700 reads as shouting at display sizes,
   so the kid headings sit two weights lighter than the grown-up ones. */
.paper h1,
.paper h2,
.paper h3 {
  font-family: var(--font-kid);
  font-weight: 500;
  letter-spacing: 0;
}
.paper h3 {
  font-weight: 600;
}
.paper .eyebrow {
  color: var(--tomato);
}
.paper .lede,
.paper .card p {
  color: #4c4757;
}
.paper .card {
  background: var(--paper-card);
  border: 2.5px solid var(--paper-ink);
  border-radius: 14px;
}
.paper .btn {
  background: var(--tomato);
  color: #fff;
  border: 2.5px solid var(--paper-ink);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 0 var(--paper-ink);
  margin-bottom: 6px;
  font-family: var(--font-kid);
}
.paper .btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--paper-ink);
  filter: none;
}
.paper .btn--ghost {
  background: var(--paper-card);
  color: var(--paper-ink);
}
.paper .split {
  align-items: center;
}

/* ── comparison table ─────────────────────────────────────────────────── */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
.compare-scroll {
  overflow-x: auto;
  border: var(--hairline) solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.compare th,
.compare td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: var(--hairline) solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  white-space: nowrap;
}
.compare tbody th {
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.9rem;
  white-space: nowrap;
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

/* ── split layout ─────────────────────────────────────────────────────── */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--narrow-right {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ── gallery ──────────────────────────────────────────────────────────── */

.shots {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.shot figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
}
.shot figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

/* ── FAQ (native <details>) ───────────────────────────────────────────── */

.faq {
  max-width: 780px;
}
.faq details {
  border-bottom: var(--hairline) solid var(--line);
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 2rem 1.1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.4rem;
  color: var(--orange);
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  color: var(--text-dim);
  padding-bottom: 1.1rem;
  margin: 0;
  max-width: 68ch;
}

/* ── CTA band ─────────────────────────────────────────────────────────── */

.cta-band {
  text-align: center;
}
.cta-band .inner {
  background: linear-gradient(135deg, var(--grape), var(--orange));
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  color: #fff;
}
.cta-band h2,
.cta-band p {
  color: #fff;
}
.cta-band p {
  opacity: 0.92;
  max-width: 48ch;
  margin-inline: auto;
}
.cta-band .btn {
  background: #fff;
  color: #2a1a4d;
  margin-top: 1.5rem;
}

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: var(--hairline) solid var(--line);
  padding-block: 3rem 2.5rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  background: var(--bg-alt);
}
.site-footer .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-footer .bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: var(--hairline) solid var(--line);
}

/* ── legal pages ──────────────────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin-inline: auto;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.legal ul {
  padding-left: 1.2rem;
  color: var(--text-dim);
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal p {
  color: var(--text-dim);
}
.legal .updated {
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: var(--hairline) solid var(--line);
  padding-bottom: 1.5rem;
}
.legal .toc {
  background: var(--surface);
  border: var(--hairline) solid var(--line);
  border-radius: var(--r-card);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.legal .toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.93rem;
}
@media (max-width: 600px) {
  .legal .toc ol {
    columns: 1;
  }
}

/* Unfilled legal placeholders. Loud on purpose — these must not ship. */
mark {
  background: #ffe066;
  color: #241300;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
