/* design: v2 */
/* carregistrationcheck.com, design v2: board A, "Sunday test drive" (design/home-v2-A.png, James 2 Dec 2026), rebuilt
   the same day to ChatGPT's critique and redraw (design/home-v3-critique-chatgpt.md, home-v3-mockup-chatgpt-*.png)
   after James called the first build awful. A clay English village green in spring (Blender renders from renders/),
   Fredoka for headings and Cabin for text (both OFL, self-hosted). Calm surfaces: radii 16/12/8, one hairline, one soft
   shadow. Nothing looks official: no crest, no MOT triangle, no tax disc, no gov.uk greens or type (the DVLA's terms).
   The morning stays bright in dark mode too, so there are no dark overrides. */

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("/fonts/cabin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --brand: #78a8ff;       /* the spring sky: the header, the hero and every page head */
  --bg: #f7f8ef;          /* morning paper */
  --text: #233248;        /* navy ink */
  --muted: #4a5546;
  --line: #d4dfc9;
  --card: #fffdf7;
  --card-alt: #edf2e3;
  --link: #1e5471;
  --sky: #78a8ff;
  --sky-pale: #e2ecff;
  --grass: #7bb96f;
  --plate: #ffd43b;
  --button: #b6372b;      /* white on it is 5.9:1 */
  --button-dark: #962c22;
  --navy: #233248;
  --ok: #2f8a4f;
  --warn: #c0392b;
  --hedge: #294b32;
  --display: "Fredoka", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Cabin", "Trebuchet MS", system-ui, sans-serif;
  --plate-font: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --calm: 0 3px 10px rgba(35, 50, 72, 0.08);
  --edge: 1px solid var(--line);
  color-scheme: light;
}

html { overflow-x: clip; }
body { font-family: var(--body); font-size: 18px; line-height: 1.58; background: var(--bg); color: var(--text); overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); line-height: 1.2; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
.wrap { max-width: 1120px; }
.small { font-size: .92rem; color: var(--muted); }

/* The header on the sky: 72 px, the little red car and the name, plain links */
.site-header { background: var(--sky); border-bottom: 0; }
.header-row { min-height: 72px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--navy); gap: 10px; }
.brand .logo-mark { height: 42px; width: auto; filter: drop-shadow(0 2px 2px rgba(30, 46, 64, 0.16)); }
.main-nav { font-family: var(--display); font-weight: 500; font-size: 1.05rem; gap: 4px 30px; }
.main-nav a { color: var(--navy); text-decoration: none; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--plate); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.menu-btn, .menu-open .menu-btn { color: var(--navy); border: 2px solid var(--navy); background: var(--card); font-family: var(--display); font-weight: 600; border-radius: 999px; }
@media (max-width: 760px) {
  .header-row { min-height: 60px; }
  .brand { font-size: 1.15rem; }
  .brand .logo-mark { height: 34px; }
  .has-menu.menu-open .main-nav { background: var(--card); border-radius: 16px; padding: 6px 18px 10px; margin-bottom: 10px; }
}

