/*
Theme Name: VIN Decoder Pro — vPIC
Theme URI: https://vinlookupdmv.com/
Author: VIN Lookup DMV
Description: Professional VIN Decoder powered by NHTSA vPIC API (DecodeVinValuesExtended). Mirrors official NHTSA decoder with a premium high-conversion UI. No API key required.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: vin-decoder-pro
*/

/* ================================================================
   DESIGN TOKENS
   Palette: authority navy + signal blue + clean white + data amber
   Type: DM Sans (body) + Space Grotesk (display) + JetBrains Mono (data)
================================================================ */
:root {
  /* Core palette */
  --ink:      #0B1220;
  --ink-2:    #111C2F;
  --ink-3:    #1A2840;
  --blue:     #1552DC;
  --blue-lt:  #2D6BFF;
  --teal:     #0EC4C4;
  --white:    #FFFFFF;
  --off:      #F4F7FF;
  --muted:    #8A9BBD;
  --subtle:   #3A4E6C;
  --green:    #10B981;
  --amber:    #F59E0B;
  --red:      #EF4444;
  --purple:   #8B5CF6;

  /* Type */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'DM Sans', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --r:    10px;
  --r-lg: 16px;
  --cont: 1200px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.18);
  --shadow-md:  0 4px 24px rgba(0,0,0,.28);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.38);
  --glow:       0 0 40px rgba(21,82,220,.25);
}

/* ================================================================
   RESET
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================================
   LAYOUT UTILITIES
================================================================ */
.wrap     { max-width: var(--cont); margin: 0 auto; padding: 0 24px; }
.section  { padding: 72px 0; }
.s2       { background: var(--ink-2); }
.s3       { background: var(--ink-3); }
.row      { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.col-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.col-3    { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ================================================================
   HEADER / NAV
================================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0;
  transition: background .3s, box-shadow .3s;
}
.site-nav.stuck {
  background: rgba(11,18,32,.94);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700; font-size: .85rem;
  letter-spacing: -.02em;
  box-shadow: 0 0 14px rgba(21,82,220,.5);
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--f-display);
  font-weight: 600; font-size: 1rem;
  letter-spacing: -.01em;
}
.logo-name em { color: var(--teal); font-style: normal; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-btn {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 8px 18px !important; border-radius: 8px;
  font-weight: 600 !important;
  transition: background .15s, transform .15s, box-shadow .15s !important;
}
.nav-btn:hover {
  background: var(--blue-lt) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21,82,220,.4) !important;
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px; overflow: hidden;
}
/* atmospheric background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 10% 40%, rgba(21,82,220,.14) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 90% 80%, rgba(14,196,196,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }

/* Left copy */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--teal);
  background: rgba(14,196,196,.1); border: 1px solid rgba(14,196,196,.22);
  border-radius: 100px; padding: 5px 13px; margin-bottom: 20px;
}
.eyebrow-pulse { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.8)} }

.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero-h1 .hl {
  background: linear-gradient(135deg, var(--blue-lt) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.05rem; color: var(--muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 32px;
}
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.proof-chip {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--muted);
}
.proof-chip svg { color: var(--green); flex-shrink: 0; }

/* Right: DECODER CARD */
.decoder-card {
  background: rgba(17,28,47,.95);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), var(--glow);
  overflow: hidden;
}
.dc-header {
  background: linear-gradient(135deg, rgba(21,82,220,.5) 0%, rgba(14,196,196,.3) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.dc-header-title {
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; gap: 8px;
}
.dc-header-badge {
  font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
  background: rgba(14,196,196,.15); border: 1px solid rgba(14,196,196,.3);
  color: var(--teal); padding: 3px 10px; border-radius: 100px;
}
.dc-body { padding: 24px; }

/* VIN Input */
.vin-label-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.vin-label {
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal);
}
.vin-counter { font-family: var(--f-mono); font-size: .68rem; color: var(--subtle); transition: color .2s; }

.vin-row { display: flex; gap: 10px; margin-bottom: 14px; }
#vin-input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--f-mono); font-size: .95rem; letter-spacing: .12em;
  color: var(--white); outline: none;
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#vin-input::placeholder { color: var(--subtle); letter-spacing: .06em; }
#vin-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,196,196,.15);
  background: rgba(14,196,196,.03);
}

