@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #292740;
  --ink-soft: #6053b5;
  --ink-muted: #4f5368;
  --paper: #fffdf9;
  --parchment: #f7f3eb;
  --sun: #ffc845;
  --gold: #f5b400;
  --peach: #ffb36b;
  --rose: #ff9aa8;
  --mint: #2fbf8f;
  --mint-deep: #1d8a66;
  --sky: #5aa9e6;
  --lavender: #8c7ae6;
  --night: #0e1236;
  --meadow: #6dbb6c;
  --village: #e9954d;
  --radius-tile: 18px;
  --radius-card: 28px;
  --press: 0 5px 0;
  --shadow-soft: 0 18px 40px -18px rgba(41, 39, 64, 0.35);
  --measure: 68ch;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--sun); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--ink-soft); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; }
h3 { font-size: 1.35rem; font-weight: 900; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.6rem; letter-spacing: -0.02em; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 rgba(41, 39, 64, 0.18); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 800; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 900; font-size: 1.2rem; line-height: 1.2;
  padding: 18px 28px; border-radius: 22px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; box-shadow: var(--press) var(--night);
  transition: transform 120ms cubic-bezier(.2, .9, .3, 1), box-shadow 120ms cubic-bezier(.2, .9, .3, 1);
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 0 var(--night); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.btn.sun { background: var(--sun); color: var(--ink); box-shadow: var(--press) var(--gold); }
.btn.sun:hover { color: var(--ink); box-shadow: 0 6px 0 var(--gold); }
.btn.sun:active { box-shadow: 0 1px 0 var(--gold); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Hero: the checklist wall ---------- */
.hero { background: linear-gradient(160deg, var(--sun) 0%, var(--peach) 55%, var(--rose) 100%); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: clamp(12px, 3vw, 40px) var(--gutter) 0; }
.hero h1 { font-size: clamp(2.9rem, 5.4vw, 4.9rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; margin: 0 0 22px; }
.hero .lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; max-width: 34ch; }
.hero .actions { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero .soon { font-weight: 800; font-size: 1rem; color: #4a2f2c; }
.more { font-weight: 900; color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.more:hover { color: var(--ink-soft); }

.wall-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wall-tab {
  font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer;
  padding: 10px 12px; border-radius: 16px; border: 0;
  background: rgba(255, 253, 249, 0.5); color: var(--ink);
  box-shadow: 0 3px 0 rgba(41, 39, 64, 0.12);
}
.wall-tab[aria-selected="true"] { background: var(--paper); box-shadow: 0 3px 0 rgba(41, 39, 64, 0.25); }
.wall-tab small { font-weight: 700; opacity: 0.75; margin-left: 4px; }
.wall { background: rgba(255, 253, 249, 0.28); border-radius: var(--radius-card); padding: clamp(14px, 2vw, 24px); }
.wall-group + .wall-group { margin-top: 18px; }
.wall-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 900; font-size: 0.98rem; margin: 0 0 10px; }
.wall-label span:last-child { font-weight: 800; color: #4a2f2c; }
.tiles { display: grid; gap: clamp(6px, 0.8vw, 11px); grid-template-columns: repeat(9, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.tiles.words { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles.skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  aspect-ratio: 1; border-radius: var(--radius-tile); display: grid; place-items: center;
  font-weight: 900; font-size: clamp(1.15rem, 2.4vw, 2.35rem); line-height: 1;
  background: rgba(255, 253, 249, 0.42); color: rgba(41, 39, 64, 0.72);
  transition: background 380ms cubic-bezier(.16, 1, .3, 1), color 380ms cubic-bezier(.16, 1, .3, 1), box-shadow 380ms cubic-bezier(.16, 1, .3, 1);
}
.words .tile, .skills .tile { aspect-ratio: auto; padding: 12px 10px; font-size: clamp(0.95rem, 1.3vw, 1.15rem); text-align: center; }
.skills .tile { justify-items: start; text-align: left; padding: 14px 16px; }
.tile.done { background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 rgba(41, 39, 64, 0.16); }
.tile.new { background: var(--mint); color: var(--ink); box-shadow: 0 4px 0 var(--mint-deep); }
.tile.new.pulse { animation: pulse 900ms cubic-bezier(.16, 1, .3, 1) 1; }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.wall-note { margin-top: 14px; font-weight: 700; font-size: 0.95rem; color: #4a2f2c; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.section > .inner { max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 16px; font-size: 1.25rem; color: var(--ink-muted); font-weight: 600; }

/* Worlds: five bands, one per learning group */
.worlds { display: grid; gap: 14px; }
.world {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 24px; align-items: center;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); border-radius: var(--radius-card); color: #fff;
}
.world h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.world .age { font-weight: 800; opacity: 0.95; }
.world p { font-weight: 600; }
.world .count { font-weight: 900; font-size: 1.05rem; background: rgba(14, 18, 54, 0.32); border-radius: 14px; padding: 8px 14px; white-space: nowrap; }
.w-meadow { background: #2f7a37; }
.w-village { background: #9a4f17; }
.w-harbor { background: #2a6fae; }
.w-isles { background: #5b47c4; }
.w-gears { background: var(--night); }

/* Mastery track: one checklist tile passing through its states */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.track .tile { width: clamp(72px, 7vw, 96px); margin-bottom: 20px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.track .tile.hinted { background: rgba(255, 253, 249, 0.75); color: rgba(41, 39, 64, 0.72); box-shadow: inset 0 0 0 3px rgba(41, 39, 64, 0.22); }
.track p { color: var(--ink-muted); font-weight: 600; margin-top: 6px; }

.band-sun { background: linear-gradient(160deg, #fff1c7, #ffe1c4); }
.band-ink { background: var(--ink-soft); color: #fff; }
.band-ink .section-head p, .band-ink p { color: #e9e5ff; }
.band-ink a { color: #fff; }
.band-ink a:hover { color: var(--sun); }

/* Split: words + one real screen */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.screen { border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-soft), 0 0 0 10px var(--paper); max-width: 340px; justify-self: center; background: var(--paper); }
.screen img { width: 100%; height: auto; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-weight: 700; }
.points svg { width: 26px; height: 26px; margin-top: 2px; color: var(--mint-deep); }
.band-ink .points svg { color: var(--sun); }

/* Standards ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: minmax(150px, 0.8fr) 2fr; gap: 24px; padding: 22px 0; border-bottom: 2px solid rgba(41, 39, 64, 0.15); align-items: baseline; }
.ledger strong { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; }
.ledger span { font-weight: 700; color: var(--ink-muted); }

/* Plans */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.plan { border-radius: var(--radius-card); padding: clamp(24px, 3vw, 36px); background: var(--paper); box-shadow: var(--shadow-soft); }
.plan.family { background: var(--ink); color: #fff; }
.plan h3 { font-size: 1.7rem; margin-bottom: 8px; }
.plan .options { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan .options li { display: flex; justify-content: space-between; gap: 16px; background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 14px 18px; font-weight: 800; }
.plan .options em { font-style: normal; font-weight: 700; color: var(--sun); }
.fine { font-size: 0.95rem; color: var(--ink-muted); margin-top: 18px; font-weight: 600; }
.plan.family .fine { color: #d9d6ee; }

/* Closing */
.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin: 0 auto 18px; }
.closing p { max-width: 52ch; margin: 0 auto 28px; font-weight: 700; }
.closing .close-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.closing p.fine { margin: 22px auto 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: #d6d8f0; padding: 48px var(--gutter) 40px; }
.foot-grid { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--sun); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; font-weight: 800; }
.site-foot small { display: block; margin-top: 10px; font-size: 0.95rem; }

/* ---------- Read pages (support, parents, legal) ---------- */
.page-head { background: linear-gradient(160deg, var(--sun), var(--peach)); padding: 0 0 clamp(36px, 5vw, 64px); }
.page-head .title { padding: clamp(16px, 3vw, 40px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 900; letter-spacing: -0.03em; }
.page-head p { margin-top: 14px; font-size: 1.25rem; font-weight: 700; max-width: 52ch; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 112px); }
.toc { position: sticky; top: 24px; align-self: start; font-weight: 800; font-size: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.4em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.4em; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px solid rgba(41, 39, 64, 0.12); }
.prose th { font-weight: 900; border-bottom-color: var(--ink); }
.prose .kids { background: #fff1c7; border-radius: 22px; padding: 20px 24px; font-weight: 700; }
.prose .meta { color: var(--ink-muted); font-weight: 700; }
details.faq { border-bottom: 2px solid rgba(41, 39, 64, 0.12); padding: 6px 0; }
details.faq summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 1.15rem; padding: 14px 40px 14px 0; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 12px; height: 12px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
details.faq[open] summary::after { transform: rotate(225deg); top: 26px; }
details.faq > div { padding: 0 0 16px; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius-card); padding: 28px 32px; margin: 0 0 2em; }
.contact-card a { color: var(--sun); font-weight: 900; font-size: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .split.flip, .plans, .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .world { grid-template-columns: 1fr; gap: 10px; }
  .world .count { justify-self: start; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track::before { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 10px; }
  .site-nav { gap: 2px 16px; font-size: 0.95rem; }
  .hero-grid { padding-top: 4px; gap: 18px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; margin-bottom: 0; font-size: 2.55rem; }
  .hero .lede { order: 2; font-size: 1.1rem; }
  .hero-wall { order: 3; }
  .hero .actions { order: 4; margin-top: 0; }
  .hero-wall .wall-group + .wall-group { display: none; }
  .hero-wall .wall-note { font-size: 0.9rem; margin-top: 10px; }
  .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tiles.words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.skills { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.skip:hover { color: #fff; }
.contact-card a:hover { color: #fff; }
