/* Self-hosted so no visitor data goes to a font CDN. Manrope variable, SIL OFL. Never monospace. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0f1512;            /* near-black: selected pills, text */
  --muted: #66716b;
  --line: #e2e7e3;
  --bg: #f2f5f2;             /* soft green-tinted canvas */
  --card: #ffffff;
  --brand: #008751;          /* Nigerian flag green */
  --brand-deep: #006b40;
  --brand-soft: #e3f3ea;
  --on-brand: #ffffff;
  --pill: #0f1512;           /* selected chips and options */
  --on-pill: #ffffff;
  --hero-a: #00a463;
  --hero-b: #008751;
  --hero-c: #005a36;
  --ok: #007a49;
  --warn: #8a5300;
  --warn-soft: #fff3e0;
  --danger: #c0262d;
  --wa: #1fa855;
  --radius: 28px;            /* cards */
  --radius-md: 18px;         /* fields, option tiles */
  --tile-filter: saturate(0.9);
  color-scheme: light;
}

/* Theme: follows the phone unless the visitor picks one (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #edf3ef;
    --muted: #9aa8a0;
    --line: #233029;
    --bg: #0b100d;
    --card: #141b17;
    --brand: #1cb26e;
    --brand-deep: #008751;
    --brand-soft: #12301f;
    --on-brand: #04140b;
    --pill: #edf3ef;
    --on-pill: #0b100d;
    --hero-a: #0d8f57;
    --hero-b: #00703f;
    --hero-c: #003d24;
    --ok: #4fd08f;
    --warn: #f0b45c;
    --warn-soft: #2b2212;
    --danger: #f2777c;
    --wa: #3ccf7c;
    --tile-filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.5);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #edf3ef;
  --muted: #9aa8a0;
  --line: #233029;
  --bg: #0b100d;
  --card: #141b17;
  --brand: #1cb26e;
  --brand-deep: #008751;
  --brand-soft: #12301f;
  --on-brand: #04140b;
  --pill: #edf3ef;
  --on-pill: #0b100d;
  --hero-a: #0d8f57;
  --hero-b: #00703f;
  --hero-c: #003d24;
  --ok: #4fd08f;
  --warn: #f0b45c;
  --warn-soft: #2b2212;
  --danger: #f2777c;
  --wa: #3ccf7c;
  --tile-filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
a { color: var(--brand); }
[hidden] { display: none !important; }

.topbar {
  padding: 14px 16px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Leaflet ships monospace zoom buttons and Helvetica labels; keep everything on the site font. */
