/* ============================================================
   GRAMMAR KINGDOM — MARKETING SITE DESIGN SYSTEM
   Tokens are copied verbatim from the game's css/styles.css so
   the site reads as the official Grammar Kingdom front gate.
   ============================================================ */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Canvas & surfaces */
  --paper: #FBF3E7;
  --card: #FFFFFF;
  --surface-soft: #FFF8EC;

  /* Hairlines */
  --hairline: #EEE3CE;
  --hairline-soft: #F3EBDD;
  --track: #F0E7D5;

  /* Ink */
  --plum: #3B2A4A;
  --ink-soft: #6B5E80;
  --on-dark: #FFF9EE;
  --night: #251C3E;

  /* Kingdom hues */
  --leaf: #55A573;
  --leaf-dark: #3B7D55;
  --coral: #EF6F55;
  --coral-dark: #B54A32;
  --sun: #E3A73E;
  --sun-dark: #8A6516;
  --blue: #4C8FBD;
  --purple: #8B6FB0;
  --rose: #D9598B;
  --locked: #C9C1B0;

  /* Feedback tints */
  --good-bg: #E7F3EA;
  --bad-bg: #FCEBE5;
  --tip-bg: #FFF7EC;
  --tip-border: #F3DFC0;

  /* World blocks (pastels) */
  --block-meadow: #DDEEB2;
  --block-lilac: #D6C5F5;
  --block-cream: #F7EED9;
  --block-mint: #C9E7D1;
  --block-blossom: #F6D7E3;
  --block-peach: #F8D9C6;
  --block-sky: #CFE7F5;

  /* Typography */
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.55rem, 1.55rem + 4.4vw, 4.05rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.9vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.5vw, 1.25rem);
  --leading-tight: 1.12;
  --leading-body: 1.6;

  /* Spacing (8px rhythm, extended for section scale) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Elevation (plum-tinted, used sparingly) */
  --shadow-xs: 0 2px 6px rgba(59, 42, 74, 0.06);
  --shadow-sm: 0 4px 10px rgba(59, 42, 74, 0.07);
  --shadow-md: 0 8px 20px rgba(59, 42, 74, 0.09);
  --shadow-lg: 0 18px 40px rgba(59, 42, 74, 0.14);

  /* Chunky "toy" buttons: one shared 3D recipe */
  --grad-leaf: linear-gradient(180deg, #4E9470 0%, var(--leaf-dark) 100%);
  --grad-leaf-deep: linear-gradient(180deg, var(--leaf-dark) 0%, #35714D 100%);
  --grad-sun: linear-gradient(180deg, #EFB44E 0%, #C0831E 100%);
  --grad-coral: linear-gradient(180deg, #F58A73 0%, #C9533B 100%);
  --btn-drop: 0 5px 0 rgba(43, 26, 60, 0.18);
  --btn-drop-hover: 0 7px 0 rgba(43, 26, 60, 0.18), 0 14px 20px rgba(59, 42, 74, 0.18);
  --btn-drop-sm: 0 3px 0 rgba(43, 26, 60, 0.16);
  --btn-drop-press: 0 1px 0 rgba(43, 26, 60, 0.18);
  --btn-inset: inset 0 2px 0 rgba(255, 255, 255, 0.22);

  /* Interaction */
  --touch: 48px;
  --focus-ring: 3px solid #2F6B4A;
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1080px;
  --header-h: 68px;
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  color: var(--plum);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: color-mix(in srgb, var(--leaf) 30%, transparent); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-300%);
  background: var(--card); border: 2px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 10px 16px; font-weight: 800; text-decoration: none; color: var(--plum);
  box-shadow: var(--shadow-md);
}
.skip-link:focus-visible { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 760px) {
  .container { padding-inline: 32px; }
}

.emoji-ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  vertical-align: -0.18em;
}

/* ---------- Reusable components ---------- */

.toy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0.01em; line-height: 1.15;
  color: var(--on-dark); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  border: none; border-radius: var(--radius-md); min-height: 56px; padding: 14px 22px;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: var(--btn-drop), var(--btn-inset);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease, border-color 0.12s ease;
}
@media (hover: hover) {
  .toy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-drop-hover), var(--btn-inset);
    filter: brightness(1.04);
  }
}
.toy-btn:active {
  transform: translateY(4px);
  box-shadow: var(--btn-drop-press), var(--btn-inset);
}
.toy-btn:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 3px; }
.toy-btn-primary { background: var(--grad-leaf); }
.toy-btn-gold { background: var(--grad-sun); color: var(--plum); text-shadow: none; }
.toy-btn-ghost {
  background: var(--card); color: var(--plum); text-shadow: none;
  border: 2px solid var(--hairline); box-shadow: var(--shadow-xs);
}
@media (hover: hover) {
  .toy-btn-ghost:hover {
    transform: translateY(-2px); filter: none;
    border-color: var(--sun); box-shadow: var(--shadow-sm);
  }
}
.toy-btn-sm {
  min-height: 46px; padding: 10px 18px; font-size: 1rem;
  background: var(--grad-leaf-deep);
}

