/* Car Control: the look of a US certificate of title.
   Security-paper ground, navy ink, one amber accent taken from odometer digits.
   Light only: buyers read this on a phone, outdoors, standing next to the car.
   Shape rule: controls 6px, containers 8px, status badges fully round. */

:root {
  --paper: #EDF1EE;
  --panel: #F8FAF8;
  --ink: #16243F;
  --ink-2: #46546B;
  --rule: #B7C5BD;
  --line: #D4DED8;
  --clear: #1E6B4E;
  --clear-bg: #DCEDE3;
  --caution: #7A4F00;
  --caution-bg: #F6E8C9;
  --stamp: #B42318;
  --stamp-bg: #F7DFDB;
  --amber: #F2C230;
  --plate-yellow: #F6C619;
  --plate-blue: #1E4FA3;
  --plate-ink: #141414;
  --on-ink: #EEF3F0;
  --on-ink-2: #C3CEDA;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-control: 6px;
  --r-box: 8px;
  --shadow: 0 1px 2px rgba(22, 36, 63, .06), 0 16px 36px -16px rgba(22, 36, 63, .24);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--rule) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--amber); color: var(--ink); }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
input, select, textarea { caret-color: var(--ink); accent-color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-control); z-index: 10; }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1.1 var(--body);
  padding: 15px 24px;
  border: 2px solid var(--ink); border-radius: var(--r-control);
  background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), transform .1s;
}
.btn:hover { background: #22345A; border-color: #22345A; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 16px; font-size: 15px; }
.textlink { font-weight: 600; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.01em;
  font-variation-settings: "wdth" 125;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .main-nav { display: none; }
  .bar .btn-small { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18'%3E%3Cpath d='M0 9C20 0 40 0 60 9S100 18 120 9' fill='none' stroke='%23D0DCD5' stroke-width='1'/%3E%3Cpath d='M0 9C20 18 40 18 60 9S100 0 120 9' fill='none' stroke='%23DAE4DE' stroke-width='1'/%3E%3C/svg%3E");
}
.hero .wrap { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 76px); }
.display {
  font-family: var(--display);
  font-variation-settings: "wdth" 116;
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -.026em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 22px 0 34px; }

/* ---------- VIN plate ---------- */
.vinform { max-width: 880px; }
.vinlabel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.plate {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: var(--r-box);
  padding: clamp(10px, 1.6vw, 16px);
  cursor: text;
  transition: box-shadow .2s var(--ease-out);
}
.plate:focus-within { box-shadow: 0 0 0 4px rgba(233, 185, 73, .55); }
.plate input {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  border: 0; background: transparent;
  color: transparent; caret-color: transparent;
  font-size: 16px; cursor: text;
}
.plate input:focus { outline: none; }
.plate input::selection { background: transparent; }
.cells, .anatomy {
  display: grid;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  column-gap: clamp(2px, .5vw, 6px);
}
.cell {
  /* fixed height, not aspect-ratio: group-end margins narrow some cells and would shorten them */
  height: clamp(34px, 6.2vw, 66px);
  display: grid; place-items: center;
  border-bottom: 2px solid var(--rule);
  font-family: var(--display);
  font-variation-settings: "wdth" 88;
  font-weight: 700;
  font-size: clamp(15px, 3.2vw, 36px);
  line-height: 1;
  color: var(--ink);
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
}
.cell:empty::after { content: attr(data-n); font: 500 clamp(9px, 1.1vw, 12px)/1 var(--body); color: #93A39A; }
.cell.filled { border-bottom-color: var(--ink); }
.cell.active { border-bottom-color: var(--amber); background: rgba(233, 185, 73, .18); }
.cell.g-end, .anatomy .g-end { margin-right: clamp(3px, 1vw, 12px); }
.anatomy { margin-top: 10px; padding-inline: calc(clamp(10px, 1.6vw, 16px) + 2px); }
.anatomy span {
  border-top: 1.5px solid var(--rule);
  padding-top: 6px;
  font-size: 12.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 680px) { .anatomy { display: none; } }
.vinstatus { min-height: 1.6em; margin: 14px 0 0; font-size: 15.5px; color: var(--ink-2); }
.vinstatus[data-tone="ok"] { color: var(--clear); font-weight: 600; }
.vinstatus[data-tone="bad"] { color: var(--stamp); font-weight: 600; }
.vinactions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section + .section { border-top: 1px solid var(--line); }
.title {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 760;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 14px;
  max-width: 20ch;
  text-wrap: balance;
}
.intro { max-width: 56ch; color: var(--ink-2); margin: 0 0 40px; font-size: 18px; }

/* coverage: free check vs full history */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.coverage > div { padding-top: 28px; }
.coverage > div:first-child { padding-right: clamp(20px, 4vw, 56px); }
.coverage > div + div { border-left: 1px solid var(--rule); padding-left: clamp(20px, 4vw, 56px); }
.coverage h3 {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  margin: 0 0 4px;
  font-family: var(--display); font-variation-settings: "wdth" 104; font-weight: 760; font-size: 26px; line-height: 1.15;
}
.coverage h3 span { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink-2); }
.cov-sub { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks .ic { width: 24px; height: 24px; margin-top: 1px; }
.ticks.free .ic { color: var(--clear); }
.ticks.full .ic { color: var(--ink); }
@media (max-width: 760px) {
  .coverage { grid-template-columns: minmax(0, 1fr); }
  .coverage > div:first-child { padding-right: 0; }
  .coverage > div + div { border-left: 0; padding-left: 0; margin-top: 32px; border-top: 1px solid var(--rule); }
}

/* live example */
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.example .intro { margin-bottom: 28px; }
@media (max-width: 880px) { .example { grid-template-columns: minmax(0, 1fr); } }
.record {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-box);
  padding: clamp(18px, 3vw, 30px);
}
.record-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.record-top h3 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 104; font-weight: 760; font-size: 24px; line-height: 1.15; }
.vin-text { font-family: var(--display); font-variation-settings: "wdth" 90; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); font-size: 15px; }