.leaflet-container,
.leaflet-container * { font-family: inherit !important; }
.leaflet-tile-pane { filter: var(--tile-filter); }
.leaflet-bar a,
.leaflet-control-attribution { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution a { color: var(--brand) !important; }
.leaflet-bar { border-color: var(--line) !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.logo { width: 26px; height: 26px; color: var(--brand); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.wrap.narrow { max-width: 560px; }

.intro { padding: 12px 0 24px; }
.intro h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 800; }
.intro p { color: var(--muted); font-size: 17px; margin: 12px 0 0; max-width: 34em; }

.steps { display: grid; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step { display: grid; gap: 16px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { font-size: 20px; }
.num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--brand-soft); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-deep); color: #fff; }
.btn.big { width: 100%; min-height: 56px; font-size: 17px; }
.btn.whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.call { color: var(--brand); }
.ico { width: 20px; height: 20px; flex: none; }

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  justify-self: start;
}
.link-btn.danger { color: var(--danger); }

.paste-row { display: flex; gap: 8px; }
.paste-row input { flex: 1; min-width: 0; }

.map {
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  z-index: 0;
}
.status { margin: 0; font-size: 14px; color: var(--muted); }
.status[data-tone='ok'] { color: var(--brand); font-weight: 600; }
.status[data-tone='warn'] {
  color: var(--warn);
  background: var(--warn-soft);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 600;
}

.field { display: grid; gap: 6px; position: relative; }
.field > span { font-weight: 700; font-size: 15px; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.field small, .fine { color: var(--muted); font-size: 13px; }
.fine { margin: 0; }
.count { position: absolute; right: 10px; bottom: 8px; }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* stops iOS zooming on focus */
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
textarea { resize: vertical; min-height: 110px; padding-bottom: 28px; }
input:focus, textarea:focus, .btn:focus-visible, .link-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}
.two { display: grid; gap: 16px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }

.photo-drop {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  color: var(--muted);
  font-weight: 600;
}
.photo-drop:hover { border-color: var(--brand); color: var(--brand); }
.photo-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-drop:focus-within { border-color: var(--brand); }
.photo-empty { display: inline-flex; gap: 8px; align-items: center; }
.photo-drop.has-photo { border-style: solid; }
.photo-drop.has-photo .photo-empty { display: none; }
.photo-drop img { width: 100%; max-height: 280px; object-fit: cover; display: block; }

.error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.result { display: grid; gap: 16px; margin-top: 8px; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}
.result h2 { font-size: 24px; margin-top: -8px; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; font-weight: 600; }
.qr-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.qr-wrap img { background: #fff; border-radius: var(--radius); flex: none; width: 140px; height: 140px; }
.qr-wrap p { margin: 0 0 10px; font-size: 14px; }
@media (max-width: 420px) { .qr-wrap { flex-direction: column; text-align: center; } }

.mine { margin-top: 32px; }
.mine h2 { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.mine li div { display: grid; min-width: 0; }
.mine li a { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine li small { color: var(--muted); font-size: 12px; }

.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }
.site-foot p { margin: 4px 0; }

/* ---------- rider page ---------- */
.rider .wrap { display: grid; gap: 16px; }
.hero-card { display: grid; gap: 14px; }
.hero-card h1 { font-size: 28px; font-weight: 800; margin-top: -6px; }
.gate-photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); display: block; }
.directions {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.directions h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.directions p { margin: 6px 0 0; font-size: 18px; font-weight: 600; white-space: pre-line; }
.nav-actions { display: grid; gap: 8px; }
.nav-actions .btn-row .btn { flex: 1; padding: 10px 12px; white-space: nowrap; }
.notice { margin: 0; background: var(--warn-soft); color: var(--warn); font-weight: 600; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.map-card { padding: 8px; }
.map-card .map { height: 260px; border: 0; }
.details dl { margin: 0; display: grid; gap: 12px; }
.details dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.details dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.details dd small { width: 100%; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.copy {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 0;
  border-radius: var(--radius);
  padding: 4px 10px;
  cursor: pointer;
}
.foot { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.empty { text-align: center; display: grid; gap: 12px; margin-top: 40px; }
.empty p { color: var(--muted); margin: 0; }

/* ---------- privacy round: expiry, consent, manage ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.expiry legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s, background 0.15s;
}
.choice strong { font-size: 15px; }
.choice small { color: var(--muted); font-size: 13px; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.choice input:checked + span strong { color: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
.expiry > small { display: block; margin-top: 8px; }

.consent, .inline-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.consent {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
}
.consent input, .inline-check input {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
  accent-color: var(--brand);
}

.manage-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line);
}
.manage-box h3 { margin: 0; font-size: 16px; }
.manage-box p { margin: 0; font-size: 14px; color: var(--muted); }
.manage-box p strong { color: var(--ink); }

.manage { display: grid; gap: 16px; }
.manage #panel { display: grid; gap: 16px; }
.manage-head { display: grid; gap: 12px; }
.manage-head h1 { font-size: 26px; margin-top: -6px; }
.manage-head .fine { font-weight: 600; color: var(--ink); }
.manage h2 { font-size: 18px; }
.status-line { color: var(--muted); text-align: center; padding: 40px 0; }
.saved {
  margin: 0;
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
  padding: 10px 12px;
  border-radius: var(--radius);
}
.danger-zone { display: grid; gap: 10px; border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.danger-zone p { margin: 0; color: var(--muted); font-size: 14px; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); justify-self: start; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.center { text-align: center; }
.shared-note { font-weight: 600; color: var(--ink); }

/* privacy notice */
.prose { display: grid; gap: 4px; }
.prose h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; margin: 4px 0; }
.prose h2 { font-size: 19px; margin-top: 24px; }
.prose p, .prose li { color: var(--ink); line-height: 1.6; }
.prose ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.prose .summary { margin-top: 12px; }
.prose .summary ul { margin: 0; }
.todo { background: var(--warn-soft); color: var(--warn); font-weight: 700; padding: 2px 6px; border-radius: var(--radius); }

/* ---------- responsive ---------- */
/* Equal, thumb-sized buttons that wrap to full width on narrow phones. */
.step .btn-row .btn,
.result .btn-row .btn { flex: 1 1 160px; }

.map { height: clamp(260px, 48vh, 380px); }

/* Respect notches and the iOS home bar (viewport-fit=cover). */
.topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: max(48px, env(safe-area-inset-bottom)); }

@media (max-width: 420px) {
  .card { padding: 16px; border-radius: var(--radius); }
  .step { gap: 14px; }
  .step-head h2 { font-size: 18px; }
  .intro { padding: 4px 0 18px; }
  .intro p { font-size: 16px; }
  .link-box { flex-direction: column; }
  .hero-card h1 { font-size: 24px; }
  .directions p { font-size: 17px; }
}

/* Tablet and up: the two steps side by side. */
@media (min-width: 900px) {
  .home .topbar,
  .home .wrap { max-width: 1120px; }
  .home .steps { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 20px; }
  .home .steps .step:first-child { position: sticky; top: 16px; }
  .home .map { height: 440px; }
  .home .result,
  .home .mine { max-width: 720px; margin-left: auto; margin-right: auto; }
  .rider .topbar { max-width: 560px; }
}

/* ---------- header menu ---------- */
.topbar { position: relative; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--brand); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle path { transition: transform 0.2s, opacity 0.2s; transform-origin: 12px 12px; }
.menu-toggle.open .bar1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle.open .bar2 { opacity: 0; }
.menu-toggle.open .bar3 { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 1px;
}

.site-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: max(16px, env(safe-area-inset-right));
  z-index: 2000; /* above Leaflet panes and controls (both up to 1000) */
  width: min(260px, calc(100vw - 32px));
  display: grid;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.site-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.site-menu a:hover, .site-menu a:focus-visible { background: var(--brand-soft); outline: none; }
.site-menu a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.menu-theme { display: grid; gap: 8px; padding: 8px 6px 6px; }
.menu-theme > span { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 8px; }
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.segmented button svg { width: 16px; height: 16px; flex: none; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked='true'] { background: var(--card); color: var(--brand); outline: 1px solid var(--line); }
.segmented button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }

.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0; }
.site-foot nav a:hover { color: var(--brand); }
.tagline { text-align: center; color: var(--muted); font-size: 13px; margin: 0 16px 8px; }

/* ---------- how it works ---------- */
.how { display: grid; gap: 16px; }
.how .intro h1 { font-size: clamp(28px, 6vw, 40px); }
.section-title { font-size: 20px; margin-top: 16px; }
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.how-steps li { display: grid; gap: 8px; align-content: start; }
.how-steps h3 { margin: 4px 0 0; font-size: 17px; }
.how-steps p, .rider-steps li, .faq p, .faq li { margin: 0; color: var(--muted); line-height: 1.55; }
.how-steps strong, .rider-steps strong, .faq strong { color: var(--ink); }
.rider-steps ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; display: grid; gap: 10px; }
.faq ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.cta { text-align: center; display: grid; gap: 8px; justify-items: center; margin-top: 16px; }
.cta p { margin: 0; color: var(--muted); }
.cta .btn { max-width: 320px; }

