/* Vingeo — see DESIGN.md.
   Layout metrics, type scale, spacing and component anatomy follow the measured
   reference; brand marks, imagery and copy are original Vingeo material.
   Greens used as text or behind text are darkened from the reference accent so
   every pairing clears WCAG 2.2 AA. */

:root {
  --page: #F6F6F6;
  --surface: #FFFFFF;
  --surface-2: #EEEEEE;

  --ink: rgba(0, 0, 0, 0.87);
  --ink-strong: #000000;
  --ink-soft: rgba(0, 0, 0, 0.62);
  --ink-legal: #666666;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.23);

  /* Accent for non-text UI (3.2:1 on white) */
  --brand: #00A650;
  /* Accent for text and text backgrounds (5.05:1 on white) */
  --brand-strong: #00803E;
  --brand-hover: #006B34;
  --brand-dark: #08402A;
  --brand-tint: #E6F1EA;
  --brand-tint-2: #CEDAD2;

  --link: #2070C0;
  --link-hover: #17518F;
  --dark: #333333;
  --tab-off: #E6E6E6;

  --ok: #1A7F37;
  --caution: #8A5200;
  --danger: #B42318;

  --radius: 4px;
  --radius-card: 20px;
  --rail-max: 1200px;
  --rail-pad: 24px;
  --header-h: 52px;

  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-header: 0 3px 3px 0 rgba(0, 0, 0, 0.14);
  --shadow-card: 0 20px 25px 0 rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-1: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  --shadow-btn: 0 1px 2px 0 rgba(0, 0, 0, 0.15);

  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 16px; color: var(--ink); font-weight: 400; }
h1 { font-size: 42px; line-height: 48px; }
h2 { font-size: 36px; line-height: 42px; }
h3 { font-size: 23px; line-height: 32px; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 18px; line-height: 28px; font-weight: 700; margin-bottom: 8px; }

@media (max-width: 600px) {
  h1 { font-size: 32px; line-height: 40px; }
  h2 { font-size: 28px; line-height: 36px; }
  h3 { font-size: 20px; line-height: 28px; }
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.skip-link:focus-visible { left: 8px; top: 8px; }

.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;
}

/* One shared content rail across header, sections and footer. */
.rail {
  width: 100%;
  max-width: var(--rail-max);
  margin-inline: auto;
  padding-inline: var(--rail-pad);
}
@media (max-width: 600px) { .rail { padding-inline: 16px; } }