/* findings */
.findings { list-style: none; margin: 0; padding: 0; }
.finding {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px;
  padding: 14px 0;
  text-decoration: none; color: var(--ink);
}
.findings li + li .finding { border-top: 1px solid var(--line); }
a.finding:hover .f-label { text-decoration: underline; }
.f-ic { width: 24px; height: 24px; margin-top: 1px; color: var(--ink-2); }
.finding[data-tone="ok"] .f-ic { color: var(--clear); }
.finding[data-tone="warn"] .f-ic { color: var(--caution); }
.finding[data-tone="bad"] .f-ic { color: var(--stamp); }
.finding[data-tone="locked"] .f-ic { color: var(--ink); }
.f-label { display: block; font-size: 17px; line-height: 1.4; }
.f-label b { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: 20px; }
.f-note { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: block; margin-bottom: 14px;
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 46px; line-height: 1;
}
.steps h3 { margin: 0 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(22px, 3vw, 32px);
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-box);
}
.plan h3 { margin: 0; font-size: 18px; font-weight: 700; }
.price { margin: 10px 0 2px; font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; }
.per { margin: 0 0 24px; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.plan.featured .per { color: var(--on-ink-2); }
.plan.featured .btn { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.plan.featured .btn:hover { background: #fff; border-color: #fff; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.fineprint { margin: 28px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.fineprint li { margin-bottom: 6px; }

/* find the VIN */
.locate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.places { margin: 0; padding-left: 24px; }
.places li { margin-bottom: 12px; padding-left: 4px; }
.places li::marker { font-family: var(--display); font-weight: 800; }
.locate-figure { margin: 0; }
.locate-figure svg { width: 100%; height: auto; display: block; }
.pin text { font: 800 17px var(--body); fill: var(--ink); }
@media (max-width: 880px) { .locate { grid-template-columns: minmax(0, 1fr); } .locate-figure { order: -1; max-width: 460px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq .title { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: #E2E9E5; border-top: 1px solid var(--rule); padding-block: 56px 36px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.site-footer h2 { font-size: 15px; color: var(--ink); margin: 4px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer .brand { color: var(--ink); font-size: 20px; }
.foot-about p { max-width: 36ch; }
.site-footer address { font-style: normal; }
.choices { display: inline-flex; align-items: center; gap: 8px; }
.legal-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13.5px; max-width: 58ch; }
.legal-note p { margin: 0 0 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- report ---------- */
.report-wrap { padding-block: clamp(28px, 5vw, 56px) 20px; }
.loading { padding-block: 80px; color: var(--ink-2); font-size: 18px; }
.crumb { margin: 0 0 22px; font-size: 15px; }
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 32px 48px; align-items: end; padding-bottom: 30px; border-bottom: 2px solid var(--ink); }
@media (max-width: 900px) { .head-grid { grid-template-columns: minmax(0, 1fr); } }
.vin-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.badge .ic { width: 16px; height: 16px; }
.badge.ok { background: var(--clear-bg); color: var(--clear); }
.badge.bad { background: var(--stamp-bg); color: var(--stamp); }
.badge.warn { background: var(--caution-bg); color: var(--caution); }
.vehicle {
  font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: clamp(36px, 5.6vw, 68px); line-height: 1; letter-spacing: -.025em; margin: 0;
  text-wrap: balance;
}
.trim { margin: 10px 0 0; font-size: 20px; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 26px 0 0; }
.facts dt { font-size: 13.5px; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; }

.plate-ro { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r-box); padding: 14px 14px 16px; }
.plate-ro .cell { font-size: clamp(15px, 2.6vw, 25px); height: clamp(30px, 4vw, 42px); }
.plate-ro .cell:empty::after { content: none; }
.decode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 16px 2px 0; }
.decode dt { font-size: 13px; color: var(--ink-2); }
.decode dd { margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }

.listing-note {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start;
  margin: 24px 0 0; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-box);
  font-size: 15.5px;
}
.listing-note .ic { width: 24px; height: 24px; color: var(--ink); }
.listing-note a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.listing-note a .ic { width: 16px; height: 16px; }

.report-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 12px; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
@media (max-width: 900px) { .report-top { grid-template-columns: minmax(0, 1fr); } }
.report-main { max-width: 780px; }
.block { padding-block: 32px; }
.report-main .block + .block { border-top: 1px solid var(--line); }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.block h2 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 104; font-weight: 760; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.01em; }
.src { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.note { font-size: 15px; color: var(--ink-2); margin: 16px 0 0; max-width: 58ch; }
.empty { color: var(--ink-2); margin: 0; }

.bignum { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(40px, 5vw, 56px); line-height: 1; margin: 0; }
.bignum small { font-family: var(--body); font-size: 16px; font-weight: 500; color: var(--ink-2); margin-left: 8px; letter-spacing: 0; }

.recall + .recall, .complaint + .complaint { border-top: 1px solid var(--line); }
.recall summary, .complaint summary { cursor: pointer; padding: 14px 0; display: grid; gap: 3px; }
.recall summary::marker, .complaint summary::marker { color: var(--ink-2); }
.r-comp { font-weight: 700; }
.r-meta { font-size: 14px; color: var(--ink-2); }
.r-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.r-body { padding: 0 0 18px; max-width: 62ch; }
.r-body h3 { font-size: 14.5px; margin: 12px 0 2px; }
.r-body p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.subhead { font-size: 17px; margin: 30px 0 8px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 620px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 15px; }
.bars .track { grid-column: 1 / -1; height: 5px; }
.bars .fill { display: block; height: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; }

.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px 20px; margin: 0; }
.kv dt { color: var(--ink-2); font-size: 15.5px; }
.kv dd { margin: 0; font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; color: var(--ink); }
.stars .ic { width: 19px; height: 19px; }

.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px 44px; }
.spec-group h3 { font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }

.limits ul { margin: 0 0 12px; padding-left: 20px; }

.unlock {
  margin-top: 32px;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: var(--r-box);
  padding: clamp(20px, 3vw, 28px);
}
.unlock h2 { margin: 0 0 6px; font-family: var(--display); font-variation-settings: "wdth" 104; font-weight: 800; font-size: 26px; line-height: 1.1; }
.unlock > p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.locked { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 11px; }
.locked li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15.5px; }
.locked .ic { width: 20px; height: 20px; margin-top: 2px; }
.unlock .price-line { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: 38px; line-height: 1; margin: 0 0 4px; }
.unlock .price-sub { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); }
.unlock .btn { width: 100%; }
.unlock .small { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

.unlock.unlocked { border-color: var(--clear); }
.hist-status { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border: 1.5px solid var(--rule); border-radius: var(--r-box); margin: 4px 0 8px; }
.hist-status .ic { width: 24px; height: 24px; margin-top: 1px; }
.hist-status b { font-size: 17px; }
.hist-status ul { margin: 6px 0 0; padding-left: 18px; }
.hist-status[data-tone="ok"] { border-color: var(--clear); background: var(--clear-bg); }
.hist-status[data-tone="ok"] .ic { color: var(--clear); }
.hist-status[data-tone="bad"] { border-color: var(--stamp); background: var(--stamp-bg); }
.hist-status[data-tone="bad"] .ic { color: var(--stamp); }
.hist-group h3 { font-size: 17px; margin: 28px 0 6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 4px 18px; padding: 11px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline time { font-weight: 600; color: var(--ink-2); font-size: 15px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: minmax(0, 1fr); } }

.nmvtis-note { font-size: 13.5px; color: var(--ink-2); padding-bottom: 48px; }
.nmvtis-note p { max-width: 70ch; margin: 0; }

.alert { padding: 18px 20px; border: 1.5px solid var(--stamp); border-radius: var(--r-box); background: var(--stamp-bg); margin: 0 0 32px; }
.alert h1, .alert h2 { margin: 0 0 6px; font-size: 22px; color: var(--stamp); }
.alert p { margin: 0; color: var(--ink); }

/* checkout dialog */
.checkout { border: 0; padding: 0; border-radius: var(--r-box); width: min(480px, calc(100% - 32px)); background: var(--panel); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(22, 36, 63, .5); }
.checkout::backdrop { background: rgba(22, 36, 63, .55); }
.checkout[open] { animation: rise .28s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.co-form { padding: clamp(20px, 4vw, 30px); }
.co-form h2 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 800; font-size: 28px; }
.co-vehicle { margin: 4px 0 18px; color: var(--ink-2); }
.co-plans { border: 0; margin: 0 0 18px; padding: 0; }
.co-plans legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.co-plan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-control); margin-bottom: 8px; cursor: pointer; }
.co-plan:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.co-plan input { width: 18px; height: 18px; margin: 0; }
.field { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.input, .prose input:not([type="checkbox"]):not([type="radio"]), .prose select, .prose textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-control); background: #fff;
}
.input:focus, .prose input:focus, .prose select:focus, .prose textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(233, 185, 73, .5); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 16px 0; font-size: 14.5px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; }
.co-total { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.co-total b { color: var(--ink); font-size: 18px; }
.co-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.co-msg { margin: 16px 0 0; padding: 12px 14px; background: var(--caution-bg); color: var(--caution); border-radius: var(--r-control); font-size: 15px; }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.prose { max-width: 58ch; }
.prose h1 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
.prose .updated { color: var(--ink-2); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-family: var(--display); font-variation-settings: "wdth" 104; font-weight: 760; font-size: 25px; line-height: 1.2; margin: 48px 0 10px; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { color: #26344D; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; min-width: 140px; }
.prose thead th { border-bottom: 2px solid var(--ink); }
.prose tbody tr:nth-child(even) { background: rgba(212, 222, 216, .45); }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--r-box); background: var(--panel); }
.prose form { display: grid; gap: 14px; margin: 20px 0; padding: 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-box); }
.prose form label { font-weight: 700; font-size: 15px; display: grid; gap: 6px; }
.prose form button, .prose form [type="submit"] { justify-self: start; font: 700 16px var(--body); padding: 13px 22px; border-radius: var(--r-control); border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.notice { padding: 14px 18px; border: 1px solid var(--clear); border-radius: var(--r-box); background: var(--clear-bg); color: var(--clear); font-weight: 600; margin: 0 0 24px; }

/* ---------- UK: number plate (a real plate is the one exception to the 8px container radius) ---------- */
.regform { max-width: 600px; }
.ukplate {
  display: flex; align-items: stretch;
  background: var(--plate-yellow);
  border: 3px solid var(--plate-ink);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s var(--ease-out);
}
.ukplate:focus-within { box-shadow: 0 0 0 4px rgba(22, 36, 63, .35); }
.ukplate .band {
  display: grid; place-items: center; flex: none;
  width: clamp(44px, 9vw, 64px);
  background: var(--plate-blue); color: #fff;
  font: 800 clamp(15px, 2.6vw, 22px)/1 var(--display);
  letter-spacing: .02em;
}
.ukplate input, .plate-text {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font-family: var(--display); font-variation-settings: "wdth" 72; font-weight: 800;
  font-size: clamp(40px, 9vw, 80px); line-height: 1.15;
  letter-spacing: .03em; text-transform: uppercase; text-align: center;
  color: var(--plate-ink); caret-color: var(--plate-ink);
  padding: .08em .3em;
}
.ukplate input:focus { outline: none; }
.ukplate input::placeholder { color: rgba(20, 20, 20, .3); }
.ukplate.ro { max-width: 420px; }
.ukplate.ro .plate-text { font-size: clamp(34px, 5vw, 58px); white-space: nowrap; }

.cannot { margin-top: 44px; max-width: 64ch; padding-top: 22px; border-top: 1px solid var(--rule); }
.cannot h3 { margin: 0 0 6px; font-size: 19px; }
.cannot p { margin: 0; color: var(--ink-2); }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; margin: 0; max-width: 980px; }
.tips div { border-left: 1px solid var(--rule); padding-left: 18px; }
.tips dt { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.tips dd { margin: 0; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 760px) { .tips { grid-template-columns: minmax(0, 1fr); } }

/* ---------- UK purchase ---------- */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.unlock .locked .ic { color: var(--clear); }
.not-inc, .gov-note { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.gov-note { margin-bottom: 18px; }
#buy-form .consent { margin: 0 0 14px; }
#buy-form .btn { width: 100%; }
#buy-form .btn:disabled { opacity: .6; cursor: wait; }
#buy-form .co-msg { margin-top: 12px; }

/* ---------- account ---------- */
[hidden] { display: none !important; }
.prose form .linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; justify-self: start; }
.acct-link { font-weight: 600; font-size: 15px; white-space: nowrap; }
.acct-link .short { display: none; }
@media (max-width: 520px) { .acct-link .short { display: inline; } }
@media (max-width: 760px) { .acct-link { margin-left: auto; } .bar .btn-small { margin-left: 0; } }
@media (max-width: 520px) { .bar { gap: 14px; } .acct-link { font-size: 14px; } .bar .btn-small { padding: 8px 12px; font-size: 14px; } .acct-link .long { display: none; } }
@media (max-width: 400px) { .site-header .brand { font-size: 0; gap: 0; } }
.auth form, .account form { max-width: 460px; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-color: var(--rule); }
.btn-google:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; margin: 18px 0 6px; max-width: 460px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.credit-summary { display: grid; gap: 4px; padding: 16px 18px; border: 1.5px solid var(--clear); background: var(--clear-bg); border-radius: var(--r-box); margin: 0 0 18px; }
.account td a { font-weight: 600; }
.account table { display: table; width: 100%; }
.account th, .account td { min-width: 0; padding: 8px 6px; }
.danger { margin-top: 18px; border: 1px solid var(--rule); border-radius: var(--r-box); padding: 12px 16px; }
.danger summary { cursor: pointer; font-weight: 600; }

/* ---------- UK tiers ---------- */
.co-plan-text { display: grid; gap: 2px; }
.co-plan-text small { font-size: 13.5px; font-weight: 400; color: var(--ink-2); line-height: 1.35; }
.co-price { font-size: 17px; white-space: nowrap; }
.co-plan.is-off { opacity: .55; cursor: not-allowed; }
#buy .co-plans { margin-bottom: 14px; }
#tier-detail .locked { margin-bottom: 10px; }
.credit-box { border: 1.5px solid var(--clear); background: var(--clear-bg); border-radius: var(--r-box); padding: 14px 16px; margin: 0 0 18px; }
.credit-box p { margin: 0 0 10px; }
.credit-box .consent { margin: 0 0 12px; }
.credit-box .btn { width: 100%; }
.credit-box .btn:disabled, #buy-form .btn:disabled { opacity: .6; cursor: not-allowed; }
#premium-upsell .btn-small { margin-top: 4px; }

/* ---------- UK report ---------- */
.badge.neutral { background: var(--line); color: var(--ink); }
.hist-status[data-tone="warn"] { border-color: var(--caution); background: var(--caution-bg); }
.hist-status[data-tone="warn"] .ic { color: var(--caution); }
.hist-status[data-tone="neutral"] { border-color: var(--rule); background: var(--panel); }
.hist-status[data-tone="neutral"] .ic { color: var(--ink-2); }
.verdict h2 { margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; border-top: 2px solid var(--ink); }
.stats > div { padding: 14px 16px 4px 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font-size: 14px; color: var(--ink-2); }
.stats dd { margin: 4px 0 0; font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.05; }
.stats small { display: block; margin-top: 4px; font: 500 13.5px/1.35 var(--body); color: var(--ink-2); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.chart { position: relative; margin-top: 26px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart svg:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-2); font: 500 12px var(--body); font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--ink); opacity: .07; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.chart .pt.drop { fill: var(--stamp); }
.chart .pt.on { r: 7; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.chart .endlabel { font: 700 13px var(--body); fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tip {
  position: absolute; top: 0; left: 0; pointer-events: none;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-control);
  padding: 8px 11px; font-size: 13.5px; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(22, 36, 63, .4);
}
.chart-tip b { display: block; font-size: 16px; }
.chart-tip .warn { color: var(--stamp); font-weight: 700; }
.chart-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.chart-key span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key i { display: inline-block; width: 18px; height: 2px; background: var(--ink); }
.chart-key i.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stamp); }

.table-scroll { overflow-x: auto; max-width: 100%; }
.report-main, .head-grid > * { min-width: 0; }
.mtable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.mtable th, .mtable td { text-align: left; padding: 11px 12px; }
.mtable thead th { border-bottom: 2px solid var(--ink); font-size: 14px; }
.mtable tbody tr:nth-child(even) { background: rgba(212, 222, 216, .4); }
.mtable td.num { font-variant-numeric: tabular-nums; }
.mtable .lower { color: var(--stamp); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mtable .lower .ic { width: 16px; height: 16px; }

.test-sum { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.test-sum .r-meta { flex-basis: 100%; }
.defects { list-style: none; margin: 0; padding: 0 0 18px; display: grid; gap: 10px; max-width: 70ch; }
.defects li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; }
.defects .badge { justify-self: start; }
@media (max-width: 520px) { .defects li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.recurring { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.recurring li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 16px; }
.recurring b { font-size: 16.5px; }
@media (max-width: 520px) { .recurring li { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