/* ---------- legal ---------- */
.legal-index { display: grid; gap: 4px; padding: 8px; margin-top: 12px; }
.legal-index a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; }
.legal-index a:hover { background: var(--brand-soft); }
.legal-index span { color: var(--muted); font-size: 14px; }

/* ---------- postcode plate ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { margin: 0; color: var(--muted); }
.opt { font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 6px; }

.stepper {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.stepper li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.stepper .dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  flex: none;
}
.stepper li[aria-current='step'] { color: var(--ink); border-color: var(--brand); }
.stepper li[aria-current='step'] .dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stepper li.done { color: var(--brand); }
.stepper li.done .dot { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-size: 0; }
.stepper li.done .dot::after { content: '✓'; font-size: 13px; }

.plate-layout {
  display: grid;
  gap: 16px;
  grid-template-areas: 's1' 'pv' 's2' 's3' 'ac';
}
.area-s1 { grid-area: s1; }
.area-pv { grid-area: pv; }
.area-s2 { grid-area: s2; }
.area-s3 { grid-area: s3; }
.area-ac { grid-area: ac; }

.code-input {
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px;
  min-height: 64px;
  font-variant-numeric: tabular-nums;
}
.code-input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); font-weight: 700; }
.code-input[aria-invalid='true'] { border-color: var(--warn); }

.segments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 2fr 2fr 3fr 2fr 3fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.segments li {
  display: grid;
  gap: 2px;
  padding: 8px 6px;
  text-align: center;
  background: var(--bg);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.segments li:last-child { border-right: 0; }
.segments b { font-size: 17px; letter-spacing: 0.04em; color: var(--muted); }
.segments span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segments li.filled { background: var(--brand-soft); }
.segments li.filled b { color: var(--ink); }

.code-status { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.code-status:empty { display: none; }
.code-status[data-tone='ok'] { color: var(--brand); }
.code-status[data-tone='warn'] { color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: var(--radius); }

a.btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.verify { background: var(--brand-soft); border-color: transparent; }
.verify:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }

.preview-card { padding: 12px; display: grid; gap: 8px; }
.plate-frame svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.two-up { grid-template-columns: 1fr 1fr; }
.field legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 8px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  background: var(--card);
}
.swatch .chip {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw);
  border: 1px solid var(--line);
  z-index: 1;
  pointer-events: none;
}
.swatch > span:last-child { padding-left: 44px; }
.swatch input:checked ~ span:last-child { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.swatch input:focus-visible ~ span:last-child { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }

.actions-card { display: grid; gap: 10px; }
.actions-card .btn-row .btn { flex: 1 1 140px; }
.done { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--brand-soft); }
.done p { margin: 0; font-size: 14px; }
.disclaimer { margin-top: 24px; }

@media (min-width: 900px) {
  .plate-body .topbar, .plate-page { max-width: 1120px; }
  .plate-page .intro { max-width: 720px; }
  .stepper { max-width: 520px; }
  .plate-layout {
    grid-template-columns: 1fr 1.15fr;
    grid-template-areas: 's1 pv' 's2 pv' 's3 ac';
    align-items: start;
  }
  .area-pv { position: sticky; top: 16px; }
}

@media print {
  @page { margin: 10mm; }
  body * { visibility: hidden; }
  .size-pv[aria-checked='true'] .plate-frame, .size-pv[aria-checked='true'] .plate-frame * { visibility: visible; }
  .size-pv[aria-checked='true'] .plate-frame { position: fixed; inset: 0; display: grid; place-items: center; }
  .plate-frame svg { width: 100%; border-radius: 0; }
}

.plate-promo {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--brand);
  text-decoration: none;
  color: var(--ink);
}
.plate-promo span { color: var(--brand); font-size: 14px; font-weight: 600; }
.plate-promo:hover { background: var(--brand-soft); }
.details dd .copy { text-decoration: none; }
/* Only the next available action is coloured; a locked primary button goes neutral (Von Restorff). */
.btn.primary:disabled { background: var(--bg); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; }
.btn:disabled { cursor: not-allowed; }
/* Fitts's law: every tappable control is at least 44 × 44 px (links inside running text excepted). */
.menu-toggle { width: 44px; height: 44px; }
.link-btn { min-height: 44px; display: inline-flex; align-items: center; }
.copy { min-height: 44px; padding: 8px 14px; display: inline-flex; align-items: center; }
.site-foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
.brand { min-height: 44px; }
.site-foot nav a { min-width: 44px; justify-content: center; padding: 0 4px; }
.photo-drop { position: relative; }
.photo-drop input { inset: 0; width: 100%; height: 100%; cursor: pointer; }
/* Keep the download buttons in view beside a tall square preview. */
.plate-frame { display: grid; place-items: center; }
.plate-frame svg { width: auto; max-width: 100%; max-height: min(56vh, 520px); }