.muted { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-header);
}
.site-header .rail { padding-inline: 16px; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { height: 26px; width: auto; }
.logo-sep { width: 1px; height: 28px; background: #A3A3A3; }
.logo-tag { font-size: 10px; line-height: 15px; color: var(--ink-strong); max-width: 96px; margin: 0; }

.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.nav-list > li { display: flex; align-items: center; }

.nav-list > li > a:not(.btn),
.nav-tools-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding-inline: 16px;
  font: inherit;
  font-size: 16px;
  line-height: var(--header-h);
  color: var(--ink-strong);
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-list > li > a:not(.btn):hover,
.nav-tools-btn:hover { color: var(--brand-strong); }
.nav-list > li > a:not(.btn)[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -3px 0 var(--brand); }

.icon { width: 16px; height: 16px; flex: none; }
.icon-chevron { transition: transform var(--dur) var(--ease); }
.nav-tools-btn[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }

.nav-tools { position: relative; }
.tools-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  inset-inline-start: 0;
  min-width: 272px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.nav-tools-btn[aria-expanded="true"] + .tools-menu { display: block; }
.tools-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.tools-menu a:hover { background: var(--page); color: var(--brand-strong); }

.tag-free {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-strong);
  border: 1px solid var(--brand);
  border-radius: 2px;
  padding: 0 5px;
}

.nav-auth { margin-inline-start: 8px; }
.nav-lang { margin-inline-start: 8px; }
.lang-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-strong); }
.lang-badge .icon { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 5px 10px;
  font: inherit;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink-strong);
  background: none;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }
  .logo-sep, .logo-tag { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-list > li > a:not(.btn), .nav-tools-btn {
    height: auto;
    line-height: 28px;
    width: 100%;
    padding: 12px 32px;
    justify-content: space-between;
  }
  .tools-menu {
    position: static;
    display: block;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px;
    background: var(--page);
  }
  .tools-menu a { padding: 10px 48px; }
  .nav-auth, .nav-lang { padding: 12px 32px; }
  .nav-auth .btn { width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 15px;
  font-family: inherit;
  font-size: 14px;
  line-height: 24.5px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-primary {
  background-color: var(--brand-strong);
  background-image: linear-gradient(rgba(255, 255, 255, 0.23) 0%, rgba(255, 255, 255, 0) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background-color: var(--brand-hover); color: #FFFFFF; }

.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }

.btn-outline { background: transparent; color: var(--brand-strong); border: 2px solid rgba(0, 128, 62, 0.5); }
.btn-outline:hover { background: rgba(0, 128, 62, 0.06); border-color: var(--brand-strong); color: var(--brand-strong); }

.btn-block { width: 100%; height: 50px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

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

.hero-home {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
  overflow: hidden;
  padding: 26px 0 64px;
  background-image: linear-gradient(90deg, var(--brand-tint), var(--brand-tint-2));
}
@media (max-width: 900px) { .hero-home { min-height: 0; padding-bottom: 48px; } }
/* Hero backdrop image, sized and anchored as in the reference. */
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% -4px;
  pointer-events: none;
  user-select: none;
}

.hero-home .rail { position: relative; z-index: 1; }
.hero-title { text-align: center; }
.hero-title h1 { margin-bottom: 16px; }
.hero-sub { font-size: 23px; line-height: 32px; margin: 0; }
@media (max-width: 600px) { .hero-sub { font-size: 18px; line-height: 28px; } }

.hero-card {
  max-width: 767px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid rgba(52, 52, 52, 0.15);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 46px 0;
}
.hero-card-top h2 { font-size: 22px; line-height: 32px; font-weight: 700; margin: 0; }

.tabs { display: flex; }
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 30px;
  font-family: inherit;
  font-size: 16px;
  line-height: 16px;
  color: var(--dark);
  background: var(--tab-off);
  border: 1px solid var(--tab-off);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tab:first-child { border-radius: 90px 0 0 90px; }
.tab:last-child { border-radius: 0 90px 90px 0; }
.tab[aria-selected="true"] { background: var(--dark); border-color: var(--dark); color: var(--page); font-weight: 700; }
.tab:hover:not([aria-selected="true"]) { background: #D8D8D8; border-color: #D8D8D8; }

.hero-card > [role="tabpanel"] { padding: 20px 46px 22px; }
.hero-card-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 46px 24px;
  font-size: 16px;
}
@media (max-width: 600px) {
  .hero-card-top { padding: 24px 20px 0; justify-content: center; }
  .hero-card > [role="tabpanel"] { padding: 16px 20px 18px; }
  .hero-card-links { padding: 0 20px 20px; justify-content: center; }
}

.tab-panel-note { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- VIN form ---------- */

.vin-form { margin: 0; }
.vin-label {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: start;
  margin-bottom: 6px;
}
.hero-card .vin-label { text-align: center; margin-bottom: 6px; font-size: 13px; line-height: 18px; }
.vin-row { display: flex; flex-direction: column; gap: 0; }
.vin-input-wrap { position: relative; }

.vin-input {
  width: 100%;
  height: 50px;
  padding: 16.5px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 23px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
  background: transparent;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: inset 0 2px 2px 0 rgba(0, 0, 0, 0.15);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.vin-input::placeholder { font-weight: 400; color: var(--ink-soft); text-transform: none; }
.vin-input:hover { border-color: var(--brand-strong); }
.vin-input:focus { border-color: var(--brand-strong); outline: none; box-shadow: inset 0 2px 2px 0 rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 128, 62, 0.25); }
.vin-input:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }

.vin-count {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  pointer-events: none;
}
.vin-count.done { color: var(--ok); }
.hero-card .vin-count { display: none; }

.vin-form .btn { margin-top: 24px; width: 100%; height: 50px; }
.vin-hint { min-height: 22px; font-size: 14px; line-height: 22px; margin: 8px 0 0; color: var(--ink-soft); }
.vin-hint.warn { color: var(--caution); }
.vin-hint.err { color: var(--danger); }

/* Compact inline form used by the tool landers and the inspection page */
.hero .vin-form,
.plate-tool .vin-form { max-width: 560px; margin-top: 24px; }
.hero .vin-input,
.plate-tool .vin-input { text-align: start; }
.hero .vin-form .btn,
.plate-tool .vin-form .btn { margin-top: 12px; }
@media (min-width: 640px) {
  .hero .vin-row,
  .plate-tool .vin-row { flex-direction: row; align-items: stretch; gap: 8px; }
  .hero .vin-input-wrap,
  .plate-tool .vin-input-wrap { flex: 1 1 auto; }
  .hero .vin-form .btn,
  .plate-tool .vin-form .btn { margin-top: 0; width: auto; min-width: 168px; }
}

/* ---------- Inner-page hero ---------- */

.hero {
  padding: 48px 0 40px;
  background-image: linear-gradient(90deg, var(--brand-tint), var(--brand-tint-2));
}
.hero-inner { max-width: var(--rail-max); }
.hero p.lead { font-size: 20px; line-height: 30px; max-width: 62ch; margin: 0; }
@media (max-width: 600px) { .hero p.lead { font-size: 17px; line-height: 27px; } }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; padding: 0; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--brand-strong); }

/* ---------- Sections ---------- */

.section { padding: 56px 0; background: var(--surface); }
.section-alt { background: var(--page); }

.section-head { max-width: 900px; margin-bottom: 32px; }
.section-head p { margin-bottom: 0; }
.section-head-center { margin-bottom: 32px; text-align: center; }

.benefits { display: grid; }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { position: relative; text-align: center; padding: 40px 32px 50px; max-width: 384px; margin-inline: auto; }
/* Dashed rule between columns, inset to the column's padding box. */
@media (min-width: 900px) {
  .benefit + .benefit::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 40px;
    bottom: 50px;
    border-inline-start: 1px dashed #CFCFCF;
  }
}
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; height: 42px; margin-bottom: 16px; color: var(--brand-strong); }
.benefit-icon .icon { width: 34px; height: 42px; }
.benefit h3 { margin-bottom: 0; }
/* Short accent rule under the heading. */
.benefit h3::after, .trust-col h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 20px auto;
  background: var(--brand);
}
.benefit p { margin: 0; }

