/* Suzu beta landing page — "Playful Study Notebook".
   Every color, radius, space, shadow and easing comes from /tokens.css,
   which the build generates from @suzu/tokens (same source as the app). */

:root {
  color-scheme: light;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-heading: "Noto Serif JP", Georgia, serif;
  --font-sans: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Klee One", "Comic Sans MS", cursive;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--canvas);
  background-image: radial-gradient(var(--grid-dot) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--text-link); text-underline-offset: 3px; }
::selection { background: var(--tone-highlight-tint); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: var(--radius-xs); }
strong { font-weight: 600; }

.sr-only, .hp {
  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: var(--space-4); top: -60px; z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  background: var(--text-primary); color: var(--surface); text-decoration: none;
}
.skip:focus { top: var(--space-4); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 760px); }

.hand { font-family: var(--font-hand); font-weight: 600; letter-spacing: 0.01em; }
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary);
}
.dotted {
  background-color: var(--canvas);
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- buttons & inputs ---------- */
.btn {
  --btn-bg: var(--brand-hover);
  --btn-fg: var(--text-on-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink-a-20), var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink-a-20), var(--shadow-md); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 1px 0 var(--ink-a-20), var(--shadow-xs); }
.btn--ink { --btn-bg: var(--text-primary); --btn-fg: var(--canvas); }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.btn--lg { min-height: 56px; width: 100%; font-size: 17px; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__label { opacity: 0.55; }
.btn[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.input {
  width: 100%; min-height: 52px; padding: 0 var(--space-4);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text-primary);
  font: 400 16px/1.2 var(--font-sans);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.input::placeholder { color: var(--text-tertiary); }
.input:hover { border-color: var(--text-tertiary); }
.input:focus { outline: none; border-color: var(--border-interactive); box-shadow: 0 0 0 4px var(--surface-brand); }
.input[aria-invalid="true"] { border-color: var(--state-incorrect); box-shadow: 0 0 0 4px var(--state-incorrect-tint); }

/* ---------- decorative notebook bits ---------- */
.tape {
  position: absolute; z-index: 2; width: 92px; height: 26px;
  top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background-image: repeating-linear-gradient(135deg, var(--tape-color) 0 7px, transparent 7px 11px), linear-gradient(var(--tape-color), var(--tape-color));
  background-blend-mode: normal;
  opacity: 0.95;
  box-shadow: var(--shadow-tape);
  border-radius: 2px;
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
          mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}
.tape--blue { --tape-color: var(--washi-blue); }
.tape--mustard { --tape-color: var(--washi-mustard); }
.tape--tomato { --tape-color: var(--washi-tomato); }

.sticky {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--tone-highlight-tint);
  border-radius: var(--radius-sticky);
  box-shadow: var(--shadow-sticky), var(--shadow-sm);
  transform: rotate(var(--tilt, 3deg));
}
.sticky .hand { font-size: 24px; line-height: 1.15; color: var(--text-primary); }

.rubber-stamp {
  display: grid; place-items: center; align-content: center;
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--tone-reward); color: var(--tone-reward);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5.5px var(--tone-reward);
  font: 800 22px/1 var(--font-display); letter-spacing: 0.08em;
  transform: rotate(-14deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
}
.rubber-stamp small { font: 600 11px/1 var(--font-sans); letter-spacing: 0.2em; margin-top: 4px; }

.doodle { position: absolute; pointer-events: none; }
.doodle--sparkle-a { width: 34px; height: 34px; fill: var(--tone-highlight); }
.doodle--sparkle-b { width: 20px; height: 20px; fill: var(--brand); }
.doodle--squiggle { width: 110px; height: 20px; color: var(--skill-speaking-accent); }

.highlight {
  position: relative; white-space: nowrap;
  background-image: linear-gradient(100deg, transparent 0.2em, var(--washi-mustard) 0.3em, var(--washi-mustard) calc(100% - 0.15em), transparent calc(100% - 0.05em));
  background-repeat: no-repeat;
  background-size: 0% 0.42em;
  background-position: 0 88%;
  animation: highlight 900ms var(--ease-out) 500ms forwards;
}
@keyframes highlight { to { background-size: 100% 0.42em; } }

.stamp-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px 6px 10px; margin-bottom: var(--space-6);
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.stamp-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--state-correct);
  box-shadow: 0 0 0 4px var(--state-correct-tint);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--state-correct-tint); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-6);
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; }
.brand__word { font: 800 26px/1 var(--font-display); letter-spacing: -0.01em; }
.brand__kanji { font: 600 19px/1 "Klee One", var(--font-heading); color: var(--text-secondary); transform: translateY(1px); }
.nav__links { display: flex; gap: var(--space-6); margin-left: auto; }
.nav__links a { color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--text-primary); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(24px, 5vw, 64px) 0 var(--section-y); }
.hero__inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero__title {
  font: 800 clamp(42px, 5.4vw, 72px)/1.04 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: var(--space-6); max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--text-secondary);
}
.signup { margin-top: var(--space-7); max-width: 520px; }
.signup__row { display: flex; gap: var(--space-2); }
.signup__row .input { flex: 1; }
.signup__status { min-height: 1.5em; margin-top: var(--space-2); font-size: 14px; font-weight: 500; }
.signup__status[data-tone="error"] { color: var(--state-incorrect); }
.signup__status[data-tone="ok"] { color: var(--state-mastered); }
.hero__note {
  position: relative; display: inline-block;
  margin-left: var(--space-2);
  font-size: 22px; color: var(--skill-speaking-strong); transform: rotate(-2deg);
}
.hero__note-arrow {
  position: absolute; width: 60px; height: 40px; right: -70px; top: -26px;
  color: var(--skill-speaking-strong); transform: scaleY(-1) rotate(-12deg);
}
.hero__points { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-7); }
.hero__points li { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.hero__points svg {
  width: 22px; height: 22px; padding: 3px; border-radius: 50%;
  color: var(--state-mastered); background: var(--skill-listening-tint);
}

.hero__art { position: relative; display: grid; place-items: center; min-height: 640px; }
.hero__peek {
  position: absolute; z-index: 0; width: 150px; height: auto;
  right: calc(50% - 250px); top: 70px;
  transform: rotate(8deg);
  animation: peek 5s var(--ease-in-out) 1.2s infinite;
}
@keyframes peek { 0%, 70%, 100% { transform: translate(0, 0) rotate(8deg); } 80% { transform: translate(10px, -4px) rotate(12deg); } 90% { transform: translate(4px, 0) rotate(9deg); } }
.hero__art .doodle--sparkle-a { top: 40px; left: 10%; animation: twinkle 3.2s var(--ease-in-out) infinite; }
.hero__art .doodle--sparkle-b { bottom: 120px; right: 6%; animation: twinkle 2.6s var(--ease-in-out) 0.8s infinite; }
.hero__art .doodle--squiggle { bottom: 54px; left: 4%; transform: rotate(-8deg); }
@keyframes twinkle { 50% { transform: scale(0.7) rotate(20deg); opacity: 0.6; } }

.phone {
  position: relative; z-index: 1;
  width: 316px; padding: 11px;
  border-radius: 52px;
  background: var(--text-primary);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--ink-a-20), 0 0 0 1px var(--ink-a-12);
  transform: rotate(-2.5deg);
}
.phone__screen {
  position: relative; overflow: hidden;
  height: 600px; border-radius: 42px;
  padding: 0 18px;
  display: flex; flex-direction: column;
}
.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 0 12px; font-size: 14px; font-weight: 600;
}
.phone__island { width: 92px; height: 26px; border-radius: 20px; background: var(--text-primary); }
.phone__bars { width: 40px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--text-primary) 0 60%, transparent 60% 66%, var(--text-primary) 66%); }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 8px 2px 18px; }
.app-head__hi { margin-top: 4px; font: 700 23px/1.1 var(--font-display); }
.streak {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: var(--radius-full);
  background: var(--tone-reward-tint); color: var(--skill-speaking-strong);
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.streak svg { width: 16px; height: 16px; fill: var(--tone-reward); animation: breathe 2.8s var(--ease-in-out) infinite; transform-origin: 50% 90%; }
@keyframes breathe { 50% { transform: scale(1.15); } }

.top5 { padding: 18px 14px 10px; border-radius: var(--radius-lg); }
.top5__head { display: flex; align-items: baseline; justify-content: space-between; }
.top5__title { font: 600 18px/1.2 var(--font-heading); }
.top5__count { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.bar { height: 6px; margin: 10px 0 6px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--brand); }
.top5__list li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 2px; border-bottom: 1px dashed var(--border);
  font-size: 13.5px; font-weight: 500;
}
.top5__list li:last-child { border-bottom: 0; }
.box {
  display: grid; place-items: center; width: 20px; height: 20px;
  border: 1.6px solid var(--border-strong); border-radius: 6px; background: var(--surface);
}
.box svg { width: 14px; height: 14px; color: var(--surface); }
.is-done .box { background: var(--state-mastered); border-color: var(--state-mastered); }
.is-done .top5__text, .plan .is-done { color: var(--text-tertiary); text-decoration: line-through; text-decoration-color: var(--text-tertiary); }
.is-next { margin: 0 -8px; padding-inline: 10px !important; border-radius: var(--radius-sm); background: var(--surface-brand); border-bottom-color: transparent !important; }
.is-next .box { border-color: var(--brand); }
.top5__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5__text em { font-style: italic; }
.tag {
  display: inline-block; padding: 3px 8px; border-radius: var(--radius-full);
  background: var(--skill-tint); color: var(--text-primary);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--skill) 40%, transparent);
}
.app-cta {
  margin-top: 16px; padding: 15px; border-radius: var(--radius-md);
  background: var(--brand-active); color: var(--text-on-brand);
  text-align: center; font-weight: 600; font-size: 15px;
  box-shadow: 0 2px 0 var(--ink-a-20);
}
.tabbar {
  margin: auto -18px 0; padding: 14px 18px 26px;
  display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
}
.tabbar .is-active { color: var(--brand-hover); }