/* Optional year row */
.year-row { display: flex; gap: 10px; margin-bottom: 14px; }
#year-input {
  width: 130px; flex-shrink: 0;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--f-mono); font-size: .85rem;
  color: var(--white); outline: none;
  transition: border-color .2s;
}
#year-input:focus { border-color: var(--teal); }
#year-input::placeholder { color: var(--subtle); }
.year-hint { font-size: .78rem; color: var(--subtle); align-self: center; flex: 1; }

.btn-decode {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--f-display); font-size: .92rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-decode::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-100%); transition: transform .3s;
}
.btn-decode:hover::after { transform: translateX(0); }
.btn-decode:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,82,220,.45); }
.btn-decode:active { transform: translateY(0); }
.btn-decode:disabled { opacity: .6; pointer-events: none; }

.dc-trust {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 0;
}
.dc-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--subtle);
}
.dc-trust-item svg { color: var(--green); flex-shrink: 0; }

.dc-divider { height: 1px; background: rgba(255,255,255,.07); margin: 18px 0; }

.dc-sample {
  font-family: var(--f-mono); font-size: .68rem; text-align: center; color: var(--subtle);
}
.dc-sample a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ================================================================
   RESULT PANEL (inside card, below input)
================================================================ */
#result-panel { display: none; margin-top: 20px; }

/* Loading */
.r-loading { text-align: center; padding: 32px; }
.r-spinner {
  width: 40px; height: 40px; margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.r-loading p { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--teal); text-transform: uppercase; }

