@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/fredoka-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/fonts/nunito-latin.woff2") format("woff2"); }
: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: a full-width bar; its content is centred to the page width */
.nav {
  position: sticky; top: 0; z-index: 10; width: 100%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 12px 16px; }
.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-in .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; width: min(440px, 100%); }
.team-frame { width: 100%; aspect-ratio: 1; border-radius: 48px; background: var(--coral-soft); overflow: hidden; display: flex; align-items: flex-end; }
.team-frame img { width: 100%; height: auto; display: block; }
.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, .stores { 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: 16px; }
.feature { text-align: center; padding: 22px 16px; background: var(--surface); border-radius: var(--radius); }
.feature img { margin: 0 auto 8px; width: 72px; height: 72px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .features { gap: 10px; } .feature { padding: 16px 10px; } .feature img { width: 56px; height: 56px; } }

/* 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; }

/* Store badges (hidden until the store links are set in main.js) */
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.stores[hidden], .store[hidden] { display: none; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 14px; background: #14161b; color: #fff; text-decoration: none; min-width: 168px; }
.store-icon { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 700; opacity: .85; }
.store b { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 18px; }
.store:hover { background: #2a2e38; }
@media (prefers-color-scheme: dark) { .store { background: #f3f4f6; color: #14161b; } .store:hover { background: #fff; } }
.install-tip { color: var(--muted); margin-top: 10px; }
.pill { display: inline-block; background: var(--coral-soft); color: var(--coral-edge); font-weight: 800; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.section-lead { max-width: 640px; color: var(--muted); font-size: 18px; margin: -6px 0 24px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; line-height: 1.6; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 4px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--coral-edge); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .ring { width: 26px; height: 26px; }
.footer-brand span { margin-right: 0; }
.form select {
  appearance: none; -webkit-appearance: none; width: 100%; font: inherit; font-weight: 700; color: var(--text);
  background-color: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 40px 12px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form select:focus { outline: none; border-color: var(--blue); }

.legal table { display: table; width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-size: 0.85rem; }
.legal .cta { margin: 28px 0 8px; }
.legal .btn { color: #fff; }
.legal .btn-outline { color: var(--text); }
.legal em { font-style: normal; font-weight: 800; }
.footer nav { flex-wrap: wrap; gap: 8px 18px; }

html { scroll-padding-top: 76px; }