/* ---------- use cases ---------- */
.uses { display: grid; gap: 8px; max-width: 1120px; }
.uses .intro { max-width: 720px; }
.uses .intro h1 { font-size: clamp(28px, 6vw, 40px); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.jump a:hover { border-color: var(--brand); color: var(--brand); }
.use-group { scroll-margin-top: 16px; display: grid; gap: 12px; margin-top: 20px; }
.use-group h2 { font-size: 22px; }
.use-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.use { display: grid; gap: 10px; align-content: start; }
.use h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.use p { margin: 0; color: var(--muted); line-height: 1.55; }
.use .btn { justify-self: start; margin-top: 4px; }
.tool {
  justify-self: start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}
.tool.plate { background: var(--warn-soft); color: var(--warn); }
.compare { margin-top: 28px; display: grid; gap: 16px; }
.compare h2 { font-size: 22px; }
.compare-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.compare-grid > div { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-grid h3 { margin: 0; font-size: 18px; }
.compare-grid ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.compare p { margin: 0; }

.popular { display: grid; gap: 12px; margin-top: 8px; margin-bottom: 24px; }
.popular h2 { font-size: 18px; color: var(--muted); }
.popular-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mini { display: grid; gap: 4px; padding: 16px; text-decoration: none; color: var(--ink); }
a.mini:hover { border-color: var(--brand); }
.mini strong { font-size: 16px; }
.mini span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.see-all { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.plate-uses { margin-top: 24px; }
@media (min-width: 900px) { .home .popular { max-width: 1120px; } }

button, select { font-family: inherit; }

/* =====================================================================
   Soft app direction (after Nixtio's booking UI), in Nigerian green:
   rounded white cards on a tinted canvas, pill buttons and chips,
   round icon buttons, black pills for selection, one green gradient hero.
   ===================================================================== */
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; letter-spacing: -0.03em; }
h1 { font-weight: 300; }
h2 { font-weight: 500; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
.soft { color: var(--muted); font-weight: 300; }
strong, b { font-weight: 700; }

/* Header: logo in a green circle, round icon buttons on the right */
.topbar { padding-top: 14px; padding-bottom: 14px; }
.brand { gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; min-height: 44px; }
.logo { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.logo rect { fill: var(--brand); }
.logo circle { fill: var(--on-brand); }
.icon-btn, .menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover, .menu-toggle:hover { border-color: var(--ink); }
.icon-btn svg, .menu-toggle svg { width: 18px; height: 18px; }
.icon-btn:focus-visible, .menu-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }

/* Menu: a floating rounded card */
.site-menu {
  top: calc(100% - 2px);
  right: max(16px, env(safe-area-inset-right));
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}
.site-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.site-menu a:hover, .site-menu a:focus-visible { background: var(--bg); outline: none; }
.site-menu a[aria-current='page'] { background: var(--pill); color: var(--on-pill); }
.menu-group-label { margin: 12px 14px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.menu-theme { padding: 12px 4px 4px; gap: 8px; }
.menu-theme > span { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 10px; }
.segmented { border-radius: 999px; padding: 4px; background: var(--bg); border: 0; }
.segmented button { border-radius: 999px; font-size: 14px; font-weight: 600; min-height: 40px; }
.segmented button[aria-checked='true'] { background: var(--pill); color: var(--on-pill); outline: 0; }

/* Hero: the green gradient card */
.intro {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 30px;
  margin: 4px 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--hero-a) 0%, var(--hero-b) 48%, var(--hero-c) 100%);
  color: #fff;
  text-align: left;
}
.intro::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 18%), transparent 70%);
  pointer-events: none;
}
.intro h1, .home .intro h1, .how .intro h1, .uses .intro h1 { font-size: clamp(36px, 10vw, 58px); font-weight: 300; line-height: 1.02; color: #fff; margin: 6px 0 0; }
.intro h1 .soft { color: rgb(255 255 255 / 62%); }
.intro p { color: rgb(255 255 255 / 86%); font-size: 16px; margin: 14px 0 0; max-width: 34em; }
.intro .eyebrow { color: rgb(255 255 255 / 80%); }
.intro strong { color: #fff; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.prose h1 { font-size: clamp(32px, 8vw, 46px); font-weight: 300; }

/* Cards and fields */
.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
input, textarea { border-radius: var(--radius-md); background: var(--bg); border-color: transparent; }
input:focus, textarea:focus { background: var(--card); border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); outline-offset: 0; }
.map, .gate-photo, .photo-drop, .plate-frame svg { border-radius: 22px; }
.map-card .map { border-radius: 22px; }
.directions, .notice, .error, .saved, .done, .qr-wrap, .manage-box, .plate-promo, .consent, .status[data-tone='warn'], .code-status[data-tone='warn'] { border-radius: 20px; }
.step-head h2 { font-size: 22px; }
.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pill);
  color: var(--on-pill);
  font-size: 15px;
  font-weight: 700;
}

