/* design: v2 */
/* vinnumbercheckfree.com, design v2: board A, "The road trip" (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 desert under a turquoise sky (Blender renders from renders/), Bitter for headings
   and Josefin Sans for text (both OFL, self-hosted). The cards are calm: one hairline, one soft shadow, no clay bevels.
   The world stays sunny in dark mode too, like a toy box doesn't invert, so there are no dark overrides. */

@font-face { font-family: "Bitter"; src: url("/fonts/bitter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/fonts/josefin-sans.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  --brand: #18c7c6;       /* the turquoise sky: the header, the hero and every page head */
  --bg: #fbe2b8;          /* desert sand */
  --text: #1e2e40;        /* navy ink */
  --muted: #55493a;
  --line: #e8d5b6;
  --card: #fff6e5;        /* cream */
  --sign: #fff6e5;        /* the VIN sign: navy text on it is 13:1 */
  --link: #0b4b71;
  --sky: #18c7c6;
  --sky-pale: #c6f3ec;
  --sun: #ffc83d;
  --sun-pale: #fff0be;
  --rust: #d75a3a;
  --rust-dark: #a9432a;
  --navy: #1e2e40;
  --sand-dark: #e9c48a;
  --display: "Bitter", "Roboto Slab", Georgia, serif;
  --body: "Josefin Sans", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --calm: 0 3px 10px rgba(30, 46, 64, 0.08);
  --edge: 1px solid rgba(30, 46, 64, 0.1);
  color-scheme: light;
}

html { overflow-x: clip; }
body { font-family: var(--body); font-size: 18px; font-weight: 500; line-height: 1.56; background: var(--bg); color: var(--text); overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.08; }
h2 { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; }
h3 { font-weight: 700; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; }
.wrap { max-width: 1200px; }

/* The header: 72 px of sky, the shield and the wordmark, a cream pill of links */
.site-header { background: var(--sky); border-bottom: 0; }
.header-row { min-height: 72px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.62rem; line-height: 1.2; color: var(--navy); gap: 10px; }
.brand .logo-mark { height: 48px; width: auto; filter: drop-shadow(0 2px 2px rgba(30, 46, 64, 0.16)); }
.main-nav { background: var(--card); border-radius: 999px; padding: 6px 24px; box-shadow: var(--calm); font-family: var(--display); font-weight: 700; font-size: 1rem; gap: 4px 28px; }
.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(--sun); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.menu-btn, .menu-open .menu-btn { color: var(--navy); border: 2px solid var(--navy); background: var(--card); font-family: var(--display); font-weight: 700; border-radius: 999px; }
@media (max-width: 760px) {
  .header-row { min-height: 60px; }
  .brand { font-size: 1.2rem; }
  .brand .logo-mark { height: 38px; }
  .has-menu.menu-open .main-nav { border-radius: 20px; padding: 6px 18px 10px; }
  .has-menu.menu-open .main-nav a { border-top-color: var(--line); }
}

/* Home: the desert hero. The picture keeps its middle calm (plain sky, low mesas, the road), so the headline and the
   lede sit on sky and everything else sits on the cream sign, 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(20px, 2.6vw, 44px); padding-bottom: 40px; }
/* Wide screens: the hero grows with the screen, so the words and the sign 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; }
.hero h1::before, .hero h1::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; vertical-align: 0.15em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23ffc83d' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M4 6l5 3M3 13h6M4 20l5-3'/%3E%3C/g%3E%3C/svg%3E"); }
.hero h1::before { margin-right: 0.18em; }
.hero h1::after { transform: scaleX(-1); margin-left: 0.18em; }
/* 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: 38em; margin: 12px auto 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; font-weight: 600; color: var(--navy); text-shadow: 0 0 8px var(--sky), 0 0 18px var(--sky); }

/* The cream sign: the VIN box, then the example answer under a hairline */
.vin-sign { margin-top: 22px; width: min(100%, 800px); background: var(--sign); border: 6px solid var(--rust); border-radius: 24px; padding: 20px 24px 18px; box-shadow: 0 10px 26px rgba(70, 35, 10, 0.22); text-align: left; color: var(--navy); }
.vin-sign .vin-form { margin: 0; background: transparent; border: 0; padding: 0; box-shadow: none; }
.vin-form { background: var(--card); border: var(--edge); border-radius: 20px; padding: 18px; margin: 1.2em 0; box-shadow: var(--calm); }
.vin-label { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.vin-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vin-input { flex: 1 1 17ch; min-width: 0; height: 56px; font: 700 1.3rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; padding: 0 20px; border: 2px solid #e3c9a0; border-radius: 999px; background: #ffffff; color: var(--navy); text-transform: uppercase; }
.vin-input::placeholder { color: #7d7468; text-transform: none; letter-spacing: 0; font: 500 1.1rem/1.2 var(--body); }
.vin-input:focus { outline: 3px solid var(--link); outline-offset: 2px; }
.vin-go { height: 56px; min-width: 196px; font: 800 1.15rem/1.2 var(--display); padding: 0 26px; border: 0; border-radius: 999px; background: var(--sun); color: var(--navy); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(30, 46, 64, 0.18); }
.vin-go:hover { background: #ffd35f; }
.vin-count { width: 100%; font-size: .95rem; color: var(--muted); }
.vin-hint { margin: 10px 0 0; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.vin-hint a { white-space: nowrap; }
.vin-example { display: grid; grid-template-columns: 130px 1fr; gap: 2px 18px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.vin-example img { grid-row: span 4; width: 130px; height: auto; }
.ex-tag { font-size: .9rem; font-weight: 700; color: var(--muted); }
.ex-car { font-family: var(--display); font-weight: 800; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.25; }
.vin-example:hover .ex-car { text-decoration: underline; }
.ex-recalls { justify-self: start; margin: 4px 0 2px; background: var(--sun-pale); border: 1px solid #f1d374; border-radius: 999px; padding: 2px 14px; font-weight: 700; font-size: .98rem; }
.ex-note { font-size: .86rem; color: var(--muted); }

@media (max-width: 760px) {
  /* the phone: the words and the sign first on sky, then a strip of the 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: 160px; }
  .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 h1::before, .hero h1::after { display: none; }
  .hero-lede { font-size: 1.02rem; }
  .vin-sign { border-width: 5px; border-radius: 20px; padding: 16px 14px 14px; margin-top: 16px; }
  .vin-input, .vin-go { height: 52px; width: 100%; flex-basis: 100%; }
  .vin-example { grid-template-columns: 78px 1fr; gap: 2px 12px; }
  .vin-example img { width: 78px; }
}

/* The four cards under the hero */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 32px; padding-bottom: 8px; }
.tile { display: grid; grid-template-columns: clamp(96px, 12vw, 150px) 1fr; gap: 0 20px; align-items: center; border-radius: 20px; padding: 20px 24px 20px 16px; border: var(--edge); box-shadow: var(--calm); }
.tile img { width: 100%; height: auto; }
.tile > div { border-left: 1px solid rgba(30, 46, 64, 0.16); padding-left: 20px; }
.tile h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.tile p { margin: 0 0 6px; }
.tile p:last-child { margin-bottom: 0; }
.tile ul { margin: 0 0 6px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; }
.tile li:not(:last-child)::after { content: "•"; margin: 0 8px; color: var(--muted); }
.tile ul.tile-list { display: block; }
.tile ul.tile-list li { margin: 2px 0; }
.tile ul.tile-list li::after { content: none; }
.tile a { color: var(--link); font-weight: 700; }
.t-history { background: #ffe9b0; }
.t-states { background: #d4f1f6; }
.t-recalls { background: #ffdde0; }
.t-guides { background: #e6f2ce; }
@media (max-width: 860px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .tile { grid-template-columns: 64px 1fr; gap: 0 14px; padding: 16px 16px 16px 12px; align-items: start; }
  .tile > div { border-left: 0; padding-left: 0; }
}

/* Where the answer comes from: centred, a saguaro either side, the independence pill and the quiet Share */
.home-more { position: relative; text-align: center; padding: 34px 0 56px; overflow: hidden; }
.home-more .wrap { max-width: 720px; position: relative; }
.home-more h2 { margin: 0.4em 0 0.4em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hm-l, .hm-r { position: absolute; bottom: 0; width: clamp(70px, 10vw, 150px); height: auto; }
.hm-l { left: max(8px, calc(50% - 600px)); }
.hm-r { right: max(8px, calc(50% - 600px)); transform: scaleX(-1); }
.pill { display: inline-block; margin: 6px 0 0; background: #f6d49c; color: var(--navy); border-radius: 999px; padding: 6px 20px; font-weight: 700; font-size: .95rem; }
@media (max-width: 860px) { .hm-l, .hm-r { display: none; } }

/* Inner pages: a sky band with the page's clay toy, then one centred 760 px column (no floating contents box) */
.article-wrap { max-width: 1080px; padding-top: 0; }
.crumbs { max-width: 760px; 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 { max-width: none; position: relative; padding: 16px 0 30px; margin: 0 0 30px; border-image: linear-gradient(var(--sky) 0%, #8fe3dc 62%, var(--sky-pale) 100%) fill 0 / 0 / 0 100vmax; }
.page-head::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: -10px; height: 26px; background: var(--sand-dark); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: -1; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 18em; margin-top: 0.2em; }
.page-head .lede { color: var(--navy); font-weight: 600; max-width: 38em; }
.page-head .byline { color: var(--navy); margin-bottom: 0; }
.page-head .byline a { color: var(--navy); }
.page-head, .page-head.has-art { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-head-art { width: clamp(100px, 14vw, 150px); align-self: flex-end; margin-bottom: -16px; filter: drop-shadow(0 6px 5px rgba(30, 46, 64, 0.18)); }
@media (max-width: 560px) { .page-head-art { width: 110px; margin-bottom: 0; } }
.page.has-toc { display: block; }
.page-body { max-width: 760px; margin-left: auto; margin-right: auto; }
.toc, .page.has-toc .toc { position: static; max-width: 760px; 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); }

/* Answers, recalls and cards */
.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 #d9bf93; padding: 4px 0; }
.spec dt { font-size: .9rem; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }
.answer-vin { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.recall-scope { background: var(--sun-pale); border: 1px solid #f1d374; border-radius: 12px; padding: 10px 14px; font-size: .97rem; }
.recalls { padding-left: 0; list-style: none; display: grid; gap: 14px; }
.recall { background: var(--card); border: var(--edge); border-left: 6px solid var(--sun); border-radius: 16px; padding: 14px 18px 12px 18px; box-shadow: var(--calm); }
.recall-part { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0 0 6px; line-height: 1.3; }
.recall-sub { display: block; font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.recall-risk, .recall-fix { margin: 0 0 6px; }
.recall-more { margin: 4px 0 6px; }
.recall-more summary { cursor: pointer; color: var(--link); font-weight: 700; }
.recall-more[open] summary { margin-bottom: 6px; }
.recall-warn, .v-warn { background: #fde0d6; color: #6b1a0e; border-radius: 12px; padding: 8px 12px; font-weight: 600; }
.recall-meta, .small, .note { font-size: .9rem; color: var(--muted); }
.recall-meta { margin: 0; }
.verdict { border-radius: 16px; padding: 14px 18px; margin: 1em 0; }
.v-ask { background: var(--card); border: var(--edge); box-shadow: var(--calm); }
.verdict-head { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0 0 6px; }
.full-history { background: #ffe9b0; border: var(--edge); border-radius: 20px; padding: 6px 22px 14px; margin: 1.8em 0; box-shadow: var(--calm); }
.full-history h2 { margin-top: 0.7em; }
.bars { list-style: none; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 8px; align-items: center; }
.bar { display: block; width: var(--w); background: var(--sky); border-radius: 999px; min-height: 1.7em; color: #0b2a33; padding-left: 10px; font-weight: 700; font-size: .92rem; line-height: 1.7em; }
.years { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--card); border: var(--edge); border-radius: 16px; overflow: hidden; box-shadow: var(--calm); }
.years th, .years td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.years th { font-family: var(--display); background: #ffe9b0; }
.state-links, .model-links, .year-links, .guide-links { columns: 2 14rem; padding-left: 1.1em; }
.state-links li, .model-links li, .year-links li, .guide-links li { margin: 3px 0; }

/* 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; }
.home-more .share-row { justify-content: center; }
.share-button { font: 700 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='%230b4b71' 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: 10px; border: 1px solid var(--line); }

/* Footer: light cream with a hairline, the independence line first */
.site-footer { background: var(--card); color: var(--navy); border-top: 1px solid #e3c08a; margin-top: 0; }
.site-footer a { color: var(--link); }
.footer-col h2, .footer-brand .brand { color: var(--navy); }
.footer-col h2 { font-family: var(--display); letter-spacing: 0.04em; }
.footer-note { font-weight: 600; color: var(--navy); }
.footer-legal, .footer-legal p { color: var(--muted); }
.footer-legal::before { border-top-color: #e3c08a; }

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