:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --line: #e8eaee;
  --text: #1f2430;
  --muted: #6b7280;
  --coral: #ff6b4a;
  --coral-edge: #de4b2b;
  --green: #2dc37d;
  --green-edge: #1fa062;
  --yellow: #ffc531;
  --blue: #4d7cfe;
  --grey: #e3e6eb;
  --coral-soft: #ffede8;
  --green-soft: #e5f8ee;
  --yellow-soft: #fff6dc;
  --blue-soft: #e9efff;
  --radius: 22px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161b;
    --surface: #1f2229;
    --line: #2b2f38;
    --text: #f3f4f6;
    --muted: #9aa1ad;
    --coral-soft: #3a2420;
    --green-soft: #173326;
    --yellow-soft: #3a3018;
    --blue-soft: #1d2843;
    --grey: #383d47;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Fredoka", sans-serif; font-size: 1.6rem; font-weight: 700; }
.ring { width: 34px; height: 34px; }
.ring path { fill: none; stroke-width: 12; stroke-linecap: round; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 800; }
.links a:hover { color: var(--text); }
@media (max-width: 760px) { .links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* Chunky buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 16px; border: 0;
  background: var(--coral); color: #fff; text-decoration: none;
  font: 800 1rem "Nunito", sans-serif; cursor: pointer;
  box-shadow: 0 4px 0 var(--coral-edge);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--coral-edge); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-outline { background: var(--bg); color: var(--text); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn-outline:active { box-shadow: 0 0 0 var(--line); }
.text-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 40px 16px 64px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { position: relative; justify-self: center; }
.tile-row { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.t { width: 34px; height: 34px; border-radius: 9px; animation: pop 0.4s ease both; }
.t:nth-child(2) { animation-delay: 0.1s; } .t:nth-child(3) { animation-delay: 0.2s; } .t:nth-child(4) { animation-delay: 0.3s; } .t:nth-child(5) { animation-delay: 0.4s; }
.t.g { background: var(--green); } .t.y { background: var(--yellow); } .t.b { background: var(--blue); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .t { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; } .lead { margin-inline: auto; } .cta { justify-content: center; } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 16px; }
.section > h2 { text-align: center; margin-bottom: 40px; }
.band { max-width: none; background: var(--surface); }
.band > * { max-width: var(--max); margin-inline: auto; }
.band.alt { background: var(--yellow-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.small { font-size: 0.9rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; text-align: center; }
.step img { margin: 0 auto 12px; }
.choices { display: grid; gap: 8px; margin: 0 auto 16px; max-width: 280px; text-align: left; }
.choices span { display: block; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 2px solid var(--line); border-bottom-width: 5px; font-weight: 800; font-size: 0.92rem; }
.choices .on { border-color: var(--green); background: var(--green-soft); }
.score { font-family: "Fredoka", sans-serif; font-size: 4.5rem; font-weight: 700; line-height: 140px; height: 140px; color: var(--coral); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Evidence */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--green); }
.verdicts { display: grid; gap: 12px; }
.verdict { background: var(--bg); border-radius: 18px; padding: 16px 18px; border: 2px solid var(--line); border-bottom-width: 5px; }
.verdict b { display: block; font-size: 0.85rem; letter-spacing: 0.2px; }
.verdict.good { border-color: var(--green); } .verdict.good b { color: var(--green-edge); }
.verdict.warn b { color: #b98500; } .verdict.bad b { color: var(--coral-edge); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { text-align: center; padding: 20px; }
.feature img { margin: 0 auto 10px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Schools */
.avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-items: center; }
.avatars img { width: 110px; height: 110px; border-radius: 50%; background: var(--bg); }

/* Traction (hidden until launch) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-family: "Fredoka", sans-serif; font-size: 3rem; color: var(--coral); }
.stats span { color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.logos .logo { padding: 14px 20px; border-radius: 16px; background: var(--surface); font-weight: 800; }

/* Form */
.form { display: grid; gap: 14px; background: var(--bg); border-radius: var(--radius); padding: 24px; border: 2px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: 0.95rem; }
.form input:not([type="radio"]), .form textarea {
  font: 600 1rem "Nunito", sans-serif; color: var(--text);
  padding: 13px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.seg { display: flex; gap: 6px; padding: 4px; border: 0; margin: 0; background: var(--surface); border-radius: 16px; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; cursor: pointer; font-size: 0.95rem; }
.seg input { accent-color: var(--coral); }
.seg label:has(input:checked) { background: var(--bg); }
.form-note { min-height: 1.4em; margin: 0; color: var(--green-edge); font-weight: 800; }
.frame { margin-top: 12px; }

/* FAQ */
details { max-width: 760px; margin: 0 auto 12px; background: var(--surface); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 2px solid var(--line); }
.footer-brand span { font-family: "Fredoka", sans-serif; font-size: 1.4rem; font-weight: 700; margin-right: 8px; }
.footer-brand small { color: var(--muted); }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 800; }

[hidden] { display: none !important; }
