/* =========================================================================
   Tom Fountain · Toyota — "Showroom floor, after hours"
   Dark showroom canvas so the car photography lights up. One accent: Toyota
   red. Archivo Expanded for badge-headlines, Inter for data, JetBrains Mono
   for VIN/stock (a VIN is a machine code — it should read like one).
   ========================================================================= */

:root {
  --ink:      #0e1116;   /* showroom floor */
  --ink-2:    #151a22;   /* raised surfaces */
  --ink-3:    #1b212b;   /* cards / inputs */
  --line:     #262e3a;   /* hairlines */
  --line-2:   #313a48;
  --silver:   #e7ebf1;   /* primary text */
  --fog:      #93a0b1;   /* muted text */
  --fog-2:    #66717f;   /* faint */
  --red:      #e4002b;   /* Toyota brand action */
  --red-ink:  #ff334f;   /* red on dark, brighter for text */
  --green:    #36d39a;   /* "arrived" / good */
  --amber:    #f7b955;   /* "in transit / production" */
  --white:    #ffffff;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1320px;

  --shadow: 0 18px 50px -22px rgba(0,0,0,.8);
  --shadow-lift: 0 30px 70px -28px rgba(0,0,0,.9);

  --ease: cubic-bezier(.22,.61,.36,1);

  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --head:    "Archivo", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient showroom glow — a single warm spotlight at the top */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(228,0,43,.10), transparent 60%),
    radial-gradient(80% 50% at 85% 0%, rgba(91,156,255,.05), transparent 55%);
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--head);
  font-size: 12px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--fog);
}
.tabnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* =========================================================================
   Header
   ========================================================================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ink) 92%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  font-family: var(--display);
  font-weight: 800; font-size: 18px; letter-spacing: .02em;
  line-height: 1; color: var(--white);
}
.brand .mark b { color: var(--red-ink); font-weight: 800; }
.brand .sub {
  font-size: 11px; color: var(--fog); letter-spacing: .14em;
  text-transform: uppercase; margin-top: 3px;
}
.brand .divider { width: 1px; height: 30px; background: var(--line-2); }

.head-spacer { flex: 1; }

.head-contact { display: flex; align-items: center; gap: 10px; }
.head-contact .who { text-align: right; line-height: 1.25; }
.head-contact .who .n { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--silver); }
.head-contact .who .t { font-size: 11px; color: var(--fog); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -12px rgba(228,0,43,.7); }
.btn-red:hover { background: #ff0a36; }
.btn-ghost { border-color: var(--line-2); color: var(--silver); background: transparent; }
.btn-ghost:hover { border-color: var(--fog); background: var(--ink-3); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }
.btn-icon { padding: 11px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding: clamp(40px, 7vw, 88px) 0 28px; margin-bottom: 34px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: end; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: .94; letter-spacing: -.01em;
  margin: 18px 0 0; color: var(--white);
}
.hero h1 .red { color: var(--red-ink); }
.hero h1 .out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2);
}
.hero .lede {
  margin: 22px 0 0; max-width: 44ch;
  font-size: clamp(16px, 1.6vw, 19px); color: var(--fog);
}
.hero .lede b { color: var(--silver); font-weight: 600; }

.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat .num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1; color: var(--white);
}
.stat .lbl { font-size: 12px; color: var(--fog); letter-spacing: .12em; text-transform: uppercase; margin-top: 7px; }
.stat .num.live::after {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 8px;
  border-radius: 50%; background: var(--green); vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(54,211,154,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(54,211,154,.5)} 70%{box-shadow:0 0 0 10px rgba(54,211,154,0)} 100%{box-shadow:0 0 0 0 rgba(54,211,154,0)} }

/* ---- The Wire (signature): live inventory pulse ---- */
.wire {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.wire-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wire-head .ttl { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.wire-head .dot { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--fog); letter-spacing: .1em; text-transform: uppercase; }
.wire-head .dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
.wire-list { display: flex; flex-direction: column; max-height: 230px; overflow: hidden; }
.wire-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-top: 1px solid var(--line); animation: wireIn .5s var(--ease) both;
}
.wire-item:first-child { border-top: 0; }
a.wire-item { text-decoration: none; color: inherit; transition: background .15s var(--ease); }
a.wire-item:hover { background: rgba(255,255,255,.03); }
@keyframes wireIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wire-tag {
  font-family: var(--head); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; flex-shrink: 0; min-width: 78px; text-align: center;
}
.wire-tag.arrived { background: rgba(54,211,154,.14); color: var(--green); }
.wire-tag.sold    { background: rgba(228,0,43,.16);  color: var(--red-ink); }
.wire-tag.drop    { background: rgba(247,185,85,.14); color: var(--amber); }
.wire-item .nm { font-size: 13px; color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.wire-item .nm .det { color: var(--fog); }
.wire-empty { color: var(--fog-2); font-size: 13px; padding: 14px 4px; }

/* =========================================================================
   Controls (filter / sort bar)
   ========================================================================= */
.controls {
  /* No margin here — this element is position:sticky, and a margin on a
     stuck element leaves a permanent gap between it and whatever it's
     pinned against (the header) instead of collapsing away. The equivalent
     spacing for normal (unstuck) flow lives on .hero's margin-bottom. */
  position: sticky; top: 68px; z-index: 40;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.controls .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; flex-wrap: wrap; }

.seg { display: inline-flex; background: var(--ink-3); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--fog);
  font-family: var(--head); font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 100px; transition: color .2s, background .2s;
}
.seg button.on { background: var(--red); color: var(--white); }
.seg button:not(.on):hover { color: var(--silver); }