.sticky--hero {
  position: absolute; z-index: 2; left: max(0px, calc(50% - 310px)); bottom: 70px;
  width: 168px; --tilt: -6deg;
  animation: float 6s var(--ease-in-out) infinite;
}
@keyframes float { 50% { translate: 0 -8px; } }
.hero__art .rubber-stamp { position: absolute; z-index: 2; right: max(0px, calc(50% - 280px)); bottom: 40px; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lede, .signup { margin-inline: auto; }
  .hero__points { justify-content: center; }
  .hero__art { min-height: 0; padding-top: var(--space-6); }
}
@media (max-width: 520px) {
  .signup__row { flex-direction: column; }
  .phone { width: 280px; }
  .phone__screen { height: 580px; padding: 0 14px; }
  .hero__peek { width: 110px; right: -6px; top: 50px; }
  .sticky--hero { width: 140px; left: -4px; bottom: 90px; }
  .sticky--hero .hand { font-size: 20px; }
  .hero__art .rubber-stamp { width: 84px; height: 84px; font-size: 18px; right: 0; top: 8px; bottom: auto; }
  .hero__note-arrow { display: none; }
  .tabbar { margin-inline: -14px; }
}

/* ---------- section heads ---------- */
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  margin-top: var(--space-3);
  font: 700 clamp(32px, 4.2vw, 52px)/1.1 var(--font-display);
  letter-spacing: -0.02em; text-wrap: balance;
}