.card {
  background: var(--card);
  border: 2px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
}

.stat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 2px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--plum);
  box-shadow: var(--shadow-xs); white-space: nowrap;
}

.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tip-bg); border: 2px solid var(--tip-border); border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--sun-dark);
}

.section { padding-block: var(--space-3xl); }
@media (min-width: 760px) {
  .section { padding-block: var(--space-4xl); }
}
.section-head .eyebrow-chip { margin-bottom: var(--space-sm); }
.section-head { max-width: 660px; margin-bottom: var(--space-2xl); }
.section-title {
  font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.3px;
  color: var(--plum); margin: 0 0 var(--space-sm);
  text-wrap: balance;
}
.section-lead { color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; margin: 0; }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--hairline-soft);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; border-radius: var(--radius-sm);
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--plum); letter-spacing: -0.2px; white-space: nowrap;
}
.brand-accent { color: var(--leaf-dark); }

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: var(--touch);
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--plum); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.nav-link:hover { background: var(--surface-soft); color: var(--leaf-dark); }

.nav-cta { width: 100%; margin-top: var(--space-sm); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: var(--card); border: 2px solid var(--hairline); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2.6px; border-radius: 2px; background: var(--plum);
  transition: transform 0.18s var(--ease-pop), opacity 0.12s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    background: var(--paper);
    border-bottom: 2px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 20px var(--space-lg);
  }
  .site-nav.open { display: block; animation: menu-in 0.18s ease both; }
  .nav-list li:last-child .nav-link { border-bottom: none; }
  .nav-link { border-bottom: 1.5px solid var(--hairline-soft); border-radius: 0; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: var(--space-sm); }
  .nav-list { flex-direction: row; align-items: center; gap: var(--space-2xs); }
  .nav-link { font-size: 1.02rem; }
  .nav-link:last-child { margin-right: var(--space-xs); }
  .nav-cta { width: auto; margin-top: 0; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(44px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  top: -180px; right: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(214, 197, 245, 0.38) 0%, rgba(214, 197, 245, 0) 70%);
}
.hero::after {
  bottom: -240px; left: -180px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201, 231, 209, 0.4) 0%, rgba(201, 231, 209, 0) 70%);
}

.hero-grid { position: relative; display: grid; gap: var(--space-2xl); }

.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }

#hero-title {
  font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.5px;
  color: var(--plum); margin: var(--space-md) 0 0;
  max-width: 15ch;
  text-wrap: balance;
}

.underline-wavy {
  padding-bottom: 0.18em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22' preserveAspectRatio='none'%3E%3Cpath d='M4 15 Q 30 6 55 13 T 110 13 T 165 13 T 216 11' fill='none' stroke='%23E3A73E' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 100% 0.3em;
}

.hero-lead {
  color: var(--ink-soft); font-weight: 600; font-size: var(--fs-lead);
  line-height: var(--leading-body);
  max-width: 46ch; margin: var(--space-lg) 0 0;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-sm);
  margin-top: var(--space-xl); width: 100%;
}

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs);
  margin-top: var(--space-xl);
}

/* Hero stage: castle on the mint mound, floating world tokens */
.hero-stage {
  position: relative; width: 100%; max-width: 520px;
  aspect-ratio: 1 / 0.92;
  margin-inline: auto;
}

.stage-glow {
  position: absolute; top: 14%; left: 12%; width: 76%; height: 66%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

.mound {
  position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 25%; border-radius: 50%;
  background: linear-gradient(180deg, var(--block-mint) 0%, #B8DCC4 100%);
  box-shadow: inset 0 -8px 14px rgba(59, 42, 74, 0.08);
}

.castle {
  position: absolute; bottom: 17%; left: 50%; transform: translateX(-50%);
  width: 48%;
  filter: drop-shadow(0 16px 22px rgba(59, 42, 74, 0.18));
  animation: castle-float 4.5s ease-in-out infinite;
}

@keyframes castle-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-9px) rotate(-2deg); }
}

