/* NavKids Africa landing page. Palette from the driver app (navkids_theme.dart):
   primary blue #2563EB, route green #22C55E, school-bus amber, deep navy. */

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #fbbf24;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --navy: #0d1630;
  --navy-2: #172241;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px -8px rgb(15 23 42 / 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgb(37 99 235 / .55); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #fcd34d; }
.btn-on-dark { color: #fff; border: 1px solid rgb(255 255 255 / .3); }
.btn-on-dark:hover { background: rgb(255 255 255 / .08); }

/* ---------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(247 248 250 / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(229 231 235 / .7);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.brand b { color: var(--blue); font-weight: 700; }
.brand.small { font-size: 15px; gap: 8px; }
nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* ---------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, #dbeafe 0%, transparent 60%),
    radial-gradient(700px 420px at 10% 90%, #dcfce7 0%, transparent 60%),
    var(--bg);
  padding: 56px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff; color: var(--blue-dark); border: 1px solid var(--blue-soft); box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.accent {
  background: linear-gradient(90deg, var(--blue) 10%, #16a34a 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; max-width: 560px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.facts b { display: block; font-size: 24px; color: var(--navy); letter-spacing: -0.02em; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }

.hero-stage { position: relative; }
.stage-card {
  position: relative; aspect-ratio: 1 / 0.92; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #e0ecff 0%, #f1f7ff 55%, #eafbf0 100%);
  border: 1px solid #dbe6f7; box-shadow: 0 30px 60px -30px rgb(13 22 48 / .35);
}
.stage-glow { position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, rgb(34 197 94 / .18), transparent); }
.stage-canvas, .stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-canvas { opacity: 0; transition: opacity .8s ease; }
.stage-card.ready .stage-canvas { opacity: 1; }
.stage-card.ready .stage-fallback { opacity: 0; transition: opacity .5s ease; }
.stage-fallback { padding: 10%; }
.stage-live {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: rgb(255 255 255 / .9); box-shadow: var(--shadow);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(220 38 38 / .5); } 100% { box-shadow: 0 0 0 10px rgb(220 38 38 / 0); } }

.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; transform: translate(-50%, -100%);
  padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: #fff; color: var(--navy); box-shadow: 0 6px 16px -6px rgb(13 22 48 / .35);
  animation: chip 2.6s ease forwards;
}
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--green); vertical-align: middle; }
@keyframes chip {
  0% { opacity: 0; margin-top: 8px; }
  15% { opacity: 1; margin-top: 0; }
  75% { opacity: 1; margin-top: -10px; }
  100% { opacity: 0; margin-top: -18px; }
}

/* ---------------- sections */
.section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow.light { color: #93c5fd; }
.section h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 640px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgb(13 22 48 / .3); }
.feature h3 { margin-top: 18px; font-size: 19px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-dark); }
.icon.green { background: var(--green-soft); color: #15803d; }
.icon.red { background: var(--red-soft); color: #b91c1c; }
.icon.amber { background: var(--amber-soft); color: #b45309; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: #92400e; font-size: 11px; font-weight: 800; vertical-align: middle; letter-spacing: 0; }

.section-dark { background: radial-gradient(800px 400px at 90% 0%, rgb(37 99 235 / .35), transparent 60%), var(--navy); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--amber); color: var(--navy); font-weight: 800; font-size: 18px;
}
.step h3 { margin-top: 18px; font-size: 20px; }
.step p { margin-top: 8px; color: #cbd5e1; font-size: 15.5px; }

.split { display: grid; grid-template-columns: .85fr 1fr; gap: 56px; align-items: center; }
.photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(13 22 48 / .45); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.checks { margin: 26px 0 32px; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: #374151; font-size: 16.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.cta-band { padding: 80px 0; background: linear-gradient(120deg, var(--blue) 0%, #1e40af 60%, var(--navy) 100%); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.cta-band p { margin-top: 10px; color: #dbeafe; max-width: 560px; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--navy); color: #94a3b8; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; }
.site-footer .brand { color: #fff; }

/* ---------------- responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 28px 0 56px; }
  .feature-grid, .steps, .facts { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .header-row { gap: 12px; }
  .brand span { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------- coming soon: announcement, countdown, registration */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.announce {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding: 9px 16px; background: var(--navy); color: #e2e8f0; font-size: 14px; text-decoration: none; text-align: center;
}
.announce b { color: var(--amber); }
.announce u { color: #fff; text-underline-offset: 3px; }
.announce:hover u { color: var(--amber); }
.announce-tag { padding: 2px 10px; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.register {
  padding: 96px 0;
  color: #fff;
  background:
    radial-gradient(700px 380px at 0% 0%, rgb(37 99 235 / .45), transparent 60%),
    radial-gradient(600px 360px at 100% 100%, rgb(34 197 94 / .22), transparent 60%),
    var(--navy);
}
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.register h2 { margin-top: 10px; font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; }
.register-lead { margin-top: 16px; color: #cbd5e1; font-size: 17.5px; max-width: 520px; }
.register-lead b { color: #fff; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; max-width: 520px; }
.countdown div {
  padding: 16px 8px; border-radius: 18px; text-align: center;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14);
}
.countdown b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.countdown div:first-child { background: var(--amber); border-color: var(--amber); }
.countdown div:first-child b, .countdown div:first-child span { color: var(--navy); }
.countdown span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.countdown-note { margin-top: 10px; font-size: 13px; color: #94a3b8; }

.register-perks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.register-perks li { position: relative; padding-left: 30px; color: #e2e8f0; }
.register-perks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
  background: rgb(34 197 94 / .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.register-card {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 28px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55);
}
.register-card h3 { font-size: 22px; }
.form-intro { margin-top: 4px; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { font-size: 13.5px; font-weight: 700; color: #1f2937; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid #cbd5e1; background: #fff; color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field-error { font-size: 13px; color: #b91c1c; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: #374151; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.consent.invalid span { color: #b91c1c; }
.form-status { margin-top: 16px; font-size: 14.5px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.error { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: #991b1b; }
.btn-block { width: 100%; margin-top: 18px; }
.btn[disabled] { opacity: .65; cursor: progress; }

.register-done { text-align: center; padding: 24px 8px; }
.register-done .tick {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: var(--green-soft); color: #15803d;
}
.register-done .tick svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.register-done h3 { font-size: 24px; }
.register-done p { margin-top: 8px; color: var(--muted); }

@media (max-width: 960px) {
  .register-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .register-card { padding: 22px 18px; }
  .countdown { gap: 8px; }
  .countdown div { padding: 12px 4px; border-radius: 14px; }
  .announce { font-size: 13px; }
}

/* ---------------- driver app download */
.app-download {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 460px;
  padding: 12px 16px 12px 12px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  box-shadow: 0 14px 30px -14px rgb(13 22 48 / .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-download:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgb(13 22 48 / .7); }
.app-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #3ddc84; flex: none; }
.app-icon svg { width: 28px; height: 28px; fill: #0b3d1e; }
.app-text { display: grid; line-height: 1.3; }
.app-text b { font-size: 16px; }
.app-text small { color: #bfdbfe; font-size: 12.5px; }
.app-arrow { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .14); font-weight: 800; }
.app-help { margin-top: 8px; max-width: 460px; font-size: 12.5px; color: var(--muted); }
.inline-link { color: var(--amber); font-weight: 700; }
.site-footer a { color: #cbd5e1; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