/* The plate box: a label you can see, a yellow plate to type into, a red button */
.plate-form { background: var(--card); border: var(--edge); border-radius: 16px; padding: 18px; margin: 1.2em 0; box-shadow: var(--calm); }
.plate-label { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.plate-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.plate-band { display: none; }
.plate-input { flex: 1 1 12ch; min-width: 0; height: 64px; font: 800 clamp(1.6rem, 3vw, 2.1rem)/1 var(--plate-font); letter-spacing: .06em; text-align: center; padding: 0 16px; border: 2px solid #c9a722; border-radius: 12px; background: var(--plate); color: #111111; text-transform: uppercase; }
.plate-input::placeholder { color: #5e5110; font: 500 1.2rem/1 var(--body); letter-spacing: 0; text-transform: none; }
.plate-input:focus { outline: 3px solid var(--link); outline-offset: 2px; }
.plate-go { height: 64px; min-width: 180px; font: 600 1.2rem/1.2 var(--display); padding: 0 24px; border: 0; border-radius: 12px; background: var(--button); color: #ffffff; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.plate-go:hover { background: var(--button-dark); }
.plate-hint { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }

/* Home: the village green. The picture keeps its middle calm (sky, distant fields, the lane and the wall), so the
   headline and the lede sit on sky and the plate box on its own cream card, never straight on the picture (James,
   2 Dec 2026: "barely read the text"). At least half the screen width tall, like the 2:1 picture, so it always fills
   edge to edge; never aspect-ratio with max-height: the browser turned that height cap into a width cap and the picture
   stopped at 2000 px on a wide screen (James, 2 Dec 2026: "look at the right hand side"). */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky); min-height: max(600px, 50vw); }
.hero-pic { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-pic picture { display: contents; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; padding-top: clamp(22px, 3vw, 52px); padding-bottom: 40px; }
/* Wide screens: the hero grows with the screen, so the words and the box grow with it rather than floating small */
@media (min-width: 1800px) { .hero-in, .site-header > * { zoom: 1.15; } }
@media (min-width: 2200px) { .hero-in, .site-header > * { zoom: 1.35; } }
@media (min-width: 2800px) { .hero-in, .site-header > * { zoom: 1.6; } }
@media (min-width: 3400px) { .hero-in, .site-header > * { zoom: 1.9; } }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 4.45vw, 4rem); line-height: 1.06; color: var(--navy); }
/* the lede is on plain sky; a glow of the same sky keeps it clean if a cloud drifts behind a word */
.hero-lede { max-width: 36em; margin: 12px auto 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; font-weight: 500; color: var(--navy); text-shadow: 0 0 8px var(--sky), 0 0 18px var(--sky); }
.hero .plate-form { margin: 22px 0 0; width: min(100%, 640px); padding: 18px 22px 16px; border: 0; box-shadow: 0 10px 26px rgba(30, 50, 80, 0.22); text-align: left; }
.hero .plate-hint { text-align: center; }
@media (max-width: 760px) {
  /* the phone: the words and the box first on sky, then the village scene (renders/hero-phone) */
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-pic { position: relative; inset: auto; z-index: 0; order: 2; height: 180px; }
  .hero-art { object-position: 50% 70%; }
  .hero-in { padding-top: 18px; padding-bottom: 18px; }
  .hero h1 { font-size: 2.15rem; line-height: 1.12; }
  .hero-lede { font-size: 1.02rem; }
  .hero .plate-form { padding: 14px 14px 12px; margin-top: 16px; }
  .plate-input, .plate-go { height: 56px; width: 100%; flex-basis: 100%; }
}

/* Under the hero: what the free check shows beside what it can't, then four even guide cards */
.below { display: grid; grid-template-columns: minmax(0, 672fr) minmax(0, 424fr); gap: 24px; align-items: stretch; padding-top: 36px; }
.gets-card, .paid-card { border: var(--edge); border-radius: 16px; box-shadow: var(--calm); }
.gets-card { background: var(--card); padding: 22px 26px 18px; }
.gets-card h2 { margin: 0 0 12px; }
.gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gets li { position: relative; padding-left: 36px; line-height: 1.45; }
.gets li::before { content: ""; position: absolute; left: 0; top: 0.05em; width: 24px; height: 24px; border-radius: 50%; background: var(--ok) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.gets-card .small { margin: 14px 0 0; padding-top: 12px; border-top: var(--edge); }
.paid-card { background: var(--card-alt); padding: 22px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.paid-card h2 { margin: 0 0 8px; }
.paid-card img { width: 150px; height: auto; margin: 4px 0 10px; }
.paid-card p { margin: 0 0 10px; }
.paid-card p:last-child { margin: auto 0 0; }
.guides-home { padding-top: 40px; padding-bottom: 50px; text-align: center; }
.guides-home h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.guide-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.guide-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; min-height: 216px; text-decoration: none; background: var(--card); border: var(--edge); border-radius: 16px; padding: 18px 14px 20px; box-shadow: var(--calm); color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.guide-card img { width: auto; height: 120px; max-width: 100%; object-fit: contain; }
.guide-card span { text-wrap: balance; }
.guide-card:hover { background: #ffffff; text-decoration: underline; }
.more-line { margin: 22px 0 0; }
.guides-home .share-row { justify-content: center; }
@media (max-width: 900px) { .below { grid-template-columns: minmax(0, 1fr); } .guide-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .guide-card { min-height: 0; font-size: 1rem; } .guide-card img { height: 80px; } }

/* Inner pages: a sky band with the page's clay toy, then one centred 720 px column (no floating contents box) */
.article-wrap { max-width: 1080px; padding-top: 0; }
.crumbs { max-width: 720px; margin: 0 auto; padding: 12px 0 0; border-image: linear-gradient(var(--sky), var(--sky)) fill 0 / 0 / 0 100vmax; }
.crumbs, .crumbs a { color: var(--navy); font-weight: 600; }
.page-head { position: relative; padding: 16px 0 30px; margin: 0 auto 30px; border-image: linear-gradient(var(--sky) 0%, #a9c6ff 60%, var(--sky-pale) 100%) fill 0 / 0 / 0 100vmax; }
.page-head, .page-head.has-art { max-width: 720px; margin-left: auto; margin-right: auto; }
.page-head::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: -10px; height: 26px; background: var(--grass); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: -1; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); max-width: 18em; margin-top: 0.2em; }
.page-head .lede { color: var(--navy); font-weight: 600; max-width: 38em; }
.page-head .byline, .page-head .byline a { color: var(--navy); }
.page-head .byline { margin-bottom: 0; }
.page-head-art { width: clamp(100px, 14vw, 150px); align-self: flex-end; margin-bottom: -16px; filter: drop-shadow(0 6px 5px rgba(35, 50, 72, 0.16)); }
@media (max-width: 560px) { .page-head-art { width: 110px; margin-bottom: 0; } }
.page.has-toc { display: block; }
.page-body { max-width: 720px; margin-left: auto; margin-right: auto; }
.toc, .page.has-toc .toc { position: static; max-width: 720px; max-height: none; margin: 0 auto 28px; background: var(--card); border: var(--edge); border-radius: 16px; box-shadow: var(--calm); }
.page.has-toc .toc ol { columns: 2 14rem; }
.toc-title { font-family: var(--display); }

/* The answer: the plate, status tiles, the car's details, the mileage line and every MOT */
.answer-plate .plate { display: inline-block; font: 800 1.7rem/1 var(--plate-font); letter-spacing: .06em; background: var(--plate); color: #111111; border: 2px solid #c9a722; border-radius: 12px; padding: 10px 18px; }
.statuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin: 1em 0; }
.status { border-radius: 12px; padding: 12px 16px; background: var(--card); border: var(--edge); border-left: 6px solid var(--line); box-shadow: var(--calm); }
.status-label { margin: 0; font-size: .9rem; color: var(--muted); }
.status-text { margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.status-ok { border-left-color: var(--ok); }
.status-warn { border-left-color: var(--warn); }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 8px 16px; margin: 1em 0; background: var(--card); border: var(--edge); border-radius: 16px; padding: 14px 20px; box-shadow: var(--calm); }
.spec div { border-bottom: 1px dotted var(--line); padding: 4px 0; }
.spec dt { font-size: .9rem; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }
.verdict { border-radius: 12px; padding: 14px 18px; margin: 1em 0; }
.v-ask { background: var(--card); border: var(--edge); box-shadow: var(--calm); }
.v-warn { background: #fde0d6; color: #6b1a0e; }
.v-warn .small { color: inherit; }
.verdict-head { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.chart { margin: 1em 0; background: var(--card); border: var(--edge); border-radius: 16px; padding: 14px 16px 8px; box-shadow: var(--calm); }
.mileage-chart { width: 100%; height: auto; max-width: 680px; }
.mileage-chart text { font-size: 11px; fill: var(--muted); }
.mileage-chart .grid { stroke: var(--line); }
.mileage-chart .line { fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.mileage-chart .dot { fill: var(--ok); }
.mileage-chart .dot.drop { fill: var(--warn); }
.mots { list-style: none; padding: 0; display: grid; gap: 12px; }
.mot { background: var(--card); border: var(--edge); border-left: 6px solid var(--ok); border-radius: 12px; padding: 10px 16px 10px 18px; box-shadow: var(--calm); }
.mot-fail { border-left-color: var(--warn); }
.mot-head { margin: 0 0 4px; }
.defect-type { margin: 6px 0 2px; font-weight: 700; font-size: .95rem; }
.defects { margin: 0 0 4px; }
.paid-checks { background: var(--card-alt); border: var(--edge); border-radius: 16px; padding: 6px 22px 14px; margin: 1.8em 0; box-shadow: var(--calm); }
.prices, table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 8px; }
.prices th, .prices td, table th, table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 600; background: var(--card-alt); }
@media (max-width: 560px) { .prices thead { display: none; } .prices tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; } .prices th, .prices td { display: block; border: 0; padding: 2px 0; } }
.guide-links { columns: 2 14rem; padding-left: 1.1em; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { margin-bottom: 1em; }
.guide-list p { margin: 2px 0 0; color: var(--muted); }

/* Share (root rule 61), quiet: a text action, not a big button */
.share-row { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 1.4em 0; }
.share-button { font: 600 1rem/1.3 var(--body); padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.share-button::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 6px; vertical-align: -0.12em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5471' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3C/svg%3E"); }
.share-button:hover { text-decoration-thickness: 2.5px; }
.share-plain { font-size: .95rem; }
.share-link { width: 100%; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }

/* Footer: a hedge-green band with a straight top edge, the independence and OGL lines */
.site-footer { background: var(--hedge); color: #eef4e6; border-top: 0; margin-top: 0; }
.site-footer a, .footer-col h2, .footer-brand .brand { color: #fffdf7; }
.footer-col h2 { font-family: var(--display); letter-spacing: 0.04em; }
.footer-note { font-weight: 600; color: #fffdf7; }
.footer-legal::before { border-top-color: #4a7a4c; }

/* No orphan words on the short lines over the picture */
.hero-lede, .hero .plate-hint, .page-head .lede, .page-head h1 { text-wrap: balance; }