/* Buttons: pills; green for the main action, white outline for the rest */
.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}
.btn:hover { background: var(--card); border-color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.primary:disabled { background: var(--bg); border-color: var(--line); color: var(--muted); }
.btn.big { min-height: 56px; font-size: 16px; }
.btn.whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; }
.copy { border-radius: 999px; background: var(--bg); border: 0; color: var(--ink); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* Choices: rounded tiles; the selected one turns black, like the shot's pills */
.choice span, .swatch > span:last-child { border-radius: var(--radius-md); border-color: var(--line); background: var(--card); }
.choice input:checked + span, .swatch input:checked ~ span:last-child { background: var(--pill); border-color: var(--pill); color: var(--on-pill); }
.choice input:checked + span strong, .choice input:checked + span small { color: var(--on-pill); }
.choice input:checked + span small { opacity: 0.75; }

/* Stepper: numbers in circles, current step as a black pill */
.stepper li { border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; justify-content: flex-start; padding: 6px 12px 6px 6px; }
.stepper .dot { border-radius: 50%; width: 28px; height: 28px; font-size: 13px; }
.stepper li[aria-current='step'] { background: var(--pill); color: var(--on-pill); border-color: var(--pill); }
.stepper li[aria-current='step'] .dot { background: var(--on-pill); color: var(--pill); border-color: var(--on-pill); }
.stepper li.done { color: var(--ok); border-color: var(--line); }
.stepper li.done .dot { background: var(--brand-soft); color: var(--ok); border-color: transparent; }

/* Postcode segments: a row of rounded cells */
.segments { border-radius: var(--radius-md); border: 0; gap: 4px; background: transparent; }
.segments li { border-radius: 14px; border: 0; background: var(--bg); }
.segments li.filled { background: var(--pill); }
.segments li.filled b, .segments li.filled span { color: var(--on-pill); }
.segments b { font-weight: 800; }
.code-input { font-weight: 800; letter-spacing: 0.04em; background: var(--bg); }

/* Tags, chips and tiles */
.tool { border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); border: 0; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 5px 12px; }
.tool.plate { background: var(--pill); color: var(--on-pill); }
:root[data-theme='dark'] .tool:not(.plate) { color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .tool:not(.plate) { color: var(--ok); } }
.jump a { border-radius: 999px; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; background: var(--card); }
.jump a:hover { background: var(--pill); color: var(--on-pill); border-color: var(--pill); }
.mini, a.mini { border-radius: 24px; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
a.mini:hover { border-color: var(--brand); }
.mini strong { font-size: 18px; font-weight: 700; }
.see-all { font-size: 15px; font-weight: 700; color: var(--brand); text-transform: none; letter-spacing: 0; }
.directions { background: var(--brand-soft); }
.directions h2 { color: var(--brand-deep); }
.directions p { font-size: 19px; font-weight: 600; }

/* Footer: one quiet line; all links live in the menu */
.site-foot { font-size: 13px; color: var(--muted); padding: 20px 16px 32px; text-transform: none; letter-spacing: 0; border: 0; margin-top: 16px; }
.site-foot p { margin: 0; }
.tagline { font-size: 14px; }
.status[data-tone='ok'], .code-status[data-tone='ok'] { color: var(--ok); }
.mine li a:not(.link-btn) { display: flex; align-items: center; min-height: 44px; }

/* ---------- rider page: data-light map and reporting ---------- */
.map-lazy { display: grid; place-items: center; background: var(--bg); }
.map-lazy .btn small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.report summary { min-height: 44px; display: flex; align-items: center; padding: 0 4px; cursor: pointer; font-weight: 700; color: var(--muted); list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { color: var(--ink); }
.report form { display: grid; gap: 12px; margin-top: 8px; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.report .btn { justify-self: start; }

.segmented a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.segmented a:hover { background: var(--card); }
.menu-note { display: block; padding: 0 10px; font-size: 12px; color: var(--muted); }

.print-req { display: grid; gap: 12px; margin-top: 24px; }
.print-req form { display: grid; gap: 14px; }
.print-req .btn { justify-self: start; }
.print-req .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- seller mode ---------- */
.seller { display: flex; flex-direction: column; gap: 16px; }
.seller .intro { order: 0; }
.seller.needs-shop .step:last-of-type { order: 1; }
.seller .step { order: 2; }
.quote { display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: var(--brand-soft); }
.quote .eyebrow { margin: 0; color: var(--brand-deep); }
.fee { margin: 0; font-size: clamp(40px, 12vw, 56px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.quote .muted { margin: 0; }
.zones { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.zone { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; align-items: center; }
.zone label { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 52px; border-radius: var(--radius-md); background: var(--bg); font-weight: 600; color: var(--muted); }
.zone input { border: 0; background: transparent; padding: 8px 0; min-width: 0; font-weight: 700; color: var(--ink); outline: none; }
.zone label:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.zone .icon-btn { font-size: 20px; line-height: 1; }
:root[data-theme='dark'] .quote .eyebrow { color: var(--ok); }

/* ---------- admin dashboard ---------- */
.admin { display: grid; gap: 16px; }
.admin h1 { font-size: 36px; margin: 8px 0; }
.admin h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.admin .card { display: grid; gap: 12px; }
.count-pill { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--pill); color: var(--on-pill); }
.table-wrap { overflow-x: auto; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.admin td:not(:first-child), .admin th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; width: 80px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-list li { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--bg); }
.admin-list li > div:first-child { display: grid; gap: 2px; }
.admin-list small { color: var(--muted); }
.admin-list p { margin: 4px 0 0; }
.empty-row { color: var(--muted); }
.zone label span { white-space: nowrap; font-size: 14px; }
.zone input { flex: 1; width: 100%; }
.zone label { gap: 6px; padding: 0 10px; }
.choice small, .choice strong { overflow-wrap: anywhere; }
.zone input { min-height: 44px; }

/* ---------- seller zones: heading row + two labelled fields ---------- */
.zone { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--bg); grid-template-columns: none; }
.zone-head { display: flex; align-items: center; gap: 8px; }
.zone-head strong { font-size: 15px; }
.zone-head span { color: var(--muted); font-size: 14px; font-weight: 600; flex: 1; }
.zone-head .icon-btn { width: 44px; height: 44px; font-size: 20px; }
.zone-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zone .zf {
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  min-height: 0;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}
.zone .zf span { font-size: 12px; font-weight: 700; white-space: nowrap; }
.zone .zf input { padding: 0; min-height: 44px; font-size: 18px; font-weight: 700; color: var(--ink); background: transparent; border: 0; outline: none; width: 100%; }
.zone .zf:focus-within { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); }

/* ---------- printed-plate materials: rows on phones, three across on wider screens ---------- */
.print-req .qty { max-width: 200px; }
.print-req .materials { grid-template-columns: 1fr; }
.print-req .materials .choice span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 52px; align-items: center; }
@media (min-width: 560px) {
  .print-req .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .print-req .materials .choice span { display: grid; gap: 2px; justify-content: stretch; }
}

/* =====================================================================
   One corner radius for every box and button, so nothing looks rounder
   than its neighbour. Circles stay circles (icon buttons, step numbers);
   controls nested inside a padded box use the same radius minus the gap.
   ===================================================================== */
:root { --radius: 18px; --radius-md: 18px; --radius-inner: 14px; }
.card, .intro, .site-menu, .quote, .directions, .notice, .error, .saved, .done, .qr-wrap, .manage-box,
.plate-promo, .consent, .photo-drop, .map, .map-card .map, .gate-photo, .plate-frame svg, .mini, a.mini,
.admin-list li, .zone, .zone .zf, .segments, .segments li, .stepper li, .status[data-tone='warn'],
.code-status[data-tone='warn'], .choice span, .swatch > span:last-child, .tool, .jump a, .count-pill,
.btn, .copy, input, textarea, .segmented, .verify, .print-req .materials .choice span {
  border-radius: var(--radius) !important;
}
/* Inside a padded container (menu rows, segmented options) the corner follows the container. */
.site-menu a, .segmented button, .segmented a { border-radius: var(--radius-inner) !important; }
/* Genuine circles */
.icon-btn, .menu-toggle, .num, .stepper .dot, .logo { border-radius: 50% !important; }

/* ---------- taller buttons (easier to hit, Fitts's law) ---------- */
.btn { min-height: 52px; padding-top: 12px; padding-bottom: 12px; }
.btn.big { min-height: 60px; font-size: 17px; }
.segmented button, .segmented a { min-height: 48px; }
.icon-btn, .menu-toggle { width: 48px; height: 48px; }
.copy, .link-btn { min-height: 48px; }

/* ---------- phones: stack anything that would otherwise be squeezed ---------- */
@media (max-width: 559px) {
  /* Option tiles (link expiry, plate shape, materials) become full-width rows:
     title on the left, short description on the right. */
  .choices, .two-up, .print-req .materials, .expiry .choices { grid-template-columns: 1fr !important; }
  .choices .choice span {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
  }
  .choices .choice small { text-align: right; }
  /* Rows of buttons stack full width instead of wrapping unevenly. */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; flex: none; }
  .nav-actions .btn-row { flex-direction: row; flex-wrap: wrap; }
  .nav-actions .btn-row .btn { width: auto; flex: 1 1 30%; }
  .link-box { flex-direction: column; }
  .link-box .btn { width: 100%; }
  .paste-row { flex-direction: column; }
  .paste-row .btn { width: 100%; }
  .qr-wrap { flex-direction: column; text-align: center; }
  .stepper li { font-size: 12px; padding-right: 8px; }
  .stepper li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- select (translate dropdown, settings) ---------- */
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner) !important;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366716b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
.menu-theme > label { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 10px; }

/* ---------- popular uses + settings ---------- */
.uses .section-title { margin-top: 12px; }
.mini .go { font-style: normal; font-weight: 700; color: var(--brand); margin-top: 6px; }
.settings { display: grid; gap: 16px; }
.settings h1 { font-size: 36px; margin: 8px 0 0; }
.settings .card { display: grid; gap: 12px; }
.settings h2 { font-size: 20px; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--radius); background: var(--bg); }
.mine-list li div { display: grid; min-width: 0; }
.mine-list li div a { font-weight: 700; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 28px; display: flex; align-items: center; }
.mine-list li small { color: var(--muted); }
.mine-list .btn { flex: none; min-height: 48px; }
.settings .btn.primary, .settings .btn.danger { justify-self: start; }

