:root {
  --navy-950: #07111f;
  --navy-900: #0b1a2e;
  --navy-850: #0e2038;
  --navy-800: #122844;
  --navy-700: #1a365a;
  --navy-600: #24466f;
  --blue-600: #2459d6;
  --blue-500: #2f6fed;
  --blue-100: #e6eefd;
  --ink: #0f1b2d;
  --ink-soft: #33435a;
  --muted: #5d6c82;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;
  --bg: #f3f5f9;
  --white: #ffffff;
  --green-700: #0f6e4f;
  --green-50: #e8f6ef;
  --amber-700: #8a4b00;
  --amber-50: #fff3df;
  --red-700: #a8231b;
  --red-50: #fdeceb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 4px 16px rgba(15, 27, 45, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 0.85em;
}

a {
  color: var(--blue-600);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy-700);
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 820px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  min-height: 56px;
  padding: 0 26px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary[disabled] {
  background: #7d9be0;
  cursor: progress;
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--navy-600);
  color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #9fc0ff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--white);
}

/* ---------- header ---------- */

.site-header {
  background: var(--navy-950);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: #c3cfe0;
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-850) 100%);
  color: #d7e1ef;
  padding: 72px 0 80px;
}

.hero-inner {
  max-width: 860px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: #8fb2f5;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: #b9c7da;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
}