.float-chip {
  position: absolute; padding: 10px 13px;
  background: var(--card); border: 2px solid var(--hairline); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  animation: bob 5.2s ease-in-out infinite;
}
.float-chip.float-1 { top: 7%; left: 9%; animation-delay: 0s; }
.float-chip.float-2 { top: 1%; right: 30%; animation-delay: 0.7s; }
.float-chip.float-3 { top: 34%; left: 0; animation-delay: 1.3s; animation-duration: 6.1s; }
.float-chip.float-4 { top: 36%; right: 0; animation-delay: 0.9s; animation-duration: 4.8s; }
.float-chip.float-5 { bottom: 20%; left: 5%; animation-delay: 1.6s; animation-duration: 6.4s; }
.float-chip.float-6 { bottom: 5%; right: 11%; animation-delay: 0.3s; animation-duration: 5.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-2deg); }
}

.sparkle { position: absolute; animation: twinkle 2.4s ease-in-out infinite; }
.sparkle-1 { top: 16%; left: 32%; }
.sparkle-2 { top: 56%; right: 22%; animation-delay: 1.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center; gap: var(--space-xl);
  }
  .hero-copy { text-align: left; align-items: flex-start; }
  #hero-title { max-width: 14ch; }
  .hero-actions { flex-direction: row; align-items: center; width: auto; }
  .hero-stats { justify-content: flex-start; }
}

@media (max-width: 559px) {
  .hero-stage { max-width: 420px; }
  .float-chip { padding: 8px 11px; }
  .float-chip img { width: 38px; height: 38px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-soft);
  border-top: 2px solid var(--hairline-soft);
  padding-top: var(--space-2xl);
}

.footer-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; gap: var(--space-2xl); }
}

.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand .brand-name { font-size: 1.15rem; }
.footer-blurb {
  color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
  max-width: 34ch; margin: var(--space-sm) 0 0;
}
.footer-contact { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; margin: var(--space-xs) 0 0; }
.footer-contact a { color: var(--leaf-dark); font-weight: 800; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.footer-title {
  font-size: 1rem; font-weight: 800; color: var(--plum);
  margin: 0 0 var(--space-sm);
}
.footer-links li { margin-bottom: 2px; }
.footer-links a {
  display: inline-block; padding: 7px 0;
  color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: color 0.12s ease;
}
.footer-links a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

.footer-note { color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; margin: var(--space-sm) 0 0; }

.footer-bottom {
  margin-top: var(--space-2xl); padding-block: var(--space-md);
  border-top: 2px solid var(--hairline-soft);
}
.footer-bottom p { color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Motion & polish ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero entrance: a short staggered rise, matching the game's rise-in */
html.js .hero-copy > * { animation: rise-in 0.5s var(--ease-pop) both; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
html.js .hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
html.js .hero-stage { animation: rise-in 0.6s ease 0.2s both; }

/* Scroll reveals: content is visible by default; JS adds the initial
   hidden state and reveals each block once, as it enters the viewport */
html.js .reveal, html.js .reveal-stagger > * { opacity: 0; }
html.js .reveal.in, html.js .reveal-stagger.in > * { animation: rise-in 0.55s var(--ease-pop) both; }
html.js .reveal-stagger.in > *:nth-child(2) { animation-delay: 0.06s; }
html.js .reveal-stagger.in > *:nth-child(3) { animation-delay: 0.12s; }
html.js .reveal-stagger.in > *:nth-child(4) { animation-delay: 0.18s; }
html.js .reveal-stagger.in > *:nth-child(5) { animation-delay: 0.24s; }
html.js .reveal-stagger.in > *:nth-child(6) { animation-delay: 0.3s; }
html.js .reveal-stagger.in > *:nth-child(n+7) { animation-delay: 0.36s; }

/* Small phones: keep the header on one line */
@media (max-width: 359px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.08rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

html { overflow-x: clip; }

/* ---------- Theme & mockup utilities ---------- */
.chip-mint { --chip: var(--block-mint); }
.chip-sky { --chip: var(--block-sky); }
.chip-meadow { --chip: var(--block-meadow); }
.chip-blossom { --chip: var(--block-blossom); }
.chip-peach { --chip: var(--block-peach); }

.wc-sun { --wc: var(--sun); }
.wc-rose { --wc: var(--rose); }
.wc-blue { --wc: var(--blue); }
.wc-leaf { --wc: var(--leaf); }
.wc-leaf-dark { --wc: var(--leaf-dark); }
.wc-purple { --wc: var(--purple); }
.wc-coral { --wc: var(--coral); }
.wc-locked { --wc: var(--locked); }

.meter-40 { width: 40%; }
.meter-66 { width: 66%; }

/* ---------- Why Grammar Kingdom ---------- */

.why-card, .world-card, .p-card {
  background: var(--card);
  border: 2px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-lg);
}
@media (hover: hover) {
  .why-card, .world-card, .p-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .why-card:hover, .world-card:hover, .p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

.why-grid { display: grid; gap: var(--space-md); }
@media (min-width: 560px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .why-grid { grid-template-columns: repeat(6, 1fr); }
  .why-card { grid-column: span 2; }
  .why-card:nth-child(1), .why-card:nth-child(2) { grid-column: span 3; }
}

.why-card { text-align: left; }
.why-card h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--plum);
  margin: var(--space-sm) 0 6px;
}
.why-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.icon-chip {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--chip, var(--block-mint));
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.12), inset 0 3px 5px rgba(255, 255, 255, 0.35);
}