/* ---------- plate flow: one step per page ---------- */
.plate-flow { display: grid; gap: 16px; }
.plate-flow .stepper { margin: 0; }
.page-eyebrow { margin: 8px 0 0; }
.page-title { font-size: clamp(30px, 8vw, 44px); font-weight: 300; margin: 0; }
.plate-flow .step { display: grid; gap: 14px; }
.stepper .step-inner { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; width: 100%; min-height: 32px; }
.stepper a.step-inner:hover span:last-child { text-decoration: underline; }
.code-display { margin: 8px 0 0; text-align: center; font-size: clamp(32px, 10vw, 48px); font-weight: 800; letter-spacing: 0.04em; }
a.btn[aria-disabled='true'] { opacity: 1; background: var(--bg); border-color: var(--line); color: var(--muted); pointer-events: none; }
.design-layout { display: grid; gap: 16px; grid-template-areas: 'pv' 's3' 'ac'; }
@media (min-width: 900px) {
  .plate-design { max-width: 1120px; }
  .design-layout { grid-template-columns: 1.2fr 1fr; grid-template-areas: 'pv s3' 'pv ac'; align-items: start; }
  .design-layout .area-pv { position: sticky; top: 16px; }
}

/* =====================================================================
   Hero, fixed for both ends:
   - phones: compact (heading ≤ ~3 lines), so the actual task starts on screen one
   - desktop: spans the page's content width so it lines up with everything below
   ===================================================================== */
