/* Panda Spell: the marketing site.
   The game's "Kids" skin (Picture-book Ink, src/app/ink.css) on the web:
   rice paper with the game's grain, cream bubbles with a round ink line and
   an off-register watercolour wash behind, a vermilion seal, Caveat Brush
   titles and Fredoka text. Every file is local: no third-party requests. */

/* ── Fonts (SIL OFL 1.1; licences in /assets/fonts/) ───────────── */
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/caveat-brush.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ZCOOL KuaiLe Seal";
  src: url("../fonts/zcool-kuaile-seal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ── Tokens: the Kids skin, Warm paper ─────────────────────────── */
:root {
  --bg: #fbf1de;
  --cream: #fffaf0;
  --ink: #2b2420;
  --soft: #6d5d50;
  --faint: #a8998a;
  --dim: #e7ddcb;
  --accent: #e8604a;
  --accent-l: #fbd3c8;
  --accent-t: #a72a15;
  --sun: #f5bf45;
  --sun-l: #fde7b0;
  --jade: #5cb88f;
  --jade-l: #a7dfc3;
  --good: #286348;
  --sky: #6db4e2;
  --sky-l: #bfe3f6;
  --sky-t: #1b5c87;
  --peach: #f4a07e;
  --lilac: #ad9be0;
  --display: "Caveat Brush", "Chalkboard SE", "Comic Sans MS", cursive;
  --body: "Fredoka", ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --seal: "ZCOOL KuaiLe Seal", "Kaiti SC", "STKaiti", serif;
  --r-panel: 26px 22px 28px 20px / 22px 28px 20px 26px;
  --gutter: 16px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

/* ── Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg) url("../img/ui/grain.webp");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
a:hover { color: var(--accent-t); }
:focus-visible { outline: 3px solid var(--sky-t); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1 { font-size: clamp(3.4rem, 9vw, 6.2rem); }
h2 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 3.4vw, 2rem); }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
ul { padding-left: 1.2em; }
li::marker { color: var(--accent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--cream); padding: 10px 16px; border: 3px solid var(--ink); border-radius: 14px;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--soft); font-weight: 500; }
.soft { color: var(--soft); }
.center { text-align: center; }
.small { font-size: 0.93rem; }

/* ── Header & footer ───────────────────────────────────────────── */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--ink); min-height: 44px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 2.5px var(--ink); }
.brand .spell { color: var(--accent-t); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; font-weight: 600; padding: 10px 10px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { background: var(--sun-l); color: var(--ink); }
.site-nav .nav-extra { display: none; }
@media (min-width: 860px) {
  .site-nav .nav-extra { display: inline-flex; }
}
.site-nav a[aria-current="page"] { background: var(--sun-l); }

.site-footer { margin-top: 40px; padding: 48px 0 56px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: url("../img/ui/brush-dash.svg") center / 100% 100% no-repeat; opacity: 0.35;
  filter: grayscale(1) brightness(0.3);
}
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 12px; text-decoration: none; }
.footer-links a:hover { background: var(--sun-l); color: var(--ink); }
.footer-note { color: var(--soft); font-size: 0.95rem; }
@media (min-width: 760px) {
  .footer-links { justify-content: flex-end; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  --b: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 26px 10px;
  font-family: var(--display); font-size: 1.65rem; line-height: 1; font-weight: 400;
  color: var(--ink); text-decoration: none;
  background: var(--b);
  border: 3px solid var(--ink);
  border-radius: 30px 26px 32px 24px / 28px 32px 24px 30px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-cream { --b: var(--cream); }
.btn-jade { --b: var(--jade-l); }
.btn-sky { --b: var(--sky-l); }
.btn-sm { min-height: 46px; font-size: 1.35rem; padding: 6px 18px 8px; }
.btn svg { width: 22px; height: 22px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

/* The App Store slot: "coming soon" until site-config.js has the store URL. */
.appstore-slot { display: inline-flex; align-items: center; min-height: 54px; }
.appstore-soon {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 8px 20px;
  border: 3px dashed var(--ink); border-radius: 16px;
  background: var(--cream); font-weight: 600; line-height: 1.2;
}
.appstore-soon svg { width: 26px; height: 26px; flex: none; }
.appstore-badge { display: inline-block; border-radius: 10px; }
.appstore-badge img { height: 54px; width: auto; }

/* ── Paper bubbles, washes and seals ───────────────────────────── */
.panel {
  --tone: var(--sky);
  position: relative; z-index: 0;
  background: var(--cream) url("../img/ui/grain.webp");
  border: 3px solid var(--ink);
  border-radius: var(--r-panel);
  padding: 22px 22px 24px;
}
.panel::before {
  content: ""; position: absolute; z-index: -2;
  inset: 12px -20px -20px 14px;
  background: var(--tone); opacity: 0.7;
  -webkit-mask: url("../img/ui/washr-0.webp") center / 100% 100% no-repeat;
  mask: url("../img/ui/washr-0.webp") center / 100% 100% no-repeat;
}
.panel.w1::before { -webkit-mask-image: url("../img/ui/washr-1.webp"); mask-image: url("../img/ui/washr-1.webp"); }
.panel.w2::before { -webkit-mask-image: url("../img/ui/washr-2.webp"); mask-image: url("../img/ui/washr-2.webp"); }
.panel.w3::before { -webkit-mask-image: url("../img/ui/washr-3.webp"); mask-image: url("../img/ui/washr-3.webp"); }
/* the bubble's paper, above its wash (the wash is the off-register colour behind) */
.panel::after {
  content: ""; position: absolute; inset: -3px; z-index: -1;
  border-radius: inherit;
  background: var(--cream) url("../img/ui/grain.webp");
  box-shadow: inset 0 0 0 3px var(--ink);
}
.panel > * { position: relative; }
.panel > :last-child { margin-bottom: 0; }
.t-sun { --tone: var(--sun); }
.t-jade { --tone: var(--jade); }
.t-sky { --tone: var(--sky); }
.t-peach { --tone: var(--peach); }
.t-lilac { --tone: var(--lilac); }
.t-accent { --tone: var(--accent); }

.wash { position: relative; isolation: isolate; }
.wash::before {
  content: ""; position: absolute; z-index: -1; inset: -6% -8%;
  background: var(--tone, var(--sun)); opacity: 0.35;
  -webkit-mask: url("../img/ui/wash-0.webp") center / 100% 100% no-repeat;
  mask: url("../img/ui/wash-0.webp") center / 100% 100% no-repeat;
}
.wash.w-alt::before { -webkit-mask-image: url("../img/ui/wash-2.webp"); mask-image: url("../img/ui/wash-2.webp"); }

.seal {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; flex: none;
  font-family: var(--seal); font-size: 1.55rem; line-height: 1; color: var(--cream);
  position: relative; isolation: isolate;
  transform: rotate(-4deg);
  writing-mode: vertical-rl;
}
.seal::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  border-radius: 14px 11px 15px 10px;
  -webkit-mask: url("../img/ui/seal-0.webp") center / cover;
  mask: url("../img/ui/seal-0.webp") center / cover;
}
.seal.one { writing-mode: horizontal-tb; font-size: 1.9rem; width: 52px; height: 52px; }
.seal.jade::before { background: var(--good); }
.seal.sky::before { background: var(--sky-t); }

.brush-title { display: inline-block; position: relative; padding-bottom: 12px; }
.brush-title::after {
  content: ""; position: absolute; left: 4%; right: 8%; bottom: 0; height: 12px;
  background: url("../img/ui/brush-dash.svg") center / 100% 100% no-repeat;
}
.kicker { font-weight: 600; color: var(--accent-t); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 6px; }

/* ── Devices ───────────────────────────────────────────────────── */
.phone {
  position: relative; width: 100%; max-width: 300px; margin-inline: auto;
  border: 8px solid var(--ink); border-radius: 44px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(43, 36, 32, 0.55);
}
.phone img { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 36px; }
.phone.sm { max-width: 220px; border-width: 6px; border-radius: 34px; }
.phone.sm img { border-radius: 28px; }
.tablet {
  position: relative; width: 100%; margin-inline: auto;
  border: 10px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(43, 36, 32, 0.55);
}
.tablet img { width: 100%; aspect-ratio: 2064 / 2752; object-fit: cover; border-radius: 20px; }

/* The painted cast are white-ground paintings: multiply them into the paper. */
.ink-art { mix-blend-mode: multiply; }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) {
  .section { padding: 92px 0; }
}
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }

/* Hero */
.hero { padding: 14px 0 40px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: -1;
  background: url("../img/ui/mountains.svg") center bottom / cover no-repeat;
}
.hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
  .hero { padding: 26px 0 70px; }
}
.hero-title { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 3px var(--ink), 0 10px 22px -10px rgba(43, 36, 32, 0.6); flex: none; }
@media (min-width: 640px) {
  .hero-icon { width: 120px; height: 120px; border-radius: 27px; }
}
.hero h1 { margin: 0; }
.hero h1 .spell { color: var(--accent-t); display: block; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15; margin: 8px 0 12px; }
.hero .pitch { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 22px 0 18px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 12px;
  border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--ink);
  font-weight: 600; font-size: 0.95rem;
}
.pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.pills li:nth-child(2n)::before { background: var(--accent); }
.pills li:nth-child(3n)::before { background: var(--sun); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art .phone { max-width: 270px; z-index: 1; transform: rotate(2deg); }
.hero-art .cast-ding { position: absolute; left: -2%; bottom: -10px; width: 44%; max-width: 240px; z-index: 2; }
.hero-art .cast-panda { position: absolute; right: -4%; top: 4%; width: 36%; max-width: 200px; z-index: 0; }
.hero-art .wash { position: absolute; inset: 10% 8%; z-index: -1; --tone: var(--sun); }
@media (max-width: 420px) {
  .hero-art .phone { max-width: 220px; }
  .hero-art { min-height: 0; }
}

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; counter-reset: step; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.step { display: flex; flex-direction: column; }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-num { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--accent-t); }
.step h3 { margin: 0; }
.step-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; min-height: 150px; margin: 8px 0 12px; }
.step-art img { width: 132px; height: 132px; object-fit: contain; }
.step-art img.sticker { width: 108px; height: 108px; }