/* ---------- How It Works: the journey ---------- */

.journey {
  position: relative;
  display: grid; gap: var(--space-xl);
  margin: 0; padding: 0; list-style: none;
}
.journey::before {
  content: ""; position: absolute;
  left: 27px; top: 34px; bottom: 40px;
  border-left: 3px dashed var(--hairline);
}
.journey-step { position: relative; padding-left: 76px; }
.journey-node {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wc, var(--leaf));
  border: 5px solid var(--card);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.13), 0 12px 16px rgba(59, 42, 74, 0.22),
    inset 0 -5px 8px rgba(0, 0, 0, 0.15), inset 0 5px 7px rgba(255, 255, 255, 0.35);
}
.journey-num {
  position: absolute; top: -7px; right: -9px;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--hairline);
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; color: var(--plum);
  box-shadow: var(--shadow-xs);
}
.journey-step h3 {
  font-size: 1.15rem; font-weight: 800; color: var(--plum);
  margin: 2px 0 6px;
}
.journey-step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; max-width: 42ch; }

@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
  .journey::before {
    left: 12.5%; right: 12.5%; top: 30px; bottom: auto;
    border-left: none; border-top: 3px dashed var(--hairline);
  }
  .journey-step { padding-left: 0; text-align: center; }
  .journey-node { position: relative; margin-inline: auto; }
  .journey-step p { margin-inline: auto; }
}

/* ---------- Explore the Kingdom ---------- */

.world-grid {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.world-card { display: flex; flex-direction: column; }
.world-node {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wc, var(--leaf));
  border: 5px solid var(--card);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.12), 0 10px 14px rgba(59, 42, 74, 0.2),
    inset 0 -5px 8px rgba(0, 0, 0, 0.15), inset 0 5px 7px rgba(255, 255, 255, 0.35);
}
.world-card h3 {
  font-size: 1.12rem; font-weight: 800; color: var(--plum);
  margin: var(--space-sm) 0 4px;
}
.world-focus { color: var(--ink-soft); font-size: 0.92rem; font-weight: 600; margin: 0 0 var(--space-sm); }
.level-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.level-pills li {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: var(--plum);
  background: var(--surface-soft); border: 2px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.world-meta {
  margin: var(--space-sm) 0 0; padding-top: var(--space-sm);
  border-top: 1.5px solid var(--hairline-soft);
  color: var(--ink-soft); font-weight: 700; font-size: 0.82rem;
}

.royal-card {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--space-lg);
  background: linear-gradient(135deg, var(--night) 0%, var(--plum) 100%);
  border-color: transparent; box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}
@media (min-width: 760px) {
  .royal-card { margin-top: var(--space-2xl); }
}
.royal-card .world-node { flex-shrink: 0; background: var(--sun); }
.royal-card h3 { color: var(--on-dark); font-size: 1.2rem; margin: 0 0 6px; }
.royal-note { color: rgba(255, 249, 238, 0.85); font-size: 0.95rem; line-height: 1.55; margin: 0; }
@media (max-width: 559px) {
  .royal-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Learn From Mistakes ---------- */

.mistake-grid { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 980px) {
  .mistake-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.tick-list { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; }
.tick-list .emoji-ico { margin-top: 3px; }
.tick-list span { color: var(--ink-soft); font-size: 1rem; font-weight: 600; line-height: 1.55; }
.tick-list strong { color: var(--plum); font-weight: 800; }

.mistake-note {
  margin: var(--space-lg) 0 0; padding: var(--space-sm) var(--space-md);
  background: var(--tip-bg); border: 2px solid var(--tip-border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; line-height: 1.55;
}

.game-frame { margin: 0; }
.game-frame figcaption {
  text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.frame-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 2px solid var(--hairline-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.frame-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--leaf), var(--sun), var(--coral), var(--purple));
}
@media (min-width: 980px) {
  .frame-card { transform: rotate(-1.2deg); }
}

.prompt-label {
  display: table; margin: 0 auto var(--space-md);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--coral-dark); background: var(--surface-soft); border: 2px solid var(--hairline);
  border-radius: var(--radius-pill); padding: 5px 14px; text-align: center;
}

.frame-sentence {
  text-align: center; font-size: 1.25rem; font-weight: 700; line-height: 1.7;
  margin: 0 0 var(--space-md);
}
.blank.blank-filled {
  display: inline-block; padding: 0 10px;
  border-bottom: 3px solid var(--coral);
  color: var(--coral-dark);
}

.q-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.opt {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--surface-soft); border: 2px solid var(--hairline);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--plum);
  text-align: center;
}
.opt-wrong { background: var(--bad-bg); border-color: var(--coral); color: var(--coral-dark); }
.opt-wrong::after { content: " ✕"; }