/* ---------- skills ---------- */
.skills {
  padding: var(--section-y) 0;
  background: var(--surface-raised);
  border-block: 1px solid var(--border);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--ink-a-04) 31px 32px);
}
.skill-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); }
.skill {
  position: relative; padding: var(--space-6) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--tilt));
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.skill::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--skill);
}
.skill:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-md); }
.skill__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-4);
  border-radius: var(--radius-md); background: var(--skill-tint); color: var(--skill-strong);
}
.skill__icon svg { width: 26px; height: 26px; }
.skill h3 { font: 600 20px/1.3 var(--font-heading); }
.skill p { margin-top: var(--space-2); font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 1080px) { .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }
@media (max-width: 440px) { .skill-grid { grid-template-columns: 1fr; } .skill { transform: none; } }

/* ---------- features ---------- */
.how { padding: var(--section-y) 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px); align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 10vw, 136px); }
.feature--flip .feature__copy { order: 2; }
.feature__num { display: block; font-size: 30px; color: var(--brand-hover); }
.feature__title {
  margin-top: var(--space-1);
  font: 700 clamp(28px, 3.2vw, 40px)/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance;
}
.feature__title em { font-style: italic; color: var(--skill-vocabulary-strong); }
.feature__copy > p:not(.feature__aside) { margin-top: var(--space-4); font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 32em; }
.feature__copy strong { color: var(--text-primary); }
.feature__aside {
  display: inline-block; margin-top: var(--space-5); padding: 2px 10px;
  font-size: 22px; color: var(--text-primary);
  background: linear-gradient(transparent 55%, var(--tone-highlight-tint) 55%);
  transform: rotate(-1.5deg);
}
.feature__art { position: relative; display: grid; place-items: center; min-height: 360px; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .feature__art { min-height: 0; }
}

