/* Kaya Rides, in the logo's colours: navy #0F1B2D and the orange of the
   roofs (#E8572A). Orange is for what to do next and never carries small
   text on white (3.4:1); navy text sits on it instead. Green appears only
   where a check passes. Headings in Barlow Semi Condensed (road-sign
   lettering, close to the logo's geometric caps), text in Atkinson
   Hyperlegible (read on a phone, in a car). Fonts served from this site
   (SIL Open Font License). */

@font-face { font-family: "Barlow SC"; src: url("/fonts/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("/fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0f1b2d;
  --navy-2: #1b2a40;
  --orange: #e8572a;
  --orange-hi: #f26a3e;
  --paper: #ffffff;
  --soft: #f3f5f8;
  --line: #d8dee6;
  --muted: #4a5868;
  --on-navy: #c6d0dc;
  --green: #1f7a52;
  --green-hi: #47c28a;
  --head: "Barlow SC", "Arial Narrow", sans-serif;
  --body: "Atkinson", system-ui, sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.0625rem/1.6 var(--body); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.375rem; font-weight: 600; }
p { margin: 0; }
.intro { margin-top: 14px; max-width: 36rem; color: var(--muted); font-size: 1.125rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 9; }
.skip:focus { left: 8px; }

/* --- header --------------------------------------------------------------- */
.top { display: flex; align-items: center; gap: 28px; max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; }
.brand img { width: 120px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
.nav a:hover { color: var(--orange); }
.nav .nav__join { background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 6px; }
.nav .nav__join:hover { background: var(--navy-2); color: #fff; }

/* --- hero: the check every car passes ------------------------------------ */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 96px; }
.where { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem; color: var(--muted); margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; }
.lead { font-size: 1.25rem; max-width: 32rem; margin-top: 22px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 6px; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--go { background: var(--orange); color: var(--navy); }
.btn--go:hover { background: var(--orange-hi); color: var(--navy); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }

.gate { margin: 0; background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 24px 48px -28px rgba(15, 27, 45, 0.6); }
.gate__car { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #2b3b52; }
.gate__icon { width: 64px; height: 32px; fill: none; stroke: var(--on-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gate__model { font: 600 1.25rem/1.2 var(--head); }
/* A Western Cape number plate: black on white, as on the road. */
.plate { display: inline-block; margin-top: 6px; font: 700 1.125rem/1 var(--head); letter-spacing: 0.06em; color: #111; background: #fff; border: 2px solid #111; border-radius: 4px; padding: 4px 10px; }
.gate__checks { list-style: none; padding: 0; margin: 8px 0 0; }
.gate__checks li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #2b3b52; }
.gate__checks .ok { display: inline-flex; align-items: center; gap: 8px; color: var(--green-hi); font-weight: 700; white-space: nowrap; }
.gate__checks .ok::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%230f1b2d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; flex: none; }
.gate__state { margin-top: 20px; background: var(--orange); color: var(--navy); font: 700 1.375rem/1 var(--head); text-align: center; padding: 16px; border-radius: 8px; }
.gate__cap { margin-top: 16px; font-size: 0.9375rem; color: var(--on-navy); }
/* The one moment of motion: the checks pass one by one, then the car is cleared. */
@media (prefers-reduced-motion: no-preference) {
  .gate__checks .ok { animation: pass 360ms both; }
  .gate__checks li:nth-child(1) .ok { animation-delay: 300ms; }
  .gate__checks li:nth-child(2) .ok { animation-delay: 650ms; }
  .gate__checks li:nth-child(3) .ok { animation-delay: 1000ms; }
  .gate__checks li:nth-child(4) .ok { animation-delay: 1350ms; }
  .gate__state { animation: clear 500ms 1800ms both; }
}
@keyframes pass { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes clear { from { background: #2b3b52; color: #8494a8; } to { background: var(--orange); color: var(--navy); } }

/* --- bands ------------------------------------------------------------------ */
.band { border-top: 1px solid var(--line); }
.band--soft { background: var(--soft); }
.band__inner { max-width: var(--wrap); margin: 0 auto; padding: 80px 24px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }

.phases { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.phases li { padding: 0 28px 0 0; position: relative; }
.phases li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.phases h3 { display: flex; align-items: center; gap: 10px; }
.phases h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--orange); flex: none; }
.phases p { margin-top: 10px; color: var(--muted); }

.fleets { background: var(--navy); color: #fff; }
.fleets__inner { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; }
.fleets .intro { color: var(--on-navy); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.features li { border-top: 3px solid var(--orange); padding-top: 14px; }
.features p { margin-top: 6px; color: var(--on-navy); }

.calc__inputs { display: grid; gap: 10px; margin-top: 28px; max-width: 30rem; }
.calc__inputs label { display: flex; justify-content: space-between; font-weight: 700; margin-top: 8px; }
.calc__inputs output { font: 700 1.25rem/1 var(--head); }
.calc__inputs input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
.calc__inputs select { font: 400 1rem/1.3 var(--body); color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 6px; padding: 10px 12px; max-width: 10rem; }
.calc__result { margin-top: 28px; display: grid; gap: 2px; font-size: 1.125rem; color: var(--muted); }
.calc__result span:first-child { font-weight: 700; color: var(--navy); }
.calc__result strong { font: 700 2.5rem/1.1 var(--head); color: var(--orange); }
.need { background: var(--soft); border-radius: 12px; padding: 28px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font: 700 2.5rem/1 var(--head); color: var(--orange); margin-bottom: 10px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* --- join -------------------------------------------------------------------- */
.join { border-top: 1px solid var(--line); }
.join__inner { max-width: 46rem; margin: 0 auto; padding: 80px 24px 96px; }
.join__lead { margin-top: 14px; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-top: 32px; border-bottom: 2px solid var(--navy); }
.tabs button { font: 700 1rem/1 var(--body); padding: 14px 18px; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.form { background: var(--soft); border-radius: 0 0 12px 12px; padding: 28px; display: grid; gap: 22px; }
.form[hidden] { display: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.9375rem; }
.form label[hidden] { display: none; }
.opt { font-weight: 400; color: var(--muted); }
.form input:not([type="radio"]):not([type="checkbox"]), .form select {
  font: 400 1rem/1.3 var(--body); color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 12px; min-height: 46px; width: 100%;
}
.form input:focus-visible, .form select:focus-visible { border-color: var(--navy); }
.form [aria-invalid="true"] { border-color: #b3261e !important; }
.ask { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ask legend { font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; padding: 0; }
.ask label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 1rem; min-height: 32px; cursor: pointer; }
.ask input, .consent input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; flex: none; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; min-width: 14rem; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.msg:empty { display: none; }
.msg { font-weight: 700; }
.msg[data-kind="error"] { color: #b3261e; }
.msg[data-kind="ok"] { color: var(--green); }

/* --- footer ------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; color: var(--muted); font-size: 0.9375rem; }

/* --- privacy notice ---------------------------------------------------------- */
.doc { max-width: 44rem; margin: 0 auto; padding: 40px 24px 80px; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
.doc h2 { font-size: 1.75rem; margin-top: 40px; }
.doc p, .doc ul { margin-top: 12px; }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc .todo { background: #ffe3d6; padding: 0 4px; border-radius: 3px; }

/* --- smaller screens ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 72px; }
  .split, .fleets__inner { grid-template-columns: 1fr; gap: 40px; }
  .phases, .steps { grid-template-columns: 1fr; gap: 24px; }
  .phases li, .phases li + li { padding: 0 0 0 0; border-left: 0; }
  .phases li + li { border-top: 1px solid var(--line); padding-top: 24px; }
}
@media (max-width: 600px) {
  .top { padding: 16px 20px; gap: 16px; }
  .nav { gap: 16px; }
  .nav a:not(.nav__join) { display: none; }
  .grid, .features { grid-template-columns: 1fr; }
  .gate { padding: 22px 18px; }
  .gate__checks li { flex-direction: column; gap: 4px; }
  .form { padding: 22px 18px; }
  .form .btn, .actions .btn { justify-self: stretch; width: 100%; }
  .tabs button { flex: 1; padding: 14px 10px; }
}