.frame-feedback {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  margin: var(--space-md) 0 var(--space-xs);
}
.frame-feedback.bad { color: var(--coral-dark); }

.explain-box {
  display: flex; flex-direction: column; gap: var(--space-xs);
  background: var(--tip-bg); border: 1.5px solid var(--tip-border); border-radius: var(--radius-sm);
  padding: var(--space-sm) 14px;
}
.explain-label {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--sun-dark);
}
.explain-value { font-size: 0.92rem; font-weight: 600; line-height: 1.5; color: var(--plum); }

.frame-next {
  text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 0.88rem;
  margin: var(--space-md) 0 0;
}
.frame-next .pz-link { color: #377450; font-weight: 800; }

/* ---------- Practice Zone ---------- */

.practice-panel {
  position: relative; overflow: hidden;
  background: var(--block-mint); border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
}
.practice-panel::before {
  content: ""; position: absolute; top: -120px; right: -100px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.flow {
  position: relative;
  display: grid; gap: var(--space-lg);
}
.flow-step { position: relative; text-align: center; }
.flow-ico {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  margin-inline: auto;
  background: var(--wc, var(--leaf));
  border: 5px solid var(--card);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12), 0 12px 16px rgba(59, 42, 74, 0.2),
    inset 0 -5px 8px rgba(0, 0, 0, 0.15), inset 0 5px 7px rgba(255, 255, 255, 0.35);
}
.flow-step h3 { font-size: 1.15rem; font-weight: 800; color: var(--plum); margin: var(--space-sm) 0 6px; }
.flow-step p { color: var(--plum); font-weight: 600; font-size: 0.95rem; margin: 0; }
@media (max-width: 759px) {
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; left: 50%; bottom: -34px;
    width: 12px; height: 12px;
    border-right: 3px solid var(--leaf-dark); border-bottom: 3px solid var(--leaf-dark);
    transform: rotate(45deg); opacity: 0.55;
  }
}
@media (min-width: 760px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; right: -26px; top: 26px;
    width: 14px; height: 14px;
    border-top: 3px solid var(--leaf-dark); border-right: 3px solid var(--leaf-dark);
    transform: rotate(45deg); opacity: 0.55;
  }
}

.pz-preview { max-width: 460px; margin: var(--space-xl) auto 0; display: grid; gap: 10px; position: relative; }
.pz-overview {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md); box-shadow: var(--shadow-xs);
}
.pz-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--plum); }
.pz-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--plum); }
.pz-row {
  display: flex; align-items: center; gap: var(--space-sm);
  background: var(--card); border-radius: var(--radius-sm);
  padding: 10px 12px; box-shadow: var(--shadow-xs);
}
.pz-ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: var(--radius-sm); color: white;
  background: var(--wc, var(--leaf));
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.14), inset 0 2px 4px rgba(255, 255, 255, 0.35);
}
.pz-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pz-title { font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; color: var(--plum); }
.pz-sub {
  font-size: 0.8rem; color: var(--ink-soft); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pz-go {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-pill);
  background: var(--tip-bg); border: 2px solid var(--tip-border);
  font-size: 0.7rem; color: var(--sun-dark);
}

/* ---------- Progress ---------- */

.progress-grid { display: grid; gap: var(--space-md); }
@media (min-width: 760px) {
  .progress-grid { grid-template-columns: repeat(2, 1fr); }
}

.p-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 800; color: var(--plum);
  margin: 0 0 var(--space-sm);
}
.p-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.toast-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #FFF6E0 0%, #FCEEC9 100%);
  border: 2px solid #F3E2B8; border-radius: var(--radius-pill);
  padding: 6px 12px; margin: 0 0 var(--space-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--sun-dark);
}