.search {
  flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 100px; padding: 0 16px;
}
.search:focus-within { border-color: var(--line-2); }
.search svg { width: 16px; height: 16px; color: var(--fog); flex-shrink: 0; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--silver);
  font-family: var(--body); font-size: 14px; padding: 11px 0;
}
.search input::placeholder { color: var(--fog-2); }

.selectwrap { position: relative; }
.selectwrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--fog); border-bottom: 2px solid var(--fog);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
select.ctl {
  appearance: none; background: var(--ink-3); border: 1px solid var(--line); color: var(--silver);
  font-family: var(--head); font-weight: 600; font-size: 13px;
  padding: 10px 36px 10px 14px; border-radius: 100px; outline: 0; cursor: pointer;
}
select.ctl:hover { border-color: var(--line-2); }

.count { margin-left: auto; font-size: 13px; color: var(--fog); }
.count b { color: var(--silver); font-family: var(--head); }

/* =========================================================================
   Section + grid
   ========================================================================= */
.section { padding: 38px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.8vw, 32px);
  margin: 0; color: var(--white); letter-spacing: -.01em;
}
.section-head .meta { font-size: 13px; color: var(--fog); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.rail > * { scroll-snap-align: start; }

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

/* ---- Vehicle card ---- */
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }

.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .noimg { display: grid; place-items: center; height: 100%; color: var(--fog-2); font-size: 13px; }
.card-img .gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,17,22,.55)); }

.chip {
  font-family: var(--head); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px; backdrop-filter: blur(6px);
}
.card-img .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.chip.new   { background: rgba(228,0,43,.9); color: #fff; }
.chip.used  { background: rgba(20,26,34,.82); color: var(--silver); border: 1px solid var(--line-2); }
.chip.cpo   { background: rgba(54,211,154,.92); color: #06281d; }
.chip.status {
  position: absolute; top: 12px; right: 12px;
  background: rgba(20,26,34,.82); color: var(--silver); border: 1px solid var(--line-2);
}
.chip.status.instock { color: var(--green); }
.chip.status.transit, .chip.status.production { color: var(--amber); }
.card-img .photos {
  position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(20,26,34,.78); color: var(--silver); border-radius: 7px; padding: 4px 8px;
  font-size: 11px; font-family: var(--head); font-weight: 600;
}
.card-img .photos svg { width: 13px; height: 13px; }
.card-img .chip.stockphoto {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(20,26,34,.78); color: var(--fog); border: 1px solid var(--line-2);
}

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-title { font-family: var(--head); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--white); }
.card-title .yr { color: var(--fog); font-weight: 600; }
.share-btn {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--ink-3);
  color: var(--fog); transition: color .2s, border-color .2s, background .2s;
}
.share-btn:hover { color: var(--silver); border-color: var(--line-2); background: var(--ink-2); }
.share-btn svg { width: 15px; height: 15px; }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price {
  font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--white);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.price.call { font-size: 18px; color: var(--red-ink); font-family: var(--head); }
.msrp { font-size: 13px; color: var(--fog-2); text-decoration: line-through; }
.save { font-size: 12px; font-family: var(--head); font-weight: 700; color: var(--green); }

