/* StasHoo: site design system (Nov 2026)
   Calm, premium, minimal. One accent colour (Hoo's ocean blue) on warm paper.
   The card's own colours (black, white, red, yellow) appear only inside the
   product: the jar card preview and the coins.

   Spacing follows an 8px scale. Motion: 200–300ms, ease-out, transform and
   opacity only, and none at all for visitors who prefer reduced motion. */

/* Fonts are served from this site (assets/fonts, SIL Open Font License); see kids.css
   for the @font-face rules: Baloo 2 and Nunito for Latin, ZCOOL KuaiLe and Noto Sans SC
   for Chinese. No visitor data goes to a font service. */
:root {
  /* Palette */
  --paper: #FAF8F4;        /* page */
  --surface: #FFFFFF;      /* cards */
  --mist: #F2EFE9;         /* quiet alternate band */
  --ink: #1C1B19;          /* text */
  --ink-soft: #5B5750;     /* secondary text (7.0:1 on paper) */
  --ink-faint: #8A857C;    /* captions, never for body text */
  --line: #E4DFD6;         /* hairlines */
  --accent: #1F5F78;       /* ocean, from Hoo (7.1:1 on white) */
  --accent-ink: #FFFFFF;
  --accent-wash: #EAF2F5;

  /* Product colours: only for the card and coins */
  --card-yellow: #FFCC00;
  --card-red: #DD0000;
  --card-black: #000000;

  /* Type */
  --serif: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* Spacing (8px scale) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --section: clamp(72px, 9vw, 128px);
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1160px;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.04), 0 8px 24px rgba(28, 27, 25, 0.06);
  --shadow-lift: 0 2px 4px rgba(28, 27, 25, 0.05), 0 18px 48px rgba(28, 27, 25, 0.10);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 200ms;
  --med: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong { font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Icons: thin line, inherit colour */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; stroke-width: 1.4; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(38px, 4.8vw, 60px); line-height: 1.08; text-wrap: balance;
}
.display em, .title em { font-style: italic; color: var(--accent); }
.title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); line-height: 1.65; }
.lead strong { color: var(--ink); font-weight: 600; }
.fine { font-size: 14px; color: var(--ink-faint); line-height: 1.6; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }

.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 680px; margin: 0 auto var(--s8); text-align: center; display: grid; gap: var(--s2); justify-items: center; }
.section-head .lead { max-width: 600px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink); color: #EDEAE4;
  font-size: 14px; text-align: center;
  padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center;
}
.announce .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.announce a { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.announce a .icon { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.announce a:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: var(--s4); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand { flex: none; }
.brand svg { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.nav-links { display: flex; gap: var(--s4); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { white-space: nowrap; font-size: 15px; color: var(--ink-soft); text-decoration: none; padding: 8px 0; transition: color var(--fast) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: var(--s2); }
.lang {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  font-size: 14px; color: var(--ink-soft); padding: 8px 32px 8px 14px; min-height: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5750' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
  transition: border-color var(--fast) var(--ease);
}
.lang:hover { border-color: var(--ink-faint); }
.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; border-radius: 999px; min-height: 44px; padding: 0 16px; font-size: 15px; cursor: pointer; }

/* Effect 1: hover underline: grows from the left, retracts to the right. */
.u-line { position: relative; }
.u-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform var(--med) var(--ease);
}
.u-line:hover::after, .u-line.active::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--med) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--fast) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #000000; box-shadow: 0 10px 30px rgba(28, 27, 25, 0.18); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #184C60; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Effect 2: magnetic button: moved by fx.js through --mx/--my (transform only). */
.magnetic { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
.magnetic.settling { transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }

/* Effect 5: success: the button's label fades out and a checkmark draws in. */
.btn .btn-label { transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); }
.btn .btn-check { position: absolute; opacity: 0; transform: scale(0.6); transition: opacity var(--med) var(--ease), transform var(--med) var(--ease); }
.btn .btn-check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 320ms var(--ease) 80ms; }
.btn.is-done { background: var(--accent); }
.btn.is-done .btn-label { opacity: 0; transform: translateY(-4px); }
.btn.is-done .btn-check { opacity: 1; transform: scale(1); }
.btn.is-done .btn-check path { stroke-dashoffset: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: var(--s3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s1); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--s3); list-style: none; margin: var(--s2) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); }
.points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.points .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* Jar card preview */
.showcase { display: grid; gap: var(--s2); }
.showcase-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 4px; background: var(--mist); border-radius: 999px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; border-radius: 999px; padding: 0 16px; min-height: 40px;
  font-size: 14px; color: var(--ink-soft); cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 27, 25, 0.10); }