.stars-big { display: flex; gap: 6px; margin: 0 0 var(--space-sm); }
.stars-big img { animation: star-pop 0.45s var(--ease-pop) both; }
.stars-big img:nth-child(2) { animation-delay: 0.15s; }
.stars-big img:nth-child(3) { animation-delay: 0.3s; }
@keyframes star-pop {
  from { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.wp-preview {
  background: var(--surface-soft); border: 2px solid var(--hairline-soft); border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-sm);
}
.wp-head {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--leaf-dark);
  margin-bottom: 8px;
}
.wp-bar { height: 10px; background: var(--track); border-radius: var(--radius-xs); overflow: hidden; }
.wp-fill { height: 100%; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--sun), var(--leaf)); }

.ach-preview { display: flex; gap: 10px; margin: 0 0 var(--space-sm); }
.ach-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--card); border: 2px solid var(--hairline-soft); box-shadow: var(--shadow-xs);
}
.ach-tile.earned { border-color: var(--tip-border); }
.ach-tile.locked { border-style: dashed; background: var(--surface-soft); }
.ach-tile.locked img { opacity: 0.4; }
.ach-check {
  position: absolute; top: -7px; right: -9px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf); color: white;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 800;
  box-shadow: 0 0 0 2px var(--card);
}

.p-report { grid-column: 1 / -1; background: var(--tip-bg); border-color: var(--tip-border); }
@media (min-width: 760px) {
  .p-report { display: flex; align-items: center; gap: var(--space-lg); }
  .p-report h3 { margin: 0; flex-shrink: 0; }
  .p-report p { flex: 1; }
}

/* ---------- Product Showcase ---------- */

.showcase { background: var(--block-cream); border-top: 2px solid var(--hairline-soft); }

.shots {
  display: flex; gap: var(--space-lg);
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: -20px; padding: 4px 20px var(--space-md);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(78%, 300px); min-width: 0; scroll-snap-align: center; margin: 0; }
@media (min-width: 760px) {
  .shots {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible; margin-inline: 0; padding: 0; gap: var(--space-xl);
  }
  .shot { flex: none; }
}
.shot figcaption {
  text-align: center; margin-top: var(--space-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--plum);
}

.phone {
  width: 100%; max-width: 300px; margin-inline: auto;
  background: var(--night); border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  height: 560px;
  background: var(--paper); border-radius: 34px;
}

.scr-top {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 10px;
  border-bottom: 2px solid var(--hairline-soft);
}
.scr-back {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--card); border: 2px solid var(--hairline);
  font-weight: 700; color: var(--plum); box-shadow: var(--shadow-xs);
}
.scr-title {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--plum);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coin-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF6E0 100%); border: 2px solid #F3E2B8;
  border-radius: var(--radius-pill); padding: 4px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--plum);
  box-shadow: var(--shadow-xs); font-variant-numeric: tabular-nums;
}

.map-scr {
  position: relative; flex: 1; overflow: hidden;
  background: linear-gradient(180deg, #BFE8D4 0%, #FCE7A8 22%, #FBC9B8 48%, #A9D4EC 74%, #C9AEE0 100%);
  box-shadow: inset 0 0 40px rgba(59, 42, 74, 0.06);
}
.ms-cloud { position: absolute; top: 7%; right: 8%; opacity: 0.7; }
.ms-cloud-2 { top: 56%; left: 6%; right: auto; width: 18px; height: 18px; }
.ms-star { position: absolute; top: 26%; right: 32%; opacity: 0.8; }
.ms-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--locked); opacity: 0.65; transform: translate(-50%, -50%); }
.ms-dot-1 { top: 31%; left: 38%; }
.ms-dot-2 { top: 43%; left: 49%; }
.ms-dot-3 { top: 64%; left: 40%; }
.ms-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 100px; text-align: center;
}
.ms-node-1 { top: 15%; left: 20%; }
.ms-node-2 { top: 42%; left: 52%; }
.ms-node-3 { top: 71%; left: 22%; }
.ms-circle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--wc, var(--leaf));
  border: 4px solid var(--card);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.13), 0 10px 14px rgba(59, 42, 74, 0.25),
    inset 0 -5px 8px rgba(0, 0, 0, 0.15), inset 0 5px 7px rgba(255, 255, 255, 0.35);
}
.ms-node:has(.ms-label.here) .ms-circle::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 3px solid var(--sun); animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.ms-mascot {
  margin-bottom: -4px;
  animation: mascot-idle 3s ease-in-out infinite;
}
@keyframes mascot-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}
.ms-label {
  background: var(--card); border-radius: var(--radius-pill);
  padding: 3px 9px; box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; line-height: 1.25; color: var(--plum);
}
.ms-label.done { color: var(--leaf-dark); }
.ms-label.here { background: var(--sun); box-shadow: 0 3px 10px rgba(227, 167, 62, 0.45); }