.spec-row { display: flex; flex-wrap: wrap; gap: 6px; }
.spec {
  font-size: 11px; color: var(--fog); background: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
.spec b { color: var(--silver); font-weight: 600; }

/* =========================================================================
   Empty / loading
   ========================================================================= */
.skeleton { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.skeleton .sk-img { aspect-ratio: 4/3; background: linear-gradient(100deg, var(--ink-3) 30%, var(--line) 50%, var(--ink-3) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line { height: 12px; margin: 14px 16px; border-radius: 6px; background: linear-gradient(100deg, var(--ink-3) 30%, var(--line) 50%, var(--ink-3) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line.short { width: 50%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--fog); }
.empty h3 { font-family: var(--head); color: var(--silver); margin: 0 0 8px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-foot { border-top: 1px solid var(--line); margin-top: 50px; padding: 40px 0; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot-grid .mark { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--white); }
.foot-grid .mark b { color: var(--red-ink); }
.foot-contact { font-size: 14px; color: var(--fog); line-height: 1.8; }
.foot-contact a { color: var(--silver); }
.foot-note { font-size: 12px; color: var(--fog-2); max-width: 52ch; line-height: 1.6; }

/* =========================================================================
   Toast
   ========================================================================= */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink-3); border: 1px solid var(--line-2); color: var(--silver);
  padding: 14px 20px; border-radius: 100px; box-shadow: var(--shadow-lift);
  font-size: 14px; z-index: 200; transition: transform .35s var(--ease); max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--red); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .head-contact .who { display: none; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 22px; }
  .count { width: 100%; margin: 4px 0 0; }
  .controls .wrap { gap: 10px; }
  /* All/New/Used and Search were fighting over one cramped row (search's
     placeholder got clipped to a few characters). Give each its own
     full-width row instead: segmented toggle on top (buttons stretch evenly
     across it), full-width search below. */
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 12px; text-align: center; }
  .search { flex: 1 1 100%; }
  /* The two <select> filters were each landing on their own dangling row,
     content-sized with empty space beside them. Pair them into one clean
     50/50 row instead of letting flex-wrap stack them awkwardly. */
  .selectwrap { flex: 1 1 calc(50% - 5px); }
  select.ctl { width: 100%; box-sizing: border-box; }
}
@media (max-width: 420px) {
  /* No room for a full "(518) 742-8003" pill plus the add-contact icon at
     this width — drop the call button to icon-only (matching .btn-icon's
     compact sizing) so both header CTAs fit without crowding the brand. */
  .head-contact .btn-red span { display: none; }
  .head-contact .btn-red { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}

:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; border-radius: 4px; }

/* =========================================================================
   Vehicle detail page
   ========================================================================= */
.crumb { display: flex; align-items: center; gap: 8px; padding: 22px 0 4px; font-size: 13px; color: var(--fog); }
.crumb a:hover { color: var(--silver); }
.crumb svg { width: 14px; height: 14px; }

.vd { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(24px, 4vw, 48px); padding: 18px 0 10px; align-items: start; }

/* gallery */
.gallery .stage {
  position: relative; aspect-ratio: 16 / 10; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.gallery .stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery .stage .navbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(14,17,22,.7); backdrop-filter: blur(6px); color: var(--silver);
  display: grid; place-items: center; transition: background .2s;
}
.gallery .stage .navbtn:hover { background: rgba(14,17,22,.95); }
.gallery .stage .navbtn svg { width: 20px; height: 20px; }
.gallery .stage .prev { left: 14px; }
.gallery .stage .next { right: 14px; }
.gallery .stage .counter {
  position: absolute; bottom: 14px; right: 14px; background: rgba(14,17,22,.78);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 12px;
  font-size: 12px; font-family: var(--head); font-weight: 600; color: var(--silver);
}
.gallery .stage .vstatus {
  position: absolute; top: 14px; left: 14px;
}
.gallery .stage .chip.stockphoto {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(14,17,22,.78); color: var(--fog); border: 1px solid var(--line-2);
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.thumbs button { border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; padding: 0; aspect-ratio: 4/3; background: var(--ink-3); }
.thumbs button.on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* info column */
.vinfo .cond { display: inline-flex; gap: 8px; margin-bottom: 12px; }
.vinfo h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.02; margin: 0; color: var(--white); letter-spacing: -.01em; }
.vinfo .trim { color: var(--fog); font-size: 16px; margin-top: 8px; }

.vprice { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; padding: 20px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.vprice .big { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vprice .big.call { font-size: 24px; color: var(--red-ink); font-family: var(--head); }
.vprice .stack { display: flex; flex-direction: column; gap: 2px; }
.vprice .stack .msrp { text-decoration: line-through; color: var(--fog-2); font-size: 14px; }
.vprice .stack .save { color: var(--green); font-family: var(--head); font-weight: 700; font-size: 13px; }

.cta-stack { display: flex; flex-direction: column; gap: 10px; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; }
.cta-row .btn-icon { justify-content: center; }
.cta-full { width: 100%; justify-content: center; }

.tomcard { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.tomcard .av { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--red), #7a0018); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 18px; flex-shrink: 0; }
.tomcard .info .n { font-family: var(--head); font-weight: 700; color: var(--white); }
.tomcard .info .t { font-size: 13px; color: var(--fog); }

/* spec table */
.specs-section { padding: 30px 0; }
.specgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specgrid .cell { background: var(--ink-2); padding: 16px 18px; }
.specgrid .cell .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fog-2); margin-bottom: 6px; }
.specgrid .cell .v { font-family: var(--head); font-weight: 600; color: var(--silver); font-size: 15px; }
.specgrid .cell .v.mono { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .02em; }

/* highlighted features */
.featuregrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.feature { display: flex; align-items: center; gap: 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; }
.feature .fi-wrap { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; }
.feature .fi { width: 22px; height: 22px; }
/* manufacturer icons are dark strokes drawn for a light dealer site — invert so they read on ours */
.feature img.fi { filter: invert(1) brightness(1.7); opacity: .92; }
.feature .fi.fallback { display: none; color: var(--green); width: 18px; height: 18px; }
.feature .fi-label { font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--silver); }

/* ---- enrichment: EPA mpg + manufacturer specs + NHTSA safety ---- */
.enrich .specgrid { margin-top: 14px; }
.mpg-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 22px;
}
.mpg-figs { display: flex; gap: 30px; flex-wrap: wrap; }
.mpg-fig { display: flex; flex-direction: column; }
.mpg-fig .n { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; color: var(--silver); }
.mpg-fig.comb .n { color: var(--green); }
.mpg-fig .u { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fog-2); margin-top: 7px; }
.mpg-cost { font-size: 13px; color: var(--fog); }
.mpg-cost b { color: var(--silver); }
.mpg-cost span { color: var(--fog-2); }
.safety {
  display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; margin-top: 14px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px;
}
.safety-overall .so-stars { font-size: 26px; line-height: 1; }
.safety-overall .so-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fog-2); margin-top: 8px; }
.safety-detail { display: flex; flex-direction: column; gap: 8px; }
.srow { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fog); }
.srow .sl { min-width: 110px; }
.stars { color: var(--amber); letter-spacing: 1px; }
.stars .off { color: var(--line-2); }
.enrich .src { font-size: 11.5px; color: var(--fog-2); line-height: 1.55; margin-top: 16px; }

