/* KidTick 官網 v0 — split stage, colours taken from the product's own task states */

:root {
  --bg: #f2f1ed;          /* bone */
  --surface: #ebe7dc;     /* one step darker */
  --ink: #1d1b16;
  --muted: #57524a;
  --accent: #166534;      /* the approved tick */
  --accent-ink: #ffffff;
  --field: #fde047;       /* the "done, waiting" yellow */
  --field-ink: #1d1b16;
  --dark: #1d1b16;
  --dark-ink: #f6f4ee;

  /* type roles: display = rounded, like the product's big rounded cards;
     hand = the parent's handwritten reminders; text = reading */
  --font-display: "Chiron GoRound TC", "Noto Sans TC", system-ui, sans-serif;
  --font-hand: "LXGW WenKai TC", "Kaiti TC", "STKaiti", serif;
  --font-text: "Noto Sans TC", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  --step-display: clamp(2.75rem, 1.5rem + 4vw, 5rem);

  --margin: clamp(1.25rem, 2.4vw, 2rem);
  --section: clamp(7rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--field); color: var(--field-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  border-radius: var(--radius);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.btn:hover { background: #14532d; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-small { min-height: 40px; padding: 0 1rem; font-size: 0.9375rem; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  width: 53%; padding: 1rem var(--margin);
  background: var(--bg);
}
.nav-mark { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9375rem; }
.nav nav a:not(.btn) { text-decoration: none; padding: 0.5rem 0; position: relative; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-ui) var(--ease-out); }
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-lang { font-size: 0.875rem; white-space: nowrap; }
.nav-lang b { font-weight: 700; }
.nav-lang { display: inline-flex; align-items: center; }
.nav-lang a, .nav-lang b { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.nav-lang a { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.nav-lang b { border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); padding: 0 0.6em; }
.nw { display: inline-block; }

/* ---------- the split stage ---------- */
.stage { display: grid; grid-template-columns: 47% 53%; }
.stage-fixed {
  position: sticky; top: 0; height: 100svh;
  background: var(--field);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5rem clamp(1.25rem, 3vw, 3rem) 3rem;
  overflow: clip;
}
/* the big clock: wall-mounted iPad home time, fixed at 7:32 (the story is a morning) */
.wall-clock { text-align: center; color: var(--field-ink); margin-bottom: clamp(0.75rem, 3svh, 2rem); }
.clock-time { font-family: var(--font-display); font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-size: min(10vw, 20svh); font-variant-numeric: tabular-nums; }
.clock-sub { margin-top: 0.5rem; font-weight: 500; font-size: 1.0625rem; }
/* scenes on the held stage: the wall, then the parent's phone, then the wish */
.stage-fixed .wall { transition: transform 700ms var(--ease-out), opacity 500ms var(--ease-out); transform-origin: 30% 30%; }
.stage-fixed > .phone, .stage-fixed > .wish {
  position: absolute; right: clamp(1rem, 4vw, 3.5rem); bottom: clamp(2rem, 9svh, 6rem);
  width: min(380px, 60%); opacity: 0; transform: translateY(40px); pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
  box-shadow: 0 18px 40px -12px rgb(29 27 22 / 0.35); /* floats over the wall */
}
.stage-fixed > .wish { width: min(440px, 70%); }
.stage-fixed[data-scene="approve"] .wall,
.stage-fixed[data-scene="tokens"] .wall { transform: translate(-4%, 0) scale(0.86); }
.stage-fixed[data-scene="tokens"] .wall { opacity: 0.55; }
.stage-fixed[data-scene="approve"] > .phone,
.stage-fixed[data-scene="tokens"] > .wish { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1200px) { .stage-fixed .wall { zoom: 1.12; } }
.stage-hint { margin-top: 1rem; font-size: var(--step-small); font-weight: 500; color: var(--field-ink); }
.stage-read { padding: 0 var(--margin) 0 clamp(2rem, 5vw, 5rem); min-width: 0; }

/* ---------- the wall (product fragment) ---------- */
[data-ui] { font-family: var(--font-text); }
.wall {
  width: 100%; max-width: 640px;
  background: #ffffff; border-radius: 22px;
  padding: 1.1rem 1.1rem 1.25rem;
  color: #1f2937;
}
.wall-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.kid { background: #f8fafc; border-radius: 16px; padding: 0.75rem; border-top: 5px solid var(--kid); }
.kid-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0.2rem 0.65rem; }
.kid-face { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--kid) 14%, white); border: 2px solid var(--kid); }
.kid-name { font-weight: 700; font-size: 1.0625rem; flex: 1; }
.kid-coins { font-weight: 700; color: #854d0e; font-size: 0.9375rem; }
.tasks { display: grid; gap: 0.45rem; }

.task {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  min-height: 48px; padding: 0.5rem 0.7rem;
  border: 2px solid transparent; border-radius: 12px;
  background: #eef0f3; color: #4b5563;
  font: inherit; font-size: 0.9375rem; font-weight: 500; text-align: left;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out), color var(--t-ui);
}
button.task { cursor: pointer; }
button.task:hover { background: #e4e7eb; }
button.task:active { transform: scale(0.97); }
.t-ico { font-size: 1.3rem; line-height: 1; transition: filter var(--t-ui), opacity var(--t-ui); }
.t-name { flex: 1; min-width: 0; }
.t-tok { font-size: 0.8125rem; color: #854d0e; font-weight: 700; }
.t-mark { width: 1.35rem; text-align: center; font-size: 0.75rem; }
.task[data-state="pending"] .t-ico { filter: grayscale(1); opacity: 0.5; }
.task[data-state="done"] { background: #fefce8; border-color: #fde047; color: #1f2937; }
.task[data-state="done"] .t-mark::before { content: "等確認"; color: #854d0e; font-weight: 700; white-space: nowrap; }
.task[data-state="done"] .t-mark { width: auto; }
.task[data-state="approved"] { background: #ffffff; border-color: #86efac; color: #1f2937; }
:lang(en) .task[data-state="done"] .t-mark::before { content: "Done"; }
.task[data-state="approved"] .t-mark::before { content: "✅"; font-size: 1rem; display: inline-block; animation: pop 420ms var(--ease-out); }
button.task[data-state="approved"] { cursor: default; }
button.task[data-state="approved"]:hover { background: #ffffff; }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-60deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* ---------- hero (reading side) ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6.5rem 0 4rem; max-width: 34rem; }
.nags { font-family: var(--font-hand); font-size: var(--step-lead); line-height: 1.5; color: #6b3a10; display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; margin-bottom: 2rem; }
.nags li { position: relative; transition: color var(--t-ui) var(--ease-out); }
.nags li::after { content: ""; position: absolute; left: -0.1em; right: -0.1em; top: 52%; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 420ms var(--ease-out); }
.nags li.off { color: #6f685d; }
.nags li.off::after { transform: scaleX(1); }
.hero-title { font-family: var(--font-display); font-weight: 900; font-size: var(--step-display); line-height: 1.12; letter-spacing: 0.01em; text-wrap: balance; }
.hero-lead { position: relative; z-index: 3; max-width: 24em; margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.6; text-wrap: pretty; }
.hero-lead strong { font-weight: 700; }
.hero-act { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-note { font-size: var(--step-small); color: var(--muted); }

/* ---------- reading blocks ---------- */
.block { padding-top: var(--section); max-width: 46ch; }
.block > * + * { margin-top: 1.25rem; }
.head { font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); line-height: 1.25; letter-spacing: 0.01em; text-wrap: balance; }
.head-sm { font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); line-height: 1.25; }

.nag { display: grid; gap: 0.1rem; font-size: var(--step-lead); }
.hand { font-family: var(--font-hand); }
.nag li { padding: 0.2rem 0; }
.nag li:nth-child(n+7) { color: #8a2c0d; }
.nag li:last-child { font-size: 1.15em; }

.states { display: grid; gap: 0.9rem; }
.state { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 12px; border: 2px solid transparent; font-weight: 500; font-size: 0.9375rem; }
.s-pending .chip { background: #eef0f3; color: #4b5563; }
.s-done .chip { background: #fefce8; border-color: #fde047; }
.s-approved .chip { background: #fff; border-color: #86efac; }

/* phone fragment */
.phone { background: #ffffff; border-radius: 20px; padding: 1rem; max-width: 380px; color: #1f2937; }
.phone-app { font-size: 0.8125rem; color: #4b5563; padding: 0 0.25rem 0.35rem; display: flex; justify-content: space-between; }
.phone-top { font-weight: 700; padding: 0.15rem 0.25rem 0.75rem; display: flex; justify-content: space-between; }
.phone-top b { background: #fde047; border-radius: 999px; min-width: 1.75rem; text-align: center; padding: 0 0.5rem; }
.phone-list { display: grid; gap: 0.5rem; }
.phone-list li { display: flex; align-items: center; gap: 0.6rem; background: #f8fafc; border-radius: 12px; padding: 0.55rem 0.6rem 0.55rem 0.8rem; font-size: 0.9375rem; animation: slidein 360ms var(--ease-out); }
.phone-list .p-who { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--kid); flex: none; }
.phone-list .p-txt { flex: 1; }
.phone-list .p-txt small { display: block; color: #4b5563; font-size: 0.8125rem; }
.phone-list button { min-height: 40px; padding: 0 0.9rem; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
.phone-list button:hover { transform: translateY(-1px); }
.phone-list button:active { transform: scale(0.95); }
.phone-list .p-empty { color: #4b5563; background: transparent; animation: none; }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* wish fragment */
.wish { background: #ffffff; border-radius: 20px; padding: 1.1rem 1.1rem 1rem; max-width: 420px; color: #1f2937; }
.wish-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; }
.wish-ico { font-size: 1.4rem; }
.wish-name { flex: 1; font-weight: 500; }
.wish-num { font-variant-numeric: tabular-nums; color: #4b5563; }
.wish-num b { color: #1f2937; }
.bar { height: 12px; border-radius: 999px; background: #eef0f3; margin: 0.5rem 0 1rem; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: var(--kid); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform 700ms var(--ease-out); }
.wish-note { font-size: 0.875rem; color: #4b5563; }

/* ---------- showcase: input half, output half ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--section); }
.show-in, .show-out { min-height: 72svh; position: relative; padding: 12svh var(--margin) 9rem; }
.show-in { background: var(--dark); color: var(--dark-ink); }
.show-out { background: var(--field); color: var(--field-ink); display: flex; position: relative; z-index: 1; flex-direction: column; align-items: flex-start; }
.show-label { display: block; max-width: 34ch; font-size: 1rem; margin: 0 0 1rem 8.33%; color: #d9d4c7; }
.show-in textarea {
  display: block; width: min(34ch, 84%); margin-left: 8.33%;
  background: transparent; color: var(--dark-ink); border: 0; resize: none;
  font: 500 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.6 var(--font-text);
  caret-color: var(--field); padding: 0.25rem 0;
  border-left: 4px solid var(--field); padding-left: 1rem;
}
.show-in textarea:focus { outline: none; background: #2a2720; }
.show-h { position: absolute; z-index: 3; left: 0; right: -100%; bottom: 2rem; display: grid; grid-template-columns: 1fr 1fr; font-family: var(--font-display); font-weight: 900; font-size: var(--step-display); line-height: 1.1; letter-spacing: 0.01em; pointer-events: none; }
.show-h1 { padding-left: var(--margin); color: var(--dark-ink); }
.show-h2 { padding-left: var(--margin); color: var(--field-ink); }
.kid-big { width: min(480px, 100%); background: #ffffff; }
.kid-big .task { font-size: 1rem; }
.show-note { margin-top: 1.5rem; max-width: 36ch; font-size: 1rem; }

/* ---------- voices (illustrative testimonials; see the comment in index.html) ---------- */
.voices { padding: var(--section) 0 0; }
.voices-in { padding: 0 var(--margin); }
.voices-in > * + * { margin-top: 1.25rem; }
.voices-note { max-width: 52em; padding: 0.9rem 1.1rem; background: var(--field); color: var(--field-ink); font-size: var(--step-body); line-height: 1.6; text-wrap: pretty; }
.voices-note strong { font-weight: 900; }
.vcar { --per: 1; --gap: 1.25rem; margin-top: 2rem; }
.vtrack { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.vtrack::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--surface); min-height: 15rem; }
.tcard-tag { align-self: flex-start; padding: 0.15rem 0.6rem; background: var(--field); color: var(--field-ink); font-size: var(--step-small); font-weight: 700; }
.tcard-q { margin: 0; flex: 1; font-size: var(--step-body); line-height: 1.75; text-wrap: pretty; }
.tcard-by { display: flex; align-items: center; gap: 0.75rem; }
.tcard-av { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: var(--field-ink); font-family: var(--font-display); font-weight: 900; }
.tcard-who { font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.vctl { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.vbtn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; transition: background var(--t-hover) var(--ease-out); }
.vbtn:hover { background: var(--accent); }
.vbtn:active { transform: scale(0.96); }
.vdots { display: flex; flex-wrap: wrap; justify-content: center; }
.vdot { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.vdot span { width: 10px; height: 10px; border-radius: 50%; background: #b9b2a0; transition: transform var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out); }
.vdot[aria-current="true"] span { background: var(--ink); transform: scale(1.5); }
@media (min-width: 700px) { .vcar { --per: 2; } }
@media (min-width: 1100px) { .vcar { --per: 3; } }

/* ---------- history ---------- */
.history {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3rem;
  padding: var(--section) var(--margin) 0; align-items: start;
}
.hist-text { grid-column: 1 / 6; align-self: center; }
.hist-text p { max-width: 30em; /* ~30 CJK chars a line */ }
.hist-text > * + * { margin-top: 1.25rem; }
.hist-text .nb { white-space: nowrap; }
.history figure img { width: 100%; background: var(--surface); }
.history figcaption { margin-top: 0.6rem; font-size: var(--step-body); color: var(--muted); }
.hist-a { grid-column: 6 / 10; overflow: hidden; }
.hist-now { grid-column: 10 / 13; align-self: stretch; margin-bottom: 1.9rem; /* level with the photo, not its caption */
  display: flex; flex-direction: column; justify-content: center; background: var(--field); color: var(--field-ink); padding: 1.25rem; }
.hist-now-label { font-weight: 700; font-size: var(--step-small); }
.hist-items { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; }
.hist-items li { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; font-size: var(--step-small); }
.hist-items svg { width: 68px; height: 68px; transition: transform var(--t-hover) var(--ease-out); }
.hist-items li:hover svg { transform: rotate(-6deg) scale(1.06); }
.hist-to { margin-top: 1.25rem; font-weight: 700; font-size: var(--step-small); }
.hist-arrow { margin-right: 0.25rem; }

/* ---------- setup: the slip ---------- */
.setup {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem;
  margin-top: var(--section); padding: var(--section) var(--margin);
  background: var(--accent); color: #f3f7f3;
}
.setup-text { grid-column: 1 / 6; }
.setup-text p { max-width: 34ch; }
.setup-text > * + * { margin-top: 1.25rem; }
.setup .head { color: #ffffff; }
.slip {
  grid-column: 7 / 12; width: 100%; max-width: 480px;
  background: #f4ecd8; color: #2b241a;
  padding: 2.25rem 2rem 3.25rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
  font-variant-numeric: tabular-nums;
}
.slip-title { font-family: var(--font-hand); font-size: 2rem; line-height: 1.1; text-align: center; }
.slip-sub { text-align: center; font-size: 0.9375rem; margin-top: 0.4rem; }
.slip h3 { font-size: 1rem; font-weight: 700; margin-top: 1.75rem; }
.slip ul { margin-top: 0.4rem; }
.slip li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.3rem 0; font-size: 1rem; }
.slip li i { flex: 1; border-bottom: 4px dotted #2b241a; transform: translateY(-4px); }
.slip li span:last-child { white-space: nowrap; }
.slip-total { display: flex; justify-content: space-between; align-items: center; margin: 1.75rem -2rem 0; padding: 0 2rem; min-height: 44px; background: #2b241a; color: #f4ecd8; font-weight: 700; }

/* ---------- price ---------- */
.price {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem;
  padding: var(--section) var(--margin) 0; align-items: start;
}
.price-text { grid-column: 1 / 6; align-self: start; }
.price-text p { max-width: 32ch; }
.price-text > * + * { margin-top: 1.25rem; }
.price-fig { grid-column: 6 / 13; position: relative; }
.figure { font-family: var(--font-display); font-weight: 900; font-size: clamp(8rem, 15vw, 14rem); line-height: 0.9; letter-spacing: -0.03em; }
.figure .cur { font-size: 0.42em; vertical-align: 0.95em; margin-right: 0.08em; letter-spacing: -0.02em; }
.price-chip { position: absolute; top: clamp(1rem, 4vw, 3.5rem); left: clamp(11rem, 22vw, 21rem); width: 15rem; transform: rotate(-4deg); }
.price-chip .task { background: #ffffff; }
.included { margin-top: 2rem; font-size: var(--step-body); display: grid; gap: 0.35rem; }
.price-fig .btn { margin-top: 2rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem; padding: var(--section) var(--margin) 0; background: var(--bg); }
.faq .head-sm { grid-column: 1 / 4; }
.faq-cols { grid-column: 5 / 13; columns: 2; column-gap: 56px; }
.faq-cols p { break-inside: avoid; margin-bottom: 1.4rem; font-size: var(--step-body); line-height: 1.7; }
.faq-cols b { font-weight: 700; margin-right: 0.35em; }

/* ---------- cta ---------- */
.cta { margin-top: var(--section); padding: 14svh var(--margin); background: var(--field); color: var(--field-ink); }
.cta-line { max-width: 18em; text-wrap: balance; font-family: var(--font-display); font-size: var(--step-head); font-weight: 900; line-height: 1.5; }
.cta .btn { margin-top: 1.5rem; }

/* ---------- waitlist form (inside .cta) ---------- */
.wl { margin-top: 2.5rem; max-width: 34rem; }
.wl[hidden] { display: none; }
.wl-lead { display: block; font-weight: 700; font-size: var(--step-body); }
.wl-row { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.wl-in {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
}
.wl-in:focus-visible, .wl-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wl-btn {
  min-height: 48px; padding: 0 1.5rem; border: 0; cursor: pointer;
  background: var(--ink); color: var(--field); font: inherit; font-weight: 700; font-size: 1.0625rem;
  border-radius: var(--radius);
  transition: transform var(--t-press) var(--ease-out);
}
.wl-btn:active { transform: scale(0.97); }
.wl-btn:disabled { opacity: 0.6; cursor: default; }
.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.wl-msg { margin: 0.75rem 0 0; min-height: 1.5em; font-weight: 600; }
@media (max-width: 600px) {
  .wl-row { flex-direction: column; }
  .wl-btn { width: 100%; }
}

/* ---------- footer ---------- */
/* ---------- privacy page ---------- */
.legal { max-width: 40rem; padding: clamp(3rem, 8vw, 6rem) var(--margin) 2rem; margin: 0 auto; }
.legal h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; line-height: 1.3; margin-top: 3rem; }
.legal h3 { font-weight: 700; font-size: var(--step-body); margin-top: 1.5rem; }
.legal p, .legal ul { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.5rem; }
.legal-date { color: var(--muted); }
.nav-page { position: static; width: 100%; } /* plain pages: header in flow, full width */
.legal-lead { font-size: var(--step-lead); line-height: 1.6; margin-top: 1.5rem; }
.foot-line a { color: var(--ink); }

.foot { padding: 4rem var(--margin) 2rem; overflow: hidden; }
.foot-big { font-family: var(--font-display); font-weight: 900; font-size: 24vw; line-height: 0.85; letter-spacing: -0.03em; color: var(--field); -webkit-text-stroke: 0; transform-origin: 50% 100%; margin-left: -0.04em; }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin-top: 2rem; font-size: 0.9375rem; color: var(--muted); }
.foot-line > :last-child { text-align: right; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: var(--ink); }
.credits { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); max-width: 60ch; }

/* ---------- entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .faq-cols { columns: 1; }
  .faq .head-sm { grid-column: 1 / 5; }
}

/* ---------- phone & portrait tablet ---------- */
@media (max-width: 860px) {
  .vdots { flex-wrap: nowrap; }
  .vdot { width: 28px; } /* 8 dots fit one row between the arrows; arrows stay 48px, dots keep 44px height (WCAG 2.5.8 ≥ 24px) */
  .nav { width: 100%; padding: 0.6rem var(--margin); background: var(--bg); }
  .nav nav a:not(.btn) { display: none; }
  .nav nav .nav-lang a:not(.btn) { display: inline-flex; padding: 0; }
  .stage-fixed { position: relative; height: auto; padding: 2rem 0.75rem 2.5rem; }
  .stage-fixed { padding-top: 1.25rem; }
  .wall-clock { margin-bottom: 0.75rem; }
  .clock-time { font-size: 2.25rem; display: inline; }
  .clock-sub { display: inline; margin-left: 0.6rem; font-size: 0.9375rem; }
  .wall { padding: 0.75rem; border-radius: 18px; }
  .wall-cols { gap: 0.5rem; }
  .kid { padding: 0.5rem; }
  .task { padding: 0.4rem 0.5rem; gap: 0.4rem; font-size: 0.875rem; }
  .t-tok { display: none; }
  .stage { display: flex; flex-direction: column; }
  .stage-read { display: contents; }
  .hero { order: 1; min-height: 0; max-width: none; padding: 5rem var(--margin) 2.5rem; }
  .stage-fixed { order: 2; }
  .stage-read > :not(.hero) { order: 3; padding-left: var(--margin); padding-right: var(--margin); }
  .nags { order: 2; font-size: 1.25rem; gap: 0 1rem; margin: 1.25rem 0 0; }
  .hero-title { order: 1; }
  .hero-lead { order: 3; }
  .hero-act { order: 4; }
  .hero-title { font-size: 11vw; }
  .hero-lead { font-size: 1.125rem; margin-top: 1rem; }
  .hero-act { margin-top: 1.5rem; }
  .block { padding-top: 6rem; }
  .state { grid-template-columns: 1fr; gap: 0.4rem; }
  .show { grid-template-columns: 1fr; }
  .show-in, .show-out { min-height: 62svh; padding: 3rem var(--margin) 5.5rem; }
  .show-label, .show-in textarea { margin-left: 0; width: 100%; }
  .show-in { display: flex; flex-direction: column; }
  .show-h { position: static; order: -1; display: block; font-size: 10vw; margin-bottom: 1.5rem; }
  .show-h1, .show-h2 { display: inline-block; padding: 0; color: var(--dark-ink); }
  .show-h1::after { content: "，"; }
  :lang(en) .show-h1::after { content: ","; margin-right: 0.25em; }
  .show-out { padding-top: 3rem; }
  .history, .setup, .price, .faq { display: block; }
  .history > * + *, .faq-cols { margin-top: 2rem; }
  .hist-text { max-width: none; }
  .hist-a, .hist-now { max-width: 30rem; }
  .hist-now { padding: 1rem; }
  .setup-text { max-width: none; }
  .slip { margin: 3rem auto 0; padding: 1.75rem 1.25rem 3rem; }
  .slip-total { margin: 1.75rem -1.25rem 0; padding: 0 1.25rem; }
  .price-fig { margin-top: 2.5rem; }
  .figure { font-size: 34vw; }
  .price-chip { left: auto; right: 0; top: -0.5rem; width: 44vw; }
  .price-fig .btn { width: 100%; }
  .cta { padding: 10svh var(--margin); }
  .foot-line { grid-template-columns: 1fr; gap: 0.5rem; }
  .foot-line > :last-child { text-align: left; }
}

/* ---------- small phones: tighter rhythm so the long story stays short ---------- */
@media (max-width: 600px) {
  :root { --section: 4rem; }
  .block { padding-top: 3.5rem; }
  .show-in, .show-out { min-height: 0; padding: 2.5rem var(--margin) 3rem; }
  .show-out { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