.scr-body { flex: 1; display: flex; flex-direction: column; padding: var(--space-md) 14px; }
.q-progress { height: 9px; background: var(--track); border-radius: var(--radius-xs); overflow: hidden; }
.q-progress-fill { height: 100%; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--leaf), var(--leaf-dark)); }
.q-count { color: var(--ink-soft); font-weight: 700; font-size: 0.78rem; margin: 6px 0 var(--space-md); }
.q-sentence { text-align: center; font-size: 1.18rem; font-weight: 700; line-height: 1.7; margin: 0 0 var(--space-md); }
.blank {
  display: inline-block; min-width: 54px;
  border-bottom: 3px solid var(--sun);
  text-align: center; font-weight: 700; color: var(--leaf-dark);
}
.q-options { margin-top: 4px; }
.q-submit {
  display: block; text-align: center; margin-top: var(--space-md);
  background: var(--grad-leaf); color: var(--on-dark);
  border-radius: var(--radius-sm); padding: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  box-shadow: var(--btn-drop-sm), var(--btn-inset);
}

.scr-body.done { align-items: center; text-align: center; padding-top: 30px; }
.scr-body.done .stars-big { margin: var(--space-md) 0; }
.scr-body.done .stars-big img { width: 34px; height: 34px; }
.done-score { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--leaf-dark); margin: 0 0 var(--space-sm); }
.reward-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #FFF6E0 0%, #FCEEC9 100%);
  border: 2px solid #F3E2B8; border-radius: 14px;
  padding: 7px 14px; margin-bottom: var(--space-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; color: var(--sun-dark);
  box-shadow: 0 3px 8px rgba(59, 42, 74, 0.06);
}
.done-msg { color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; margin: 0 0 var(--space-lg); }
.fbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--on-dark);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  box-shadow: var(--btn-drop-sm), var(--btn-inset);
  margin-bottom: 10px;
}
.fbtn.next { background: var(--grad-leaf); }
.fbtn.retry { background: var(--grad-sun); color: var(--plum); text-shadow: none; }

/* ============================================================
   CONVERSION SECTIONS
   ============================================================ */

.container-narrow { max-width: 780px; }

/* ---------- For Parents / For Teachers ---------- */

.parents-grid { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 980px) {
  .parents-grid { grid-template-columns: 1.05fr 0.95fr; }
  .teachers-grid .parents-visual { order: -1; }
}

.feature-list { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-sm); }
.feature-ico {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--chip, var(--block-mint));
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.35);
}
.feature-list h3 { font-size: 1.05rem; font-weight: 800; color: var(--plum); margin: 2px 0 4px; }
.feature-list p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.parents-visual { margin: 0; }
.parents-visual figcaption {
  text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.report-card, .class-card { max-width: 440px; margin-inline: auto; }
.report-title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--plum);
  margin: 0 0 var(--space-md);
}
.report-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0;
}
.report-row + .report-row { border-top: 1.5px solid var(--hairline-soft); }
.report-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.report-topic {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--plum);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.report-meter { height: 8px; background: var(--track); border-radius: var(--radius-xs); overflow: hidden; }
.report-fill { height: 100%; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--sun), var(--leaf)); }
.meter-80 { width: 80%; }
.meter-67 { width: 67%; }
.meter-70 { width: 70%; }
.report-score {
  font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; color: var(--leaf-dark);
  font-variant-numeric: tabular-nums;
}

.trend {
  display: flex; align-items: flex-end; gap: 6px;
  height: 64px; margin-top: var(--space-lg);
  padding-top: var(--space-md); border-top: 1.5px solid var(--hairline-soft);
}
.trend span {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--leaf) 0%, var(--leaf-dark) 100%);
}
.t-1 { height: 38%; } .t-2 { height: 55%; } .t-3 { height: 42%; } .t-4 { height: 68%; }
.t-5 { height: 60%; } .t-6 { height: 82%; }
.t-7 { height: 72%; background: linear-gradient(180deg, var(--sun) 0%, #C0831E 100%); }
.trend-caption { color: var(--ink-soft); font-weight: 700; font-size: 0.78rem; margin: 8px 0 0; }

.class-code {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 4px;
  text-align: center; color: var(--plum);
  background: var(--surface-soft); border: 2px dashed var(--hairline); border-radius: var(--radius-sm);
  padding: 14px; margin: 0 0 8px;
}
.class-hint { text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; margin: 0 0 var(--space-md); }
.class-actions { display: flex; gap: 10px; margin-bottom: var(--space-md); }
.mini-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px; border-radius: var(--radius-sm);
  background: var(--grad-leaf-deep); color: var(--on-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  box-shadow: var(--btn-drop-sm), var(--btn-inset);
}
.mini-btn.gold { background: var(--grad-sun); color: var(--plum); text-shadow: none; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.member-row + .member-row { border-top: 1.5px solid var(--hairline-soft); }
.member-avatar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--avatar, var(--leaf)); color: white;
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem;
}
.av-blue { --avatar: var(--blue); }
.av-rose { --avatar: var(--rose); }
.av-leaf { --avatar: var(--leaf); }
.member-name { flex: 1; font-weight: 700; font-size: 0.92rem; color: var(--plum); }
.member-x {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tip-bg); border: 2px solid var(--tip-border);
  color: var(--coral-dark); font-size: 0.7rem;
}

