/* vin.llmpreneur.com. One accent (inspection-sticker yellow) on cool steel and white, black ink.
   The VIN plate is the one bold element: an aluminum plate with rivets, the characters stamped in a mono face,
   a 17-tick ruler under it (the check digit tick, position 9, is taller). */
:root {
  --ink: #000;
  --text: #24282d;
  --muted: #4f5761;
  --ground: #eef2f5;
  --paper: #fff;
  --line: #c4ccd4;
  --accent: #ffc20e;
  --accent-dark: #e0a800;
  --bad: #b3261e;
  --good: #0f6b37;
  --plate-a: #e3e7eb;
  --plate-b: #c5ccd3;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --on-accent: #000;
  --bad-bg: #fdecea;
  --info-bg: #fff6d6;
  color-scheme: light dark;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { position: relative; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 18px/1.45 var(--sans); }
a { color: var(--ink); }
h1, h2, h3 { color: var(--ink); margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; min-height: 48px; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #000; box-shadow: 0 0 0 1px var(--line); color: var(--accent); font-weight: 900; font-size: 17px; }
.lang { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 22px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--paper); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 6px 0 24px; }
h1 { font-size: 36px; line-height: 1.04; font-weight: 850; letter-spacing: -0.025em; max-width: 13ch; }
.lede { font-size: 19px; margin: 10px 0 18px; color: var(--text); max-width: 34ch; }

.labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
label { font-weight: 700; font-size: 16px; color: var(--ink); }
.linkbtn { appearance: none; background: none; border: 0; padding: 10px 0; min-height: 48px; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.labelrow .linkbtn { padding: 0; min-height: 48px; }

.plate { position: relative; margin-top: 4px; border-radius: 10px; padding: 3px; background: linear-gradient(160deg, var(--plate-a), var(--plate-b)); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #9aa4ae; }
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8d97a1 70%); }
.plate::before { left: 9px; } .plate::after { right: 9px; }
.plate input { display: block; width: 100%; height: 62px; border: 2px solid #8d97a1; border-radius: 8px; padding: 0 22px; background: transparent; font: 700 22px/1 var(--mono); letter-spacing: 0.07em; color: #1d2328; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.plate input::placeholder { color: #6b747e; text-shadow: none; font-family: var(--sans); font-weight: 600; text-transform: none; letter-spacing: 0; }
.plate input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px var(--accent); }
.plate input[aria-invalid="true"] { border-color: var(--bad); }

.ticks { display: grid; grid-template-columns: repeat(17, 1fr); gap: 3px; height: 12px; margin: 8px 22px 0; align-items: end; }
.ticks i { display: block; height: 7px; background: var(--line); border-radius: 1px; }
.ticks i.cd { height: 12px; }
.ticks i.on { background: var(--ink); }
.ticks.done i.on { background: var(--good); }
.count { margin: 2px 0 0; font-size: 15px; color: var(--muted); text-align: right; }
.msg { margin: 6px 0 0; padding: 10px 12px; border-left: 5px solid var(--bad); background: var(--bad-bg); color: var(--ink); font-size: 17px; }
.msg.info { border-left-color: var(--accent-dark); background: var(--info-bg); }
.msg .linkbtn { display: block; padding: 6px 0 0; min-height: 48px; }

.go, .buy { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; margin-top: 12px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 800 21px/1.15 var(--sans); text-decoration: none; text-align: center; cursor: pointer; box-shadow: 0 3px 0 var(--accent-dark); }
.go:active, .buy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-dark); }
.go[disabled] { opacity: .7; cursor: progress; }
.note { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.ic { width: 24px; height: 24px; flex: none; }

/* Where's the VIN? drawings: in the sheet on phones, beside the form on computers. */
.spots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.spots li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 10px; }
.spots h3 { font-size: 18px; }
.spots p { margin: 2px 0 0; font-size: 17px; }
.draw { color: var(--ink); }
.draw svg { display: block; width: 96px; height: 64px; }
.draw .spot { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.spots-side { display: none; }

/* Result */
.result { padding: 0 0 20px; }
.again { padding: 0; min-height: 48px; }
.car { font-size: 25px; line-height: 1.15; font-weight: 850; letter-spacing: -0.015em; outline: none; }
.vinline { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.vinline b { font: 700 15px var(--mono); letter-spacing: .05em; color: var(--ink); }
.warn { margin: 8px 0 0; font-size: 17px; }
.recalls { margin-top: 10px; }
.rhead { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; font-size: 19px; color: var(--ink); margin: 0; }
.rhead::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--bad); }
.rhead.none::before { background: var(--good); }
.rhead.quiet { font-weight: 600; font-size: 17px; } .rhead.quiet::before { background: var(--line); }
.rlist { list-style: none; margin: 4px 0 0 22px; padding: 0; }
.rlist li { font-size: 16px; line-height: 1.35; padding: 3px 0; }
.rlist li .one { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rlist li.open .one { white-space: normal; }
.rlist b { color: var(--ink); }
.rlist .park { display: block; color: var(--bad); font-weight: 800; }
.rlist details { font-size: 15px; color: var(--muted); }
.rlist summary { cursor: pointer; padding: 12px 0; min-height: 48px; }
.rlinks { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 2px 0 0 22px; }
.rlinks a, .rlinks .linkbtn { font-size: 16px; min-height: 48px; padding: 4px 0; display: inline-flex; align-items: center; font-weight: 700; }

.unchecked { margin-top: 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px 12px; }
.unchecked h3 { font-size: 19px; font-weight: 850; }
.nc { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.nc li { font-size: 15px; font-weight: 700; color: var(--ink); padding: 2px 9px 2px 23px; border: 2px dashed var(--muted); border-radius: 16px; position: relative; }
.nc li::before { content: "?"; position: absolute; left: 8px; top: 2px; font-weight: 900; color: var(--muted); }
.unchecked .buy { margin-top: 10px; }
.buy2 { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 8px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font: 700 18px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.paynote { margin: 8px 0 0; font-size: 16px; line-height: 1.35; color: var(--text); }
.copied { margin: 8px 0 0; font-weight: 700; color: var(--good); }

/* Below the fold */
.more { max-width: 720px; padding: 26px 0 8px; border-top: 2px solid var(--line); }
.more h2 { font-size: 26px; font-weight: 850; letter-spacing: -0.01em; margin-bottom: 10px; }
.more h3 { font-size: 20px; margin: 18px 0 4px; }
.more p { margin: 8px 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 20px; }
.steps h3 { margin: 0; font-size: 19px; align-self: center; }
.steps p { margin: 2px 0 0; }
.covers { margin: 0; padding-left: 22px; }
.covers li { margin: 6px 0; }
.honest { padding: 10px 12px; background: var(--info-bg); border-left: 5px solid var(--accent-dark); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--ink); min-height: 48px; }
.faq details p { margin: 0 0 14px; }

.foot { max-width: 1120px; margin: 20px auto 0; padding: 18px 16px 30px; border-top: 2px solid var(--line); font-size: 16px; }
.foot p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.foot a { display: inline-flex; min-height: 48px; min-width: 48px; align-items: center; }
.run { margin-top: 6px !important; color: var(--muted); gap: 8px !important; }
.run img { border-radius: 4px; }

/* Sheets */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh; border-radius: 16px 16px 0 0; background: var(--ground); color: var(--text); }
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet-in { position: relative; padding: 18px 16px 24px; }
.sheet h2 { font-size: 24px; padding-right: 48px; }
.sheet p { margin: 6px 0; }
.sheet .photo { margin-top: 16px; font-weight: 700; }
.x { position: absolute; right: 6px; top: 6px; width: 48px; height: 48px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--ink); cursor: pointer; }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 16px; } }

