/* Snowbreak site. White, playful wordmark, condensed caps nav, colorful key art with our
   characters, image cards with an accent bar. Our twist: section titles run vertically on the left. */

:root {
  --bg: #ffffff;
  --snow: #f2f7ff;
  --ink: #1b2333;
  --muted: #5a6476;
  --line: #e4eaf2;
  --accent: #2e7cf6;      /* logo and decoration (large text only) */
  --link: #1f63d6;        /* links and buttons: 5.5:1 on white */
  --accent-ink: #ffffff;
  --accent-soft: #e6f0ff;
  --header-h: 68px;
  --radius: 18px;
  --font-logo: "Fredoka", "Arial Rounded MT Bold", "Nunito Sans", system-ui, sans-serif;
  --font-label: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* Character palette (from the app art). */
  --c-paper: #fff6e0;
  --c-red: #c83e31;
  --c-navy: #1f2a4a;
  --c-amber: #ffb84d;
  --c-yellow: #ffd23f;
  --c-coral: #ff6b5b;
  --c-sage: #a9c4a1;
  --c-moon: #e8a24a;
  --c-cream: #fffaf0;
  /* Per-product colors; a product page overrides these via body.theme-<slug>. */
  --p-bg: var(--snow);
  --p-ink: var(--ink);
  --p-accent: var(--link);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--font-body);
}
main { overflow-x: clip; } /* peeking characters never cause sideways scrolling */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.logo:hover { text-decoration: none; }
.logo-small { font-size: 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Sections with vertical titles ---------- */
.sec {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 104px 32px;
}
.sec + .sec { border-top: 1px solid var(--line); }
.sec-label {
  writing-mode: vertical-rl;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
}
.sec-label::before {
  content: "";
  width: 6px; height: 48px;
  border-radius: 3px;
  background: var(--p-deco, var(--p-accent));
}
.sec-body { min-width: 0; }
.sec-intro { font-size: 20px; line-height: 1.7; max-width: 46ch; margin: 0 0 32px; }
.sec-body h3 { font-family: var(--font-logo); font-weight: 600; font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.sec-body p { margin: 0 0 16px; max-width: 68ch; }
.lead-big {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.2;
  margin: 0 0 28px;
  max-width: 20ch;
}

/* ---------- Shared art ---------- */
/* Character SVGs are inlined (build.py {{art:NAME}}); CSS animates their tagged layers. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art .a-eye, .art .a-mouth, .art .a-tail, .art .a-body { transform-box: fill-box; }
.art .a-eye { transform-origin: 50% 55%; }
.art .a-mouth { transform-origin: 50% 15%; }
.art .a-tail { transform-origin: 85% 92%; }
.art .a-body { transform-origin: 50% 100%; }
.art .arc { transform-box: fill-box; transform-origin: 0 50%; }
.scene-ever .a-zz { display: none; } /* Evertails stays quiet: no sleep marks */
.art .a-float { transform-box: fill-box; transform-origin: 50% 50%; }
/* The learner's speech bubble holds one word at a time, in the family's languages (art/say.html).
   Placed from the bubble's text centre in the manifest; sized in cqw of the character box.
   Without motion only the first word ("hi") shows. */
.kv-doodle, .sc-learner { container-type: inline-size; }
.say { position: absolute; left: 82.5%; top: 32.6%; width: 28%; height: 1em; transform: translate(-50%, -50%);
  font: 800 8.5cqw/1 var(--font-body); color: var(--ink); text-align: center; pointer-events: none; }
.say b { position: absolute; inset: 0; font-weight: 800; white-space: nowrap; }
.say b + b { opacity: 0; }
.paw-mark {
  display: block; aspect-ratio: 1;
  background: var(--c-red);
  -webkit-mask: url(/assets/art/paw.svg) center / contain no-repeat;
  mask: url(/assets/art/paw.svg) center / contain no-repeat;
}
.spark {
  position: absolute; display: block; width: 14px; aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url(/assets/art/sparkle.svg) center / contain no-repeat;
  mask: url(/assets/art/sparkle.svg) center / contain no-repeat;
}
.moon-mark {
  display: block; aspect-ratio: 1;
  background: var(--c-moon);
  -webkit-mask: url(/assets/art/moon.svg) center / contain no-repeat;
  mask: url(/assets/art/moon.svg) center / contain no-repeat;
}
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.confetti > * {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 2px;
  background: var(--c-red); opacity: 0;
}
.confetti > :nth-child(1) { --dx: -70px; --dy: -46px; background: var(--c-red); }
.confetti > :nth-child(2) { --dx: -24px; --dy: -78px; background: var(--c-amber); border-radius: 50%; }
.confetti > :nth-child(3) { --dx: 30px; --dy: -74px; background: var(--accent); }
.confetti > :nth-child(4) { --dx: 72px; --dy: -40px; background: var(--c-coral); border-radius: 50%; }
.confetti > :nth-child(5) { --dx: 80px; --dy: 10px; background: var(--c-yellow); }
.confetti > :nth-child(6) { --dx: -82px; --dy: 6px; background: var(--c-sage); border-radius: 50%; }
.confetti > :nth-child(7) { --dx: -46px; --dy: 40px; background: var(--c-amber); }
.confetti > :nth-child(8) { --dx: 50px; --dy: 44px; background: var(--accent); border-radius: 50%; }

/* ---------- Home hero: key visual ---------- */
.hero {
  position: relative;
  min-height: max(640px, calc(100vh - var(--header-h)));
  min-height: max(640px, calc(100svh - var(--header-h)));
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, var(--snow) 55%, #e2edfd 100%);
  text-align: center;
}
.hero-plain { display: grid; place-items: center; padding: 40px 20px 96px; }
.hero-plain > div { position: relative; z-index: 3; }
.hero-404-art { display: block; width: clamp(200px, 26vw, 300px); margin: 0 auto 6px; }
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-sky .spark { width: 18px; }
.hs-1 { left: 12%; top: 16%; color: var(--c-amber); }
.hs-2 { left: 22%; top: 46%; color: var(--accent); width: 12px !important; }
.hs-3 { right: 14%; top: 14%; color: var(--c-coral); width: 22px !important; }
.hs-4 { right: 24%; top: 47%; color: var(--c-sage); }
.hs-5 { left: 46%; top: 7%; color: var(--accent); width: 12px !important; opacity: .6; }
.hs-6 { right: 6%; top: 36%; color: var(--c-yellow); width: 16px !important; }
.hero-text { position: relative; z-index: 3; padding: clamp(96px, 15vh, 150px) 16px 0; }
.hero-mark-wrap { position: relative; display: inline-block; font-size: clamp(72px, 15vw, 200px); }
.hero-mark {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1em;
  line-height: .95;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0;
}
.hero-tag {
  text-wrap: balance;
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink);
  margin: 18px 0 0;
}
.kv { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.kv > a, .hero-text a { pointer-events: auto; }
.kv-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 30%; }
.kv-char { position: absolute; display: block; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.kv-char:hover { text-decoration: none; }
.kv-char > .art { position: relative; }
.kv-char:focus-visible { outline: 3px solid var(--link); outline-offset: 6px; border-radius: 18px; }
.kv-tag {
  position: absolute; left: 50%; bottom: 100%; z-index: 5;
  transform: translate(-50%, 8px); opacity: 0;
  font: 600 15px/1 var(--font-logo); letter-spacing: 0;
  background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(27, 35, 51, .16);
  white-space: nowrap; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.kv-char:hover .kv-tag, .kv-char:focus-visible .kv-tag { opacity: 1; transform: translate(-50%, -6px); }

/* Aengdu planks on top of the wordmark (the only Aengdu in the hero). Units are em of the wordmark. */
.kv-aengdu { left: -.04em; bottom: .47em; width: 1.42em; z-index: 2; }
.kv-aengdu .kv-tag { bottom: 88%; }

/* The DoodleLearn scene starts clear of the vertical "Scroll down" label, which sits in the section-label
   column at max(18px, 50% - 580px); its sun and star reach about 30px left of the box. */
/* The learner's tee is cut flat at the bottom, so the box sits on the hero's bottom edge at every width. */
.kv-doodle { left: max(88px, calc(50% - 503px)); bottom: -1%; width: clamp(220px, 25vw, 330px); }
.kv-sun { position: absolute; left: -9%; top: -14%; width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--c-yellow); }

.kv-ever { left: max(41%, calc(50% - 125px)); bottom: 6%; width: clamp(200px, 23vw, 310px); }
.kv-cushion { position: absolute; left: 2%; right: 4%; bottom: -6%; height: 26%; border-radius: 50%; background: var(--c-sage); }
.kv-dusk { position: absolute; right: -2%; top: -12%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #dfe9da; }
.kv-moon { position: absolute; left: 4%; top: -14%; width: 17%; aspect-ratio: 1; background: var(--c-moon);
  -webkit-mask: url(/assets/art/moon.svg) center / contain no-repeat; mask: url(/assets/art/moon.svg) center / contain no-repeat; }

/* The boy-talk box is 0.82:1 and includes his sound arcs on the right (hidden at rest). The amber lamp
   sits right behind his head so his dark hair reads; the navy night circle around it. */
.kv-mimuji { right: 5%; bottom: -1%; width: clamp(170px, 17vw, 230px); }
.kv-night { position: absolute; left: -24%; top: -14%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: var(--c-navy); }
.kv-lamp { position: absolute; left: -2%; top: 4%; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--c-amber); }
.kv-mimuji .kv-tag { bottom: 102%; }

.flake {
  position: absolute; top: -12px; z-index: 1;
  width: 8px; height: 8px; border-radius: 50%;
  background: #cfe0fb;
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(110vh); } }
.scroll-down {
  position: absolute; z-index: 4; left: max(18px, calc(50% - 620px + 40px)); bottom: 24px;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-down::after { content: ""; width: 1px; height: 40px; background: var(--muted); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Section life ---------- */
.peek-wrap { position: relative; }
.peek-wrap > .features { position: relative; z-index: 1; }
.peek { position: absolute; display: block; pointer-events: none; }
.peek-aengdu { right: 7%; top: -84px; width: 132px; z-index: 0; }
.sec-peek-bottom { position: relative; overflow: clip; }
.peek-boy { right: 7%; bottom: -60px; width: 168px; }
.band { position: relative; background: var(--snow); margin: 56px 0; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V18C20 2 60 2 80 18S140 34 160 18V30Z' fill='%23f2f7ff'/%3E%3C/svg%3E") repeat-x;
  background-size: 160px 30px;
}
.band::before { bottom: calc(100% - 1px); }
.band::after { top: calc(100% - 1px); transform: scaleY(-1); }
.band + .sec, .paw-trail + .sec { border-top: 0; }
.paw-trail {
  max-width: 1240px; margin: 0 auto; padding: 0 32px 0 160px; height: 64px;
  display: flex; align-items: center; gap: clamp(18px, 5vw, 64px);
  border-top: 1px solid transparent;
}
.paw-trail i { width: 24px; background: #cfe0fb; transform: rotate(90deg); }
.paw-trail i:nth-child(even) { transform: translateY(14px) rotate(90deg); }

/* ---------- Product cards: key art tile with an accent bar ---------- */
.products-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.card { color: var(--ink); display: block; }
.card:hover { text-decoration: none; }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--card-bg, var(--snow));
  border-left: 6px solid var(--card-accent, var(--accent));
  border-radius: 4px var(--radius) var(--radius) 4px;
  overflow: hidden;
}
.card:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 8px; }
.card-name {
  font-family: var(--font-logo); font-weight: 600; font-size: 22px; line-height: 1.25;
  margin: 14px 0 2px;
}
.card-sub { font-size: 15px; color: var(--muted); margin: 0; }
.card-big .card-name { font-size: 30px; }
.card-big .card-sub { font-size: 17px; }
.card-list { display: grid; gap: 22px; align-content: start; }
.card-list .card-media { aspect-ratio: 16 / 8; }
.card-list .card-name { font-size: 19px; margin-top: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 36px 28px; }

/* Scenes: a box sized by its width; children are placed in % and cqw (1% of its width). */
.scene { position: relative; overflow: hidden; container-type: inline-size; }
.scene > * { position: absolute; }
.sc-char > .art { position: relative; }

/* Paw Stamps: a stamp card that fills its next slot with a burst, and Aengdu planking under it. */
.scene-paw { background: var(--c-paper); }
.stampcard {
  right: 5%; top: 9cqw; width: 56%;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2cqw;
  padding: 3.6cqw; background: #fff; border-radius: 4cqw;
  box-shadow: 0 1.2cqw 0 #efdcb6;
  transform: rotate(-4deg);
}
.stampcard i { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; border: max(1.5px, .5cqw) dashed #e3c995; }
.stampcard i.on::after, .stampcard i.next::after {
  content: ""; position: absolute; inset: 8%;
  background: var(--c-red); transform: rotate(-12deg);
  -webkit-mask: url(/assets/art/paw.svg) center / contain no-repeat;
  mask: url(/assets/art/paw.svg) center / contain no-repeat;
}
.stampcard i.next::after { opacity: 0; }
.stampcard .confetti { z-index: 2; }
.scene-paw .sc-aengdu { left: 3%; bottom: 3%; width: 64%; }
.card-list .scene-paw .stampcard { top: 7cqw; }
.scene-paw .spark { color: var(--c-red); }
.scene-paw .spark-2 { color: var(--c-amber); left: 44%; top: 8%; }
.scene-paw .spark-3 { color: var(--accent); right: 8%; top: 10%; }

/* Mimuji: the boy under the lamp at night, with sound arcs. */
.scene-mimuji { background: var(--c-navy); color: var(--c-paper); }
.sc-lamp { left: 29cqw; bottom: 9cqw; width: 35cqw; aspect-ratio: 1; border-radius: 50%; background: var(--c-amber); }
.scene-mimuji .sc-boy { left: 30cqw; bottom: -4cqw; width: 40cqw; }
.scene .spark { color: var(--c-paper); width: 3.2cqw; }
.scene .spark-1 { left: 10%; top: 12%; }
.scene .spark-2 { left: 22%; top: 34%; width: 2.2cqw; }
.scene .spark-3 { right: 12%; top: 16%; width: 2.6cqw; }
.scene .spark-4 { right: 26%; top: 6%; width: 2cqw; }
.scene .spark-5 { left: 40%; top: 6%; width: 1.8cqw; }

/* DoodleLearn: the learner saying a word in his bubble, word-stars, and floating words. */
.scene-doodle { background: var(--c-yellow); }
/* On yellow (the card, and the product hero's --hero-bg) the learner's yellow word-star would read as an
   outline only, so it takes the brand coral, as the stars on the DoodleLearn icon do. */
.scene-doodle .a-float-1 > path { fill: var(--c-coral); }
.scene-doodle .sc-learner { left: 24%; bottom: -3cqw; width: 66cqw; }
.sc-word {
  font: 700 max(11px, 3.4cqw)/1 var(--font-body); color: var(--ink);
  background: #fff; padding: .55em .95em; border-radius: 999px;
  box-shadow: 0 .5cqw 0 rgba(43, 33, 23, .12);
}
.sc-word-1 { left: 5%; top: 7cqw; }
.sc-word-2 { left: 4%; top: 25cqw; }
.sc-word-3 { right: 7%; top: 6cqw; }
.sc-word-4, .sc-word-5, .sc-word-6 { display: none; }

/* Evertails: Jojo asleep under the moon. Calm, slow, nothing cute. */
.scene-ever { background: var(--c-sage); }
.sc-moon { left: 13%; top: 8cqw; width: 11cqw; aspect-ratio: 1; background: var(--c-moon);
  -webkit-mask: url(/assets/art/moon.svg) center / contain no-repeat; mask: url(/assets/art/moon.svg) center / contain no-repeat; }
.scene-ever .spark { color: var(--c-cream); }
.scene-ever .sc-jojo { left: 21%; bottom: 7%; width: 58cqw; }
.sc-ground { left: -10%; right: -10%; bottom: -16cqw; height: 30cqw; border-radius: 50%; background: #9bb993; }

.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); vertical-align: -3px; margin-right: 6px; }
.badge {
  display: inline-block;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; vertical-align: middle;
  background: var(--snow); color: var(--muted);
}
.badge-live { background: #e3f6e9; color: #1d7a3c; }
.badge-beta { background: #fff2d9; color: #8a5a00; }
.badge-dev { background: #efeaff; color: #5a3fb0; }

/* ---------- Lists, tables, buttons ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--font-label); letter-spacing: .06em; color: var(--muted); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: var(--muted); }
.facts dd { margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-logo); font-weight: 600; font-size: 18px;
  padding: 14px 30px; border-radius: 999px;
  background: var(--p-accent); color: #fff;
  border: 2px solid var(--p-accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--p-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--p-bg); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Product pages ---------- */
.product-hero { background: var(--hero-bg, var(--p-bg)); color: var(--hero-ink, var(--p-ink)); overflow: hidden; }
.product-hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: end;
}
.product-hero-text { padding: 72px 0 64px; align-self: center; }
.product-hero .btn { background: var(--hero-btn, var(--p-accent)); border-color: var(--hero-btn, var(--p-accent)); color: var(--hero-btn-ink, #fff); }
.product-hero .btn-ghost { background: transparent; color: var(--hero-ghost, var(--p-accent)); border-color: currentColor; }
.ph-scene { aspect-ratio: 5 / 4; width: 100%; background: transparent !important; overflow: visible; }
.product-name { font-family: var(--font-logo); font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 10px 0 12px; }
.product-tagline { font-size: 21px; margin: 0; max-width: 40ch; }
.coming { font-family: var(--font-logo); font-weight: 600; font-size: 19px; margin: 18px 0 0; }
.crumbs { font-family: var(--font-label); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs a { color: inherit; opacity: .75; }
/* Product themes, matched to each app's art. Text on --p-bg and --hero-bg reaches 4.5:1. */
.theme-paw-stamps { --p-bg: #fff6e0; --p-ink: #2b2117; --p-accent: #c83e31; }
.theme-mimuji { --p-bg: #fff4df; --p-ink: #1f2a4a; --p-accent: #1f2a4a; --p-deco: #ffb84d;
  --hero-bg: #1f2a4a; --hero-ink: #fff6e0; --hero-btn: #ffb84d; --hero-btn-ink: #1f2a4a; --hero-ghost: #fff6e0; }
.theme-doodlelearn { --p-bg: #fff6d1; --p-ink: #2b2117; --p-accent: #c9433a; --p-deco: #ff6b5b; --hero-bg: #ffd23f; --hero-ghost: #2b2117; }
.theme-evertails { --p-bg: #eef3eb; --p-ink: #2b2117; --p-accent: #3f5a39; --p-deco: #e8a24a; --hero-bg: #a9c4a1; --hero-ghost: #2b2117; }

/* Product hero scenes (bigger versions of the card scenes). */
.ph-scene.scene-paw .stampcard { left: auto; right: 2%; top: 8cqw; width: 58%; gap: 2cqw; padding: 3.4cqw; grid-template-columns: repeat(5, 1fr); transform: rotate(-3deg); }
.ph-scene.scene-paw .sc-aengdu { left: 0; bottom: 3cqw; width: 88%; }
.ph-scene.scene-paw .stampcard i { border-width: .45cqw; }
.ph-scene .confetti > * { width: 1.8cqw; height: 1.8cqw; }
.ph-scene.scene-mimuji .sc-lamp { left: 23cqw; bottom: 19cqw; width: 53cqw; }
.ph-scene.scene-mimuji .sc-boy { left: 24cqw; bottom: 0; width: 62cqw; }
.ph-scene .spark { width: 3cqw; }
.ph-scene.scene-doodle .sc-learner { left: 3cqw; bottom: 0; width: 94cqw; }
.ph-scene .sc-word { font-size: max(13px, 3.2cqw); }
.ph-scene .sc-word-1 { left: 4%; top: 3cqw; }
.ph-scene .sc-word-2 { left: 40%; top: 2cqw; }
.ph-scene .sc-word-3 { right: 6%; top: 8cqw; }
.ph-scene .sc-word-4 { display: block; right: 3%; top: 68cqw; }
.ph-scene.scene-ever .sc-moon { left: 14%; top: 8cqw; width: 14cqw; }
.ph-scene.scene-ever .sc-jojo { left: 10%; bottom: 10cqw; width: 80cqw; }
.ph-scene.scene-ever .sc-ground { left: 2%; right: 2%; bottom: -8cqw; height: 26cqw; }
.ph-scene.scene-ever .spark-4 { right: 14%; top: 30%; }

/* ---------- Simple documents (privacy, support) ---------- */
.doc { max-width: 760px; }
.doc h2 { font-family: var(--font-logo); font-weight: 600; font-size: 24px; margin: 36px 0 10px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--font-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; } .doc tr:first-child { display: none; } .doc td { border: 0; padding: 4px 0; } .doc tr { border-bottom: 1px solid var(--line); padding: 8px 0; } }
.updated { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--snow); border-top: 1px solid var(--line); }
.site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 32px 40px; display: grid; gap: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { font-family: var(--font-label); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.copyright { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .products-feature { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .card-list .card-media { aspect-ratio: 16 / 10; }
  .product-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .product-hero-text { padding: 48px 0 8px; }
  .ph-scene { max-width: 560px; justify-self: center; }
}
/* Narrow desktops and tablets: three scenes share less than 900px, so they get a little smaller. */
@media (min-width: 761px) and (max-width: 900px) {
  .kv-doodle { width: 200px; }
  .kv-ever { left: 318px; width: 180px; }
  .kv-mimuji { right: 2%; width: 150px; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .site-header { padding: 0 16px; }
  .logo { font-size: 28px; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .menu-toggle-bars::before { position: absolute; top: -7px; }
  .menu-toggle-bars::after { position: absolute; top: 7px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 8px 16px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; font-size: 16px; }
  .sec { grid-template-columns: 1fr; gap: 20px; padding: 64px 16px; }
  .sec-label { writing-mode: horizontal-tb; position: static; font-size: 24px; }
  .sec-label::before { width: 32px; height: 5px; }
  .news li, .facts div { grid-template-columns: 1fr; gap: 4px; }
  .product-hero-inner { padding: 0 16px; }
  .product-hero-text { padding: 36px 0 4px; }
  .site-footer-inner { padding: 40px 16px 32px; }

  /* Home hero on phones: wordmark on top, the characters gathered below it. */
  .hero { min-height: max(600px, calc(100svh - var(--header-h))); }
  .hero-text { padding-top: 84px; }
  .hero-tag { max-width: 19em; margin-left: auto; margin-right: auto; text-wrap: balance; }
  .kv-hills { height: 46%; }
  /* The sun reaches 9% of the box left of it: the box starts that far in (plus 4px), so nothing is cut off.
     Below 405px the learner and the boy shrink with the screen so his night circle stays clear of the learner. */
  .kv-doodle { --dw: min(190px, 47vw); left: calc(var(--dw) * .09 + 4px); bottom: -1%; width: var(--dw); }
  .kv-ever { left: 22%; bottom: max(30%, 200px); width: 176px; }
  .kv-moon { left: 2%; top: -26%; width: 17%; }
  .kv-mimuji { right: max(2%, 9px); bottom: -1%; width: min(136px, 35vw); } /* the night circle reaches 6% past the right */
  .scroll-down { display: none; }
  .hs-2, .hs-4 { display: none; }

  .peek-aengdu { width: 104px; top: -64px; right: 8%; }
  .sec-peek-bottom { padding-bottom: 150px; }
  .peek-boy { width: 132px; bottom: -48px; right: 10%; }
  .paw-trail { padding: 0 16px; height: 48px; gap: 6%; }
  .paw-trail i { width: 18px; }
}

/* ---------- Motion (only for people who have not asked for less) ---------- */
/* The still frame above is the reduced-motion design: every scene reads without animation. */
@media (prefers-reduced-motion: no-preference) {
  .art .a-eye { animation: blink 4.6s infinite; }
  .art-learner-talk .a-eye { animation: none; } /* the learner laughs with crescent eyes: no blink */
  .art .a-eye-2 { animation-delay: .02s; }
  .art .a-breath { animation: breath 3.6s ease-in-out infinite alternate; }
  .art .a-z { animation: zz 3s ease-in-out infinite; opacity: 0; }
  .art .a-z2 { animation-delay: 1s; } .art .a-z3 { animation-delay: 2s; }
  /* Jojo walking: diagonal leg pairs swing together, the tail wags twice per stride. */
  .art-jojo-walk .a-leg-bf, .art-jojo-walk .a-leg-fn { animation: stride .9s ease-in-out infinite alternate; }
  .art-jojo-walk .a-leg-bn, .art-jojo-walk .a-leg-ff { animation: stride .9s ease-in-out infinite alternate-reverse; }
  .art-jojo-walk .a-tail { animation: wag .5s ease-in-out infinite; }
  .art-jojo-walk .a-whole { animation: walkbob .45s ease-in-out infinite alternate; }
  .art .a-tail { animation: wag 1.6s ease-in-out infinite; }
  .art-jojo-sleep .a-tail { animation: none; }
  .kv-mimuji .a-mouth-open, .kv-doodle .a-mouth-open, .ph-scene .a-mouth-open, .card:hover .a-mouth-open { animation: mouthopen 3.2s infinite; }
  .kv-mimuji .a-mouth-closed, .kv-doodle .a-mouth-closed, .ph-scene .a-mouth-closed, .card:hover .a-mouth-closed { animation: mouthclosed 3.2s infinite; }
  .art .a-float { animation: floaty 2.6s ease-in-out infinite alternate; }
  .art .a-float-2 { animation-delay: -1.3s; }
  .say b { opacity: 0; animation: sayword 8s infinite; }
  .say b:nth-child(2) { animation-delay: 2s; } .say b:nth-child(3) { animation-delay: 4s; } .say b:nth-child(4) { animation-delay: 6s; }
  .kv-mimuji .a-whole, .ph-scene .art-boy-talk .a-whole { animation: walkbob 1.2s ease-in-out infinite alternate; }
  .kv-mimuji .arc, .ph-scene .arc, .card:hover .arc { animation: arc 3.2s ease-out infinite; }
  .art .arc-2 { animation-delay: .18s !important; }
  .art .arc-3 { animation-delay: .36s !important; }
  .spark { animation: twinkle 3s ease-in-out infinite; }
  .spark:nth-child(2n) { animation-delay: -1.1s; animation-duration: 3.8s; }
  .spark:nth-child(3n) { animation-delay: -2.2s; animation-duration: 4.4s; }
  .kv-lamp, .sc-lamp { animation: glow 4s ease-in-out infinite; }
  .kv-moon, .sc-moon { animation: glow 6s ease-in-out infinite; }

  /* Aengdu: a gentle plank bob, blinks and a slow tail wag. On Paw Stamps the card's next slot stamps
     itself with a confetti burst (always on in the product hero, on hover in the card). */
  .art-aengdu-plank .a-whole { animation: plankbob 2.8s ease-in-out infinite alternate; }
  .art-aengdu-plank .a-tail { animation: wagsoft 1.8s ease-in-out infinite; }
  .ph-scene .confetti > *, .card:hover .confetti > * { animation: burst 3s ease-out infinite; }
  .ph-scene .stampcard i.next::after, .card:hover .stampcard i.next::after { animation: slotfill 3s infinite; }

  /* DoodleLearn words drift up and fade, one after another. */
  .sc-word { animation: word 7.2s ease-in-out infinite; }
  .sc-word-2 { animation-delay: -1.2s; } .sc-word-3 { animation-delay: -2.4s; }
  .sc-word-4 { animation-delay: -3.6s; } .sc-word-5 { animation-delay: -4.8s; } .sc-word-6 { animation-delay: -6s; }

  /* Characters hop when pointed at; card characters pop up when scrolled into view. */
  .kv-char:hover > .art, .kv-char:focus-visible > .art { animation: hop .7s cubic-bezier(.3, 1.6, .5, 1); }
  .scene .sc-char { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .15s; }
  .js-reveal .card.reveal:not(.in) .sc-char { transform: translateY(75%); }
  .card:hover .sc-char, .card:focus-visible .sc-char { transform: translateY(-5%) rotate(-2deg); transition-delay: 0s; }
  .card:hover .art .a-tail { animation-duration: .45s; }

  /* Soft scroll-in reveals (site.js adds .in; nothing is hidden without JavaScript). */
  .js-reveal .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
  .peek-aengdu { transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) .35s; }
  .js-reveal .peek-wrap:not(.in) .peek-aengdu { transform: translateY(70%); }
  .js-reveal .peek-boy:not(.in) { transform: translateY(60%); opacity: 1; }
  .peek-boy { transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) .2s !important; }
  .paw-trail.in i { animation: step .5s ease-out both; }
  .js-reveal .paw-trail:not(.in) { transform: none; }
  .paw-trail.in i:nth-child(2) { animation-delay: .12s; } .paw-trail.in i:nth-child(3) { animation-delay: .24s; }
  .paw-trail.in i:nth-child(4) { animation-delay: .36s; } .paw-trail.in i:nth-child(5) { animation-delay: .48s; }
  .paw-trail.in i:nth-child(6) { animation-delay: .6s; } .paw-trail.in i:nth-child(7) { animation-delay: .72s; }
  .paw-trail.in i:nth-child(8) { animation-delay: .84s; }

  /* Pause everything that loops while it is off screen (site.js toggles .paused). */
  .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
}

@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes wag { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(7deg); } }
@keyframes mouthopen {
  0%, 7%, 15%, 22%, 33%, 41%, 52%, 100% { opacity: 1; }
  4%, 11%, 19%, 27%, 37%, 46%, 56%, 64% { opacity: 0; }
  60%, 68% { opacity: 1; }
}
@keyframes mouthclosed {
  0%, 7%, 15%, 22%, 33%, 41%, 52%, 100% { opacity: 0; }
  4%, 11%, 19%, 27%, 37%, 46%, 56%, 64% { opacity: 1; }
  60%, 68% { opacity: 0; }
}
@keyframes arc { 0%, 70%, 100% { opacity: 0; transform: scale(.9); } 14%, 52% { opacity: 1; transform: scale(1.04); } }
@keyframes floaty { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-16px) rotate(6deg); } }
@keyframes sayword { 0% { opacity: 0; transform: translateY(.2em) scale(.9); } 3%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes plankbob { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes wagsoft { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes slotfill {
  0%, 57% { opacity: 0; transform: scale(.6) rotate(-12deg); }
  59% { opacity: 1; transform: scale(1.18) rotate(-12deg); }
  64%, 92% { opacity: 1; transform: scale(1) rotate(-12deg); }
  100% { opacity: 0; transform: scale(1) rotate(-12deg); }
}
@keyframes burst {
  0%, 57% { opacity: 0; transform: translate(0, 0) scale(.4); }
  59% { opacity: 1; }
  80% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(160deg); }
  100% { opacity: 0; }
}
@keyframes stride { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes walkbob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes breath { from { transform: scale(1, 1); } to { transform: scale(1.005, 1.03); } }
@keyframes zz {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(34px, -60px); }
}
@keyframes word {
  0% { opacity: 0; transform: translateY(14px); }
  10%, 60% { opacity: 1; transform: translateY(0); }
  75%, 100% { opacity: 0; transform: translateY(-18px); }
}
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12%) rotate(-3deg); } 70% { transform: translateY(2%); } }
@keyframes step { from { opacity: 0; transform: translateY(6px) rotate(90deg) scale(.6); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.theme-ambient-canvas { --p-bg: #f6f1e7; --p-ink: #22283a; --p-accent: #3b5b8c; --p-deco: #e9a8b8; --hero-bg: #dfe8f1; --hero-ghost: #22283a; }
.scene-ambient img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
