/*
  Umbofleet site styles.
  Palette: plate yellow is the one loud colour (the hero number plate and the
  Pro price). Everything else is tarmac ink on white, with pass/defect colours
  used only where a check result is shown.
*/

:root {
  --plate: #FFD200;
  --plate-edge: #E0B600;
  --ink: #17212B;
  --slate: #4A5866;
  --kerb: #F1F3EF;
  --rule: #D9DED8;
  --paper: #FFFFFF;
  --pass: #1E7B4F;
  --defect: #B8322A;
  --focus: #1F5FBF;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.625rem, 1.6rem + 4.2vw, 4.5rem);

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3.5rem, 2rem + 6vw, 7rem);

  --measure: 66ch;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 100%; font-variation-settings: "wdth" 100; line-height: 1.2; }

p { margin: 0 0 var(--space-s); max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--slate); }
.small { font-size: var(--step--1); color: var(--slate); }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-s); padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800;
  font-variation-settings: "wdth" 112; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark {
  width: 2.1rem; height: 1.35rem; border-radius: 4px;
  background: var(--plate); border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 0.85rem; font-variation-settings: "wdth" 80; line-height: 1;
}
.site-nav { display: flex; gap: var(--space-m); align-items: center; font-size: var(--step--1); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .site-nav .nav-optional { display: none; } }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  border: 2px solid var(--ink); border-radius: 6px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
}
.button:hover { background: #26323E; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--kerb); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }

/* ---------- Hero ---------- */

.hero { padding-block: var(--space-xl) calc(var(--space-xl) * 0.8); }
.hero .wrap {
  display: grid; gap: var(--space-l);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 56rem) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-bottom: var(--space-l); }
.hero .small { margin-top: var(--space-s); }

/* The number plate lookup — the one loud moment on the page. */
.lookup-demo { margin: 0; }
.plate {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 520 / 111; width: 100%;
  background: var(--plate);
  border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: inset 0 0 0 5px var(--plate), inset 0 0 0 6px rgba(23, 33, 43, 0.35);
  font-family: var(--font-display); font-weight: 700;
  font-variation-settings: "wdth" 78; font-stretch: 78%;
  font-size: clamp(2.6rem, 1.4rem + 6vw, 5.4rem);
  letter-spacing: 0.04em; line-height: 1;
  color: #0D0D0D;
}
.plate .caret {
  display: inline-block; width: 0.07em; height: 0.85em; margin-left: 0.06em;
  background: currentColor; animation: blink 1s steps(1) infinite;
}
.plate.typed .caret { visibility: hidden; animation: none; }
@keyframes blink { 50% { opacity: 0; } }

.readout { margin: var(--space-m) 0 0; display: grid; grid-template-columns: auto 1fr; border-top: 2px solid var(--ink); }
.readout dt, .readout dd {
  margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; min-height: 3rem;
  opacity: 1; transition: opacity 280ms ease;
}
.readout dt { padding-right: var(--space-m); color: var(--slate); font-size: var(--step--1); }
.readout dd { font-weight: 700; justify-content: flex-end; text-align: right; }
.readout .ok { color: var(--pass); }
.js .readout:not(.shown) dt, .js .readout:not(.shown) dd { opacity: 0; }
.lookup-demo figcaption { margin-top: var(--space-xs); }
@media (prefers-reduced-motion: reduce) {
  .plate .caret { display: none; }
  .readout dt, .readout dd { transition: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-xl); }
.section.tint { background: var(--kerb); }
.section-head { margin-bottom: var(--space-l); }

/* How a check works: a real sequence, so it's numbered. */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--space-s); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: var(--space-xs);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2);
  font-variation-settings: "wdth" 112; line-height: 1;
}
.steps p { font-size: var(--step--1); color: var(--slate); }

/* Checksheet excerpt */
.sheet {
  margin-top: var(--space-l); max-width: 34rem;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--paper);
}
.sheet-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-s);
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--rule); font-size: var(--step--1);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row b { font-weight: 700; }
.result-pass { color: var(--pass); font-weight: 700; }
.result-defect { color: var(--defect); font-weight: 700; }
.sheet-note { grid-column: 1 / -1; color: var(--slate); margin-top: -0.25rem; }

/* Price comparison */
.compare { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 52rem) { .compare { grid-template-columns: 1fr; } }
.slider-label { display: block; font-weight: 700; margin-bottom: var(--space-xs); }
.slider-value { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); font-variation-settings: "wdth" 112; line-height: 1; display: block; margin-bottom: var(--space-s); }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 2rem; }
.costs { margin: 0; display: grid; gap: var(--space-s); }
.cost { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-s); padding-bottom: var(--space-s); border-bottom: 1px solid var(--rule); }
.cost dt { color: var(--slate); }
.cost dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); font-variation-settings: "wdth" 112; white-space: nowrap; }
.cost.ours dd { background: var(--plate); padding: 0 0.3rem; border-radius: 3px; }
.saving { font-weight: 700; }

/* Free vs Pro */
.tiers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-l); }
@media (max-width: 48rem) { .tiers { grid-template-columns: 1fr; } }
.tier { border-top: 2px solid var(--ink); padding-top: var(--space-m); }
.tier.pro { border-top-width: 6px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); font-variation-settings: "wdth" 112; line-height: 1; margin-bottom: var(--space-xs); }
.price small { font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: var(--space-m) 0; }
.ticks li { padding: 0.45rem 0 0.45rem 1.9rem; position: relative; border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.8rem;
  width: 0.95rem; height: 0.5rem;
  border-left: 3px solid var(--pass); border-bottom: 3px solid var(--pass);
  transform: rotate(-45deg);
}
.form-error { color: var(--defect); font-weight: 700; min-height: 1.5em; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--slate); }