.mini { width: min(100%, 400px); padding: var(--space-6); transform: rotate(var(--tilt)); }
.plan { margin-top: var(--space-3); }
.plan li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: var(--space-3); align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 15px; font-weight: 500;
}
.plan li:last-child { border-bottom: 0; }
.mins { font-size: 12px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; text-decoration: none; }

.mini--pick { background: linear-gradient(var(--surface-ai), var(--surface) 55%); border-color: var(--lavender-a-50); z-index: 1; }
.pick__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px;
  border-radius: var(--radius-full); background: var(--surface); color: var(--skill-vocabulary-strong);
  box-shadow: inset 0 0 0 1px var(--lavender-a-50); font-size: 13px; font-weight: 600;
}
.pick__badge svg { width: 14px; height: 14px; fill: var(--tone-ai); }
.pick__title { margin-top: var(--space-4); font: 700 26px/1.2 var(--font-display); }
.pick__meta { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); font-size: 13px; color: var(--text-secondary); }
.pick__why { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px dashed var(--lavender-a-50); }
.pick__why p:last-child { margin-top: var(--space-1); font-size: 14.5px; line-height: 1.55; }
.mini-btn {
  margin-top: var(--space-5); padding: 14px; border-radius: var(--radius-md);
  background: var(--text-primary); color: var(--canvas); text-align: center; font-weight: 600;
}
.mini--drill {
  position: absolute; width: 220px; padding: var(--space-4); right: -44px; top: -92px; z-index: 0;
}
.mini--drill__t { margin-top: 4px; font: 600 16px/1.3 var(--font-heading); }
.wave { display: flex; align-items: center; gap: 3px; height: 32px; margin-top: var(--space-3); }
.wave i { flex: 1; border-radius: 2px; background: var(--skill-listening-accent); animation: wave 1.4s var(--ease-in-out) infinite; }
.wave i:nth-child(3n) { animation-delay: -0.3s; } .wave i:nth-child(3n+1) { animation-delay: -0.7s; } .wave i:nth-child(4n) { animation-delay: -1.1s; }
.wave i:nth-child(n+9) { background: var(--border-strong); }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (max-width: 520px) { .mini--drill { position: relative; right: auto; top: auto; margin: 0 0 -24px auto; } .feature__art { display: flex; flex-direction: column; } .mini--drill { order: -1; } .mini { margin-inline: auto; } }

