:root {
  color-scheme: dark;
  --page:#182c40; --card:#1d3348; --text:#ffffff; --muted:#d3dce6;
  --line:#3a5064; --mint:#64d1b1; --deep:#182c40; --paper:#f4f8f7;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  background:var(--page); color:var(--text); scroll-behavior:smooth;
}
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
a { color:inherit; text-decoration:none; }
button, input, select { font:inherit; }
button, select { cursor:pointer; }
button:disabled, select:disabled { cursor:wait; opacity:.67; }
:focus-visible { outline:2px solid #4fcd97; outline-offset:4px; }
::selection { color:var(--deep); background:var(--mint); }
.wrap { width:min(1200px, calc(100% - 112px)); margin-inline:auto; }
.skip { position:fixed; z-index:9; top:10px; left:10px; background:var(--mint); color:var(--deep); padding:10px; transform:translateY(-150%); }
.skip:focus { transform:none; }
.sr-only { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.masthead { height:82px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; border-bottom:1px solid var(--line); }
.brand { justify-self:start; display:inline-flex; align-items:center; gap:11px; font-family:system-ui,sans-serif; font-size:30px; font-weight:650; letter-spacing:-.055em; line-height:1; }
.brand-accent { color:var(--mint); }
.masthead nav { display:flex; align-items:center; gap:28px; color:var(--muted); font-size:14px; font-weight:600; }
.masthead nav a:hover, .footer a:hover { color:var(--mint); }
.mode { justify-self:end; display:flex; align-items:center; gap:8px; padding:8px 11px; border:1px solid var(--line); border-radius:6px; color:var(--mint); font:11px var(--mono); white-space:nowrap; }
.mode i { width:6px; height:6px; display:inline-block; border-radius:50%; background:var(--mint); box-shadow:0 0 9px #64d1b170; }
.workbench { max-width:680px; margin-inline:auto; padding:clamp(46px, 6vw, 78px) 0 clamp(42px, 5vw, 66px); }
.lookup-copy { text-align:center; }
.lookup-copy > .index { justify-content:center; }
.index { display:flex; align-items:center; gap:10px; color:var(--mint); font:11px var(--mono); letter-spacing:.14em; }
.index span:nth-child(2) { width:19px; height:1px; background:currentColor; opacity:.65; }
h1, h2, h3, p, figure { margin:0; }
h1 { margin:20px auto 0; max-width:13ch; font-size:clamp(44px, 6.4vw, 78px); line-height:.99; font-weight:720; letter-spacing:-.069em; text-wrap:balance; }
h1 em { color:var(--mint); font-style:normal; }
.intro { margin:20px auto 27px; max-width:48ch; color:var(--muted); font-size:16px; line-height:1.55; }
#form, .examples { max-width:480px; margin-inline:auto; }
#form { text-align:left; }
.fields { display:flex; gap:12px; }
.field { flex:1 1 0; min-width:0; }
.field label { display:block; margin-bottom:7px; font-size:13px; font-weight:650; }
.select { position:relative; }
.select::after { content:""; position:absolute; top:43%; right:16px; width:8px; height:8px; border:solid var(--mint); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); pointer-events:none; }
.select select { width:100%; min-height:46px; appearance:none; border:1px solid var(--line); border-radius:7px; padding:0 32px 0 13px; color:var(--text); background:var(--card); font-size:14px; }
.plate-field { margin-top:15px; }
.plate { display:flex; min-height:58px; border-radius:8px; overflow:hidden; background:var(--paper); border:2px solid transparent; transition:border-color .18s, box-shadow .18s; }
.plate:focus-within { border-color:#64d1b1; box-shadow:0 0 0 3px #64d1b140; }
.plate > span { display:grid; place-items:center; width:48px; flex:none; background:#c7eee2; color:#1b5344; font:700 12px var(--mono); border-right:1px solid #1b53442e; }
.plate input { flex:1; width:0; outline:none; border:0; background:transparent; color:var(--deep); padding:0 12px; font:700 clamp(19px, 3vw, 25px) var(--mono); letter-spacing:.09em; text-transform:uppercase; }
.plate input::placeholder { color:#526967; opacity:.8; }
.submit { width:100%; margin-top:12px; min-height:49px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; border:0; border-radius:8px; color:#142d2b; background:var(--mint); font-size:14px; font-weight:750; transition:background .2s, transform .2s; }
.submit:not(:disabled):hover { background:#8ae0c7; transform:translateY(-2px); }
.submit:not(:disabled):active { transform:translateY(1px); }
.submit svg { transition:transform .2s; }
.submit:not(:disabled):hover svg { transform:translateX(4px); }
.form-message { color:#ffd4ae; margin-top:10px; font-size:13px; line-height:1.5; }
.form-message:empty { display:none; }
.examples { display:flex; justify-content:center; align-items:center; gap:7px; flex-wrap:wrap; margin-top:15px; font-size:12px; color:var(--muted); }
.examples > span { margin-right:4px; }
.examples button { background:transparent; color:var(--text); border:1px solid var(--line); border-radius:6px; padding:5px 8px; font-size:12px; transition:background .18s; }
.examples button:hover { background:#293c48; }
.examples button span { color:var(--mint); margin-left:3px; }
.result { color-scheme:light; background:var(--paper); color:var(--deep); padding:clamp(22px, 4vw, 48px); border-radius:13px; scroll-margin:20px; margin:0 0 40px; animation:arrive .48s cubic-bezier(.2,.8,.2,1) both; }
@keyframes arrive { from { transform:translateY(12px); opacity:0; } }
.result .index { color:#256b54; margin-bottom:21px; }
.result-layout { display:grid; align-items:center; grid-template-columns:minmax(0, 1fr) minmax(0, .59fr); gap:clamp(20px, 4vw, 45px); }
.record-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:13px; font:11px var(--mono); }
.record-meta span { padding:6px 8px; border-radius:4px; background:#dde7e2; }
.record-meta span:first-child { background:#b8efd2; font-weight:700; letter-spacing:.07em; }
.result h2 { max-width:24ch; font-size:clamp(28px, 4vw, 52px); line-height:1.04; letter-spacing:-.055em; overflow-wrap:anywhere; }
.result-country { margin-top:8px; color:#465f62; font-size:14px; }
.vin { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 14px; padding:15px; margin-top:22px; background:#e3eee8; border:1px solid #ccdcd3; border-radius:8px; }
.vin > div { min-width:0; }
.vin h3 { font-size:12px; color:#365752; }
.vin p { font:650 clamp(13px, 1.8vw, 19px) var(--mono); overflow-wrap:anywhere; margin-top:5px; }
#copy-vin { display:inline-flex; align-items:center; gap:5px; color:var(--deep); background:var(--paper); border:1px solid #b4ccc0; border-radius:5px; padding:5px 8px; font-size:12px; font-weight:650; }
#copy-vin:hover { background:#c8f4db; }
.record-image { border-radius:8px; overflow:hidden; background:#dce9e3; }
.record-image img { display:block; width:100%; height:auto; aspect-ratio:560/380; object-fit:contain; }
.record-image figcaption { padding:7px 10px; font:10px var(--mono); color:#365752; }
#photo-unavailable { min-height:120px; display:grid; place-items:center; padding:20px; text-align:center; color:#365752; font-size:13px; }
.details, .extras { margin-top:24px; border-top:1px solid #c9d8d1; padding-top:16px; }
.details h3, .extras summary { font-size:15px; font-weight:720; }
.extras summary { cursor:pointer; }
.specs { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:0 20px; margin:9px 0 0; }
.specs > div { padding:11px 0; border-bottom:1px solid #d5e0da; overflow-wrap:anywhere; }
.specs dt { color:#46615d; font-size:12px; }
.specs dd { margin:2px 0 0; font-size:14px; font-weight:650; white-space:pre-wrap; }
.about { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px 42px; border-top:1px solid var(--line); padding:30px 0 35px; scroll-margin:16px; }
.about h2 { margin-top:8px; font-size:25px; letter-spacing:-.045em; }
.about h3 { color:var(--text); font-size:15px; margin-bottom:6px; }
.about p { color:var(--muted); font-size:13px; line-height:1.55; max-width:39ch; }
.footer { display:flex; justify-content:space-between; gap:12px; padding:20px 0 25px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
@media (max-width:940px) { .wrap { width:calc(100% - 64px); } }
@media (max-width:700px) {
  .wrap { width:calc(100% - 36px); }
  .masthead { height:65px; grid-template-columns:1fr auto; gap:10px; }
  .masthead nav { display:none; }
  .brand { font-size:24px; }
  .brand img { width:32px; height:32px; }
  .workbench { padding-top:39px; }
  h1 { font-size:clamp(44px, 9vw, 62px); }
  .intro { margin:16px auto 21px; }
  .result-layout { grid-template-columns:1fr; }
  .record-image { max-width:420px; }
  #photo-unavailable { min-height:68px; }
  .specs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .about { grid-template-columns:1fr; gap:18px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}

.preview .specs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.purchase { align-self:start; border:1px solid #b8d9cd; border-radius:10px; padding:20px; background:#e3f1eb; }
.purchase-heading { display:flex; align-items:center; gap:9px; }
.purchase-heading svg { flex:none; color:#1b6e55; }
.purchase-heading h3 { font-size:16px; line-height:1.2; }
.purchase p, .order-panel p { color:#385850; margin-top:9px; line-height:1.5; font-size:14px; }
.purchase .submit { margin:16px 0 0; }
.purchase #pay-caption { font-size:12px; }
.purchase #pay-status:empty, .order-panel #report-link-status:empty { display:none; }
.order-panel .secondary { margin-top:14px; }
.secondary { padding:9px 12px; border:1px solid #b8d9cd; border-radius:6px; background:#e3f1eb; color:var(--deep); font-size:13px; font-weight:650; }
.secondary:hover { background:#cfebe0; }

.footer nav { display:flex; flex-wrap:wrap; gap:12px 20px; }
.launch-notes { grid-template-columns:repeat(2,minmax(0,1fr)); }
.launch-notes a,.article-copy a,.purchase p a { text-decoration:underline; text-underline-offset:.18em; }
.article-copy { max-width:740px; margin:0 auto; padding:clamp(36px,6vw,70px) 0; }
.article-copy h1 { max-width:none; margin:0 0 22px; font-size:clamp(39px,5vw,66px); }
.article-copy h2 { margin:27px 0 9px; font-size:24px; letter-spacing:-.035em; }
.article-copy p { margin:0 0 12px; font-size:16px; line-height:1.65; color:var(--muted); }
.article-copy a { color:var(--mint); }
.purchase-consent { display:grid; grid-template-columns:auto 1fr; gap:8px; align-items:start; font-size:12px; line-height:1.45; margin-top:14px; }
.purchase-consent input { accent-color:#166047; margin-top:3px; }
@media(max-width:700px) { .launch-notes { grid-template-columns:1fr; } }