/* ---------- Forms (account / success) ---------- */

.panel > * { max-width: 40rem; }
.panel h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.field { display: grid; gap: 0.35rem; margin-bottom: var(--space-m); }
.field label { font-weight: 700; }
.field input {
  font: inherit; padding: 0.7rem 0.8rem; min-height: 3rem;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink);
}
.field .hint { font-size: var(--step--1); color: var(--slate); }
.key-box {
  display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center;
  padding: var(--space-m); border: 3px solid var(--ink); border-radius: 10px; background: var(--plate);
}
.key-box code {
  font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 80;
  font-size: clamp(1.15rem, 0.8rem + 1.8vw, 1.9rem); letter-spacing: 0.04em; word-break: break-all;
}
.status-line { font-weight: 700; }
.status-line.error { color: var(--defect); }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-l); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding-block: var(--space-l); font-size: var(--step--1); color: var(--slate); }
.site-footer .wrap { display: grid; gap: var(--space-s); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-m); }

.brand-mark svg { width: 76%; height: auto; display: block; }
.brand-mark { display: inline-grid; place-items: center; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 7px; }
.brand-mark svg { width: 78%; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); }
.features li { border-top: 2px solid var(--ink); padding-top: var(--space-s); }
.features h3 { margin-bottom: 0.4em; }
.features p { font-size: var(--step--1); color: var(--slate); margin: 0; }
@media (max-width: 60rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .features { grid-template-columns: 1fr; } }
/* Pricing: the same gap between each button and its small print. The payment error line only takes space when it has a message. */
.tier > .small { margin-top: var(--space-s); }
.tier .form-error:empty { display: none; }

/* Cookie banner (added by analytics.js) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--paper); color: var(--ink);
  border-top: 4px solid var(--plate);
  box-shadow: 0 -2px 12px rgba(23, 33, 43, 0.15);
  padding: var(--space-s) 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
.cookie-banner p { flex: 1 1 28rem; margin: 0; font-size: var(--step--1); max-width: var(--measure); }
.cookie-banner a { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.cookie-actions .button { min-height: 2.75rem; padding: 0.5rem 1.1rem; }
.link-button {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}
@media (max-width: 30rem) {
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1 1 auto; }
}

/* ---------- Landing pages (free fleet management software) ---------- */
.lp-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: var(--space-m); }
.lp-card h2 { font-size: var(--step-1); margin: 0 0 var(--space-xs); }
.lp-card h2 + .ticks, .lp-card h2 + .crosses { margin-top: var(--space-xs); }
.lp-card .crosses { margin-bottom: 0; }
.crosses { list-style: none; padding: 0; margin: var(--space-m) 0; }
.crosses li { padding: 0.45rem 0 0.45rem 1.9rem; position: relative; border-bottom: 1px solid var(--rule); color: var(--slate); }
.crosses li:last-child { border-bottom: 0; }
.crosses li::before, .crosses li::after {
  content: ""; position: absolute; left: 0.2rem; top: 1.05rem;
  width: 1rem; height: 3px; background: var(--defect); transform: rotate(45deg);
}
.crosses li::after { transform: rotate(-45deg); }
.lp-two { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 52rem) { .lp-two { grid-template-columns: 1fr; } }
.lp-two h3 { margin-bottom: 0.4em; }
.lp-links { list-style: none; padding: 0; margin: var(--space-s) 0 0; display: grid; gap: var(--space-xs); }
.lp-links a { font-weight: 700; }
.lp-shots { display: grid; gap: var(--space-m); grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; margin: 0; }
.lp-shots figure { margin: 0; }
.lp-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 6px 24px rgba(23, 33, 43, 0.12); background: var(--paper); }
.lp-shots .phone img { border-radius: 18px; border: 6px solid var(--ink); }
.lp-shots figcaption { font-size: var(--step--1); color: var(--slate); margin-top: var(--space-xs); }
@media (max-width: 44rem) { .lp-shots { grid-template-columns: 1fr; } .lp-shots .phone { max-width: 17rem; } }

/* "Take it for a test drive": a card with a QR code to scan or click (computers), a button (phones) */
.demo-qr { position: relative; display: flex; align-items: center; gap: 1.1rem; max-width: 31rem; margin-top: var(--space-m, 1.5rem); padding: .8rem 3.2rem .8rem .8rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.demo-qr:hover { border-color: var(--ink); box-shadow: 0 12px 26px -16px rgba(23, 33, 43, .5); }
.demo-qr:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.demo-qr-code { flex: none; width: 132px; height: 132px; }
.demo-qr-code svg { display: block; width: 100%; height: 100%; }
.demo-qr-text { display: grid; gap: .3rem; font-size: var(--step--1); line-height: 1.45; color: var(--slate); }
.demo-qr-text strong { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.15; color: var(--ink); }
.demo-qr-cursor { position: absolute; right: .7rem; bottom: .6rem; width: 2.6rem; height: 2.6rem; transition: transform .15s ease; }
.demo-qr:hover .demo-qr-cursor { transform: translate(-2px, -2px); }
.button.demo-qr-mobile { display: none; margin-top: var(--space-s, 1rem); }
@media (max-width: 56rem), (pointer: coarse) { .demo-qr { display: none; } .button.demo-qr-mobile { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .demo-qr, .demo-qr-cursor { transition: none; } .demo-qr:hover .demo-qr-cursor { transform: none; } }
.demo-dash-link { margin: var(--space-s, 1rem) 0 0; font-size: var(--step--1); color: var(--slate); max-width: 31rem; }
@media (max-width: 56rem), (pointer: coarse) { .demo-dash-link { display: none; } }