:root { --hero-a: #009459; }            /* darker start: the lead-in text stays readable */
.intro {
  width: 100%;
  max-width: none !important;
  margin: 8px 0 20px !important;
  padding: 22px 20px 24px;
}
.intro .eyebrow { font-size: 12px; margin: 0; }
.intro h1, .home .intro h1, .how .intro h1, .uses .intro h1 {
  font-size: clamp(28px, 7.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
  text-wrap: balance;
  max-width: 18ch;
}
.intro h1 .soft { color: rgb(255 255 255 / 78%); }
.intro p { font-size: 15px; line-height: 1.55; margin: 12px 0 0; max-width: 38em; text-wrap: pretty; }
.intro::after { width: 160px; height: 160px; right: -50px; top: -50px; }

@media (min-width: 720px) {
  .intro { padding: 40px 44px 44px; margin: 16px 0 28px !important; }
  .intro h1, .home .intro h1, .how .intro h1, .uses .intro h1 { font-size: clamp(40px, 4.6vw, 56px); max-width: 16ch; }
  .intro p { font-size: 17px; }
  .intro::after { width: 280px; height: 280px; right: -80px; top: -80px; }
}

/* The header always matches the width of the page's own content column, so its edges
   line up with the content below (it used to be 1120px on every page). */
.topbar { max-width: 720px !important; margin: 0 auto; }
body:has(main.wrap.narrow) .topbar { max-width: 560px !important; }
body:has(main.uses) .topbar { max-width: 1120px !important; }
@media (min-width: 900px) {
  body.home .topbar, body:has(main.plate-design) .topbar { max-width: 1120px !important; }
}
/* Stacked button rows on phones: buttons keep their natural height (an older rule gave
   them a 160px flex-basis, which becomes height once the row turns into a column). */
@media (max-width: 559px) {
  .btn-row > .btn, .step .btn-row .btn, .result .btn-row .btn, .actions-card .btn-row .btn { flex: 0 0 auto !important; }
}
/* The current step keeps its black pill even once it's complete (✓ in the dot). */
.stepper li[aria-current='step'].done { background: var(--pill); color: var(--on-pill); border-color: var(--pill); }
.stepper li[aria-current='step'].done .dot { background: var(--on-pill); color: var(--pill); border-color: var(--on-pill); }
/* The whole step pill is the tap target for going back. */
.stepper li { padding: 0 !important; }
.stepper .step-inner { min-height: 48px; padding: 6px 10px 6px 6px; border-radius: var(--radius) !important; }

/* =====================================================================
   Hero, redesigned: copy + an animated illustration of what the copy says.
   Phones: a compact illustration strip above the text. Desktop: side by side.
   ===================================================================== */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
  padding: 16px 20px 24px;
}
.hero-copy { min-width: 0; }
.hero-art { order: -1; height: 128px; display: flex; justify-content: center; margin: 0 -4px; }
.hero-art svg { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.intro.intro-compact h1 { font-size: clamp(26px, 7vw, 32px); }
/* Side by side only when the hero itself is wide enough (container query), so pages with a
   narrow column keep the illustration above the text instead of squeezing the heading. */
main.wrap { container-type: inline-size; }
@media (min-width: 720px) {
  .intro { padding: 32px 36px; gap: 12px; }
  .hero-art { height: 170px; }
  .intro h1, .home .intro h1, .how .intro h1, .uses .intro h1 { max-width: 20ch; }
}
@container (min-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding: 40px 48px; }
  .hero-art { order: 0; height: 240px; justify-content: flex-end; }
  .intro.intro-compact .hero-art { height: 190px; }
}
.prose .intro h1, .settings .intro h1 { color: #fff; }

/* ---------- hero art animations ---------- */
.hero-art svg * { transform-box: fill-box; transform-origin: center; }
.a-march { animation: a-march 1.2s linear infinite; }
.a-bounce { animation: a-bounce 2.4s ease-out infinite; }
.a-bounce-sm { animation: a-float-y 1.4s ease-in-out infinite alternate; --float: -6px; }
.a-shadow { animation: a-shadow 2.4s ease-out infinite; }
.a-drive { animation: a-drive 5s ease-in-out infinite; }
.a-scan { animation: a-scan 1.8s ease-in-out infinite alternate; }
.a-float { animation: a-float-y 3s ease-in-out infinite alternate; --float: -7px; }
.a-pop { animation: a-pop 3.2s ease-out infinite; }
.a-orbit { animation: a-orbit 6s ease-in-out infinite; }
.a-print { animation: a-print 4s ease-in-out infinite; }
.a-blink { animation: a-blink 1s steps(2, jump-none) infinite; }
.a-ring { animation: a-ring 2.6s ease-out infinite; }
.a-travel { animation: a-travel 3.6s ease-in-out infinite; }
.a-flash { animation: a-flash 3.6s ease-out infinite; opacity: 0; }
.a-shackle { animation: a-shackle 3.2s ease-in-out infinite; }
.a-write { stroke-dasharray: 90; animation: a-write 4.8s ease-in-out infinite; }
.a-tilt { transform-origin: 160px 62px !important; transform-box: view-box !important; animation: a-tilt 4s ease-in-out infinite alternate; }
.a-toggle { animation: a-toggle 2.8s ease-in-out infinite alternate; --slide: -10px; }
.a-toggle-r { animation: a-toggle 2.8s ease-in-out infinite alternate; --slide: 10px; }
.a-spin { animation: a-spin 9s linear infinite; }
.a-wobble { transform-origin: 50% 100% !important; animation: a-wobble 2.2s ease-in-out infinite alternate; }
.a-delay1 { animation-delay: 0.4s; }
.a-delay2 { animation-delay: 0.9s; }
.a-delay3 { animation-delay: 1.3s; }

@keyframes a-march { to { stroke-dashoffset: -24; } }
@keyframes a-bounce { 0% { translate: 0 -22px; opacity: 0; } 25% { translate: 0 0; opacity: 1; } 35% { translate: 0 -7px; } 45%, 100% { translate: 0 0; } }
@keyframes a-shadow { 0% { scale: 0.4; opacity: 0; } 25%, 100% { scale: 1; opacity: 1; } }
@keyframes a-drive { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 70% { translate: 168px -26px; opacity: 1; } 85%, 100% { translate: 176px -27px; opacity: 0; } }
@keyframes a-scan { from { translate: 0 0; } to { translate: 0 62px; } }
@keyframes a-float-y { from { translate: 0 0; } to { translate: 0 var(--float); } }
@keyframes a-pop { 0%, 30% { scale: 0; } 40% { scale: 1.15; } 46%, 88% { scale: 1; opacity: 1; } 100% { scale: 1; opacity: 0; } }
@keyframes a-orbit { 0%, 100% { translate: -18px 10px; } 40% { translate: 8px -6px; } 60% { translate: 8px -6px; } }
@keyframes a-print { 0% { translate: 0 70px; } 45%, 85% { translate: 0 0; } 100% { translate: 0 0; opacity: 0; } }
@keyframes a-blink { 50% { opacity: 0.25; } }
@keyframes a-ring { from { scale: 1; opacity: 0.8; } to { scale: 2.3; opacity: 0; } }
@keyframes a-travel { 0% { translate: 0 0; } 45%, 50% { translate: 100px 0; } 95%, 100% { translate: 200px 0; } }
@keyframes a-flash { 0%, 44% { opacity: 0; } 48% { opacity: 0.85; } 60%, 100% { opacity: 0; } }
@keyframes a-shackle { 0%, 20% { translate: 0 -8px; } 40%, 100% { translate: 0 0; } }
@keyframes a-write { 0% { stroke-dashoffset: 90; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0.4; } }
@keyframes a-tilt { from { rotate: -6deg; } to { rotate: 6deg; } }
@keyframes a-toggle { 0%, 30% { translate: 0 0; } 70%, 100% { translate: var(--slide) 0; } }
@keyframes a-spin { to { rotate: 360deg; } }
@keyframes a-wobble { from { rotate: -8deg; } to { rotate: 8deg; } }

/* People who ask for less motion get a still illustration. */
@media (prefers-reduced-motion: reduce) {
  .hero-art svg * { animation: none !important; opacity: 1 !important; }
}

@media (prefers-reduced-motion: reduce) { .a-flash { opacity: 0 !important; } }
.prose .intro p, .settings .intro p { color: rgb(255 255 255 / 88%); }
.prose .intro .eyebrow, .settings .intro .eyebrow { color: rgb(255 255 255 / 80%); }
.prose .intro h1 .soft, .settings .intro h1 .soft { color: rgb(255 255 255 / 78%); }

/* ---------- postcode parts: wrapping pills instead of five squeezed columns ---------- */
.segments {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  grid-template-columns: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
}
.segments li {
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px !important;
  min-width: 0;
  background: var(--bg) !important;
  border: 1px solid var(--line) !important;
  text-align: left;
}
.segments li b { font-size: 18px; letter-spacing: 0.04em; color: var(--muted); }
.segments li span { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); white-space: nowrap; overflow: visible; }
.segments li.filled { background: var(--pill) !important; border-color: var(--pill) !important; }
.segments li.filled b, .segments li.filled span { color: var(--on-pill) !important; }
.segments li.filled span { opacity: 0.75; }

/* Status under the postcode field, centred */
.plate-flow .code-status { text-align: center; }
.plate-flow .code-status[data-tone='warn'] { text-align: center; }

/* ---------- plate categories: colour dot = band colour on the plate ---------- */
.cat-select { position: relative; display: block; }
.cat-select .select { padding-left: 46px; }
.cat-dot {
  position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 16px; height: 16px;
  border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px var(--card);
}
.locate-row { display: grid; gap: 8px; justify-items: center; text-align: center; }
.locate-row .btn { width: 100%; }

/* The postcode reads centred in its field, like the code on the plate. */
.code-input { text-align: center; }
.code-input::placeholder { text-align: center; }

/* ---------- sponsor ads ---------- */
.ad-wrap { margin-top: 8px; margin-bottom: 8px; }
.ad-slot:empty { display: none; }
.sponsor {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius) !important;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.sponsor:hover { border-color: var(--brand); }
.sponsor img, .sponsor-img-empty { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; background: var(--bg); }
.sponsor-body { display: grid; gap: 3px; min-width: 0; }
.sponsor-body strong { font-size: 16px; line-height: 1.3; }
.sponsor-body span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sponsor-body em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--brand); }
.sponsor-tag { position: absolute; top: -9px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.sponsor-house { border-style: dashed; }
.done .ad-slot { margin-top: 8px; }

.a-wave { animation: a-wave 2.4s ease-out infinite; }
@keyframes a-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- advertise page ---------- */
.advertise .use .tool { background: var(--pill); color: var(--on-pill); }
.ad-book { display: grid; gap: 16px; margin-top: 12px; }
.ad-book .step { display: grid; gap: 14px; }
.ad-book h3 { font-size: 20px; margin: 0; }
.ad-total { margin: 0; font-weight: 800; font-size: 17px; text-align: center; }
.ad-editor { display: grid; gap: 16px; }
.ad-fields { display: grid; gap: 14px; }
.ad-preview { display: grid; gap: 8px; align-content: start; }
.ad-preview .fine { margin: 0; }
.count-inline { justify-self: end; color: var(--muted); }
.photo-drop.has-photo { border-style: solid; border-color: var(--brand); }
.next-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.next-steps strong { color: var(--ink); }
.ad-done { display: grid; gap: 8px; }
@media (min-width: 820px) {
  .ad-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
  .ad-preview { position: sticky; top: 16px; }
}

/* ---------- both plate sizes side by side ---------- */
.size-previews { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: end; }
.size-pv {
  display: grid; gap: 8px; padding: 10px; margin: 0; background: none; color: inherit; font: inherit;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; text-align: center;
}
.size-pv[aria-checked='true'] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.size-pv:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.size-pv .plate-frame svg { max-height: none; box-shadow: 0 1px 6px rgb(0 0 0 / 0.12); }
.size-label { display: grid; gap: 0; }
.size-label small { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .size-previews { grid-template-columns: 1fr; }
  .size-pv[data-shape='square'] .plate-frame svg { max-width: 62%; margin-inline: auto; }
}
#dl-both { width: 100%; }