.eyebrow--reading { display: flex; align-items: center; gap: 8px; }
.eyebrow--reading::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--skill-reading-accent); }
.quiz__passage {
  margin: var(--space-4) 0; padding: var(--space-4); border-radius: var(--radius-md);
  border: 1px solid var(--border); font-size: 14.5px; line-height: 1.75; color: var(--text-secondary);
}
.quiz__passage mark { background: var(--tone-highlight-tint); color: var(--text-primary); padding: 1px 2px; border-radius: 3px; }
.quiz__opt {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 14px; margin-top: var(--space-2);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); font-size: 14.5px;
}
.quiz__opt span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--surface-raised); font-weight: 600; font-size: 13px; }
.quiz__opt.is-wrong { color: var(--text-tertiary); text-decoration: line-through; border-style: dashed; }
.quiz__opt.is-right { border-color: var(--state-correct); background: var(--state-correct-tint); font-weight: 500; }
.quiz__opt.is-right span { background: var(--state-correct); color: var(--surface); }
.quiz__opt svg { width: 18px; height: 18px; margin-left: auto; color: var(--state-mastered); }
.sticky--explain { position: absolute; width: 210px; right: -36px; bottom: -96px; z-index: 2; background: var(--surface-brand); }
.sticky--explain .hand { font-size: 21px; }
@media (max-width: 520px) { .sticky--explain { position: relative; right: auto; bottom: auto; margin: -16px 0 0 auto; } }

.mini--score { display: flex; align-items: center; gap: var(--space-6); width: min(100%, 440px); }
.ring { position: relative; flex: none; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring__track { stroke: var(--surface-sunken); }
.ring__fill { stroke: var(--brand); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-out) 200ms; }
.is-visible .ring__fill { stroke-dashoffset: calc(1 - var(--p)); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { font: 800 40px/1 var(--font-display); }
.ring__label span { font-size: 11px; color: var(--text-secondary); font-weight: 500; margin-top: 4px; }
.score__target { font: 700 30px/1.1 var(--font-display); color: var(--brand-hover); }
.score__days { margin-top: var(--space-1); font-size: 14px; color: var(--text-secondary); }
.score__days strong { color: var(--text-primary); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-4); }
.stats div { position: relative; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-raised); }
.stats strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; color: var(--text-secondary); }
.stats__flame { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; fill: var(--tone-reward); }
@media (max-width: 440px) { .mini--score { flex-direction: column; text-align: center; } .stats { text-align: left; } }