/* Error */
.r-error { padding: 24px; text-align: center; }
.r-error-icon { font-size: 1.8rem; margin-bottom: 8px; }
.r-error strong { font-size: .95rem; }
.r-error p { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* Score banner */
.r-score-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  margin-bottom: 16px;
}
.score-ring-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.score-fill  { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.score-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring-num { font-family: var(--f-display); font-size: 1rem; font-weight: 700; line-height: 1; }
.score-ring-txt { font-family: var(--f-mono); font-size: .45rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.score-info { flex: 1; min-width: 0; }
.score-info h4 { font-family: var(--f-display); font-size: .92rem; font-weight: 600; margin-bottom: 3px; }
.score-info p  { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* Tabs */
.r-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); gap: 0; margin-bottom: 18px; overflow-x: auto; }
.r-tab {
  flex: 1; min-width: max-content;
  padding: 10px 12px;
  font-family: var(--f-display); font-size: .8rem; font-weight: 500;
  color: var(--subtle); text-align: center;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.r-tab:hover { color: var(--muted); }
.r-tab.on { color: var(--teal); border-bottom-color: var(--teal); }
.r-panel { display: none; }
.r-panel.on { display: block; }

/* Field grid (vPIC style: two column label:value table) */
.field-table { width: 100%; border-collapse: collapse; }
.field-table tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.field-table tr:last-child { border-bottom: none; }
.field-table td { padding: 7px 6px; font-size: .82rem; vertical-align: top; }
.field-table .f-name {
  width: 48%; color: var(--muted);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  padding-right: 12px;
}
.field-table .f-val { font-weight: 500; color: var(--white); word-break: break-word; }
.field-table .f-val.na { color: var(--subtle); font-style: italic; font-weight: 400; }

/* VIN position breakdown */
.vin-breakdown { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 12px; }
.vb-block { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 38px; }
.vb-char {
  width: 38px; height: 42px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 1rem; font-weight: 700;
  border-radius: 6px; border: 1.5px solid;
}
.vb-block.wmi .vb-char { background: rgba(14,196,196,.1); border-color: rgba(14,196,196,.4); color: var(--teal); }
.vb-block.vds .vb-char { background: rgba(21,82,220,.1); border-color: rgba(21,82,220,.4); color: var(--blue-lt); }
.vb-block.vis .vb-char { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.4); color: var(--green); }
.vb-pos { font-family: var(--f-mono); font-size: .55rem; color: var(--subtle); }
.vb-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.vb-leg-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.vb-dot { width: 8px; height: 8px; border-radius: 2px; }

/* Recall / complaint items */
.recall-item {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.18);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
}
.recall-title { font-weight: 600; font-size: .85rem; color: var(--amber); margin-bottom: 4px; }
.recall-meta  { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; color: var(--subtle); margin-bottom: 6px; }
.recall-body  { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.recall-remedy{ font-size: .78rem; color: var(--green); margin-top: 6px; }

.complaint-item {
  background: rgba(139,92,246,.06);
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
}
.comp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.comp-component { font-weight: 600; font-size: .85rem; color: #a78bfa; }
.comp-flags { display: flex; gap: 5px; flex-wrap: wrap; }
.cflag {
  padding: 1px 7px; border-radius: 100px;
  font-family: var(--f-mono); font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.cflag-crash  { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: var(--red); }
.cflag-fire   { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: var(--amber); }
.cflag-injury { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #fca5a5; }
.cflag-death  { background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.4); color: var(--red); }
.comp-date    { font-family: var(--f-mono); font-size: .6rem; color: var(--subtle); margin-bottom: 5px; }
.comp-text    { font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* Status row */
.status-list { display: flex; flex-direction: column; gap: 8px; }
.status-row-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; gap: 12px; flex-wrap: wrap;
}
.sr-label { font-size: .83rem; color: var(--muted); }
.chip {
  padding: 3px 10px; border-radius: 100px;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}
.chip-green  { background: rgba(16,185,129,.12); color: var(--green); border: 1px solid rgba(16,185,129,.28); }
.chip-red    { background: rgba(239,68,68,.12);  color: var(--red);   border: 1px solid rgba(239,68,68,.28); }
.chip-amber  { background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid rgba(245,158,11,.28); }
.chip-blue   { background: rgba(21,82,220,.12);  color: var(--blue-lt); border: 1px solid rgba(21,82,220,.28); }
.chip-gray   { background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid rgba(255,255,255,.12); }

.empty-state {
  display: flex; align-items: center; gap: 8px;
  color: var(--green); font-size: .85rem;
  padding: 12px 14px;
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
  border-radius: 8px;
}
.more-note {
  text-align: center; font-family: var(--f-mono); font-size: .65rem;
  letter-spacing: .06em; color: var(--subtle); margin-top: 10px;
}

/* complaint summary grid */
.comp-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px;
}
.cg-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 10px; text-align: center;
}
.cg-num { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.cg-label { font-family: var(--f-mono); font-size: .55rem; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); margin-top: 2px; }

.r-disclaimer {
  font-size: .68rem; color: var(--subtle); line-height: 1.55;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.r-disclaimer a { color: var(--teal); }

/* ================================================================
   HOW IT WORKS (STEPS)
================================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.step-card {
  background: rgba(17,28,47,.8);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,196,196,.2);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.step-num {
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal); margin-bottom: 14px;
}
.step-icon { font-size: 1.5rem; margin-bottom: 12px; }
.step-title {
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 600;
  margin-bottom: 8px;
}
.step-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ================================================================
   WHAT YOU GET (FEATURES)
================================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feat-card {
  background: rgba(11,18,32,.7);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r); padding: 24px 20px;
  transition: border-color .25s, transform .25s;
}
.feat-card:hover { border-color: rgba(21,82,220,.3); transform: translateY(-2px); }
.feat-ico  { font-size: 1.6rem; margin-bottom: 12px; }
.feat-name { font-family: var(--f-display); font-size: 1rem; font-weight: 600; margin-bottom: 7px; }
.feat-desc { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ================================================================
   SECTION INTRO
================================================================ */
.sec-intro { text-align: center; max-width: 580px; margin: 0 auto; }
.sec-kicker {
  font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--teal); margin-bottom: 10px;
}
.sec-h2 {
  font-family: var(--f-display); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 14px;
}
.sec-h2 span { color: var(--teal); }
.sec-sub { font-size: .95rem; color: var(--muted); line-height: 1.75; }

/* ================================================================
   VIN ANATOMY SECTION
================================================================ */
.anatomy-wrap {
  background: rgba(17,28,47,.7);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg); padding: 28px; margin-top: 40px;
  overflow-x: auto;
}
.anatomy-chars { display: flex; gap: 5px; justify-content: center; flex-wrap: nowrap; margin-bottom: 18px; }
.ac-block { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; cursor: default; }
.ac-box {
  width: 44px; height: 48px; border-radius: 7px; border-width: 1.5px; border-style: solid;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 1.1rem; font-weight: 700;
}
.ac-block.wmi .ac-box { background: rgba(14,196,196,.1); border-color: rgba(14,196,196,.4); color: var(--teal); }
.ac-block.vds .ac-box { background: rgba(21,82,220,.1); border-color: rgba(21,82,220,.4); color: var(--blue-lt); }
.ac-block.vis .ac-box { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.4); color: var(--green); }
.ac-pos { font-family: var(--f-mono); font-size: .58rem; color: var(--subtle); }
.anatomy-legend { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.aleg { display: flex; align-items: center; gap: 7px; font-size: .83rem; color: var(--muted); }
.aleg-dot { width: 9px; height: 9px; border-radius: 2px; }
.aleg-dot.wmi { background: var(--teal); }
.aleg-dot.vds { background: var(--blue-lt); }
.aleg-dot.vis { background: var(--green); }

/* ================================================================
   BRAND SCROLL
================================================================ */
.brand-scroll { overflow: hidden; position: relative; }
.brand-scroll::before,
.brand-scroll::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.brand-scroll::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.brand-scroll::after  { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.brand-track { display: flex; gap: 12px; width: max-content; animation: scroll 26s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 100px; padding: 8px 16px;
  font-size: .85rem; font-weight: 500; white-space: nowrap;
  transition: background .2s;
}
.brand-pill:hover { background: rgba(21,82,220,.12); border-color: rgba(21,82,220,.28); }

/* ================================================================
   FAQ
================================================================ */
.faq-list { max-width: 720px; margin: 44px auto 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.07); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer;
  font-family: var(--f-display); font-size: .95rem; font-weight: 500;
  transition: color .15s; gap: 14px;
}
.faq-q:hover { color: var(--teal); }
.faq-icon {
  width: 24px; height: 24px; border: 1.5px solid rgba(255,255,255,.16); border-radius: 6px;
  display: grid; place-items: center; font-size: .9rem; flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .3s;
  color: var(--white);
}
.faq-item.open .faq-icon { background: var(--blue); border-color: var(--blue); transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 16px; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ================================================================
   CTA BAND
================================================================ */
.cta-band {
  text-align: center; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(21,82,220,.16) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-h2 {
  font-family: var(--f-display); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px;
}
.cta-h2 span { color: var(--teal); }
.cta-sub { font-size: .95rem; color: var(--muted); margin-bottom: 28px; }
.btn-cta-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%);
  color: var(--white);
  padding: 16px 32px; border-radius: 12px;
  font-family: var(--f-display); font-size: 1rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-cta-lg:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(21,82,220,.45); }

/* ================================================================
   STATS BAR
================================================================ */
.stats-band { background: var(--ink-3); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); padding: 28px 0; }
.stats-row { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-n { font-family: var(--f-display); font-size: 2.2rem; font-weight: 700; color: var(--teal); line-height: 1; }
.stat-l { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin-top: 4px; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer { background: rgba(5,9,16,.98); border-top: 1px solid rgba(255,255,255,.05); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-about p { font-size: .83rem; color: var(--subtle); line-height: 1.7; margin-top: 14px; max-width: 240px; }
.footer-col h4 {
  font-family: var(--f-display); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: .82rem; color: var(--subtle); transition: color .15s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p, .footer-bottom a { font-size: .76rem; color: rgba(255,255,255,.2); }
.footer-bottom a:hover { color: var(--teal); }
.footer-disclaimer { font-size: .7rem; color: rgba(255,255,255,.1); line-height: 1.6; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.04); }

/* ================================================================
   SCROLL REVEAL
================================================================ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }

/* ================================================================
   BRAND DECODER PAGES
================================================================ */
.brand-page-hero {
  padding: 110px 0 56px; position: relative; overflow: hidden;
}
.brand-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 600px at 0% 50%, rgba(21,82,220,.12), transparent 70%);
  pointer-events: none;
}
.brand-page-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.bp-h1 { font-family: var(--f-display); font-size: clamp(2.2rem,5vw,4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 18px; }
.bp-h1 span { color: var(--teal); }
.bp-lead { font-size: .98rem; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.brand-info-panel {
  background: rgba(17,28,47,.95); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow-md), var(--glow);
}
.bip-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.bip-row:last-child { border-bottom: none; }
.bip-icon { width: 34px; height: 34px; background: rgba(21,82,220,.12); border: 1px solid rgba(21,82,220,.22); border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; font-size: .9rem; }
.bip-label { font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin-bottom: 2px; }
.bip-val   { font-size: .88rem; font-weight: 500; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.015em; margin: 32px 0 12px; }
.prose h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--teal); margin: 24px 0 10px; }
.prose p { font-size: .93rem; color: var(--muted); line-height: 1.82; margin-bottom: 14px; }
.prose ul { margin-bottom: 14px; padding-left: 18px; }
.prose li { font-size: .93rem; color: var(--muted); line-height: 1.75; margin-bottom: 5px; list-style: disc; list-style-color: var(--blue-lt); }
.prose .tip { background: rgba(21,82,220,.07); border: 1px solid rgba(21,82,220,.2); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.prose .tip p { color: var(--off); margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.prose th { background: rgba(21,82,220,.1); padding: 9px 12px; font-family: var(--f-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; text-align: left; border: 1px solid rgba(255,255,255,.07); }
.prose td { padding: 9px 12px; font-size: .85rem; color: var(--muted); border: 1px solid rgba(255,255,255,.05); }
.prose tr:nth-child(even) td { background: rgba(255,255,255,.025); }

/* ================================================================
   BRAND CARDS GRID
================================================================ */
.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; margin-top: 40px; }
.brand-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(17,28,47,.8); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 16px 18px;
  transition: border-color .25s, transform .25s;
}
.brand-card:hover { border-color: rgba(21,82,220,.3); transform: translateY(-2px); }
.bc-icon { font-size: 1.7rem; flex-shrink: 0; }
.bc-text h4 { font-family: var(--f-display); font-size: .9rem; font-weight: 600; margin-bottom: 1px; }
.bc-text p  { font-family: var(--f-mono); font-size: .6rem; color: var(--subtle); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-copy { text-align: center; }
  .hero-lead { max-width: 100%; }
  .steps-grid, .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-page-hero-inner { grid-template-columns: 1fr; }
  .brand-info-panel { display: none; }
  .col-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --py: 52px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(11,18,32,.97); padding: 20px 24px; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07); z-index: 999;
    backdrop-filter: blur(12px);
  }
  .hamburger { display: flex; }
  .vin-row { flex-direction: column; }
  .btn-decode { width: 100%; justify-content: center; }
  .steps-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 28px; }
  .anatomy-chars { gap: 3px; }
  .ac-block { min-width: 30px; }
  .ac-box { width: 30px; height: 34px; font-size: .82rem; border-radius: 4px; }
  .r-tabs { flex-wrap: wrap; }
  .r-tab { font-size: .72rem; padding: 8px 8px; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