.status { font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Effect 3: 3D tilt with a light reflection (fx.js sets --rx, --ry, --gx, --gy). */
.tilt-wrap { perspective: 1100px; }
.tilt {
  position: relative; border-radius: var(--radius);
  background: var(--surface); padding: clamp(14px, 2vw, 22px);
  box-shadow: var(--shadow-lift);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--med) var(--ease);
  will-change: transform;
}
.tilt.tracking { transition: transform 90ms linear; }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  opacity: 0; transition: opacity var(--med) var(--ease); mix-blend-mode: soft-light;
}
.tilt.tracking::after, .tilt.lit::after { opacity: 1; }
.card-screen { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #FFFFFF; transition: opacity var(--fast) var(--ease); }
.card-screen svg { width: 100%; height: auto; }
.flashing .card-screen { opacity: 0.35; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  min-height: 40px; padding: 0 14px; font-size: 14px; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chip:hover { border-color: var(--ink-faint); }
.chip:active { transform: scale(0.97); }
.chip.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.chip .icon { width: 16px; height: 16px; }
.chips-quiet .chip { min-height: 36px; font-size: 13px; color: var(--ink-soft); }
.showcase-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Jars ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); display: grid; gap: var(--s2); align-content: start;
}
.panel p { color: var(--ink-soft); font-size: 16px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.glyph { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; }
.glyph .icon { width: 24px; height: 24px; }
.share { font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-save { background: var(--card-yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.dot-give { background: var(--card-red); }
.dot-spend { background: var(--card-black); }
.note { font-size: 15px; color: var(--ink-soft); padding-top: var(--s2); border-top: 1px solid var(--line); }
.quote { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; padding-top: var(--s3); border-top: 1px solid var(--ink); }
.step-n { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.step p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Video placeholder ---------- */
.video {
  max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: linear-gradient(180deg, #23221F, #161513); color: #EDEAE4;
  display: grid; place-items: center; text-align: center; padding: var(--s4);
  box-shadow: var(--shadow-lift);
}
.video-inner { display: grid; gap: var(--s2); justify-items: center; max-width: 560px; }
.play { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center; }
.play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video h3 { color: #FFFFFF; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); }
.video p { color: #B8B3AA; font-size: 15px; }
.video .tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #B8B3AA; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--s1); }
.chapters span { font-size: 13px; color: #D9D5CD; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 6px 12px; }

/* ---------- Calculator ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); }
.field { display: grid; gap: 12px; }
.field + .field { margin-top: var(--s4); }
.label { font-size: 14px; font-weight: 500; color: var(--ink); }
.amount-now { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.range { width: 100%; height: 32px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: var(--line); border-radius: 2px; }
.range::-moz-range-track { height: 2px; background: var(--line); border-radius: 2px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow); transition: transform var(--fast) var(--ease); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-faint); }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); align-content: start; align-self: center; }
.result { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3) var(--s2); display: grid; gap: 12px; justify-items: center; text-align: center; align-content: start; }
.result-name { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.result-amount { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; min-height: 1.15em; }
.result-sub { font-size: 13px; color: var(--ink-faint); }
.coin-pile { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 18px; max-width: 120px; }
.coin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--card-yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); }
.coin-dot.coin-half { background: linear-gradient(90deg, var(--card-yellow) 50%, transparent 50%); }
.coin-more, .coin-none { font-size: 13px; color: var(--ink-faint); }

/* Effect 4: number roll: each digit is a column that slides (transform only). */
.roll { display: inline-flex; overflow: hidden; height: 1.15em; line-height: 1.15em; vertical-align: top; }
.roll-ch { display: inline-block; height: 1.15em; }
.roll-col { display: inline-block; height: 1.15em; overflow: hidden; }
.roll-strip { display: flex; flex-direction: column; transition: transform 420ms var(--ease); }
.roll-strip span { height: 1.15em; display: block; text-align: center; }

/* ---------- Display (coming soon) ---------- */
.soon { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s3); }
.frosted {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); min-height: 420px; display: grid; place-items: center;
}
.frosted img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(5px) saturate(0.75); opacity: 0.9; transform: scale(1.04); }
.frosted::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250, 248, 244, 0.35), rgba(250, 248, 244, 0.7)); }
.frosted-label { position: relative; z-index: 1; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--radius); box-shadow: var(--shadow); margin: var(--s3); display: grid; gap: 12px; justify-items: center; text-align: center; padding: var(--s4); max-width: 380px; }
.frosted-label .glyph { background: rgba(255, 255, 255, 0.8); }
.frosted-label strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; text-wrap: balance; }
.frosted-label p { color: var(--ink-soft); font-size: 15px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: var(--s3); align-content: start; }
.form-head { display: grid; gap: 12px; }
.form-head h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.form-head p { color: var(--ink-soft); font-size: 15px; }
.form form { display: grid; gap: var(--s3); }
.form .field { gap: 8px; }
.form .field + .field { margin-top: 0; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.input:hover { border-color: #CFC8BC; }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-wash); }
.input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 4px #FDECEA; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5750' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form-error { font-size: 14px; color: #B42318; }
.form-ok { font-size: 15px; color: var(--accent); background: var(--accent-wash); border-radius: var(--radius-sm); padding: 14px 16px; }
.form .btn { width: 100%; position: relative; margin-top: var(--s1); }

/* Effect 6: error shake (transform only). */
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.shake { animation: shake 360ms var(--ease); }

/* ---------- Pricing ---------- */
.pricing { margin-top: var(--section); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.plan-note { text-align: center; margin-top: var(--s3); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s3); display: grid; gap: 12px; align-content: start; }
.plan.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-step { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.plan.now .plan-step { color: var(--accent); }
.plan-name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.plan-name span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-faint); margin-top: 4px; }
.plan-price { font-family: var(--serif); font-size: 19px; line-height: 1.5; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-price strong { font-weight: 400; }
.plan p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Traditions & callouts ---------- */
.feature { display: grid; gap: var(--s2); align-content: start; }
.feature p { color: var(--ink-soft); font-size: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: var(--s2); align-content: start; }
.callout .title { font-size: clamp(26px, 2.6vw, 32px); }
.callout p { color: var(--ink-soft); }
.callout .btn { justify-self: start; margin-top: var(--s1); }
.callout-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.callout-dark p { color: #B8B3AA; }
.callout-dark .eyebrow { color: #9CC6D6; }
.callout-dark .btn-primary { background: #FFFFFF; color: var(--ink); }
.callout-dark .btn-primary:hover { background: #F2EFE9; box-shadow: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s10) 0 var(--s4); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: var(--s5); }
.footer p { color: var(--ink-soft); margin-top: var(--s2); max-width: 340px; text-wrap: balance; }
.footer li { text-wrap: balance; }
.footer h4 { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--s2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink-soft); transition: color var(--fast) var(--ease); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--s3); margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { gap: var(--s3); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s5); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { gap: 12px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .u-line::after { display: none; }
  .nav-tools .btn { display: none; }
}
@media (max-width: 920px) {
  .hero-grid, .calc, .soon, .duo { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .points { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps, .plans { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .result { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; padding: var(--s2); }
  .result .coin-pile { display: none; }
  .frosted { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .panel { padding: var(--s3); }
  .segmented button { padding: 0 12px; font-size: 13px; }
}

/* Everyone who asks for less motion gets none. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .magnetic { transform: none !important; }
  .tilt { transform: none !important; }
}

/* Wording that arrives with its own markup from the Chinese text table */
.highlight-underline { font-style: italic; color: var(--accent); }
.plan-name br { display: none; }
.plan-name span[style] { font-size: 14px !important; color: var(--ink-faint) !important; font-weight: 400; display: block; margin-top: 4px; }
.chips-quiet .chip.active { color: #FFFFFF; }
@media (max-width: 560px) {
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented button { white-space: normal; line-height: 1.25; padding: 8px 10px; min-height: 44px; }
}
@media (max-width: 560px) { .result-name { white-space: nowrap; } }
.btn .btn-check { width: 22px; height: 22px; stroke-width: 2; }

/* ======================================================================
   Content pages (Get the app, Why start young, Legal): the same design
   language applied to their building blocks.
   ====================================================================== */
.hero .section-header { max-width: 760px; margin: 0 auto var(--s8); text-align: center; display: grid; gap: var(--s3); justify-items: center; }
.section-pad { padding: var(--section) 0; }
.section-warm { background: var(--mist); }
.section-header { max-width: 680px; margin: 0 auto var(--s8); text-align: center; display: grid; gap: var(--s2); justify-items: center; }
.hero-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.08; text-wrap: balance; }
.section-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; text-wrap: balance; }
.hero-lead, .section-subtitle { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); line-height: 1.65; max-width: 640px; }
.fine-print { font-size: 14px; color: var(--ink-faint); line-height: 1.6; text-align: center; max-width: 720px; margin: var(--s4) auto 0; }
main h2:not(.section-title):not(.title) { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
main h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
main a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }

/* Small labels that used to be coloured pills */
.jar-badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* Cards */
.store-card, .compare-card, .jar-card, .stat-card, .mission-card, .legal-card, .milestone-card, .printable-builder, .faq-item, .script-box, .toy-hill-banner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.download-grid, .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.store-card, .compare-card { padding: clamp(28px, 4vw, 44px); display: grid; gap: var(--s2); align-content: start; }
.store-card p, .compare-card p { color: var(--ink-soft); font-size: 15px; }
.store-header { display: grid; gap: 10px; }
.store-card h2 { font-family: var(--serif); font-weight: 400 !important; font-size: 30px !important; }
.store-card > div:last-child, .store-card .btn { width: 100%; }
.btn.is-soon { cursor: default; color: var(--ink-soft); background: var(--paper); }
.btn.is-soon:hover { border-color: var(--line); }
.compare-card > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.compare-card > div:first-child > span:nth-child(2):not(.jar-badge) { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.compare-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.compare-card > div:not(:first-child):not(:last-child) { display: grid; gap: 8px; padding: var(--s2); background: var(--paper); border-radius: var(--radius-sm); font-size: 15px; color: var(--ink-soft); }

/* Lists with a quiet check mark */
.check-list, .compare-list, .legal-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li, .compare-list li, .legal-card li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.check-list li::before, .compare-list li::before, .legal-card li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list li strong, .compare-list li strong, .legal-card li strong { color: var(--ink); }

/* Three ways to see the jars */
.jars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.jar-card { padding: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.jar-card p { color: var(--ink-soft); font-size: 16px; }
.jar-kid-quote { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); padding-top: var(--s2); border-top: 1px solid var(--line); }

/* Printable studio */
.printable-builder { padding: clamp(24px, 4vw, 48px); }
.sandbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.sandbox-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: var(--s3); }
.print-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.control-group { display: grid; gap: 8px; margin-bottom: var(--s3); }
.control-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.control-group > span { font-size: 13px; color: var(--ink-faint); }
.printable-builder input[type="text"], .printable-builder input[type="number"], .printable-builder select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.printable-builder select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5750' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.printable-builder input:focus, .printable-builder select:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-wash); }
#print-custom-counts { padding: var(--s2); background: var(--paper); border-radius: var(--radius-sm); margin-bottom: var(--s3); }
.printable-builder .btn { width: 100%; }
.eink-frame { background: var(--surface); border-radius: var(--radius); padding: clamp(12px, 2vw, 20px); box-shadow: var(--shadow-lift); }
.eink-screen-inner { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #FFFFFF; }
.eink-screen-inner svg { width: 100%; height: auto; }
.eink-caption { font-size: 14px; color: var(--ink-faint); text-align: center; margin-top: var(--s2); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); text-align: left; background: none; border: 0; padding: var(--s3); font-size: 17px; font-weight: 500; cursor: pointer; min-height: 64px; }
.faq-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform var(--med) var(--ease), background-color var(--fast) var(--ease); }
.faq-icon .icon { width: 16px; height: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--mist); }
.faq-answer { display: none; padding: 0 var(--s3) var(--s3); color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }

/* Why start young: research, ages and missions */
.toy-hill-banner { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s4); padding: clamp(28px, 4vw, 48px); margin-bottom: var(--s3); }
.toy-hill-banner > div:first-child { display: grid; gap: var(--s2); align-content: start; }
.toy-hill-banner h2 { font-family: var(--serif); font-weight: 400 !important; font-size: clamp(26px, 2.6vw, 32px) !important; }
.toy-hill-banner p { color: var(--ink-soft); }
.toy-hill-banner > div:first-child > div { padding: var(--s2); background: var(--paper); border-radius: var(--radius-sm); font-size: 15px; color: var(--ink-soft); }
.toy-hill-banner > div:last-child { display: grid; gap: var(--s2); padding: var(--s3); background: var(--paper); border-radius: var(--radius-sm); align-content: center; }
.toy-hill-banner > div:last-child > div + div { padding-top: var(--s2); border-top: 1px solid var(--line); }
.toy-hill-banner > div:last-child p { font-size: 15px; margin-top: 6px; }
.stat-cards-grid, .missions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.stat-card, .mission-card { padding: var(--s4); display: grid; gap: 12px; align-content: start; }
.stat-card p, .mission-card p { color: var(--ink-soft); font-size: 15px; }
.stat-number { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 42px); line-height: 1.1; color: var(--accent); }
.stat-source { font-size: 13px; color: var(--ink-faint); padding-top: 12px; border-top: 1px solid var(--line); }
.mission-refrain { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 16px; }
.age-tabs-header { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; margin: 0 auto var(--s4); }
.age-tabs-wrap, .age-tabs-header { justify-self: center; }
.age-tab-btn { border: 0; background: transparent; border-radius: 999px; min-height: 44px; padding: 0 20px; font-size: 15px; color: var(--ink-soft); cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.age-tab-btn:hover { color: var(--ink); }
.age-tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 27, 25, 0.10); }
.age-panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.age-panel.active { display: grid; gap: var(--s4); }
.age-panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.age-panel-top h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.age-panel-top p { color: var(--ink-soft); margin-top: 8px; }
.age-panel-body { display: grid; gap: var(--s4); }
.milestone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.milestone-card { padding: var(--s3); display: grid; gap: 8px; align-content: start; background: var(--paper); border-color: transparent; }
.milestone-card p { color: var(--ink-soft); font-size: 15px; }
.script-box { padding: var(--s3); display: grid; gap: var(--s2); background: var(--accent-wash); border-color: transparent; }
.script-dialogue { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink); }
.script-box > div:last-child:not(:first-child) { font-size: 14px; color: var(--accent); }

/* Legal */
.legal-grid { max-width: 820px; margin: 0 auto; display: grid; gap: var(--s3); }
.legal-card { padding: clamp(28px, 4vw, 44px); display: grid; gap: var(--s2); scroll-margin-top: 96px; }
.legal-card h2 { font-family: var(--serif); font-weight: 400 !important; font-size: clamp(24px, 2.4vw, 28px) !important; }
.legal-card p { color: var(--ink-soft); }
.legal-card p strong { color: var(--ink); }

@media (max-width: 920px) {
  .download-grid, .compare-grid, .sandbox-grid, .toy-hill-banner { grid-template-columns: 1fr; }
  .jars-grid, .stat-cards-grid, .missions-grid { grid-template-columns: 1fr; }
  .milestone-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .print-form-grid, .milestone-grid { grid-template-columns: 1fr; }
  .faq-question { padding: var(--s2) var(--s3); }
}

/* Printing the jar sheet at real card size (93.4 × 80.3 mm) */
.print-cut-guide { display: none; }
@media print {
  .announce, .header, .footer, .no-print { display: none !important; }
  body { background: #FFFFFF !important; }
  .section-pad, .section-warm { padding: 0 !important; background: #FFFFFF !important; }
  .printable-builder { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .eink-frame.print-real-size { width: 93.4mm !important; height: 80.3mm !important; margin: 15mm auto !important; padding: 3mm !important; border: 1.5pt dashed #000 !important; border-radius: 4mm !important; background: #FFFFFF !important; box-shadow: none !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .eink-frame.print-real-size .eink-screen-inner { width: 84.8mm !important; height: 63.6mm !important; border: 1pt solid #000 !important; border-radius: 2mm !important; }
  .print-cut-guide { display: block !important; text-align: center; font-size: 9pt; font-weight: 700; margin-top: 4mm; color: #000; }
}

/* Small finishing touches for the content pages */
main code { font-family: inherit; font-size: inherit; background: none; padding: 0; color: inherit; }
.control-group { align-content: start; }
.store-header > div { display: grid; gap: 10px; }
.age-tabs-header { display: flex; width: fit-content; max-width: 100%; }
.missions-grid + div { text-align: center; margin-top: var(--s6); }