/* ---------- voice ---------- */
.voice { padding: var(--section-y) 0; background: var(--surface); border-block: 1px solid var(--border); }
.voice__inner { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-4) clamp(32px, 6vw, 80px); align-items: center; }
.voice__mascot { grid-row: span 2; width: 100%; height: auto; animation: bob 4s var(--ease-in-out) infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.voice__quote p { font: 700 italic clamp(30px, 4vw, 50px)/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.voice__quote footer { margin-top: var(--space-2); font-size: 26px; color: var(--text-secondary); }
.voice__promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-4); }
.voice__promises li { padding-top: var(--space-4); border-top: 2px solid var(--text-primary); font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.voice__promises strong { display: block; color: var(--text-primary); font-size: 16px; margin-bottom: var(--space-1); }
@media (max-width: 880px) {
  .voice__inner { grid-template-columns: 1fr; text-align: center; }
  .voice__mascot { grid-row: auto; width: 200px; margin-inline: auto; }
  .voice__promises { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- join ---------- */
.join { padding: var(--section-y) 0; }
.join__card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-2xl);
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, transparent 0 calc(clamp(28px, 5vw, 64px) - 14px), var(--washi-tomato) calc(clamp(28px, 5vw, 64px) - 14px) calc(clamp(28px, 5vw, 64px) - 12.5px), transparent 0),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--ink-a-04) 35px 36px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.tape--join-l { left: 14%; top: -12px; transform: rotate(-6deg); width: 120px; }
.tape--join-r { left: auto; right: 8%; top: -12px; transform: rotate(5deg); width: 110px; }
.join__art { position: relative; display: grid; place-items: center; }
.join__mascot { width: min(100%, 380px); height: auto; animation: bob 4.5s var(--ease-in-out) infinite; }
.doodle--join { width: 30px; height: 30px; fill: var(--tone-highlight); top: 4%; left: 8%; animation: twinkle 3s var(--ease-in-out) infinite; }
.join__title { margin-top: var(--space-3); font: 800 clamp(36px, 4.6vw, 58px)/1.05 var(--font-display); letter-spacing: -0.02em; }
.join__lede { margin-top: var(--space-4); font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 30em; }
.signup--stacked { display: grid; gap: var(--space-5); margin-top: var(--space-7); max-width: none; }
.field { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-size: 14px; font-weight: 600; }
.field > legend { margin-bottom: var(--space-2); }
.optional { margin-left: 6px; font-weight: 400; color: var(--text-tertiary); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong); background: var(--surface);
  font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
  transition: all var(--duration-base) var(--ease-out);
}
.chip span:hover { border-color: var(--text-tertiary); }
.chip input:checked + span { background: var(--surface-brand); border-color: var(--brand); color: var(--brand-active); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.signup--stacked .signup__status { margin-top: calc(-1 * var(--space-3)); }
.signup__fine { margin-top: calc(-1 * var(--space-3)); font-size: 13px; color: var(--text-tertiary); }
.join__done { text-align: left; }
.join__done:not([hidden]) { animation: pop 520ms var(--ease-out); }
.rubber-stamp--done { margin-bottom: var(--space-5); color: var(--state-mastered); border-color: var(--state-mastered); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5.5px var(--state-mastered); animation: stamp 520ms var(--ease-out) 120ms both; }
@keyframes stamp { from { transform: scale(1.8) rotate(-4deg); opacity: 0; } 60% { transform: scale(0.94) rotate(-14deg); opacity: 1; } to { transform: scale(1) rotate(-12deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.join__done-title { font: 800 34px/1.1 var(--font-display); }
.join__done-text { margin-top: var(--space-3); font-size: 17px; color: var(--text-secondary); }
@media (max-width: 880px) {
  .join__card { grid-template-columns: 1fr; text-align: left; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--ink-a-04) 35px 36px); }
  .join__mascot { width: 220px; }
}

/* ---------- faq ---------- */
.faq { padding: 0 0 var(--section-y); }
.faq__list { display: grid; gap: var(--space-3); }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-base) var(--ease-out);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); cursor: pointer; list-style: none;
  font: 600 18px/1.4 var(--font-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--surface-raised); font: 500 20px/1 var(--font-sans);
  transition: transform var(--duration-slow) var(--ease-out), background var(--duration-base);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--tone-highlight-tint); }
.faq details p { padding: 0 var(--space-6) var(--space-6); color: var(--text-secondary); line-height: 1.7; max-width: 40em; }

/* ---------- footer ---------- */
.footer { padding: var(--space-9) 0 var(--space-10); border-top: 1px solid var(--border); background: var(--surface-raised); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4) var(--space-6); }
.footer__tag { font-size: 22px; color: var(--text-secondary); }
.footer__links { display: flex; gap: var(--space-5); }
.footer__links a { color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.footer__fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-tertiary); }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity var(--duration-slower) var(--ease-out) var(--reveal-delay, 0ms), translate var(--duration-slower) var(--ease-out) var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .highlight { background-size: 100% 0.42em; }
}
