/* Penglish marketing site. Colors come from the app's StudentTheme palettes. */
:root {
  color-scheme: light;

  --ink: #16301f;
  --ink-soft: #355c40;
  --muted: #5a7a5e;
  --line: #d9e7d5;
  --paper: #ffffff;
  --canvas: #f6faf3;
  --tint: #e7f3e4;
  --cream: #fff7e9;

  --green: #2f7a3e;
  --green-dark: #1f5a2c;
  --green-deep: #133d20;
  --mint: #d4edcc;
  --teal: #00798a;
  --teal-dark: #075a67;
  --teal-mint: #d6f0ec;
  --clue: #8a6420;
  --clue-soft: #f5ecd8;
  --sun: #f3b73e;
  --sun-soft: #ffe7ad;
  --coral: #e0564a;
  --night: #0e2735;
  --night-2: #143649;

  --font-body: "SUIT Variable", "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-display: "Black Han Sans", "SUIT Variable", "Apple SD Gothic Neo", sans-serif;
  --font-latin: "Outfit", "SUIT Variable", system-ui, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 48, 31, 0.06), 0 12px 32px -12px rgba(22, 48, 31, 0.18);
  --shadow-lg: 0 40px 80px -30px rgba(19, 61, 32, 0.45);
  --gutter: 24px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
mark { background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; 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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 122, 62, 0.6); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: var(--paper); color: var(--green-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); }

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--sun-soft); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 250, 243, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 250, 243, 0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-family: var(--font-latin); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--green-deep); }
.brand-light span { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: var(--tint); color: var(--green-deep); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 30%, #dff0d8 0%, rgba(223, 240, 216, 0) 70%),
    radial-gradient(700px 480px at 0% 100%, #fff1d3 0%, rgba(255, 241, 211, 0) 70%),
    var(--canvas);
  padding: 56px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }

.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 14px; color: var(--green-dark);
}
.eyebrow-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(243, 183, 62, 0.25); }

.hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.16; margin: 22px 0 22px; color: var(--green-deep); text-wrap: initial; }
.hero h1 .nowrap, .hero h1 mark { white-space: nowrap; }
.hero h1 mark {
  background: linear-gradient(transparent 62%, var(--sun-soft) 62%, var(--sun-soft) 92%, transparent 92%);
  padding: 0 4px; margin: 0 -4px;
}
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; height: 640px; }
.hero-blob {
  position: absolute; inset: 40px 0 20px 40px; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, #cfe9c6 0%, #e5f3df 55%, #fff0cc 100%);
}

.phone {
  position: relative; aspect-ratio: 390 / 844; padding: 9px; border-radius: 44px;
  background: #11231a; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 35px; background: #f4fbf7;
}
.phone-sm { width: 220px; border-radius: 34px; padding: 7px; }
.phone-sm img { border-radius: 27px; }
.phone-md { width: 260px; }

.hero-phone { position: absolute; width: 290px; top: 0; left: 50%; transform: translateX(-22%) rotate(3deg); }
.hero-penguin { position: absolute; left: -10px; bottom: -6px; width: 250px; z-index: 3; filter: drop-shadow(0 18px 24px rgba(19, 61, 32, 0.25)); }
.hero-penguin img { width: 100%; height: auto; }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.35; white-space: nowrap;
}
.float-card strong { display: block; font-size: 15px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.fc-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.fc-green { background: var(--green); }
.fc-1 { top: 150px; left: -24px; animation: float 6s ease-in-out infinite; }
.fc-2 { bottom: 34px; right: -24px; animation: float 7s ease-in-out -2s infinite; }
.status-pill { padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-weight: 800; font-size: 12.5px; }

.float-badge { position: absolute; width: 92px; height: 92px; z-index: 2; filter: drop-shadow(0 10px 14px rgba(19, 61, 32, 0.2)); }
.fb-1 { top: -6px; right: -12px; animation: float 8s ease-in-out -1s infinite; }
.fb-2 { top: 300px; left: 40px; width: 78px; height: 78px; animation: float 7s ease-in-out -3s infinite; }

.sparkle { position: absolute; color: var(--sun); font-size: 22px; animation: twinkle 3.2s ease-in-out infinite; }
.s1 { top: 60px; left: 34%; }
.s2 { top: 250px; right: 2%; font-size: 16px; animation-delay: -1.2s; }
.s3 { bottom: 60px; right: 36%; font-size: 14px; color: var(--green); animation-delay: -2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--tint); }
.section-cream { background: var(--cream); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: var(--green);
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); color: var(--green-deep); }
.lead { margin-top: 18px; font-size: 18px; color: var(--ink-soft); }
.section-head .btn { margin-top: 28px; }

/* Promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 32px 28px 28px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow);
}
.promise-num { font-family: var(--font-latin); font-weight: 800; font-size: 15px; color: var(--sun); letter-spacing: 0.04em; }
.promise-card h3 { font-size: 23px; font-weight: 800; }
.promise-card > p { color: var(--ink-soft); font-size: 16px; }
.promise-card > :last-child { margin-top: auto; }

.mini-today {
  display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 16px 18px;
  border-radius: var(--radius-sm); background: var(--tint);
}
.mini-today small { color: var(--muted); font-weight: 600; }
.mini-today strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--green-deep); }
.mini-today span { font-size: 14px; color: var(--ink-soft); }

.mini-path { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mini-path li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--canvas); font-size: 14px; font-weight: 600;
}
.st { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.st-solid { background: var(--mint); color: var(--green-dark); }
.st-check { background: var(--sun-soft); color: #7a5410; }
.st-start { background: var(--teal-mint); color: var(--teal-dark); }

.gauge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.gauge li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  border-radius: 14px; border: 2px dashed var(--line); text-align: center; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--muted);
}
.gauge li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--canvas); color: var(--muted); font-family: var(--font-latin); font-weight: 800;
}
.gauge li.done { border: 2px solid var(--mint); background: #f1f9ee; color: var(--green-dark); }
.gauge li.done span { background: var(--green); color: #fff; }

/* Tour */
.tour { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tour-steps { display: flex; flex-direction: column; gap: 10px; }
.tour-step {
  display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left;
  padding: 18px 20px; border-radius: 20px; border: 0; background: transparent; cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.tour-step:hover { background: rgba(255, 255, 255, 0.55); }
.tour-step.is-active { background: var(--paper); box-shadow: var(--shadow); }
.step-no {
  flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-latin); font-weight: 800; background: var(--paper); color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.tour-step.is-active .step-no { background: var(--green); color: #fff; box-shadow: none; }
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-body strong { font-size: 19px; font-weight: 800; }
.step-body span { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.tour-step:not(.is-active) .step-body span { display: none; }

.tour-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.tour-bg {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #d9eed3 60%, #cbe6c3 100%);
}
.tour-phone { width: 300px; }
.tour-phone img {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  opacity: 0; transform: scale(0.985); transition: opacity 0.35s ease, transform 0.35s ease;
}
.tour-phone img.is-active { opacity: 1; transform: none; }
.tour-caption { display: none; }

/* Worlds */
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.world-card {
  --accent: var(--green); --bg: #eaf5e6;
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 0 28px 30px; border-radius: 28px; background: var(--bg); overflow: hidden;
}
.world-card > p:not([class]) { color: var(--ink-soft); font-size: 16px; }
.world-art {
  margin: 0 -28px 8px; height: 250px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 65%);
}
.world-art img { height: 230px; width: auto; transition: transform 0.4s ease; }
.world-card:hover .world-art img { transform: translateY(-6px) rotate(-2deg); }
.world-grade {
  align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 13.5px; font-weight: 800;
}
.world-name { font-size: 30px; color: var(--accent); font-weight: 700; }
.world-mate { font-weight: 600; color: var(--ink); }
.world-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.world-tags li {
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75);
  font-size: 13.5px; font-weight: 700; color: var(--accent);
}
.world-workshop .world-name { font-family: "Space Grotesk", var(--font-latin); letter-spacing: 0.02em; text-transform: uppercase; font-size: 27px; }
.world-tide { --accent: var(--teal); --bg: #e2f5f1; }
.world-tide .world-name { font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.01em; }
.world-clue { --accent: var(--clue); --bg: var(--clue-soft); }
.world-clue .world-name { font-family: "Special Elite", monospace; font-weight: 400; letter-spacing: 0.04em; }

/* Games (night) */
.section-night {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(0, 121, 138, 0.35), rgba(0, 121, 138, 0) 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(243, 183, 62, 0.12), rgba(243, 183, 62, 0) 70%),
    var(--night);
  color: #eaf4f1; overflow: hidden;
}
.section-night .eyebrow { color: var(--sun); }
.section-night .section-head h2 { color: #fff; }
.section-night .lead { color: #bcd4d2; }
.games-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.games-head .section-head { margin-bottom: 0; }

.stats { display: grid; gap: 14px; margin: 0; }
.stats > div {
  display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: baseline;
  padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stats dt { grid-row: 1 / 3; align-self: center; font-weight: 700; font-size: 14px; color: #9dbcba; }
.stats dd { margin: 0; font-family: var(--font-latin); color: #fff; line-height: 1.1; }
.stats dd b { font-weight: 800; font-size: 34px; color: var(--sun); }
.stats dd span { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin-left: 4px; }
.stats p { font-size: 14px; color: #bcd4d2; }

.game-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.game-rail:focus-visible { outline-offset: 6px; }
.game-card { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.game-card .phone-sm { width: 100%; max-width: 240px; }
@media (min-width: 1081px) {
  .game-rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); gap: 24px; overflow: visible; }
}
.game-card .phone { background: #06141c; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.game-card figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #bcd4d2; line-height: 1.55; padding-right: 8px; }
.game-card figcaption strong { font-size: 18px; color: #fff; }
.grade-chip {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(243, 183, 62, 0.16);
  color: var(--sun); font-size: 12.5px; font-weight: 800;
}

.game-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.game-principles li {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.05); font-size: 14.5px; color: #bcd4d2; line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.game-principles strong { color: #fff; font-size: 16px; }

/* Feature rows */
.feature-rows { display: flex; flex-direction: column; gap: 96px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row.flip .feature-media { order: 2; }
.feature-media { position: relative; display: grid; place-items: center; padding: 48px 0; border-radius: 36px; }
.media-green { background: linear-gradient(160deg, #dff0d8, #eef7ea); }
.media-teal { background: linear-gradient(160deg, #d3eeea, #eaf7f4); }
.media-sun { background: linear-gradient(160deg, #ffe9b8, #fff6e2); }
.feature-media .phone { width: 270px; }
.feature-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-weight: 800; font-size: 15px; color: var(--green);
}
.pro {
  font-style: normal; font-family: var(--font-latin); font-weight: 800; font-size: 12px; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--sun);
}
.feature-text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); color: var(--green-deep); margin-bottom: 18px; }
.feature-text > p { color: var(--ink-soft); font-size: 17px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 600; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5a2c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.fine { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Growth */
.growth-track {
  position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 72px; counter-reset: stage;
}
.growth-track::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 92px; border-top: 3px dashed #eed7a6;
}
.growth-track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.growth-track img {
  width: 184px; height: 184px; object-fit: contain; margin-bottom: 10px;
  filter: drop-shadow(0 14px 16px rgba(120, 84, 16, 0.18)); transition: transform 0.3s ease;
}
.growth-track li:hover img { transform: translateY(-6px); }
.growth-track strong { font-size: 16px; font-weight: 800; }
.growth-track span { font-size: 13.5px; color: var(--muted); }

.reward-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.badge-wall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px;
  border-radius: 32px; background: var(--paper); box-shadow: var(--shadow);
}
.badge-wall img { width: 100%; height: auto; transition: transform 0.3s ease; }
.badge-wall img:nth-child(odd) { transform: rotate(-4deg); }
.badge-wall img:nth-child(even) { transform: rotate(3deg); }
.badge-wall img:hover { transform: scale(1.08) rotate(0); }
.reward-text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); color: var(--green-deep); margin-bottom: 16px; }
.reward-text p { color: var(--ink-soft); }
.reward-text p + p { margin-top: 12px; }

/* Parents */
.parent-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.parent-text .section-head { margin-bottom: 36px; }
.parent-list { display: flex; flex-direction: column; gap: 16px; }
.parent-list li { display: flex; gap: 16px; align-items: flex-start; }
.parent-list strong { display: block; font-size: 18px; margin-bottom: 2px; }
.parent-list div { color: var(--ink-soft); font-size: 16px; }
.pl-icon {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-deep); color: var(--sun); font-family: var(--font-latin); font-weight: 800;
}
.note { margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--tint); color: var(--green-dark); font-weight: 600; font-size: 15.5px; }

.parent-visual { position: relative; height: 640px; }
.parent-visual::before {
  content: ""; position: absolute; inset: 60px 10px 30px 30px; border-radius: 40px;
  background: linear-gradient(160deg, #1f5a2c, #133d20);
}
.pv-back { position: absolute; top: 0; right: 20px; width: 250px; transform: rotate(5deg); opacity: 0.96; }
.pv-front { position: absolute; bottom: 0; left: 40px; width: 270px; transform: rotate(-3deg); }

/* Safety */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safety-card { padding: 28px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.safety-card svg {
  width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--tint); margin-bottom: 18px;
  fill: none; stroke: var(--green-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.safety-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.safety-card p { font-size: 15.5px; color: var(--ink-soft); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s;
}
.faq-list details[open] { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--mint); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5a2c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > :not(summary) { padding: 0 24px 22px; color: var(--ink-soft); font-size: 16px; }
.faq-list details > p + p { margin-top: -10px; }

/* CTA */
.cta { padding: 24px 0 112px; }
.cta-panel {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center;
  padding: 64px 64px 0; border-radius: 40px; overflow: hidden; color: #fff;
  background:
    radial-gradient(500px 300px at 85% 20%, rgba(243, 183, 62, 0.3), rgba(243, 183, 62, 0) 70%),
    linear-gradient(150deg, #2f7a3e 0%, #1f5a2c 55%, #133d20 100%);
}
.cta-copy { padding-bottom: 64px; }
.cta-copy h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.15; margin-bottom: 18px; }
.cta-copy > p { font-size: 18px; color: #d5ead0; margin-bottom: 32px; }
.cta-b2b { margin-top: 28px !important; margin-bottom: 0 !important; font-size: 15px !important; }
.cta-b2b a { color: var(--sun); font-weight: 700; text-decoration: none; }
.cta-b2b a:hover { text-decoration: underline; }
.cta-cast { position: relative; align-self: end; height: 380px; }
.cta-cast img { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.25)); }
.cast-tide { width: 210px; left: 0; bottom: 150px !important; transform: rotate(-8deg); }
.cast-workshop { width: 200px; left: 10%; }
.cast-detective { width: 230px; right: 0; }
.cast-penguin { width: 170px; left: 42%; z-index: 2; bottom: -6px !important; }

/* Footer */
.site-footer { background: var(--green-deep); color: #c9dfc4; padding: 64px 0 48px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand p { margin-top: 16px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer h2 { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-links a { display: block; padding: 4px 0; text-decoration: none; }
.footer-links a:hover, .footer-company a:hover { color: #fff; text-decoration: underline; }
.footer-company h2 span { margin-left: 6px; font-weight: 500; color: #8fb08a; letter-spacing: 0; }
.biz-info { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.biz-info div { display: flex; gap: 12px; }
.biz-info dt { flex: none; width: 48px; color: #8fb08a; }
.biz-info dd { margin: 0; }
.footer-company a { color: #fff; }
.copyright { margin-top: 20px; font-size: 13px; color: #8fb08a; }

/* ---------- Support page ---------- */
.support-hero {
  position: relative; overflow: hidden; padding: 56px 0 40px;
  background:
    radial-gradient(700px 400px at 90% 20%, #d6f0ec 0%, rgba(214, 240, 236, 0) 70%),
    radial-gradient(600px 360px at 0% 100%, #fff1d3 0%, rgba(255, 241, 211, 0) 70%),
    var(--canvas);
}
.support-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.support-hero h1 { font-size: clamp(38px, 5vw, 60px); color: var(--green-deep); }
.support-hero .lead { max-width: 34em; }
.support-hero-art { width: 100%; max-width: 340px; justify-self: center; filter: drop-shadow(0 20px 26px rgba(7, 90, 103, 0.22)); animation: float 7s ease-in-out infinite; }

.search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 32px; padding: 0 20px;
  min-height: 60px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line);
}
.search:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--green); }
.search svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 16px 0; }
.search input::placeholder { color: #93a996; }

.support-quick { padding: 16px 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 2px var(--mint); }
.quick-card strong { font-size: 19px; font-weight: 800; }
.quick-card > span:last-child { color: var(--ink-soft); font-size: 15px; }
.quick-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); margin-bottom: 8px; }
.quick-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.support-faq { padding-top: 80px; }
.faq-toolbar { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.faq-toolbar h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--green-deep); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 15px;
  background: var(--paper); color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color 0.15s, color 0.15s;
}
.chip:hover { color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: none; }

.faq-groups { display: flex; flex-direction: column; gap: 48px; }
.faq-group { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.faq-group h3 { font-size: 20px; font-weight: 800; color: var(--green-dark); padding-top: 18px; }
.faq-list details a { color: var(--green); font-weight: 700; }
.faq-empty { padding: 40px; border-radius: var(--radius); background: var(--paper); text-align: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.faq-empty strong { display: block; font-size: 19px; margin-bottom: 6px; }
.faq-empty a { color: var(--green); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info .section-head, .contact-info h2 { color: var(--green-deep); }
.contact-info h2 { font-size: clamp(32px, 4vw, 46px); }
.contact-meta { display: flex; flex-direction: column; gap: 12px; margin: 32px 0 0; }
.contact-meta div { display: flex; gap: 16px; align-items: baseline; }
.contact-meta dt { width: 96px; flex: none; font-weight: 700; color: var(--muted); font-size: 15px; }
.contact-meta dd { margin: 0; font-weight: 700; }
.contact-meta a { color: var(--green-dark); }
.caution { margin-top: 32px; padding: 20px 22px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px #f0d9a4; }
.caution strong { display: block; margin-bottom: 6px; color: #7a5410; }
.caution p { font-size: 15px; color: var(--ink-soft); }

.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: 15px; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--canvas); font: inherit; font-size: 16px; color: var(--ink); transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field select {
  appearance: none; padding-right: 40px;
  background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c40' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background-color: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--coral); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.form-hint { font-size: 14px; color: var(--muted); text-align: center; }
.form-hint a { color: var(--green-dark); }

.privacy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.privacy-grid .section-head { margin-bottom: 0; }
.rights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 32px; }
.rights li {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-radius: 16px; background: var(--tint);
  font-size: 13.5px; color: var(--ink-soft); text-align: center; line-height: 1.45;
}
.rights strong { font-size: 16px; color: var(--green-deep); }
.steps { display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-family: var(--font-latin); font-weight: 800;
}
.steps strong { display: block; font-size: 17px; margin-bottom: 2px; }
.steps div { color: var(--ink-soft); }
.steps a { color: var(--green-dark); font-weight: 700; }

@media (max-width: 900px) {
  .support-hero-inner { grid-template-columns: 1fr; }
  .support-hero-art { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .faq-group { grid-template-columns: 1fr; gap: 12px; }
  .faq-group h3 { padding-top: 0; }
  .contact-grid, .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .rights { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .support-hero { padding: 36px 0 28px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .contact-form { padding: 24px 18px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .rights { grid-template-columns: repeat(2, 1fr); }
  .contact-meta div { flex-direction: column; gap: 2px; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll (enabled by main.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; width: 100%; max-width: 440px; }
  .hero-trust { justify-content: center; }
  .hero-visual { width: 100%; max-width: 560px; margin: 0 auto; }
  .games-head { grid-template-columns: 1fr; align-items: start; }
  .game-principles { grid-template-columns: repeat(2, 1fr); }
  .parent-grid { grid-template-columns: 1fr; }
  .parent-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .section-head { position: static; }
  .cta-panel { grid-template-columns: 1fr; padding: 56px 40px 0; text-align: center; }
  .cta-copy { padding-bottom: 0; }
  .cta-actions { justify-content: center; }
  .cta-cast { width: 100%; max-width: 520px; margin: 0 auto; height: 300px; }
  .cast-tide { width: 160px; bottom: 110px !important; }
  .cast-workshop { width: 160px; }
  .cast-detective { width: 180px; }
  .cast-penguin { width: 130px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--canvas); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(22, 48, 31, 0.3); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .site-nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .promise-grid, .world-grid, .safety-grid { grid-template-columns: 1fr; }
  .world-grid { max-width: 520px; margin: 0 auto; }

  .tour { grid-template-columns: 1fr; gap: 24px; }
  .tour-steps {
    flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none;
  }
  .tour-steps::-webkit-scrollbar { display: none; }
  .tour-step { flex: none; width: auto; padding: 10px 16px 10px 10px; align-items: center; scroll-snap-align: start; background: rgba(255, 255, 255, 0.55); }
  .step-no { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
  .step-body strong { font-size: 15px; white-space: nowrap; }
  .tour-step .step-body span { display: none !important; }
  .tour-stage { min-height: 0; padding: 24px 0 8px; }
  .tour-bg { width: 380px; height: 380px; }
  .tour-phone { width: 260px; }
  .tour-caption {
    display: block; position: relative; width: 100%; max-width: 480px; margin-top: 28px; padding: 18px 20px;
    border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink-soft); font-size: 15.5px;
  }
  .tour-caption strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

  .feature-rows { gap: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-media { order: 0; }

  .growth-track { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .growth-track::before { display: none; }
  .growth-track img { width: 132px; height: 132px; }
  .reward-split { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero { padding: 32px 0 64px; }
  .hero h1 { font-size: 42px; }
  .hero h1 .nowrap { white-space: normal; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 140px; padding: 0 18px; }
  .hero-visual { height: 480px; }
  .hero-blob { inset: 30px 0 10px 10px; }
  .hero-phone { width: 220px; transform: translateX(-24%) rotate(3deg); }
  .hero-penguin { width: 170px; left: -6px; }
  .float-card { padding: 9px 12px 9px 9px; font-size: 12.5px; }
  .float-card strong { font-size: 13.5px; }
  .float-card small { font-size: 11.5px; }
  .fc-icon { width: 30px; height: 30px; border-radius: 10px; }
  .fc-1 { display: none; }
  .fc-2 { bottom: 24px; right: 0; }
  .fb-1 { width: 64px; height: 64px; top: -4px; right: 0; }
  .fb-2 { display: none; }

  .promise-card { padding: 26px 22px 22px; }
  .tour-bg { width: 320px; height: 320px; }
  .tour-phone { width: 240px; }
  .world-card { padding: 0 22px 26px; }
  .world-art { margin: 0 -22px 8px; height: 220px; }
  .world-art img { height: 200px; }
  .game-rail { grid-auto-columns: 200px; gap: 20px; }
  .phone-sm { width: 200px; }
  .game-principles { grid-template-columns: 1fr; }
  .feature-media { padding: 36px 0; border-radius: 28px; }
  .feature-media .phone { width: 230px; }
  .growth-track { grid-template-columns: repeat(2, 1fr); }
  .badge-wall { gap: 10px; padding: 18px; border-radius: 24px; }
  .parent-visual { height: 520px; }
  .parent-visual::before { inset: 50px 0 20px 0; }
  .pv-back { width: 200px; right: 4px; }
  .pv-front { width: 220px; left: 8px; }
  .stats > div { grid-template-columns: 1fr; padding: 16px 18px; }
  .stats dt { grid-row: auto; }
  .cta { padding: 8px 0 72px; }
  .cta-panel { padding: 44px 20px 0; border-radius: 28px; }
  .cta-cast { height: 230px; }
  .cast-tide { width: 120px; bottom: 90px !important; }
  .cast-workshop { width: 120px; left: 2%; }
  .cast-detective { width: 136px; }
  .cast-penguin { width: 104px; left: 38%; }
  .faq-list summary { padding: 18px 54px 18px 18px; font-size: 16px; }
  .faq-list details > :not(summary) { padding: 0 18px 18px; }
}

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