/* Feature tiles with a phone */
.tiles { display: grid; gap: 34px; }
@media (min-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 36px 34px; }
}
.tile { display: grid; gap: 20px; align-items: center; }
@media (min-width: 520px) {
  .tile { grid-template-columns: 200px 1fr; }
  .tile .phone.sm { max-width: 200px; }
}
@media (min-width: 760px) and (max-width: 1040px) {
  .tile { grid-template-columns: 1fr; }
}
.tile h3 { margin-bottom: 6px; }
.tile ul { margin: 0; padding-left: 1.1em; }
.tile li + li { margin-top: 4px; }

/* Split: text + art */
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.wide-left { grid-template-columns: 1.55fr 1fr; gap: 44px; }
  .split.flip > :first-child { order: 2; }
}
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--jade-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232b2420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* Ding */
.ding-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0; max-width: 520px; margin-inline: auto; }
.ding-art .wash { position: absolute; inset: 12% 2% 8%; z-index: -1; --tone: var(--jade); }
.hairstyles { margin: 18px auto 0; max-width: 520px; border-radius: 18px; border: 3px solid var(--ink); overflow: hidden; background: var(--cream); }
.hairstyles img { width: 100%; aspect-ratio: 8 / 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 24px; }
.stat { text-align: center; padding: 12px 6px 10px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 400; line-height: 1; color: var(--accent-t); }
.stat span { font-weight: 600; font-size: 0.95rem; line-height: 1.25; display: block; margin-top: 4px; }

