/* LittleWorld English — site styles.
   Tokens mirror LWE/Configuration/DesignTokens.swift (keep in sync). */

/* Nunito Variable 5.2.7, self-hosted from Fontsource under OFL-1.1. */
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("/assets/fonts/nunito-vietnamese-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("/assets/fonts/nunito-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("/assets/fonts/nunito-cyrillic-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

:root {
  /* Primary */
  --blue:   #49BDF5;
  --green:  #63C83D;
  --coral:  #FF955E;
  /* Secondary */
  --yellow: #FFD45B;
  --pink:   #F7B8CF;
  --purple: #B49CFF;
  --mint:   #BFEFD7;
  /* Background */
  --bg:     #F6FBFF;
  --sky:    #AEE6FF;
  --cream:  #FFF7DE;
  --card:   #FFFFFF;
  /* Text */
  --ink:    #172033;
  --ink-2:  #4E5C73;
  --muted:  #8A97AA;
  /* Border */
  --line:   #E7EDF5;
  /* Wordmark letters — sampled from the LWE letters on Chubi's tee */
  --brand-l: #E8492B;
  --brand-w: #0AA2EC;
  --brand-e: #63B60F;
  /* Radii (Radius.md/lg/xl) */
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  /* Shadows (Shadow.soft/medium) */
  --shadow-soft:   0 3px 10px rgba(0,0,0,.08);
  --shadow-medium: 0 6px 16px rgba(0,0,0,.12);
  --shadow-float: 0 18px 50px rgba(23, 72, 122, .16);
  --font: "Nunito Variable", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.snap-page {
  /* Localized sections have variable height. Natural document flow prevents
     long translations from being trapped or visually clipped by a snap page. */
  scroll-snap-type: none;
  scroll-padding-top: 108px;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Keep font selection predictable for scripts not covered by Nunito's shipped
   Latin/Cyrillic subsets. Noto is preferred where the OS provides it, followed
   by the platform's native UI family for that writing system. */
html:lang(ja) body { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", var(--font); }
html:lang(ko) body { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", var(--font); }
html:lang(zh-Hans) body { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font); }
html:lang(zh-Hant) body { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", var(--font); }
html:lang(th) body { font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", var(--font); }
html:lang(hi) body { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-w); outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5vw, 3.55rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 12px; z-index: 50;
  background: transparent;
  margin-bottom: -80px;
}
.header-row {
  position: relative;
  display: flex; align-items: center; gap: 16px; min-height: 68px;
  padding: 8px 10px 8px 12px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(30, 77, 121, .14), 0 2px 8px rgba(23,32,51,.06);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.15rem; text-decoration: none;
  letter-spacing: -.02em; white-space: nowrap;
  flex: 0 0 auto;
}
.brand-character {
  position: relative; flex: 0 0 76px; width: 76px; height: 58px;
  align-self: stretch; isolation: isolate;
}
.brand-character::before {
  content: ""; position: absolute; z-index: -1; left: 5px; right: 5px; bottom: 1px;
  height: 49px; border-radius: 50% 50% 16px 16px;
  background: linear-gradient(145deg, #FFF2A8, var(--yellow));
  box-shadow: 0 5px 14px rgba(226,169,30,.22);
}
.brand-character img {
  position: absolute; left: -3px; bottom: -7px; width: 82px; max-width: none;
  filter: drop-shadow(0 5px 5px rgba(23,52,81,.14));
}
.brand-name {
  display: block; font-size: 1.12rem; line-height: 1; text-shadow: 0 1px 0 #fff;
}
.brand-wordmark { height: 24px; width: auto; display: block; flex: 0 0 auto; }
.b-l { color: var(--brand-l); }
.b-w { color: var(--brand-w); }
.b-e { color: var(--brand-e); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.site-nav {
  display: flex; gap: 2px; margin-left: auto;
  padding: 4px; background: #F3F8FC; border-radius: 999px;
  min-width: 0; justify-content: center;
}
.site-nav a {
  position: relative;
  text-decoration: none; font-weight: 700; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; font-size: .91rem;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  text-align: center; line-height: 1.25; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: #fff; transform: translateY(-1px); }
.site-nav a.is-active {
  color: #132C46;
  background: #fff;
  box-shadow: 0 3px 10px rgba(23,72,122,.12);
}
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-l), var(--brand-w), var(--brand-e));
}
.menu-toggle {
  display: none; flex: 0 0 44px; width: 44px; height: 40px;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: #F3F8FC;
  color: var(--ink); cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: calc(100% + 9px); right: 0; width: min(350px, calc(100vw - 32px));
  padding: 10px; border: 1px solid rgba(23,32,51,.08); border-radius: 22px;
  background: rgba(255,255,255,.985); box-shadow: 0 20px 50px rgba(23,72,122,.22);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 9px 13px;
  border-radius: 14px; text-decoration: none; color: var(--ink-2); font-weight: 750;
}
.mobile-menu > a:not(.btn)::before {
  content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-right: 11px;
  border-radius: 50%; background: var(--brand-w); box-shadow: 0 0 0 4px rgba(10,162,236,.1);
}
.mobile-menu > a:nth-child(2)::before { background: var(--brand-l); box-shadow: 0 0 0 4px rgba(232,73,43,.1); }
.mobile-menu > a:nth-child(3)::before { background: var(--brand-e); box-shadow: 0 0 0 4px rgba(99,182,15,.1); }
.mobile-menu > a:nth-child(4)::before { background: var(--purple); box-shadow: 0 0 0 4px rgba(180,156,255,.13); }
.mobile-menu > a:not(.btn):hover,
.mobile-menu > a:not(.btn).is-active { color: var(--ink); background: #F3F8FC; }
.mobile-menu-cta { width: 100%; margin-top: 7px; padding: 11px 18px; font-size: .95rem; }
.ml-auto { margin-left: auto; }
.lang-header {
  flex: 0 1 170px;
  min-width: 120px;
}
.lang-header select {
  appearance: none; -webkit-appearance: none;
  background: var(--card) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M1 1l4 4 4-4" stroke="%234E5C73" stroke-width="2" fill="none" stroke-linecap="round"/></svg>') no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 29px 8px 13px;
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; width: 100%; min-width: 0; text-overflow: ellipsis;
}
.lang-header select:hover { border-color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  padding: 14px 30px; font-size: 1.05rem;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #FF784F, var(--coral)); color: #fff;
  box-shadow: 0 7px 0 #D95E37, 0 12px 24px rgba(232,73,43,.22);
}
.btn-primary:hover { box-shadow: 0 5px 0 #D95E37, 0 14px 28px rgba(232,73,43,.26); }
.btn-ghost { border: 2px solid var(--line); background: var(--card); color: var(--ink-2); }
.btn-sm { padding: 9px 20px; font-size: .95rem; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 2px dashed var(--blue);
  color: var(--ink-2); font-weight: 700;
  border-radius: 999px; padding: 13px 26px;
}
.appstore-link {
  display: inline-flex;
  border-radius: 9px;
  transition: transform .18s ease, filter .18s ease;
}
.appstore-link:hover { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 8px 14px rgba(23,72,122,.2)); }
.appstore-link:active { transform: scale(.98); }
.appstore-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.appstore-link img { display: block; width: 180px; height: auto; }
/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 8% 34%, rgba(255,212,91,.9) 0 7%, transparent 7.2%),
    radial-gradient(circle at 91% 18%, rgba(180,156,255,.65) 0 12%, transparent 12.2%),
    linear-gradient(135deg, #BEEBFF 0%, #DFF6FF 50%, #FFF3C7 100%);
  overflow: hidden;
  padding: 100px 0 0;
}
.hero::marker { display: none; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 54px; align-items: center;
  padding-bottom: 30px;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.82); color: #37627D;
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 5px 16px rgba(32,91,130,.09);
  font-weight: 800; font-size: .88rem;
  border-radius: 999px; padding: 8px 16px; margin: 0 0 20px;
}
.kicker::before { content: "✦"; color: var(--brand-l); font-size: 1.05rem; }
.hero h1 {
  color: #132C46; max-width: 650px; text-wrap: balance;
  overflow-wrap: normal; hyphens: auto;
  font-size: clamp(2.35rem, 4.35vw, 3.2rem);
}
.hero-title-accent {
  font-size: .84em; letter-spacing: -.025em;
  background: linear-gradient(90deg, var(--brand-l) 0 35%, var(--brand-w) 55%, var(--brand-e) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 640px; font-weight: 600; color: #3F5F74; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 8px; }
.hero-cta-center { justify-content: center; }
.hero-note { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.hero-visual {
  position: relative; width: min(520px, 100%); aspect-ratio: 1.22; margin: 0 auto;
  border-radius: 28% 38% 30% 36% / 34% 28% 40% 32%;
  background: linear-gradient(145deg, #49BDF5, #0AA2EC);
  box-shadow: 24px 24px 0 rgba(255,212,91,.78), var(--shadow-float);
  transform: rotate(2deg);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 18px; border: 2px dashed rgba(255,255,255,.48);
  border-radius: inherit; pointer-events: none;
}
.hero-art img {
  width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover;
  position: absolute; inset: 9px; margin: auto;
  border: 9px solid rgba(255,255,255,.92);
  border-radius: 27% 37% 29% 35% / 33% 27% 39% 31%;
  box-shadow: 0 18px 36px rgba(23,32,51,.18);
  animation: float 5.5s ease-in-out infinite;
}
.orbit-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid rgba(23,32,51,.06); border-radius: 999px;
  padding: 10px 15px; font-size: .82rem; font-weight: 800; color: var(--ink);
  box-shadow: 0 10px 24px rgba(23,72,122,.16); transform: rotate(-2deg);
}
.orbit-chip::before { content: "✓"; color: #fff; background: var(--green); width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; }
.orbit-chip-top { top: 8%; right: -8%; }
.orbit-chip-bottom { bottom: 9%; left: -10%; }
.orbit-chip-bottom::before { content: "◷"; background: var(--coral); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero::before, .hero::after {
  position: absolute; font-size: 2rem; opacity: .9; pointer-events: none;
}
.hero::before { content: "✦"; color: #fff; top: 130px; left: 4%; transform: rotate(-14deg); }
.hero::after { content: "✦"; color: var(--brand-l); top: 240px; right: 4%; font-size: 1.4rem; transform: rotate(18deg); }
.hero-hills {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 150%; height: 100px;
  background: #75D6A4;
  border-radius: 50% 50% 0 0;
}

/* Key product proof, kept close to the hero decision point. */
.proof-strip { position: relative; z-index: 4; margin-top: -49px; }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: #fff; border: 1px solid rgba(23,32,51,.06); border-radius: 24px;
  box-shadow: var(--shadow-float); padding: 12px 16px;
}
.proof-grid > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 14px; text-align: left; }
.proof-grid > div + div { border-left: 1px solid var(--line); }
.proof-grid strong { font-size: .9rem; line-height: 1.25; }
.proof-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: .8rem; font-weight: 900; }
.proof-icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.proof-coral { background: var(--coral); }
.proof-blue { background: var(--blue); }
.proof-green { background: var(--green); }
.proof-purple { background: var(--purple); }

/* Semantic chapter boundaries; page height remains content-driven. */
.hero-chapter,
.snap-page main > .section {
  scroll-snap-align: none;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section h2 { text-align: center; }
.section > .container > h2::after {
  content: ""; display: block;
  width: 58px; height: 8px; margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--coral));
}
.section-sub {
  text-align: center; color: var(--ink-2);
  max-width: 620px; margin: 0 auto 44px; font-size: 1.08rem;
}
.section-tint { background: linear-gradient(180deg, #EAF8FF, #F6FCFF); }
.section-kicker {
  margin: 0 0 12px; color: var(--brand-l); font-size: .82rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
}
.section-kicker-center { text-align: center; }

/* Learning without a game layer */
.no-game-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,212,91,.22), transparent 26%),
    #FFFDF7;
}
.no-game-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 62px; align-items: center; }
.no-game-copy h2 { text-align: left; font-size: clamp(2rem, 4vw, 3rem); }
.no-game-copy .lead { margin: 0; }
.focus-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 30px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}
.focus-card.focus-card-single {
  display: block;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  background: #FFF3EF;
  border-color: #FFD9D0;
}
.focus-card-single .focus-no {
  width: 100%;
  padding: 38px 28px 40px;
  background: #FFF3EF;
  border-radius: inherit;
}
.focus-card-single .focus-label { margin-bottom: 26px; }
.focus-card-single .focus-side ul { display: grid; gap: 24px; }
.focus-card-single .focus-side li { margin: 0; line-height: 1.5; }
.focus-side { padding: 30px 27px; }
.focus-side + .focus-side { border-left: 1px solid var(--line); }
.focus-no { background: linear-gradient(160deg, #FFF3EF, #fff); }
.focus-yes { background: linear-gradient(160deg, #EAF9EE, #fff); }
.focus-label { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.3; font-weight: 900; color: var(--ink); }
.focus-side ul { list-style: none; padding: 0; margin: 0; }
.focus-side li { position: relative; padding-left: 30px; margin: 0 0 16px; color: var(--ink-2); font-weight: 650; line-height: 1.4; }
.focus-side li:last-child { margin-bottom: 0; }
.focus-side li::before {
  position: absolute; left: 0; top: .02em; width: 21px; height: 21px;
  display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 900;
}
.focus-no li::before { content: "–"; color: #B33D29; background: #FFD9D0; }
.focus-yes li::before { content: "✓"; color: #25791C; background: #CFF1D4; }

/* Steps */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  display: grid;
  grid-template-rows: auto auto minmax(2.75em, auto) 1fr;
  align-content: start;
  background: var(--card); border-radius: var(--r-xl);
  box-shadow: 0 10px 0 rgba(23,32,51,.06), 0 18px 38px rgba(35,81,123,.09);
  padding: 28px 26px; text-align: center;
  border-top: 6px solid var(--blue);
}
.step-visual { position: relative; margin: -12px -10px 22px; }
.step-visual img {
  width: 100%; height: auto; object-fit: contain; border-radius: 22px;
  box-shadow: 0 10px 24px rgba(23,72,122,.13);
}
.step-1 .step-visual img { object-position: center 44%; }
.step-2 .step-visual img { object-position: center 42%; }
.step-3 .step-visual img { object-position: center 48%; }
.lesson-sample {
  position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 36px; padding: 7px 18px; border: 2px solid #B9E7FB; border-radius: 999px;
  background: #fff; color: #087CB5; font-size: .9rem; font-weight: 900;
  box-shadow: 0 7px 18px rgba(23,72,122,.14);
}
.lesson-sentence { border-color: #FFD1BD; color: #B94726; }
.lesson-story { border-color: #D6CBFF; color: #6D50C5; }
/* Pastel phase colors (DesignTokens phaseP1/P2/P3) */
.step-1 { border-top-color: #0AA2EC; background: linear-gradient(160deg, #D8F2FF, #F4FBFF); }
.step-2 { border-top-color: #FF784F; background: linear-gradient(160deg, #FFE5D5, #FFF8F3); }
.step-3 { border-top-color: #8D72E8; background: linear-gradient(160deg, #EAE4FF, #F9F7FF); }
.step-num {
  font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.step-card p:last-child { color: var(--ink-2); margin: 0; }

.goal-banner {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(120deg, #143C63, #1D5A78);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  margin: 28px 0 0;
  box-shadow: var(--shadow-soft);
}
.goal-emoji { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.goal-banner h3 { margin-bottom: 4px; color: #fff; }
.goal-banner p { margin: 0; color: #D9EAF6; }

/* Real-world curriculum journey */
.journey-section { position: relative; overflow: hidden; }
.journey-section::before {
  content: ""; position: absolute; width: 280px; height: 280px; left: -120px; bottom: -100px;
  border-radius: 50%; background: rgba(180,156,255,.18); pointer-events: none;
}
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journey-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 28px; box-shadow: 0 12px 34px rgba(23,72,122,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.journey-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(23,72,122,.15); }
.journey-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.journey-card > div { padding: 24px 25px 25px; }
.journey-card h3 { font-size: 1.25rem; }
.journey-card p:last-child { margin: 0; color: var(--ink-2); }
.journey-num {
  display: inline-grid; place-items: center; width: 38px; height: 30px; margin: 0 0 12px;
  border-radius: 10px; color: #fff; font-size: .78rem; font-weight: 900;
}
.journey-family { border-top: 6px solid var(--coral); }
.journey-family .journey-num { background: var(--coral); }
.journey-school { border-top: 6px solid var(--blue); }
.journey-school .journey-num { background: var(--blue); }
.journey-stories { border-top: 6px solid var(--purple); }
.journey-stories .journey-num { background: #8D72E8; }

/* Screenshots */
.shots { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.shot { margin: 0; text-align: center; }
.shot img {
  width: 250px; border-radius: 34px;
  border: 8px solid var(--ink);
  box-shadow: var(--shadow-medium);
  background: var(--card);
}
.shot figcaption {
  display: inline-block; margin-top: 14px;
  font-weight: 700; color: var(--ink);
  padding: 6px 18px; border-radius: 999px;
}
.shot:nth-child(1) figcaption { background: var(--sky); }
.shot:nth-child(2) figcaption { background: var(--yellow); }
.shot:nth-child(3) figcaption { background: var(--pink); }

/* Features */
.feat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 960px; margin: 40px auto 0;
}
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 24px 16px; box-shadow: 0 8px 24px rgba(23,72,122,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23,72,122,.12); }
.feat:nth-child(1) { background: #E8F7FF; }
.feat:nth-child(2) { background: #F1EDFF; }
.feat:nth-child(3) { background: #FFF8D9; }
.feat:nth-child(4) { background: #FFF0F5; }
.feat-dot {
  display: block; width: 34px; height: 34px; border-radius: 12px; margin-bottom: 14px;
}
.dot-blue   { background: var(--blue); }
.dot-coral  { background: var(--coral); }
.dot-purple { background: var(--purple); }
.dot-yellow { background: var(--yellow); }
.dot-green  { background: var(--green); }
.dot-pink   { background: var(--pink); }
.feat p { color: var(--ink-2); font-size: .97rem; }

/* Parents / trust */
.section-parents {
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(73,189,245,.2), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(255,212,91,.15), transparent 26%),
    #142D49;
}
.section-parents .section-sub { color: #C8DBE9; }
.section-parents > .container > h2::after { background: linear-gradient(90deg, var(--yellow), var(--coral), var(--pink)); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.trust {
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  box-shadow: 0 14px 34px rgba(0,0,0,.11); padding: 24px 26px;
}
.trust:nth-child(1) { border-top: 4px solid var(--coral); }
.trust:nth-child(2) { border-top: 4px solid var(--blue); }
.trust:nth-child(3) { border-top: 4px solid var(--green); }
.trust:nth-child(4) { border-top: 4px solid var(--yellow); }
.trust h3 { color: #fff; }
.trust p { color: #C8DBE9; margin: 0; }
.parents-link { text-align: center; margin-top: 30px; font-weight: 700; }
.parents-link a { color: var(--yellow); text-decoration: none; }
.parents-link a:hover { text-decoration: underline; }

/* FAQ */
.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0;
  list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 800; color: var(--blue);
  transition: transform .18s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* Final CTA */
.cta-final {
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF2BA, #FFDCD0 58%, #E4F7FF);
}
.cta-icon { margin: 0 auto 18px; border-radius: 20px; box-shadow: var(--shadow-medium); }

/* Support page */
.contact-card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  padding: 26px 28px; margin: 30px 0 46px;
}
.support-page { background: linear-gradient(180deg, #DDF5FF 0, #fff 520px); }
.support-page main { padding-top: 150px; }
.support-page main h1 { color: #143C63; }
.contact-card h2 { font-size: 1.25rem; text-align: left; }
.contact-list { margin: 0; }
.contact-list > div { display: flex; gap: 14px; padding: 7px 0; }
.contact-list dt { font-weight: 700; min-width: 90px; color: var(--ink-2); }
.contact-list dd { margin: 0; }
.contact-list dd, .contact-list a { overflow-wrap: anywhere; }
.legal-note { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #E7EDF5;
  padding: 52px 0 44px; margin-top: 20px;
}
.site-footer .muted { color: #9AA7BC; }
.site-footer a { color: #CBD8EA; }
.site-footer h3 { font-size: 1rem; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.brand-footer { gap: 10px; color: #fff; margin-bottom: 12px; }
.footer-character {
  position: relative; flex: 0 0 58px; width: 58px; height: 52px;
  border-radius: 50% 50% 16px 16px;
  background: linear-gradient(145deg, #FFF2A8, var(--yellow));
  box-shadow: 0 5px 14px rgba(0,0,0,.2);
}
.footer-character img {
  position: absolute; left: -3px; bottom: -5px; width: 64px; max-width: none;
  filter: drop-shadow(0 4px 4px rgba(7,27,51,.25));
}
.footer-brand-name {
  font-size: 1.2rem; line-height: 1; font-weight: 950;
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
}
/* ---------- Responsive ---------- */
/* Use one deterministic compact treatment for every language at a given
   viewport. Locale changes must not independently resize the header. */
@media (min-width: 1251px) {
  .header-row { gap: 8px; }
  .brand { gap: 7px; }
  .brand-wordmark { height: 21px; }
  .site-nav a { padding: 6px 8px; font-size: .82rem; }
  .lang-header select { padding-left: 10px; padding-right: 27px; font-size: .82rem; }
  .btn-sm { padding-left: 14px; padding-right: 14px; font-size: .88rem; }
}
/* Compact globe language button. The full labeled select only fits comfortably
   on wide desktop headers (>1350px); below that the selected-language text
   competes with the brand and CTA for width, so the closed control shows a
   globe glyph only. The opened dropdown still lists full language names. */
@media (max-width: 1350px) {
  .lang-header { flex: 0 0 44px; min-width: 44px; }
  .lang-header select {
    width: 44px; height: 40px; padding: 0;
    color: transparent;
    background: var(--card) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%234E5C73" stroke-width="1.8" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14.5 14.5 0 0 1 0 18M12 3a14.5 14.5 0 0 0 0 18"/></svg>') no-repeat center;
  }
}
/* A translated desktop header can be considerably wider than English. Collapse
   navigation before it can push over the brand, language selector, or CTA. */
@media (max-width: 1250px) {
  .site-nav { display: none; }
  .lang-header { margin-left: auto; }
  .header-row > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .site-header { top: 8px; margin-bottom: -76px; }
  .header-row { gap: 8px; border-radius: 20px; }
  .brand-wordmark { height: 20px; }
  .site-header .btn-sm { padding: 8px 14px; font-size: .88rem; }
  .goal-banner { flex-direction: column; text-align: center; }
  .hero { padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 92px; gap: 42px; }
  .hero-copy { order: 0; }
  .hero-art { order: 1; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { width: min(440px, 88vw); }
  .hero-art img { width: calc(100% - 18px); height: calc(100% - 18px); }
  .hero-cta { justify-content: center; }
  .cards-3, .feat-grid { grid-template-columns: 1fr; }
  .no-game-grid { grid-template-columns: 1fr; gap: 34px; }
  .journey-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { display: none; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
}
@media (min-width: 901px) {
  .hero-chapter { min-height: 0; }
  .hero-chapter .hero { display: block; }
  .hero-chapter .hero > .container { width: 100%; }
  .hero-chapter .hero-grid { min-height: 720px; padding-top: 46px; padding-bottom: 104px; }
  .snap-page main > .section {
    min-height: 0;
    display: block;
  }
  .snap-page main > .section > .container { width: 100%; }
  .snap-page .how-section {
    align-items: flex-start;
    /* Sticky-header clearance is already provided by scroll-padding-top. */
    padding-top: 72px;
    padding-bottom: 32px;
  }
  .snap-page .how-section .section-sub {
    max-width: 760px; margin-bottom: 18px; font-size: 1rem; line-height: 1.48;
  }
  .snap-page .how-section .step-card { padding: 16px 18px 14px; }
  .snap-page .how-section .step-visual { margin: -6px -5px 18px; }
  .snap-page .how-section .step-card p:last-child { font-size: .86rem; line-height: 1.38; }
  .snap-page .how-section .goal-banner { margin-top: 18px; padding-top: 14px; padding-bottom: 14px; }
  .snap-page .how-section .goal-emoji { font-size: 2.15rem; }
  .snap-page .how-section .goal-banner h3 { font-size: 1.05rem; }
  .snap-page .how-section .goal-banner p { font-size: .91rem; line-height: 1.45; }

  .snap-page .journey-section { padding-top: 100px; padding-bottom: 8px; }
  .snap-page .journey-section .section-sub { margin-bottom: 34px; }
  .snap-page .journey-card img { aspect-ratio: 16 / 9; }
  .snap-page .journey-card > div { padding: 18px 20px 20px; }
  .snap-page .journey-card h3 { font-size: 1.12rem; }
  .snap-page .journey-card p:last-child { font-size: .91rem; line-height: 1.5; }
}

@media (max-width: 520px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header-row { min-height: 64px; padding: 7px 8px; gap: 6px; }
  .brand { gap: 5px; font-size: .92rem; min-width: 0; }
  .brand-character { flex-basis: 62px; width: 62px; height: 54px; }
  .brand-character::before { left: 4px; right: 4px; height: 43px; }
  .brand-character img { left: -2px; bottom: -5px; width: 66px; }
  .brand-name { font-size: clamp(.78rem, 3.6vw, .94rem); }
  .lang-header { flex-basis: 40px; min-width: 40px; }
  .lang-header select { width: 40px; height: 40px; }
  .menu-toggle { flex-basis: 40px; width: 40px; }
  .site-header .btn:not(.support-home) { display: none; }
  .site-header .mobile-menu .btn { display: inline-flex; }
  .support-page .support-home { padding: 8px 15px; }
  .site-header .ml-auto { margin-left: auto; }
  .hero { padding-top: 96px; }
  .hero-grid { gap: 34px; padding-bottom: 78px; }
  .kicker { max-width: 100%; margin-bottom: 16px; padding: 7px 13px; font-size: .8rem; line-height: 1.35; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.4rem); line-height: 1.1; }
  .hero-title-accent { font-size: .86em; }
  .hero .lead { font-size: 1.02rem; line-height: 1.55; }
  .hero-cta { margin-top: 18px; }
  .badge-soon { max-width: 100%; justify-content: center; padding: 11px 18px; text-align: center; line-height: 1.35; }
  .hero-note { font-size: .88rem; }
  .hero-visual { width: min(380px, 86vw); box-shadow: 14px 16px 0 rgba(255,212,91,.78), var(--shadow-float); }
  .orbit-chip { font-size: .7rem; padding: 8px 10px; }
  .orbit-chip-top { right: -5%; }
  .orbit-chip-bottom { left: -5%; }
  .proof-grid { padding: 14px 8px; border-radius: 20px; }
  .proof-grid > div { padding: 4px 8px; justify-content: flex-start; }
  .proof-grid strong { font-size: .78rem; }
  .proof-icon { width: 30px; height: 30px; border-radius: 10px; }
  .section { padding: 58px 0; }
  .section h2 {
    font-size: 1.6rem; line-height: 1.18; letter-spacing: -.025em;
    text-wrap: balance; overflow-wrap: break-word;
  }
  .no-game-copy h2 { font-size: 1.75rem; }
  .focus-card-single .focus-no { padding: 26px 24px 28px; }
  .focus-card-single .focus-label { margin-bottom: 22px; }
  .focus-card-single .focus-side ul { gap: 20px; }
  .section h3 { text-wrap: balance; overflow-wrap: break-word; }
  .section-sub { margin-bottom: 30px; font-size: 1rem; line-height: 1.55; }
  .cards-3 { gap: 20px; }
  .step-card { padding: 22px 20px; border-radius: 24px; }
  .step-visual { margin: -8px -6px 20px; }
  .goal-banner { gap: 12px; padding: 20px; }
  .focus-card { grid-template-columns: 1fr; border-radius: 24px; }
  .focus-side + .focus-side { border-left: 0; border-top: 1px solid var(--line); }
  .focus-side { padding: 25px 22px; }
  .journey-card { border-radius: 24px; }
  .contact-list > div { display: block; padding: 8px 0; }
  .contact-list dt { min-width: 0; margin-bottom: 2px; }
  .hero::before, .hero::after { display: none; }
}
/* Preserve native momentum scrolling on touch devices. WebKit can make root-level
   scroll snapping feel sticky by stopping a swipe at the nearest chapter. The
   opaque header also avoids repainting a large backdrop blur while scrolling. */
@media (hover: none) and (pointer: coarse) {
  html.snap-page { scroll-snap-type: none; }
  .header-row {
    background: rgba(255,255,255,.985);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 6px 20px rgba(30,77,121,.12), 0 2px 6px rgba(23,32,51,.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.snap-page { scroll-snap-type: none; }
  .btn, .faq summary::after, .feat, .site-nav a, .journey-card { transition: none; }
  .hero-art img { animation: none; }
}
