:root {
  --ink: #1b1f24;
  --ink-soft: #4a525c;
  --paper: #ffffff;
  --mist: #f1f5f3;
  --line: #dde4e0;
  --green: #17594a;
  --green-dark: #0f3f34;
  --green-tint: #e3efe9;
  --amber: #f2a93b;
  --coral: #d9534f;
  --radius: 12px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px;
  background: var(--green); color: #fff;
  font: 700 1rem/1 var(--body); text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 10px 16px; font-size: .95rem; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-tint); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .i { transition: transform .15s ease; }
.link-arrow:hover .i { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.35rem/1 var(--display); }
nav { display: flex; align-items: center; gap: 28px; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
nav a:not(.btn):hover { color: var(--green); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-block: 72px 96px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); max-width: 14ch; }
.lead { margin-top: 24px; font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.fineprint { margin-top: 28px; color: var(--ink-soft); font-size: .95rem; }

/* Demo device */
.device { justify-self: center; width: 100%; max-width: 420px; }
.app {
  background: var(--mist); border-radius: 24px; padding: 24px;
  border: 1px solid var(--line);
}
.app-top { display: flex; align-items: center; gap: 14px; }
.owl { width: 56px; height: 56px; border-radius: 14px; background: var(--green); padding: 4px; flex: none; transition: transform .3s ease; }
.owl svg { width: 100%; height: 100%; }
#pupils { transition: transform .25s ease; }
.owl.happy { animation: hop .45s ease; }
.owl.sad { animation: tilt .45s ease; }
@keyframes hop { 40% { transform: translateY(-8px); } }
@keyframes tilt { 30% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } }
.meta { flex: 1; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.meta b { color: var(--ink); }
.xp { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .5s ease; }
.counts { display: flex; gap: 12px; font-weight: 700; }
.counts span { display: inline-flex; align-items: center; gap: 4px; }
.counts .i { width: 18px; height: 18px; color: var(--amber); }
.counts span:first-child .i { color: var(--coral); }

.bubble {
  margin-top: 20px; background: #fff; border-radius: 14px 14px 14px 4px;
  padding: 12px 16px; font-size: 1rem; min-height: 48px;
}
.q { margin: 28px 0 20px; text-align: center; font: 800 2.6rem/1 var(--display); }
.q.in { animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  font: 800 1.5rem/1 var(--display); color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 18px 0; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.opt:hover:not(:disabled) { border-color: var(--green); }
.opt:active:not(:disabled) { transform: scale(.97); }
.opt.correct { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { border-color: var(--coral); color: var(--coral); opacity: .7; cursor: default; }
.device-note { margin-top: 14px; text-align: center; font-size: .95rem; color: var(--ink-soft); }

/* Sections */
.section { padding-block: 96px; }
.section h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 22ch; }
.section-lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.15rem; max-width: 58ch; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(s); display: block; font: 800 1rem/1 var(--display); color: var(--green); margin-bottom: 14px; }
.steps p { margin-top: 10px; color: var(--ink-soft); }

.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--line); }
.feature-main p { margin-top: 20px; color: var(--ink-soft); font-size: 1.1rem; max-width: 50ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; align-content: start; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .i { width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.feature-list p { margin-top: 6px; color: var(--ink-soft); }

.parents { background: var(--green-tint); }
.parents-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.parents-inner > div p { margin-top: 20px; font-size: 1.1rem; color: var(--ink-soft); max-width: 44ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--green); margin-top: 3px; }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline li { padding-top: 20px; border-top: 2px solid var(--line); }
.timeline li.now { border-top-color: var(--amber); }
.timeline span { font-weight: 700; color: var(--ink-soft); }
.timeline li.now span { color: var(--ink); }
.timeline p { margin-top: 8px; }

.access { background: var(--green); color: #fff; padding-block: 80px; }
.access-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.access h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.access p { margin-top: 12px; color: #d6e8e0; max-width: 52ch; font-size: 1.1rem; }

.site-footer { padding-block: 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: .95rem; }
.site-footer .brand { font-size: 1.1rem; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

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

/* Hero facts */
.hero-facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--ink-soft); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .i { color: var(--green); width: 18px; height: 18px; }

/* Why: problem + data */
.why { background: var(--ink); color: #fff; }
.why h2 { max-width: 24ch; }
.why-head p { margin-top: 20px; font-size: 1.15rem; color: #c9d1cd; max-width: 60ch; }
.chart { margin: 56px 0 0; display: grid; gap: 22px; max-width: 820px; }
.chart-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
.chart-label { font-weight: 700; }
.bars { display: grid; gap: 6px; }
.bar { width: calc(var(--v) * 1%); min-width: 56px; height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar b { font: 800 .95rem/1 var(--display); }
.bar.id { background: var(--amber); color: var(--ink); }
.bar.oecd { background: #3b4450; color: #fff; }
.chart.pre .bar { width: 56px; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; font-size: .9rem; color: #c9d1cd; }
.key { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.key i { width: 14px; height: 14px; border-radius: 3px; }
.k-id { background: var(--amber); }
.k-oecd { background: #3b4450; outline: 1px solid #5a6573; }
.src { flex-basis: 100%; }
.src a { color: #fff; }
.causes { margin-top: 72px; border-top: 1px solid #3b4450; padding-top: 40px; }
.causes h3 { font-size: 1.3rem; }
.causes ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.causes li { color: #c9d1cd; }
.causes b { color: #fff; display: block; margin-bottom: 4px; font-size: 1.05rem; }

/* Who */
.who-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; margin-top: 40px; }
.who-main { background: var(--green); color: #fff; border-radius: 16px; padding: 40px; }
.who-main .i { width: 36px; height: 36px; color: var(--amber); }
.who-main h3 { font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--display); margin-top: 20px; }
.who-main p { margin-top: 14px; color: #d6e8e0; font-size: 1.1rem; max-width: 46ch; }
.who-side { display: grid; gap: 32px; align-content: center; }
.who-side h3 { display: flex; align-items: center; gap: 10px; }
.who-side .i { color: var(--green); }
.who-side p { margin-top: 8px; color: var(--ink-soft); }

/* Compare table */
.compare { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .9rem; color: var(--ink-soft); }
.compare thead th:last-child { color: var(--green); }
.compare tbody th { font-weight: 700; }
.compare td:nth-child(2) { color: var(--ink-soft); }
.compare td:last-child { font-weight: 700; }

/* How: loop */
.how { background: var(--mist); }
.loop { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: l; }
.loop li { position: relative; background: #fff; border-radius: 12px; padding: 22px 20px; counter-increment: l; }
.loop li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 34px; width: 8px; height: 8px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); }
.loop .i { color: var(--green); width: 22px; height: 22px; }
.loop h3 { margin-top: 14px; }
.loop h3::before { content: counter(l) ". "; color: var(--ink-soft); font-weight: 600; }
.loop p { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }
.how-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.how-notes h3 { display: flex; align-items: center; gap: 10px; }
.how-notes .i { color: var(--green); }
.how-notes p { margin-top: 10px; color: var(--ink-soft); }

/* Plan */
.plan { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.plan-where > p { margin-top: 20px; color: var(--ink-soft); font-size: 1.1rem; }
.where-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.where-list li { display: flex; gap: 12px; align-items: flex-start; }
.where-list .i { color: var(--green); margin-top: 3px; }
.plan .timeline { grid-template-columns: 1fr 1fr; gap: 32px 32px; margin-top: 32px; }
.timeline h3 { margin-top: 6px; }
.timeline p { color: var(--ink-soft); }

/* Measure */
.measure { background: var(--green-tint); }
.metrics { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.metrics div { border-top: 3px solid var(--green); padding-top: 18px; }
.metrics dt { font: 800 1.25rem/1.2 var(--display); }
.metrics dd { margin: 8px 0 0; color: var(--ink-soft); }

/* 5W1H glance */
.glance-list { margin: 40px 0 0; display: grid; border-top: 2px solid var(--ink); }
.glance-list div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.glance-list dt { font: 800 1.4rem/1.2 var(--display); color: var(--green); }
.glance-list dd { margin: 0; font-size: 1.1rem; max-width: 70ch; }

/* Responsive */
/* Story */
.story { background: #fbf7ee; }
.story-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.story-art { width: 100%; height: auto; display: block; border-radius: 24px; }
.story-time { font-weight: 700; color: #8a6d3b; font-size: .95rem; letter-spacing: .02em; }
.story-text { display: grid; gap: 20px; font-size: 1.2rem; line-height: 1.6; }
.story-big { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.3 var(--display); }
.hl { background: var(--amber); padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.story-quote { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.2 var(--display); color: var(--coral); margin-top: 12px; }
.why > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 80px; align-items: center; }
.why .chart { margin: 0; max-width: none; }
.why-turn { grid-column: 1 / -1; padding-top: 40px; border-top: 1px solid #3b4450; font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.4 var(--display); max-width: 40ch; }

/* Replay chat */
.replay { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px 72px; }
.replay-intro { grid-column: 1 / -1; }
.replay-intro p { margin-top: 14px; font-size: 1.2rem; color: var(--ink-soft); }
.chat { list-style: none; margin: 0; padding: 24px; display: grid; gap: 10px; background: var(--mist); border-radius: 20px; align-content: start; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 1rem; line-height: 1.45; }
.msg .who { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.msg.duo { background: #fff; border-bottom-left-radius: 4px; justify-self: start; }
.msg.kid { background: var(--green); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg.kid .who { color: #cfe5dc; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; padding: 12px 14px; border: 1.5px dashed var(--green); border-radius: 12px; color: var(--ink); margin: 6px 0; }
.note .i { color: var(--green); margin-top: 2px; }
.note.reward { border-color: var(--amber); }
.note.reward .i { color: #b8741a; }
.chat.pre li { opacity: 0; transform: translateY(10px); }
.chat li { transition: opacity .4s ease, transform .4s ease; }
.replay-why { align-self: start; position: sticky; top: 100px; padding-top: 24px; }
.steps-visual { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: center; }
.steps-visual li { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; font-size: 1.05rem; align-content: start; }
.steps-visual .sv-icon { margin-bottom: 4px; }
.steps-visual p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.sv-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.sv-icon .i { width: 24px; height: 24px; }
.replay-why h3 { font-size: 1.4rem; }
.replay-why ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.replay-why li { color: var(--ink-soft); padding-left: 18px; border-left: 3px solid var(--green-tint); }
.replay-why b { color: var(--ink); }

/* Kids */
.kids { background: var(--mist); }
.kid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.kid-card { background: #fff; border-radius: 16px; padding: 16px 16px 24px; }
.kid-card img { width: 100%; height: auto; display: block; border-radius: 12px; }
.kid-card h3 { margin: 18px 8px 0; font-size: 1.3rem; }
.kid-card p { margin: 4px 8px 0; color: var(--ink-soft); }
.kid-card .kid-line { font-weight: 700; color: #8a6d3b; }
.kid-card .kid-line + p { margin-top: 10px; }

/* Parents report */
.parents-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.report-copy p { margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.report { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 12px 32px -16px rgba(27, 31, 36, .18); }
.report-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.report-head img { border-radius: 8px; }
.report-head b { display: block; font-family: var(--display); font-size: 1.15rem; }
.report-head span { font-size: .9rem; color: var(--ink-soft); }
.report-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.report-list li { display: flex; gap: 10px; align-items: flex-start; }
.report-list .i { margin-top: 3px; }
.report-list .ok .i { color: var(--green); }
.report-list .wip .i { color: #b8741a; }
.report-list .tip { background: #fbf7ee; border-radius: 10px; padding: 12px; }
.report-list .tip .i { color: #b8741a; }

/* Never */
.never { background: var(--ink); color: #fff; }
.never-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.never-inner > div p { margin-top: 16px; color: #c9d1cd; font-size: 1.1rem; }
.never-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.never-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid #3b4450; border-radius: 12px; line-height: 1.45; }
.never-list b { color: #fff; }
.never-list span { color: #c9d1cd; }
.never-list .i { color: var(--coral); margin-top: 2px; }

/* Chapters */
.chapter-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.chapter-list li { border-top: 2px solid var(--line); padding-top: 18px; }
.chapter-list li.now { border-top-color: var(--amber); }
.chapter-list span { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.chapter-list h3 { margin-top: 6px; font-size: 1.3rem; }
.chapter-list p { margin-top: 8px; color: var(--ink-soft); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font: 700 .9rem/1.3 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow.dark { color: var(--ink-soft); }

/* Tutor engine */
.tutor-engine { background: var(--mist); }
.engine-head { max-width: 68ch; }
.engine-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); }
.engine-steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.engine-steps li {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px; display: grid; gap: 10px; align-content: start;
}
.engine-steps .n {
  font: 800 .95rem/1 var(--display); color: var(--green);
}
.engine-steps h3 { font-size: 1.2rem; }
.engine-steps p { color: var(--ink-soft); font-size: .98rem; }
.engine-diff {
  margin-top: 48px; padding: 36px 40px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px;
}
.engine-diff h3 { font-size: 1.5rem; }
.engine-diff ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.engine-diff li { color: var(--ink-soft); padding-left: 16px; border-left: 3px solid var(--green-tint); }
.engine-diff b { color: var(--ink); }

/* Company */
.company { background: #fbf7ee; }
.company-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.company-inner > div p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.company-facts { margin: 0; display: grid; gap: 18px; }
.company-facts div { border-top: 2px solid var(--line); padding-top: 14px; }
.company-facts dt { font-size: .85rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.company-facts dd { margin: 6px 0 0; font: 600 1.15rem/1.35 var(--display); }
.company-facts a { color: var(--green); text-decoration: none; font-weight: 700; }
.company-facts a:hover { text-decoration: underline; }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--green); }

/* Legal pages */
.legal { padding-block: 64px 96px; max-width: 720px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.05rem; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal b { color: var(--ink); }
.legal-updated { color: var(--ink-soft); font-size: .95rem; margin-bottom: 28px; }
.legal-back { margin-top: 48px; font-weight: 700; }

/* Build page */
.build-hero { padding-bottom: 24px; }
.build-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.build-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding-top: 0;
}
.build-card {
  background: var(--mist); border-radius: 16px; padding: 28px;
  border: 1px solid var(--line);
}
.build-card h2 { font-size: 1.25rem; }
.build-card p { margin-top: 12px; color: var(--ink-soft); }
.stack { padding-top: 48px; }
.stack-table { margin-top: 28px; border-top: 2px solid var(--ink); }
.stack-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.stack-row span:first-child { font-weight: 700; }
.stack-row span:last-child { color: var(--ink-soft); }
.blurb { padding-top: 32px; }
.blurb-box {
  margin-top: 24px; background: var(--mist); border-radius: 16px;
  padding: 24px; border: 1px solid var(--line); position: relative;
}
.blurb-box .btn { margin-bottom: 16px; }
.blurb-box pre {
  margin: 0; white-space: pre-wrap; font: 400 1rem/1.55 var(--body);
  color: var(--ink); max-width: 70ch;
}
.copy-status { margin-top: 12px; min-height: 1.2em; font-size: .95rem; color: var(--green); font-weight: 700; }
.build-cta { padding-top: 24px; }
.build-cta p { margin-top: 12px; font-size: 1.1rem; color: var(--ink-soft); }

@media (max-width: 960px) {
  .hero, .inside, .parents-inner, .who-grid, .plan, .replay, .parents-story, .never-inner, .company-inner { grid-template-columns: 1fr; gap: 48px; }
  .replay-why, .story-time { position: static; }
  .story-inner, .why > .wrap { grid-template-columns: 1fr; gap: 32px; }
  .kid-grid, .chapter-list, .engine-steps, .build-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-block: 40px 72px; }
  .steps, .timeline, .metrics { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop li::after { display: none; }
  .how-notes { grid-template-columns: 1fr; gap: 28px; }
  .stack-row { grid-template-columns: 1fr; gap: 6px; }
  .engine-diff { padding: 28px; }
  nav { gap: 18px; }
}
@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  .section { padding-block: 72px; }
  .steps, .timeline, .checks, .causes ul, .metrics, .loop, .plan .timeline, .kid-grid, .chapter-list, .engine-steps, .build-grid { grid-template-columns: 1fr; }
  .chat { padding: 16px; }
  .steps-visual { grid-template-columns: 1fr; }
  .glance-list div { grid-template-columns: 1fr; gap: 6px; }
  .chart-row { grid-template-columns: 1fr; gap: 8px; }
  .who-main { padding: 28px; }
  .compare { font-size: .9rem; }
  .app { padding: 18px; }
  .hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Investors page ---------- */
.eyebrow.light { color: var(--amber); }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); font-size: 1.15rem; max-width: 62ch; }
.section-head.light p:not(.eyebrow) { color: #c9d1cd; }
.section-head a { font-weight: 700; }

.inv-hero { padding-block: 72px 80px; }
.inv-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); max-width: 16ch; }
.inv-hero .lead { max-width: 62ch; }

.stat-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; display: grid; gap: 8px; align-content: start; }
.stat b { font: 800 clamp(1.9rem, 3vw, 2.4rem)/1 var(--display); color: var(--green); }
.stat.amber b { color: #b8741a; }
.stat span { color: var(--ink); font-size: .98rem; line-height: 1.45; }
.stat small { color: var(--ink-soft); font-size: .82rem; }

.problem { background: var(--ink); color: #fff; }
.problem h2 { max-width: 24ch; }
.problem .chart { margin-top: 56px; }
.causes.three ul { grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }

.why-now, .moat { background: #fbf7ee; }
.cards3 { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards3.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; display: grid; gap: 10px; align-content: start; }
.card .sv-icon { margin-bottom: 4px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }

.table-scroll { overflow-x: auto; margin-top: 32px; -webkit-overflow-scrolling: touch; }
.table-scroll + .assumptions { margin-top: 18px; }
.pitch-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .98rem; }
.pitch-table th, .pitch-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pitch-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-top: 0; }
.pitch-table tbody th { font-weight: 700; white-space: nowrap; }
.pitch-table td { color: var(--ink-soft); }
.pitch-table td.num { font: 700 1.05rem/1.4 var(--display); color: var(--ink); white-space: nowrap; }
.pitch-table tr.hi th, .pitch-table tr.hi td { background: var(--green-tint); }
.pitch-table tr.hi td { color: var(--ink); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fbf7ee; color: #8a6d3b; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.assumptions { margin-top: 20px; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; max-width: 84ch; }
.assumptions b { color: var(--ink); }
.scenarios { margin-top: 56px; }
.scenarios h3, .sub-head { font-size: 1.35rem; }
.sub-head { margin-top: 56px; }
.scenarios .table-scroll { margin-top: 20px; }
.scenarios .pitch-table { min-width: 420px; max-width: 640px; }

.model { background: var(--mist); }
.model .pitch-table tr.hi th, .model .pitch-table tr.hi td { background: #fff; }

.compare.landscape { min-width: 760px; margin-top: 0; }
.compare.landscape thead th:first-child { width: 20%; }
.compare.landscape td { color: var(--ink-soft); }
.compare.landscape td.yes { color: var(--green); font-weight: 700; }
.compare.landscape td.no { color: var(--coral); }
.compare.landscape td.part { color: #8a6d3b; }
.compare.landscape td.num { font-family: var(--display); font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare.landscape td.col-us { background: var(--green-tint); color: var(--green-dark); font-weight: 700; }

.chapter-list li.funded { border-top-color: var(--green); }
.chapter-list li.funded span { color: var(--green); }
.pilot-kpis { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.pilot-kpis h3 { font-size: 1.35rem; }
.pilot-kpis .metrics { margin-top: 28px; }

.ask { background: var(--green); color: #fff; }
.ask-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.ask h2, .ask h3 { color: #fff; }
.ask h3 { font-size: 1.3rem; }
.ask .lead-ask { margin-top: 20px; font-size: 1.15rem; color: #d6e8e0; max-width: 48ch; }
.ask .btn-light { margin-top: 28px; }
.ask-contact { margin-top: 16px; color: #d6e8e0; font-weight: 700; }
.funds { list-style: none; margin: 20px 0 40px; padding: 0; display: grid; gap: 18px; }
.funds li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.fund-label { font-weight: 700; }
.fund-pct { font: 800 1.05rem/1 var(--display); color: var(--amber); }
.fund-bar { grid-column: 1 / -1; display: block; height: 10px; background: rgba(255, 255, 255, .16); border-radius: 99px; overflow: hidden; }
.fund-bar i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--amber); border-radius: inherit; }
.funds p { grid-column: 1 / -1; color: #d6e8e0; font-size: .95rem; }
.milestones { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.milestones li { display: flex; gap: 12px; align-items: flex-start; color: #d6e8e0; }
.milestones .i { color: var(--amber); margin-top: 3px; }
.milestones b { color: #fff; }

.team { background: var(--mist); }
.team-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.team-inner > div p:not(.eyebrow) { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.team-card h3 { font-size: 1.25rem; }
.team-card .checks { margin-top: 18px; }
.checks.one-col { grid-template-columns: 1fr; gap: 14px; }
.checks.one-col li { color: var(--ink-soft); }
.team-card .link-arrow { margin-top: 24px; }

.faq { margin-top: 32px; border-top: 2px solid var(--ink); max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 1.1rem/1.4 var(--body); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 800 1.4rem/1 var(--display); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 72ch; }

/* Home page: secondary CTA in the green band */
.link-arrow.light { color: #fff; }
.access .link-arrow.light { margin-top: 18px; display: inline-flex; }
.access-cta { display: grid; justify-items: start; }

/* Hero demo: gap-finding flow */
.interest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.interest > span { margin-right: 2px; font-weight: 700; }
.chip {
  font: 700 .88rem/1 var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 99px;
  padding: 7px 12px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.gap-note {
  margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  border: 1.5px dashed var(--line); font-size: .9rem; color: var(--ink-soft); line-height: 1.4;
}
.gap-note b { color: inherit; }
.gap-note.searching { border-color: #b8741a; color: #8a6d3b; }
.gap-note.found { border-color: var(--green); background: #fff; color: var(--ink); }
.gap-note.fixed { border-style: solid; border-color: var(--green); background: var(--green-tint); color: var(--green-dark); }
.q { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.opt.wide { grid-column: 1 / -1; font-size: 1.1rem; padding: 16px; }

/* Problem causes inside the dark data section */
.why .causes { grid-column: 1 / -1; margin-top: 56px; }
.why .why-turn { padding-top: 32px; border-top: 0; }

/* Comparison table inside the engine section */
.engine-diff .table-scroll { margin-top: 20px; }
.engine-diff .compare { margin-top: 0; min-width: 640px; }
.compare td:not(:last-child) { color: var(--ink-soft); }
.compare tbody td:last-child { background: var(--green-tint); color: var(--green-dark); }
.compare thead th:last-child { font-size: 1rem; }
.engine-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cards3, .cards3.four { grid-template-columns: 1fr 1fr; }
  .causes.three ul { grid-template-columns: 1fr; }
  .ask-inner, .team-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .cards3, .cards3.four { grid-template-columns: 1fr; }
  .stat-grid { gap: 12px; }
  .stat { padding: 18px 16px 14px; }
  .inv-hero { padding-block: 40px 64px; }
  .inv-hero h1 { max-width: none; }
  .team-card { padding: 22px; }
}

/* Investors page prints as a one-pager-style PDF */
@media print {
  .site-header, .site-footer, .skip, #fx, .actions, .ask .btn-light, .access, .team-card .link-arrow { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section, .inv-hero { padding-block: 28pt; break-inside: avoid; }
  .problem, .ask { background: #fff !important; color: #000 !important; border-top: 1pt solid #000; }
  .problem h2, .ask h2, .ask h3, .milestones b, .fund-label, .section-head.light p, .ask p, .funds p, .milestones li, .chart figcaption, .key, .causes li, .causes b { color: #000 !important; }
  .bar.oecd { background: #888 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar.id, .fund-bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fund-bar { background: #ddd !important; }
  .faq details { break-inside: avoid; }
  .faq details:not([open]) > *:not(summary) { display: block; }
  .faq summary::after { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .table-scroll { overflow: visible; }
  .pitch-table, .compare.landscape { min-width: 0; font-size: 9.5pt; }
}