/* World: stickers, friends */
.world-grid { display: grid; gap: 34px; }
@media (min-width: 900px) {
  .world-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
}
.sticker-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.sticker-head h3 { margin: 0; }
.style-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--dim); box-shadow: inset 0 0 0 2px var(--ink); }
.style-toggle button {
  font: 600 1rem var(--body); color: var(--ink); background: transparent; border: 0;
  min-height: 40px; min-width: 76px; padding: 0 14px; border-radius: 999px; cursor: pointer;
}
.style-toggle button[aria-pressed="true"] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); }
.stickers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.stickers li { text-align: center; }
.stickers img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.stickers span { display: block; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--soft); }
.friends { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 10px; }
.friends li { text-align: center; font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.friends img { width: 84px; height: 84px; margin: 0 auto 4px; border-radius: 50%; background: var(--sun-l); box-shadow: inset 0 0 0 0 transparent, 0 0 0 3px var(--ink); object-fit: cover; }
.friends li:nth-child(3n+2) img { background: var(--jade-l); }
.friends li:nth-child(3n) img { background: var(--sky-l); }
.cards { display: grid; gap: 30px; margin-top: 44px; }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: start; }
}
.card-art { margin: -4px 0 14px; }
.card-art .tablet { max-width: 100%; }
.zh-sample { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

/* Families */
.family-grid { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .family-grid { grid-template-columns: 1fr 1fr; }
}
.family-item { display: flex; gap: 14px; align-items: flex-start; }
.family-item .seal { width: 50px; height: 50px; font-size: 1.35rem; }
.family-item h3 { font-family: var(--body); font-size: 1.12rem; font-weight: 650; line-height: 1.3; margin: 4px 0 2px; }
.family-item p { margin: 0; color: var(--soft); font-size: 0.98rem; }

/* Accessibility list */
.a11y-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 700px) {
  .a11y-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .a11y-grid { grid-template-columns: repeat(3, 1fr); }
}
.a11y-grid li { background: var(--cream); border-radius: 18px; padding: 16px 18px; box-shadow: inset 0 0 0 2.5px var(--ink); }
.a11y-grid b { display: block; font-weight: 650; margin-bottom: 2px; }
.a11y-grid span { color: var(--soft); font-size: 0.98rem; }

/* Screenshots */
.tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--dim); box-shadow: inset 0 0 0 2px var(--ink); margin-bottom: 18px; }
.tabs button {
  font: 600 1.02rem var(--body); color: var(--ink); background: transparent; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
}
.tabs button[aria-selected="true"] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); }
.carousel { position: relative; }
.track {
  list-style: none; margin: 0; padding: 8px 4px 22px;
  display: grid; grid-auto-flow: column; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  scrollbar-width: thin; scrollbar-color: var(--faint) transparent;
}
.track.iphone { grid-auto-columns: min(70vw, 260px); }
.track.ipad { grid-auto-columns: min(82vw, 380px); }
.track li { scroll-snap-align: start; }
.track a { display: block; border-radius: 22px; text-decoration: none; }
.track img { width: 100%; border-radius: 18px; box-shadow: 0 0 0 2.5px var(--ink), 0 14px 26px -16px rgba(43, 36, 32, 0.6); background: var(--cream); }
.track.iphone img { aspect-ratio: 1320 / 2868; }
.track.ipad img { aspect-ratio: 2064 / 2752; }
.track [hidden] { display: none; }
.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.carousel-nav button {
  width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--ink); color: var(--ink);
}
.carousel-nav button:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.carousel-nav svg { width: 22px; height: 22px; }
.no-js .carousel-nav { display: none; }

/* Chromebook call-out */
.try { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) {
  .try { grid-template-columns: auto 1fr auto; gap: 30px; }
}
.try img { width: 128px; height: 128px; margin-inline: auto; }
.try h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 6px; }
.try p { margin: 0; }