/* lead form */
.leadform { background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.leadform h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; color: var(--white); }
.leadform p.sub { color: var(--fog); margin: 0 0 22px; font-size: 15px; }
.leadform .ref { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fog); background: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; margin-bottom: 18px; }
.leadform .ref .mono { color: var(--silver); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); margin-bottom: 7px; font-family: var(--head); font-weight: 600; }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--silver); font-family: var(--body); font-size: 15px; padding: 13px 14px; outline: 0; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: var(--fog-2); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.leadform .submitted { text-align: center; padding: 30px 10px; }
.leadform .submitted .ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(54,211,154,.14); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.leadform .submitted .ic svg { width: 28px; height: 28px; }
.leadform .submitted h3 { font-family: var(--head); color: var(--white); margin: 0 0 8px; }
.leadform .submitted p { color: var(--fog); margin: 0; }
.fineprint { font-size: 12px; color: var(--fog-2); margin-top: 12px; line-height: 1.5; }

.gone-banner { background: rgba(228,0,43,.1); border: 1px solid rgba(228,0,43,.4); border-radius: var(--r); padding: 16px 20px; color: var(--red-ink); font-family: var(--head); font-weight: 600; margin: 18px 0; }

@media (max-width: 900px) {
  .vd { grid-template-columns: 1fr; }
}

/* =========================================================================
   Owner dashboard
   ========================================================================= */
.dash-head { padding: 28px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 34px); margin: 0; color: var(--white); }
.dash-head .sync { font-size: 13px; color: var(--fog); }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 16px 0; }
.kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.kpi .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); }
.kpi .v { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--white); margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--green); margin-top: 4px; }

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); margin: 16px 0; overflow: hidden; }
.panel .ph { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel .ph h2 { font-family: var(--head); font-weight: 700; font-size: 16px; margin: 0; color: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-family: var(--head); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--silver); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--ink-3); }
.tbl .mut { color: var(--fog); }
.tbl .mono { font-family: var(--mono); font-size: 12px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.barrow { display: flex; align-items: center; gap: 10px; padding: 8px 20px; }
.barrow .lbl { width: 110px; font-size: 12px; color: var(--fog); text-transform: capitalize; }
.barrow .bar { flex: 1; height: 8px; background: var(--ink-3); border-radius: 100px; overflow: hidden; }
.barrow .bar i { display: block; height: 100%; background: var(--red); border-radius: 100px; }
.barrow .n { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--silver); width: 34px; text-align: right; }
