@font-face { font-family: 'Lexend'; src: url('/fonts/lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --sky: #CFE9FF; --sky-2: #E8F5FF; --blue: #2F6FDB; --ink: #1D2A5C; --ink-2: #4A5683;
  --gold: #F5B81C; --gold-ink: #3A2A00; --grass: #4CAF50; --grass-dark: #2E7D32; --dirt: #8A5A2B; --dirt-dark: #6B4420;
  --paper: #FBF3DF; --line: #E6DCC2; --white: #fff;
  --block: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: 'Lexend', system-ui, sans-serif; color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons: the gold game button, with a hard block shadow */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 3px solid var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-gold:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-gold:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-plain { background: var(--white); color: var(--ink); }
.btn-plain:hover { background: var(--sky-2); }

/* header */
header { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 5; }
header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo img { height: 52px; width: auto; border-radius: 6px; }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--blue); }
header .btn { padding: 9px 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 860px) { nav { display: none; } header .btn { margin-left: auto; } }

/* hero: sky, then the voxel ground the worlds sit on */
.hero { background: linear-gradient(180deg, #A9D8FF 0%, var(--sky) 45%, var(--sky-2) 100%); padding: 64px 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.shot { border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--block); overflow: hidden; background: var(--ink); }
.shot img { width: 100%; height: auto; }
.hero .shot { transform: rotate(1.2deg); margin-bottom: 18px; }
.ages { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.ages span { background: rgba(255,255,255,.75); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.ground { height: 96px; margin-top: 56px; position: relative;
  background:
    linear-gradient(var(--grass) 0 22px, var(--grass-dark) 22px 28px, transparent 28px),
    repeating-linear-gradient(90deg, var(--dirt) 0 32px, var(--dirt-dark) 32px 34px),
    var(--dirt);
}
.ground::before { /* stepped grass edge, one block per 32px */
  content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
  background: repeating-linear-gradient(90deg, var(--grass) 0 32px, transparent 32px 64px, var(--grass) 64px 128px, transparent 128px 160px);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero .shot { transform: none; } }

section { padding: 96px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } section { padding: 72px 0; } }

/* who it's for */
.who { background: var(--dirt-dark); color: #fff; padding: 72px 0; }
.who h2 { color: #fff; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.who-grid > div { border-top: 6px solid var(--gold); padding-top: 20px; }
.who-grid > div:nth-child(2) { border-color: var(--grass); }
.who-grid > div:nth-child(3) { border-color: #7DB8FF; }
.who h3 { color: #fff; }
.who p { color: #F1E4CF; margin-top: 10px; }
.who ul { margin: 14px 0 0; padding-left: 20px; color: #F1E4CF; }
.who li { margin: 4px 0; }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; } }

/* how learning works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--gold); border: 3px solid var(--ink); border-radius: 8px; font-weight: 800; font-size: 20px; box-shadow: 3px 3px 0 var(--ink); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 62px; right: -12px; border-top: 3px dashed #B8C2DF; }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.stage-ladder { margin-top: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ladder { display: flex; align-items: flex-end; gap: 8px; height: 220px; }
.ladder div { flex: 1; background: var(--sky); border: 3px solid var(--ink); border-radius: 8px 8px 0 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 8px; font-size: 13px; line-height: 1.3; }
.ladder b { font-size: 15px; display: block; }
.ladder div:nth-child(1) { height: 34%; } .ladder div:nth-child(2) { height: 50%; } .ladder div:nth-child(3) { height: 66%; }
.ladder div:nth-child(4) { height: 82%; } .ladder div:nth-child(5) { height: 100%; background: var(--gold); }
@media (max-width: 860px) { .stage-ladder { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ladder { gap: 4px; height: 180px; } .ladder div { padding: 6px 4px; font-size: 11px; } .ladder b { font-size: 12px; } }

/* worlds: the same colored tiles kids see in the game */
.worlds { background: var(--paper); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.tile { border-radius: 10px; color: #fff; padding: 14px 14px 12px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid rgba(0,0,0,.18); }
.tile .ic { font-size: 28px; line-height: 1; }
.tile b { display: block; font-size: 16px; line-height: 1.2; }
.tile small { font-size: 13px; opacity: .92; }
.grp { font-size: 20px; margin: 34px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.grp span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.obby-head { margin: 56px 0 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.obby-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.obby-row .tiles { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .obby-row { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.gallery figcaption b { color: var(--ink); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* classroom */
.class { background: var(--sky-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .shot { background: var(--paper); }
.list { list-style: none; padding: 0; margin: 28px 0 0; }
.list li { padding: 14px 0 14px 40px; border-top: 2px solid rgba(29,42,92,.12); position: relative; }
.list li:last-child { border-bottom: 2px solid rgba(29,42,92,.12); }
.list li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 18px; height: 18px; background: var(--grass); border: 2px solid var(--ink); border-radius: 4px; }
.list b { display: block; }
.list span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* safety */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.safety-grid .list { margin-top: 0; }
@media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr; } .safety-grid .list + .list li:first-child { border-top: 0; } }

/* pricing */
.price { background: var(--paper); border-top: 3px solid var(--ink); }
.plans { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--block); }
.plans > div { padding: 32px 28px; }
.plans > div + div { border-left: 3px solid var(--ink); }
.plans .amt { font-size: 40px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -0.02em; }
.plans .amt small { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.plans p { color: var(--ink-2); font-size: 16px; }
.plans ul { padding-left: 20px; margin: 16px 0 0; font-size: 16px; }
.plans .free { background: #EAF7E6; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plans > div + div { border-left: 0; border-top: 3px solid var(--ink); } }

/* faq */
.faq { max-width: 820px; }
.ages span { white-space: nowrap; }
details { border-top: 2px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 2px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 32px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { color: var(--ink-2); padding: 0 0 18px; max-width: 68ch; }

/* closing band */
.final { background: var(--ink); color: #fff; text-align: center; padding: 88px 0; }
.final h2 { color: #fff; margin: 0 auto; }
.final .lead { color: #C8D0EC; margin: 18px auto 0; }
.final .cta-row { justify-content: center; }
.final .btn-plain { background: transparent; color: #fff; border-color: #fff; }
.final .btn-plain:hover { background: rgba(255,255,255,.08); }
.final .btn-gold { box-shadow: 4px 4px 0 #000; }

footer { background: #131C40; color: #AEB8DA; padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer a { color: #fff; }
footer nav { display: flex; gap: 20px; margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