/* ---------- Benefits ---------- */

.benefits-panel {
  position: relative; overflow: hidden;
  background: var(--block-sky); border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
}
.benefits-title {
  text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--plum);
  margin: 0 0 var(--space-lg);
}
.benefits-grid { display: grid; gap: var(--space-md) var(--space-lg); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefits-grid li {
  display: flex; align-items: flex-start; gap: 8px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.5; color: var(--plum);
}
.benefits-grid .emoji-ico { margin-top: 3px; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: var(--space-sm); }
.faq-item {
  background: var(--card); border: 2px solid var(--hairline-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: 16px 18px; min-height: 48px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--plum);
  cursor: pointer; list-style: none;
  border-radius: var(--radius-md);
  transition: color 0.12s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--leaf-dark); }
.faq-q { flex: 1; }
.faq-chevron {
  flex-shrink: 0; width: 10px; height: 10px;
  border-right: 3px solid var(--leaf-dark); border-bottom: 3px solid var(--leaf-dark);
  transform: rotate(45deg);
  transition: transform 0.18s var(--ease-pop);
}
.faq-item[open] .faq-chevron { transform: rotate(-135deg); }
.faq-a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; line-height: 1.65;
  padding: 0 20px 18px; margin: 0;
}

/* ---------- Final CTA ---------- */

.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: var(--block-lilac); border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 72px) var(--space-lg);
}
.cta-panel::before {
  content: ""; position: absolute; top: -140px; right: -110px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.cta-castle {
  animation: mascot-idle 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(59, 42, 74, 0.25));
}
.cta-spark { position: absolute; animation: twinkle 2.4s ease-in-out infinite; }
.cta-spark-1 { top: 22%; left: 12%; }
.cta-spark-2 { bottom: 20%; right: 12%; animation-delay: 1.1s; }
.cta-panel .section-title { position: relative; margin-top: var(--space-md); }
.cta-sub {
  position: relative; color: var(--plum); font-weight: 700; font-size: 1.1rem;
  margin: 0 0 var(--space-xl);
}
.cta-panel .toy-btn { position: relative; }
.cta-note {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-soft); font-weight: 700; font-size: 0.9rem;
  margin: var(--space-md) 0 0;
}

/* ---------- Footer legal row ---------- */

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px var(--space-md);
  margin-top: var(--space-2xl); padding-block: var(--space-md);
  border-top: 2px solid var(--hairline-soft);
}
.footer-bottom p { color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px var(--space-md); margin: 0; padding: 0; list-style: none; }
.legal-links a {
  color: var(--ink-soft); font-weight: 700; font-size: 0.85rem; text-decoration: none;
  transition: color 0.12s ease;
}
.legal-links a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Doc pages (privacy, terms) ---------- */

.doc { max-width: 720px; margin-inline: auto; padding-block: var(--space-3xl) var(--space-4xl); }
@media (min-width: 760px) {
  .doc { padding-block: var(--space-4xl) var(--space-4xl); }
}
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -0.4px; }
.doc-meta { color: var(--ink-soft); font-weight: 700; font-size: 0.85rem; margin: var(--space-sm) 0 var(--space-xl); }
.doc h2 { font-size: 1.15rem; font-weight: 800; color: var(--plum); margin: var(--space-xl) 0 var(--space-xs); }
.doc p { color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; line-height: 1.65; margin: 0 0 var(--space-sm); }
.doc ul { margin: 0 0 var(--space-sm); padding-left: 22px; list-style: disc; }
.doc li { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; line-height: 1.6; margin-bottom: 6px; }
.doc strong { color: var(--plum); }
.doc a { color: var(--leaf-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--plum); }