.trust-row { display: grid; gap: 32px; }
@media (min-width: 900px) { .trust-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.trust-col { text-align: center; max-width: 520px; margin-inline: auto; }
.trust-col .benefit-icon { height: 96px; margin-bottom: 16px; }
.trust-col .benefit-icon .icon { width: 78px; height: 96px; }
.trust-col h3 { margin: 16px 0 0; }
.trust-seal { height: 140px; width: auto; margin: 0 auto 16px; }

/* Sample-report band */
.section-sample {
  padding: 50px 0;
  background-color: var(--page);
  background-image: url("/images/band-texture.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}
.section-sample .section-head { margin-bottom: 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding-inline-start: 52px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand);
  border-radius: 50%;
  font-weight: 700;
  color: var(--brand-strong);
}
.steps h3 { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.steps p { margin: 0; }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section .feature { background: var(--page); }
.section-alt .feature { background: var(--surface); }
.feature .icon { width: 22px; height: 22px; color: var(--brand-strong); margin-bottom: 10px; }
.feature h3 { font-size: 18px; line-height: 26px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Sample teaser card */
.sample-card {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
@media (min-width: 768px) { .sample-card { grid-template-columns: 1.1fr 1fr; } }
.sample-body { padding: 24px; align-self: center; }
.sample-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.sample-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #1C1C1C;
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 6px 12px;
}

/* ---------- FAQ accordion ---------- */

.faq { margin-inline: auto; }
.faq details {
  background: var(--surface);
  box-shadow: var(--shadow-1);
  border-radius: 0;
}
.faq details:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.faq details:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0, 0, 0, 0.54);
  border-bottom: 2px solid rgba(0, 0, 0, 0.54);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details > div { padding: 0 16px 16px; color: var(--ink-soft); }

/* ---------- Business band ---------- */

.biz-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background-color: var(--brand-dark);
  background-image: linear-gradient(90deg, var(--brand-dark), #0C5735);
  border-radius: var(--radius);
  color: #FFFFFF;
}
@media (min-width: 920px) { .biz-band { grid-template-columns: 1.15fr 0.95fr 0.6fr; gap: 32px; } }
.biz-band h2 { color: #FFFFFF; font-size: 30px; line-height: 38px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
@media (max-width: 600px) { .biz-band h2 { font-size: 24px; line-height: 32px; } }
.biz-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.biz-list li { display: flex; gap: 10px; align-items: flex-start; }
.biz-list .icon { width: 20px; height: 20px; color: #7BD3A3; flex: none; margin-top: 3px; }
.biz-band .btn-primary { background-color: #FFFFFF; background-image: none; color: var(--brand-dark); }
.biz-band .btn-primary:hover { background-color: #DFF2E7; color: var(--brand-dark); }
.biz-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; }

.price-card { background: var(--surface); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--ink); }
.price-card .price-label { font-size: 12px; line-height: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.price-card .price-value { font-size: 40px; line-height: 46px; font-weight: 700; color: var(--brand-strong); }
.price-card .price-note { font-size: 13px; line-height: 20px; color: var(--ink-soft); margin: 4px 0 0; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #FFFFFF; border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-primary { background-color: #FFFFFF; background-image: none; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background-color: #DFF2E7; color: var(--brand-dark); }

/* ---------- Report ---------- */

/* padding-block, not the `padding` shorthand: these elements also carry .rail,
   and a shorthand would reset its padding-inline to 0 — which put the title,
   the plate/VIN badge and every section card flush against the screen edge on
   mobile, where the rail padding is the only thing holding content off the
   glass. */
.report-head { padding-block: 32px 8px; background: var(--surface); }
.report-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 16px; }
.report-title-row h1 { font-size: 32px; line-height: 40px; margin: 0; }
.report-meta { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

.report-layout { display: grid; gap: 24px; padding-block: 24px 64px; background: var(--surface); }
@media (min-width: 920px) { .report-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 32px; align-items: start; } }

.report-toc { position: sticky; top: calc(var(--header-h) + 16px); background: var(--page); border-radius: var(--radius); padding: 12px 8px; }
.report-toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 4px 8px 8px; }
.report-toc ul { list-style: none; margin: 0; padding: 0; }
.report-toc a { display: block; padding: 7px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 15px; }
.report-toc a:hover { background: var(--surface); color: var(--brand-strong); }
@media (max-width: 919px) { .report-toc { display: none; } }

.report-sections { display: grid; gap: 20px; min-width: 0; }
.rsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
@media (min-width: 768px) { .rsec { padding: 24px; } }
.rsec > h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 32px; font-weight: 700; margin-bottom: 16px; }
.rsec > h2 .icon { color: var(--brand-strong); width: 20px; height: 20px; }
.rsec-src { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-soft); }

.kv { display: grid; margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; text-align: end; overflow-wrap: anywhere; }
.kv dd.num { font-family: var(--font-mono); font-weight: 600; }

/* ---------- Factory documents (/window-sticker/) ---------- */

/* Brand coverage grid. Wordmark chips set in our own typeface — no OEM logo
   files. Same position this repo already took on ClearVIN's wordmark and the
   NMVTIS badge (see DESIGN.md): those marks are trademarked and copyrighted
   artwork, and a chip reading "Jeep · 2017 and newer" says the same thing
   without shipping someone else's asset. */
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.brand-chip { display: flex; flex-direction: column; gap: 2px; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.brand-chip__name { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink-strong); }
.brand-chip__years { font-size: 13px; line-height: 20px; color: var(--brand-strong); font-weight: 500; }
.brand-chip__doc { font-size: 12px; line-height: 18px; color: var(--ink-soft); }

/* The parsed view is a convenience; the PDF is the evidence, so it stays on
   the page rather than behind a link alone. */
.doc-actions { margin: 16px 0 0; }
.doc-embed { display: block; width: 100%; height: 60vh; min-height: 320px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); }
/* An <object> at 60vh on a phone is a scroll trap inside a scroll container,
   and mobile browsers routinely refuse to render inline PDFs at all — the
   "Open original PDF" button above is the real affordance there. */
@media (max-width: 639px) { .doc-embed { display: none; } }

.equip-head { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink-strong); margin: 20px 0 8px; }
.equip-list { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 640px) { .equip-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.equip-list li { font-size: 14px; line-height: 20px; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

.rpo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rpo-code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 600; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 8px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; }
.chip-ok { color: var(--ok); }
.chip-caution { color: var(--caution); }
.chip-danger { color: var(--danger); }
.chip-neutral { color: var(--ink-soft); }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid button { padding: 0; background: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color var(--dur) var(--ease); }
.photo-grid button:hover { border-color: var(--brand-strong); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.lightbox { border: none; background: transparent; padding: 0; max-width: 96vw; width: 1000px; }
.lightbox::backdrop { background: rgba(8, 24, 16, 0.86); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #FFFFFF; padding: 8px 4px; font-size: 14px; }
.lightbox-close { background: transparent; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; font: inherit; }
.lightbox-close:hover { border-color: #FFFFFF; }

.recall-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.recall-item:last-child { border-bottom: none; padding-bottom: 0; }
.recall-item h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 18px; line-height: 26px; margin-bottom: 6px; }
.recall-item p { margin: 0 0 6px; color: var(--ink-soft); }
.recall-item p strong { color: var(--ink); }

.skeleton { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .sk-line { height: 12px; background: var(--line); border-radius: 3px; margin-bottom: 10px; }
.sk-w40 { width: 40%; } .sk-w60 { width: 60%; } .sk-w80 { width: 80%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.notice { background: var(--page); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; }
.notice-warn { border-inline-start-color: var(--caution); }
.notice-err { border-inline-start-color: var(--danger); }

/* ---------- Container tracking: route ---------- */

/* The map needs an explicit height: Leaflet measures its container, and a
   zero-height div renders a blank grey box rather than failing loudly. */
.route-map { height: 320px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: var(--page); }
@media (min-width: 768px) { .route-map { height: 380px; } }

/* The port list is not a fallback for the map — it is the accessible version
   of the same facts, and it stays readable when tiles fail to load. */
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list li { position: relative; padding: 0 0 16px 26px; border-inline-start: 2px solid var(--line); margin-inline-start: 5px; }
.route-list li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.route-list li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand-strong); background: var(--surface); }
/* A port already called at is filled; one still ahead is hollow and dashed,
   matching the solid/dashed legs on the map so the two never disagree. */
.route-list li.route-done::before { background: var(--brand-strong); }
.route-list li.route-planned { border-inline-start-style: dashed; }
.route-list li.route-planned::before { border-color: var(--ink-soft); }
.route-list strong { font-size: 16px; }
.route-list .route-code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-inline-start: 8px; }
.route-list p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 20px; }

/* ---------- Prose pages / forms ---------- */

.prose { max-width: 820px; padding: 48px 0 72px; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { font-size: 28px; line-height: 36px; margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); max-width: 520px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; line-height: 20px; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.form-field input:hover, .form-field textarea:hover { border-color: var(--ink-soft); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand-strong); outline: none; }
fieldset:disabled input, fieldset:disabled textarea { background: var(--page); }
fieldset { border: none; margin: 0; padding: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface); padding: 24px 0; }
.footer-grid { display: grid; gap: 24px 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-h { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink-strong); margin: 0 0 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: block; font-size: 16px; line-height: 32px; color: var(--ink-strong); text-decoration: none; }
.footer-col a:hover { color: var(--brand-strong); text-decoration: underline; }

.footer-note { max-width: 640px; margin: 24px auto 0; text-align: center; }
.footer-note p { font-size: 12px; line-height: 22px; color: var(--ink-legal); margin: 0 0 6px; }
.footer-note a { color: var(--ink-legal); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