/* Short phones: keep the result's key parts on the first screen. */
@media (max-height: 700px) and (max-width: 699px) {
  .top { padding: 6px 16px; }
  h1 { font-size: 33px; }
  .lede { margin: 8px 0 14px; }
  .car { font-size: 23px; }
  .rlist li { padding: 2px 0; }
  .unchecked { padding: 10px 12px; }
  .nc { gap: 5px; }
  .unchecked .buy { min-height: 58px; font-size: 20px; }
  .buy2 { min-height: 48px; }
  .again { min-height: 48px; }
}

/* Computers: form left, where-to-find right. */
@media (min-width: 960px) {
  h1 { font-size: 56px; }
  .lede { font-size: 21px; }
  .hero { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 420px); gap: 64px; padding: 30px 0 40px; align-items: start; }
  .spots-side { display: block; padding-top: 8px; }
  .spots-side h2 { font-size: 22px; }
  .labelrow .linkbtn { display: none; }
  .result { max-width: 640px; padding-top: 20px; }
  .car { font-size: 34px; }
  body.has-result .hero { display: none; }
}
body.has-result .hero { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.offscreen { position: fixed; left: -9999px; top: 0; }
/* Privacy and terms */
.legal { max-width: 720px; padding-bottom: 20px; }
.legal h1 { font-size: 34px; margin: 10px 0 6px; }
.legal h2 { font-size: 22px; margin: 22px 0 4px; }
.legal p { margin: 8px 0; }
.rlist li:not(.open) details { display: none; }

/* Dark mode: our own theme, so phone browsers (Chrome auto-dark, Samsung Internet dark mode) don't repaint the page.
   The VIN plate stays a light metal plate in both. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff; --text: #e3e7eb; --muted: #aab3bc; --ground: #15181c; --paper: #20252b; --line: #3d454e;
    --bad: #ff7b6e; --good: #5ccf86; --bad-bg: #3a1d1b; --info-bg: #3a3218;
  }
  .lang { background: var(--paper); }
  .rhead::before { background: #e5483b; }
}
/* Forced colors (Windows high contrast, some Android accessibility modes): keep the ruler, dots and buttons visible. */
@media (forced-colors: active) {
  .go, .buy, .buy2, .lang, .unchecked, .plate input { border: 2px solid ButtonText; }
  .ticks i { background: GrayText; forced-color-adjust: none; }
  .ticks i.on, .ticks.done i.on { background: CanvasText; }
  .rhead::before { forced-color-adjust: none; background: CanvasText; }
  .plate { forced-color-adjust: none; }
  .plate input { color: #000; background: #fff; }
}