.vin-form {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.vin-label {
  display: block;
  margin-bottom: 8px;
  color: #c9d5e6;
  font-size: 0.875rem;
  font-weight: 600;
}

.vin-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vin-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.vin-field input {
  width: 100%;
  height: 56px;
  padding: 0 76px 0 18px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vin-field input::placeholder {
  color: #9aa7b8;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
}

.vin-field input:focus {
  outline: none;
  border-color: var(--blue-500);
}

.vin-field input[aria-invalid="true"] {
  border-color: #e5534b;
}

.vin-counter {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.vin-counter.is-complete {
  background: var(--green-50);
  color: var(--green-700);
}

.vin-counter.is-over {
  background: var(--red-50);
  color: var(--red-700);
}

.field-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(229, 83, 75, 0.14);
  border: 1px solid rgba(229, 83, 75, 0.4);
  color: #ffd4d1;
  font-size: 0.95rem;
}

.vin-help {
  margin: 14px 0 0;
  color: #9fb0c7;
  font-size: 0.9rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: #c3cfe0;
  font-size: 0.925rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%239fc0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- generic sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.section-alt .card {
  box-shadow: none;
  background: #fafbfd;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.prose p {
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
}

.steps h3 {
  font-size: 1.02rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.numbered {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.numbered li + li {
  margin-top: 8px;
}

.mark-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.mark-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.mark-list li:last-child {
  border-bottom: 0;
}

.mark-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.mark-yes li::before {
  background-color: var(--green-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f6e4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mark-no li::before {
  background-color: var(--red-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23a8231b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.notice-card {
  margin-top: 20px;
  border-left: 4px solid var(--blue-500);
}

.notice-card p {
  color: var(--ink-soft);
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.source-card {
  display: flex;
  flex-direction: column;
}

.source-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.source-card a {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.925rem;
}

.source-tag {
  margin-bottom: 6px !important;
  color: var(--blue-600) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #9fb0c7;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.noscript {
  padding: 14px 20px;
  background: var(--amber-50);
  color: var(--amber-700);
  text-align: center;
  font-weight: 600;
}

/* ---------- report: status cards ---------- */

.report-area {
  padding: 40px 0 8px;
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.status-title {
  margin-bottom: 4px;
  font-weight: 700;
}

.status-text {
  margin: 0;
  color: var(--muted);
}

.status-error {
  border-color: #f2c4c0;
  background: #fffafa;
}

.status-error .status-title {
  color: var(--red-700);
}

.status-error .btn {
  margin-top: 12px;
}

.spinner {
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: 2px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.spinner.sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
  margin-top: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.5s;
  }
}

/* ---------- report ---------- */

.report {
  display: grid;
  gap: 20px;
}

.print-header,
.print-footer {
  display: none;
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  border: 0;
  background: var(--navy-900);
  color: #c9d5e6;
}

.report-head .eyebrow {
  margin-bottom: 8px;
}

.report-title {
  margin: 0 0 6px;
  color: var(--white);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
}

.report-title:focus {
  outline: none;
}

.report-title .year {
  color: #8fb2f5;
  font-weight: 600;
}

.report-sub {
  margin: 0 0 16px;
  color: #b9c7da;
}

.report-caveat {
  max-width: 620px;
  margin: -8px 0 16px;
  color: #f3c77a;
  font-size: 0.85rem;
}

.vin-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vin-chip .label {
  color: #8fa3bf;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vin-chip code {
  color: var(--white);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  word-break: break-all;
}

.report-meta {
  margin: 12px 0 0;
  color: #8fa3bf;
  font-size: 0.85rem;
}

.report-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--line-strong);
}

.stat-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.stat-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.tone-ok {
  border-top-color: #2fa27a;
}

.tone-ok .stat-value {
  color: var(--green-700);
}

.tone-warn {
  border-top-color: #e3a13b;
}

.tone-warn .stat-value {
  color: var(--amber-700);
}

.tone-bad {
  border-top-color: #e5534b;
}

.tone-bad .stat-value {
  color: var(--red-700);
}

.tone-neutral {
  border-top-color: var(--navy-600);
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.key-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.key-item:nth-child(3n + 1),
.key-item:nth-child(3n + 2) {
  border-right: 1px solid var(--line);
}

.key-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.key-item dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.key-item dd {
  margin: 0;
  font-weight: 600;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.card-head h3 {
  margin: 0;
}

.card-flush {
  padding: 0;
  overflow: hidden;
}

.card-flush > .card-head {
  padding: 20px 24px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.badge-amber {
  background: var(--amber-50);
  color: var(--amber-700);
}

.badge-red {
  background: var(--red-50);
  color: var(--red-700);
}

.badge-green {
  background: var(--green-50);
  color: var(--green-700);
}

.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f6f8fb;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.note + .note {
  margin-top: 8px;
}

.note::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: Georgia, serif;
}

.note-warn {
  background: var(--amber-50);
  color: #5c3a06;
}

.note-warn::before {
  content: "!";
  background: #c27a12;
  font-family: var(--font);
}

.note-ok {
  background: var(--green-50);
  color: #0d4a36;
}

.note-ok::before {
  content: "✓";
  background: var(--green-700);
  font-family: var(--font);
}

.raw-details {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.raw-details summary {
  cursor: pointer;
  font-weight: 600;
}

.raw-details p {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  word-break: break-word;
}

.spec-grid {
  columns: 2;
  column-gap: 20px;
  margin-bottom: -20px;
}

.spec-grid > .card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.spec-table {
  width: 100%;
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 11px 24px;
  border-top: 1px solid var(--line);
}

.spec-row dt {
  color: var(--muted);
  font-size: 0.925rem;
}

.spec-row dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.spec-row.is-missing dd {
  color: #8b97a8;
  font-weight: 500;
  font-style: italic;
}

.value-missing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.value-missing::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c3ccd8;
}

.other-card > summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

.other-card[open] > summary {
  border-bottom: 1px solid var(--line);
}

.other-card .spec-row:first-child {
  border-top: 0;
}

.recall-meta {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.scope-banner {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: #1b3a73;
  font-size: 0.925rem;
}

.scope-banner strong {
  color: #10285a;
}

.recall-list {
  display: grid;
  gap: 12px;
}

.recall-list.is-collapsed > .recall:nth-child(n + 6) {
  display: none;
}

.recall-more {
  margin-top: 14px;
}

.recall {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid #e3a13b;
  border-radius: var(--radius-sm);
  background: #fffdf9;
}

.recall-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.recall-id {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}

.recall h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.recall-component {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--mono);
  word-break: break-word;
}

.recall-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.recall-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.recall details {
  margin-top: 10px;
}

.recall details summary {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.recall dl {
  margin: 10px 0 0;
}

.recall dt {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.recall dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.925rem;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: #fafbfd;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

.inline-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.unavailable-list {
  margin: 0;
}

.unavailable-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.unavailable-row:first-child {
  border-top: 0;
}

.unavailable-row dt {
  font-weight: 600;
}

.unavailable-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.925rem;
}

.unavailable-row .badge {
  margin-bottom: 4px;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.source-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.source-list .src-name {
  display: block;
  font-weight: 700;
}

.source-list .src-url {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  word-break: break-all;
}

.source-list .src-meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.disclaimer {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.925rem;
  box-shadow: 0 8px 24px rgba(7, 17, 31, 0.3);
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--navy-900);
}

.notfound {
  max-width: 520px;
  padding: 24px;
  text-align: center;
  color: #b9c7da;
}

.notfound h1 {
  color: var(--white);
  font-size: 2rem;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-grid {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .lead {
    margin-bottom: 26px;
  }

  .vin-row {
    flex-direction: column;
    padding: 6px;
  }

  .vin-field input {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    align-items: flex-start;
    max-width: 320px;
    margin: 28px auto 0;
  }

  .section {
    padding: 52px 0;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-head {
    flex-direction: column;
    padding: 22px;
  }

  .report-actions {
    width: 100%;
    min-width: 0;
  }

  .key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-item:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .key-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .key-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 18px;
  }

  .card-flush {
    padding: 0;
  }

  .card-flush > .card-head {
    padding: 18px 18px 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-grid {
    gap: 10px;
  }

  .stat {
    padding: 14px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 18px;
  }

  .unavailable-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .other-card > summary {
    padding: 18px;
  }
}

/* ---------- print / PDF ---------- */

@media print {
  @page {
    size: A4;
    margin: 14mm 12mm;
  }

  body {
    background: #fff;
    font-size: 10.5pt;
    color: #000;
  }

  .site-header,
  .hero,
  .section,
  .site-footer,
  .skip-link,
  .no-print,
  .toast,
  #report-loading,
  #report-error {
    display: none !important;
  }

  .report-area {
    padding: 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 2px solid #0b1a2e;
    font-size: 9pt;
    color: #333;
  }

  .print-header strong {
    font-size: 12pt;
    color: #0b1a2e;
  }

  .print-footer {
    display: block;
    padding-top: 8px;
    border-top: 1px solid #ccc;
    font-size: 8pt;
    color: #444;
  }

  .report {
    gap: 12px;
  }

  .card,
  .stat {
    box-shadow: none;
    border-color: #ccd3dd;
  }

  .report-head {
    background: #fff;
    color: #000;
    border: 1px solid #ccd3dd;
    padding: 16px;
  }

  .report-title,
  .vin-chip code {
    color: #000;
  }

  .report-title .year,
  .report-head .eyebrow {
    color: #2459d6;
  }

  .report-sub,
  .report-meta,
  .vin-chip .label {
    color: #444;
  }

  .report-caveat {
    color: #8a4b00;
  }

  .vin-chip {
    background: #f3f5f9;
    border-color: #ccd3dd;
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 10px;
  }

  .spec-grid {
    columns: 2;
    column-gap: 12px;
    margin-bottom: -12px;
  }

  .spec-grid > .card {
    margin-bottom: 12px;
  }

  .recall-list.is-collapsed > .recall {
    display: block !important;
  }

  .spec-row {
    padding: 6px 14px;
  }

  .card-flush > .card-head {
    padding: 12px 14px 0;
  }

  .stat,
  .spec-grid > .card,
  .recall,
  .note,
  .unavailable-row,
  .source-list li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .recall {
    background: #fff;
  }

  .recall details > summary {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