/* FAQ (details/summary) */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--cream); border-radius: 18px; box-shadow: inset 0 0 0 2.5px var(--ink);
  padding: 0 18px;
}
.faq details[open] { background: var(--cream) url("../img/ui/grain.webp"); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 0; font-weight: 650; font-size: 1.05rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sun-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%232b2420' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: transform 160ms ease-out;
}
.faq details[open] summary::after { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
.faq summary:focus-visible { outline-offset: 0; }
.faq .answer { padding: 0 0 16px; border-top: 2px dashed var(--dim); padding-top: 12px; color: var(--soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── Reading pages (privacy, terms, support, credits, press) ───── */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 4.2rem); margin-bottom: 4px; }
.updated { color: var(--soft); font-weight: 600; font-size: 0.95rem; margin: 0 0 24px; }
.prose { max-width: 700px; }
.prose .panel { padding: 22px 20px 26px; }
@media (min-width: 640px) {
  .prose .panel { padding: 28px 32px 32px; }
}
.prose section + section { margin-top: 28px; padding-top: 26px; position: relative; }
.prose section + section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--faint) 0 14px, transparent 14px 22px); opacity: 0.6;
}
.prose h2 { font-size: clamp(1.8rem, 4vw, 2.1rem); margin-bottom: 10px; }
.prose p, .prose ul { max-width: 62ch; }
.prose ul { margin: 0.5em 0 1em; }
.prose li + li { margin-top: 6px; }
.prose a { padding-block: 10px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.legal-note { margin-top: 12px; }

/* Press kit */
.fact-table { width: 100%; border-collapse: collapse; }
.fact-table th, .fact-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px dashed var(--dim); }
.fact-table th { width: 34%; font-weight: 650; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.placeholder { background: var(--sun-l); border-radius: 6px; padding: 0 6px; box-shadow: inset 0 0 0 1.5px var(--gold-t, #725207); font-weight: 600; }
.press-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.press-grid.ipad { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.press-grid a { display: block; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.press-grid img { border-radius: 12px; box-shadow: 0 0 0 2px var(--ink); margin-bottom: 6px; background: var(--cream); }
.downloads { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .downloads { grid-template-columns: 1fr 1fr; }
}
.download { display: flex; gap: 16px; align-items: center; }
.download img { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 0 0 2.5px var(--ink); object-fit: cover; background: var(--cream); }
.download .ink-art { box-shadow: none; }
.swatches { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; }
.swatches i { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--ink); display: block; }
.sw-paper { background: #fbf1de; }
.sw-cream { background: #fffaf0; }
.sw-ink { background: #2b2420; }
.sw-accent { background: #e8604a; }
.sw-sun { background: #f5bf45; }
.sw-jade { background: #5cb88f; }
.sw-sky { background: #6db4e2; }
.desc-block { white-space: pre-line; }

/* 404 */
.lost { text-align: center; padding: 30px 0 20px; }
.lost img { width: 220px; margin: 0 auto 10px; }

/* Print */
@media print {
  body { background: #fff; }
  .site-header nav, .site-footer, .carousel-nav, .tabs, .skip { display: none !important; }
  .panel::before, .wash::before { display: none; }
}

/* Reading pages: one calm, centred column */
.prose-wrap { max-width: calc(780px + 2 * var(--gutter)); }
.prose { max-width: none; }
.section-tight { margin-top: 44px; }
.prose > .lede { margin-bottom: 26px; }
.prose > .panel + .section-tight, .prose > .section-tight + .section-tight { margin-top: 48px; }
.prose h3 { font-size: 1.6rem; margin-top: 22px; }
.faq-title { margin-bottom: 16px; }

.zh-shot { margin: 4px auto 14px; max-width: 300px; border-radius: 16px; box-shadow: 0 0 0 2.5px var(--ink); }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 480px; margin-inline: auto; }
.phone-pair .phone.sm { border-width: 6px; }
@media (max-width: 420px) {
  .phone-pair .phone.sm { border-radius: 26px; border-width: 5px; }
  .phone-pair .phone.sm img { border-radius: 21px; }
}
