/* ==========================================================================
   VinSpecs.org — Design System
   Palette: navy #272757 | gold #d5c58a | bright gold #F0DC82
   ========================================================================== */

:root {
  --navy: #272757;
  --navy-dark: #1c1c40;
  --navy-light: #3a3a78;
  --gold: #d5c58a;
  --gold-bright: #F0DC82;
  --gold-soft: #f7efd3;
  --bg: #faf8f2;
  --surface: #ffffff;
  --text: #23233f;
  --text-muted: #62628a;
  --border: #e6dfc9;
  --success: #2e7d52;
  --danger: #b3392e;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(39, 39, 87, .08);
  --shadow-lg: 0 8px 30px rgba(39, 39, 87, .14);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--navy); }
a:hover { color: var(--navy-light); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-bright); color: var(--navy); padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  border-bottom: 5px solid var(--gold-bright);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.25rem; }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.logo em { color: var(--gold-bright); font-style: normal; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; }
.main-nav a {
  color: #e8e8f5; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--gold-bright); font-weight:800; border-bottom-color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--gold-bright); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* --------------------------------------------------------------------------
   Hero (centered — used on tool/inner pages)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 70%, #14142e 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(240, 220, 130, .13), transparent);
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .9rem; }
.hero h1 .accent { color: var(--gold-bright); }
.hero .subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: #c9c9e2; max-width: 640px; margin: 0 auto 2.2rem; }

/* --------------------------------------------------------------------------
   Hero PREMIUM (homepage — split layout with report mockup)
   -------------------------------------------------------------------------- */
.hero-premium {
  background:
    radial-gradient(ellipse 70% 60% at 78% 40%, rgba(240,220,130,.10), transparent 60%),
    linear-gradient(150deg, #2d2d63 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
  padding: 3.5rem 0 4rem;
}
.hero-premium::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(240,220,130,.35); color: var(--gold-bright);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 3px rgba(53,208,127,.25); }
.hero-premium h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero-premium h1 .accent { color: var(--gold-bright); }
.hero-premium .subtitle { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #c4c4e0; max-width: 540px; margin-bottom: 1.8rem; }

/* Pill search bar (reference style) */
.vin-pill {
  display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px;
  padding: .5rem .5rem .5rem 1.4rem; max-width: 560px; box-shadow: 0 18px 45px rgba(0,0,0,.32);
}
.vin-pill input {
  flex: 1; border: 0; outline: 0; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); background: transparent; min-width: 0; padding: .55rem 0;
}
.vin-pill input::placeholder { text-transform: none; letter-spacing: 0; color: #9a9ab5; font-family: ui-monospace, monospace; }
.vin-pill .btn { border-radius: 999px; padding: .85rem 1.6rem; white-space: nowrap; }
.hero-premium .trust-line { margin-top: .9rem; font-size: .82rem; color: #9a9ac0; display: flex; align-items: center; gap: .4rem; }
.hero-premium .vin-error { color: #ffc4bd; }

/* Feature chips */
.feature-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.feature-chips a, .feature-chips span {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #dcdcf0;
  padding: .5rem 1rem; border-radius: 999px; text-decoration: none; transition: .15s;
}
.feature-chips a:hover { background: rgba(240,220,130,.14); border-color: var(--gold); color: #fff; }

/* Report mockup card (self-contained, no external images) */
.report-mock {
  background: #fff; border-radius: 18px; color: var(--text); box-shadow: 0 30px 70px rgba(0,0,0,.4);
  overflow: hidden; max-width: 400px; margin-left: auto; transform: rotate(1.2deg);
  border: 1px solid rgba(255,255,255,.5);
}
.report-mock .rm-head { background: var(--navy); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--gold-bright); }
.report-mock .rm-head .brand { font-weight: 800; font-size: .95rem; }
.report-mock .rm-head .brand em { color: var(--gold-bright); font-style: normal; }
.report-mock .rm-head .rm-secure { font-size: .68rem; color: #b5b5d2; }
.report-mock .rm-body { padding: 1.2rem; }
.report-mock .rm-label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.report-mock .rm-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: .1rem 0 .1rem; }
.report-mock .rm-vin { font-family: ui-monospace, monospace; font-size: .72rem; color: var(--text-muted); letter-spacing: .08em; margin-bottom: .9rem; }
.report-mock .rm-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--border); font-size: .85rem; }
.report-mock .rm-row .rm-k { display: flex; flex-direction: column; }
.report-mock .rm-row .rm-k small { color: var(--text-muted); font-size: .7rem; }
.rm-flag { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; color: #fff; }
.rm-flag.ok { background: var(--success); }
.rm-flag.warn { background: #c99a1e; }

/* --------------------------------------------------------------------------
   Logo trust bar (avatars + press/authority logos)
   -------------------------------------------------------------------------- */
.trust-bar { padding: 1.8rem 0; border-bottom: 1px solid var(--border); }
.trust-bar-inner { display: flex; align-items: center; justify-content: flex-start; gap: 2.2rem; flex-wrap: nowrap; }
.trust-users { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.trust-logos { border-left: 1px solid var(--border); padding-left: 2.2rem; }
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy)); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; box-shadow: var(--shadow);
}
.avatar-stack .av:first-child { margin-left: 0; }
.trust-users p { font-size: .9rem; color: var(--text-muted); line-height: 1.4; max-width: 450px; }
.trust-users p strong { color: var(--navy); }
.trust-logos { display: flex; align-items: center; gap: 1.9rem; flex-wrap: nowrap; justify-content: flex-start; }
.trust-logos img {
  height: 26px; width: auto; max-width: 108px; object-fit: contain;
  filter: grayscale(1); opacity: .62; transition: opacity .2s, filter .2s;
}
.trust-logos img:hover { filter: grayscale(0); opacity: 1; }

/* --------------------------------------------------------------------------
   Check-stats band (✓ label / bold value)
   -------------------------------------------------------------------------- */
.check-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.4rem 0; }
.check-stats .cstat { text-align: center; padding: 0 1rem; }
.check-stats .cstat .clabel {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--text-muted); margin-bottom: .35rem;
}
.check-stats .cstat .clabel .chk { color: var(--success); font-weight: 800; }
.check-stats .cstat .cval { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; color: var(--navy); letter-spacing: -.01em; line-height: 1.1; }
.check-stats .cstat + .cstat { border-left: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */
.eyebrow { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.stars-line { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--text-muted); font-size: .92rem; margin-bottom: 2rem; }
.stars-line .stars { color: var(--gold-bright); letter-spacing: .08em; font-size: 1.05rem; text-shadow: 0 1px 0 var(--gold); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.4rem 0; }
.stat-band .stat { text-align: center; }
.stat-band .stat .num { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat-band .stat .num .plus { color: var(--gold); }
.stat-band .stat .lbl { color: var(--text-muted); font-size: .9rem; margin-top: .2rem; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); }
.testimonial .stars { color: var(--gold-bright); letter-spacing: .1em; font-size: 1rem; }
.testimonial p { color: var(--text); font-size: .98rem; margin: .8rem 0 1.3rem; }
.testimonial .who { display: flex; align-items: center; gap: .8rem; }
.testimonial .who .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold-bright); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.testimonial .who strong { display: block; font-size: .92rem; color: var(--navy); }
.testimonial .who span { font-size: .82rem; color: var(--text-muted); }
.press-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.press-strip span { color: #a7a7be; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Why it matters (split) */
.why-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-visual { position: relative; max-width: 500px; margin: 0 auto 4.5rem; }
.why-img { width: 100%; max-width: 500px; height: auto; display: block; border-radius: 16px; }
.price-card { position: absolute; left: 0; right: 0; bottom: -4.5rem; margin: 0 1rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); }
.price-card .pc-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.price-card .pc-price { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price-card .pc-sub { font-size: .8rem; color: var(--text-muted); }
.benefit { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.benefit .b-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.benefit h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: .25rem; }
.benefit p { color: var(--text-muted); font-size: .93rem; }

/* Sample report split */
.sample-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sample-report {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
  box-shadow: var(--shadow-lg); position: relative;
}
.sample-report::before, .sample-report::after {
  content: ""; position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; z-index: -1;
}
.sample-report::before { transform: rotate(-3deg) translate(-10px,-6px); opacity: .55; }
.sample-report::after { transform: rotate(3deg) translate(10px,-3px); opacity: .35; }
.sr-head { display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .06em; }
.sr-vin { font-family: ui-monospace, monospace; font-size: .82rem; color: var(--text-muted); margin: .6rem 0 1rem; }
.sr-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.sr-cell { border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; }
.sr-cell .k { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sr-cell .v { font-weight: 700; color: var(--navy); font-size: .92rem; }
.sr-cell .v.warn { color: #c99a1e; }
.sr-cell .v.ok { color: var(--success); }
.sr-bars { margin-top: 1rem; background: var(--gold-soft); border-radius: 10px; padding: .9rem; }
.sr-bars .sr-bars-label { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); font-weight: 700; margin-bottom: .5rem; }
.sr-bars .bars { display: flex; align-items: flex-end; gap: .4rem; height: 44px; }
.sr-bars .bars i { flex: 1; background: var(--navy); border-radius: 3px 3px 0 0; opacity: .85; }

.vin-form { display: flex; max-width: 640px; margin: 0 auto; gap: .6rem; position: relative; z-index: 1; }
.vin-form input {
  flex: 1; padding: 1rem 1.2rem; font-size: 1.05rem; letter-spacing: .06em;
  border: 2px solid var(--gold); border-radius: var(--radius);
  background: #fff; color: var(--text); text-transform: uppercase; min-width: 0;
}
.vin-form input:focus { outline: 3px solid rgba(240, 220, 130, .45); border-color: var(--gold-bright); }
.vin-form input::placeholder { text-transform: none; letter-spacing: 0; color: #9a9ab5; }

.btn {
  display: inline-block; padding: 1rem 1.8rem; border: 0; border-radius: var(--radius);
  font-size: 1.02rem; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn-primary { background: var(--gold-bright); color: var(--navy); }
.btn-primary:hover { background: #f6e79d; color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--gold); }
.btn-secondary:hover { background: var(--gold-soft); }

.hero .trust { margin-top: 1.6rem; font-size: .88rem; color: #a9a9c8; }
.hero .trust strong { color: var(--gold-bright); }
.vin-error { margin-top: .9rem; color: #ffb3ab; font-weight: 600; min-height: 1.4em; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); margin-bottom: .6rem; letter-spacing: -.01em; }
.section .lead { color: var(--text-muted); max-width: 700px; margin-bottom: 2rem; }
.section-center { text-align: center; }
.section-center .lead { margin-inline: auto; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid var(--gold); margin-bottom: 1rem; font-size: 1.35rem;
}

/* Tool card: icon + title on one line */
.tool-card .tool-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .55rem; }
.tool-card .tool-head .icon { margin-bottom: 0; flex: 0 0 auto; width: 42px; height: 42px; }
.tool-card .tool-head h3 { margin-bottom: 0; }

/* Steps */
.steps { align-items: stretch; }
.step { display: flex; flex-direction: column; }
.step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-bright);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
  line-height: 1; margin-bottom: 1.1rem; flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Spec tables (VIN detail)
   -------------------------------------------------------------------------- */
.page-head { background: var(--navy); color: #fff; padding: 2.4rem 0; border-bottom: 3px solid var(--gold-bright); }
.page-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
.page-head .vin-badge {
  display: inline-block; margin-top: .7rem; font-family: ui-monospace, monospace; letter-spacing: .12em;
  background: rgba(240, 220, 130, .14); color: var(--gold-bright); border: 1px solid var(--gold);
  padding: .35rem .8rem; border-radius: 6px; font-size: .95rem;
}
.breadcrumbs { font-size: .85rem; color: #b5b5d2; margin-bottom: .8rem; }
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-bright); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table caption {
  text-align: left; font-weight: 800; color: #fff; background: var(--navy);
  padding: .85rem 1.2rem; font-size: 1.02rem; border-bottom: 2px solid var(--gold-bright);
}
.spec-table th, .spec-table td { padding: .7rem 1.2rem; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-muted); font-weight: 600; width: 45%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Ratings */
.rating-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.rating-box {
  flex: 1; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; text-align: center; box-shadow: var(--shadow);
}
.rating-box .stars { color: var(--gold-bright); font-size: 1.3rem; letter-spacing: .1em; text-shadow: 0 1px 0 var(--gold); }
.rating-box .label { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

/* Recalls */
.recall {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--danger);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.recall h3 { color: var(--danger); font-size: 1.02rem; margin-bottom: .4rem; }
.recall .recall-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.recall p { font-size: .93rem; margin-bottom: .5rem; }
.recall strong { color: var(--navy); }
.no-recalls {
  background: #eef7f1; border: 1px solid #bfe0cd; border-left: 4px solid var(--success);
  border-radius: var(--radius); padding: 1.2rem 1.5rem; color: var(--success); font-weight: 600;
}

/* Answer box (AEO) */
.answer-box {
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 1.3rem 1.6rem; margin: 1.5rem 0;
}
.answer-box p { color: var(--text); font-size: 1rem; }
.answer-box strong { color: var(--navy); }

/* --------------------------------------------------------------------------
   Location pages
   -------------------------------------------------------------------------- */
.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }
.chip-list a {
  display: inline-block; background: var(--surface); border: 1px solid var(--gold); border-radius: 999px;
  padding: .42rem 1rem; font-size: .9rem; text-decoration: none; color: var(--navy); font-weight: 500;
  transition: background .15s, border-color .15s;
}
.chip-list a:hover { background: var(--gold-soft); border-color: var(--gold-bright); }
.chip-list .count { color: var(--text-muted); font-size: .8rem; }

/* FAQ */
/* FAQ accordion (site-wide standard) */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin: 0 auto .8rem; max-width: 740px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.faq-item h3 { color: var(--navy); font-size: 1.36rem; margin: 0; min-height: 74px; box-sizing: border-box; padding: .5rem 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; user-select: none; transition: color .15s; line-height: 1.3; }
.faq-item h3:hover { color: var(--navy-light); }
.faq-item h3::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--navy-light); border-bottom: 2px solid var(--navy-light); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.faq-item.open h3 { color: var(--navy); }
.faq-item.open h3::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--gold); }
.faq-item > :not(h3) { display: none; margin: 0; padding: 0 1.4rem 1.25rem; color: var(--text-muted); font-size: .95rem; }
.faq-item.open > :not(h3) { display: block; }
.faq-item a { color: var(--navy); }

/* Search lists */
.search-list { list-style: none; }
.search-list li { border-bottom: 1px solid var(--border); }
.search-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .3rem; text-decoration: none; font-size: .93rem; }
.search-list a:hover { background: var(--gold-soft); }
.search-list .vin-mono { font-family: ui-monospace, monospace; color: var(--text-muted); font-size: .82rem; }

/* Content prose (legal, about) */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { color: var(--navy); margin-top: 1.4rem; margin-bottom: .4rem; }
.prose p, .prose li { color: var(--text); margin-bottom: .8rem; font-size: .98rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }

/* Code blocks (API docs) */
pre.code {
  background: var(--navy-dark); color: #e8e8f5; border-radius: var(--radius); padding: 1.2rem 1.4rem;
  overflow-x: auto; font-size: .87rem; line-height: 1.55; border: 1px solid var(--navy-light); margin: 1rem 0;
}
pre.code .k { color: var(--gold-bright); }
code.inline { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 5px; padding: .1rem .45rem; font-size: .88em; }

/* Ad slots */
.ad-slot { margin: 2rem auto; text-align: center; min-height: 90px; }
.ad-slot-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Reviews spotlight (What customers say)
   -------------------------------------------------------------------------- */
.reviews-spotlight { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.rs-left h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.google-rating { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.google-rating img { width: 50px; height: 50px; }
.google-rating .gr-brand { font-weight: 700; color: var(--navy); }
.google-rating .gr-score { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.google-rating .gr-score .gr-num { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.google-rating .gr-stars { color: var(--gold-bright); font-size: 1.15rem; letter-spacing: .06em; text-shadow: 0 1px 0 var(--gold); }
.google-rating .gr-count { font-size: .8rem; color: var(--text-muted); }

.rs-stage { position: relative; border-radius: 18px; overflow: hidden; min-height: 340px;
  background: linear-gradient(150deg, #3a3a78 0%, var(--navy) 55%, var(--navy-dark) 100%);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; padding: 2rem 4rem; }
.rs-stage::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(240,220,130,.14), transparent 70%); }
.review-card { background: #fff; border-radius: 14px; padding: 1.5rem 1.6rem; width: 100%; max-width: 440px; margin: 0 auto; box-shadow: 0 18px 45px rgba(0,0,0,.28); position: relative; z-index: 1; }
.review-card .rc-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.review-card .rc-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.review-card .rc-name { font-weight: 800; color: var(--navy); }
.review-card .rc-meta { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; }
.review-card .rc-meta img { width: 16px; height: 16px; }
.review-card .rc-meta .rc-stars { color: var(--gold-bright); font-size: .9rem; letter-spacing: .05em; }
.review-card p { color: var(--text); font-size: .96rem; margin: 0; }
.rs-arrows { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; padding: 0 .6rem; z-index: 3; }
.rs-arrow { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy);
  box-shadow: var(--shadow-lg); cursor: pointer; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.rs-arrow:hover { transform: scale(1.08); background: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Customer reviews block (What customers say — grid)
   -------------------------------------------------------------------------- */
.reviews-header { text-align: center; }
.gold-divider { width: 64px; height: 3px; background: var(--gold-bright); border-radius: 2px; margin: 1rem auto 1.4rem; }
.review-rating { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.review-rating img { width: 26px; height: 26px; }
.review-rating .rr-num { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.review-rating .rr-stars { color: var(--gold-bright); letter-spacing: .06em; font-size: 1.1rem; text-shadow: 0 1px 0 var(--gold); }
.review-rating .rr-count { color: var(--text-muted); font-size: .82rem; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.rev-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); }
.rev-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.rev-avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; object-position: center; display: block; }
.rev-avatar-initials { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold-bright); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.rev-head strong { color: var(--navy); display: block; }
.rev-stars { color: var(--gold-bright); font-size: .9rem; letter-spacing: .05em; }
.rev-card p { color: var(--text); font-size: .93rem; }
@media (max-width: 900px) { .rev-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   VIN anatomy / decode breakdown
   -------------------------------------------------------------------------- */
.vin-anatomy { text-align: center; }
.vin-anatomy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.vin-anatomy .lead { margin: .8rem auto 2rem; max-width: 640px; }
.vin-car { width: 100%; max-width: 650px; height: auto; margin: 0 auto 1.5rem; display: block; }
.trust-users-img { height: 48px; width: auto; display: block; }
.testimonial .who .who-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.vin-string { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 0; max-width: 760px; margin: 0 auto; }
.vin-group { display: flex; flex-direction: column; align-items: center; }
.vin-chars { display: flex; }
.vin-chars span {
  font-family: ui-monospace, "Courier New", monospace; font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 800;
  color: var(--navy); width: 1.35em; text-align: center; letter-spacing: 0;
}
.vin-bracket { width: 100%; height: 10px; border: 2px solid var(--gold); border-top: 0; border-radius: 0 0 5px 5px; margin-top: .2rem; }
.vin-caption { font-size: .68rem; color: var(--text-muted); margin-top: .4rem; line-height: 1.3; max-width: 9em; }
.vin-group.g-serial .vin-caption { max-width: 12em; }

.vin-digits-grid { column-count: 2; column-gap: 3rem; text-align: left; margin-top: 2.5rem; }
.vin-digit { border-top: 1px solid var(--border); padding-top: 1.2rem; margin-bottom: 1.4rem; break-inside: avoid; -webkit-column-break-inside: avoid; }
.vin-digit h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: .5rem; }
.vin-digit h3 .d-num { color: var(--gold); font-weight: 800; }
.vin-digit p { color: var(--text-muted); font-size: .93rem; margin-bottom: .6rem; }
.vin-digit .code-list { list-style: none; padding: 0; }
.vin-digit .code-list li { display: flex; gap: .8rem; font-size: .9rem; padding: .18rem 0; color: var(--text); }
.vin-digit .code-list li b { color: var(--navy); min-width: 2.2em; }
@media (max-width: 780px) { .vin-digits-grid { column-count: 1; } }

/* --------------------------------------------------------------------------
   Save Thousands CTA
   -------------------------------------------------------------------------- */
.save-cta { background: linear-gradient(180deg, #f1f1f9 0%, #e8e8f3 100%); border-top: 1px solid var(--border); text-align: center; }
.save-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--navy); letter-spacing: -.02em; }
.save-cta .lead { max-width: 640px; margin: .8rem auto 1.8rem; color: var(--text-muted); }
.mode-toggle { display: inline-flex; background: #dcdcec; border-radius: 999px; padding: .3rem; margin-bottom: 1.2rem; }
.mode-toggle button { border: 0; background: transparent; color: var(--navy); font-weight: 700; font-size: .9rem; padding: .5rem 1.3rem; border-radius: 999px; cursor: pointer; transition: .15s; }
.mode-toggle button.active { background: var(--navy); color: var(--gold-bright); box-shadow: var(--shadow); }
.save-cta .vin-pill { margin: 0 auto; box-shadow: 0 12px 35px rgba(39,39,87,.14); }
.cta-badges { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-top: 1.3rem; flex-wrap: wrap; }
.cta-badges span { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7d7d9c; }

/* --------------------------------------------------------------------------
   Glossary
   -------------------------------------------------------------------------- */
.glossary-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 2.5rem; }
.glossary-nav a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--gold); border-radius: 8px; text-decoration: none; color: var(--navy);
  font-weight: 800; background: var(--surface); transition: .15s;
}
.glossary-nav a:hover { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }
.glossary-letter { scroll-margin-top: 90px; margin-top: 2.5rem; }
.glossary-letter > h2 {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  background: var(--navy); color: var(--gold-bright); border-radius: 12px; font-size: 1.6rem; margin-bottom: 1rem;
  border-bottom: 3px solid var(--gold-bright);
}
.glossary-term { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.glossary-term h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .35rem; }
.glossary-term p { color: var(--text-muted); font-size: .94rem; }
.glossary-back { display: inline-block; margin-top: .8rem; font-size: .82rem; color: var(--gold); text-decoration: none; }
.glossary-back:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Best Cars hub
   -------------------------------------------------------------------------- */
.bestcars-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 2rem; }
.bestcars-filters button {
  border: 1px solid var(--gold); background: var(--surface); color: var(--navy); border-radius: 999px;
  padding: .5rem 1.15rem; font-weight: 600; font-size: .88rem; cursor: pointer; transition: .15s;
}
.bestcars-filters button.active, .bestcars-filters button:hover { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }
.bestcars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.bestcar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.bestcar-card .bc-head { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; padding: 1.1rem 1.3rem; border-bottom: 3px solid var(--gold-bright); }
.bestcar-card .bc-head .bc-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); }
.bestcar-card .bc-head h3 { color: #fff; font-size: 1.15rem; margin-top: .2rem; }
.bestcar-card ol { list-style: none; counter-reset: rank; padding: 1rem 1.3rem; margin: 0; }
.bestcar-card ol li { counter-increment: rank; display: flex; align-items: baseline; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.bestcar-card ol li:last-child { border-bottom: 0; }
.bestcar-card ol li::before { content: counter(rank); background: var(--gold-soft); border: 1px solid var(--gold); color: var(--navy); font-weight: 800; font-size: .75rem; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.bestcar-card ol li .bc-note { color: var(--text-muted); font-size: .8rem; margin-left: auto; }
@media (max-width: 900px) { .bestcars-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: #b9b9d4; margin-top: 0; border-top: 3px solid var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 1.6rem 1.4rem; padding: 3rem 1.25rem 2rem; }
.footer-brand { grid-column: span 1; }
.footer-grid h3 { color: var(--gold-bright); font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: #b9b9d4; text-decoration: none; font-size: .93rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-grid p { font-size: .88rem; line-height: 1.65; }
.logo-img { height: 50px; width: auto; display: block; }
.logo-footer { display: inline-block; text-decoration: none; margin-bottom: .9rem; }
.logo-img-footer { height: 82px; width: auto; display: block; }
@media (max-width: 680px) { .logo-img { height: 34px; } .logo-img-footer { height: 44px; } }
.footer-bottom { border-top: 1px solid rgba(240, 220, 130, .15); padding: 1.2rem 1.25rem; font-size: .82rem; color: #8d8daf; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .report-mock { margin: 2rem auto 0; transform: none; }
  .why-split, .sample-split { grid-template-columns: 1fr; gap: 2rem; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { justify-content: center; text-align: center; }
  .trust-logos { justify-content: center; gap: 1.8rem; }
  .check-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .check-stats .cstat + .cstat { border-left: 0; }
  .check-stats .cstat:nth-child(2) { border-left: 1px solid var(--border); }
  .check-stats .cstat:nth-child(4) { border-left: 1px solid var(--border); }
  .reviews-spotlight { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .trust-bar-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .trust-logos { flex-wrap: wrap; justify-content: center; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.2rem; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
  .vin-form { flex-direction: column; }
  .vin-pill { flex-direction: column; border-radius: 18px; padding: 1rem; }
  .vin-pill .btn { width: 100%; }
  .sr-cells { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav ul {
    display: none; position: absolute; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--navy-dark); min-width: 220px; padding: .6rem 0; border-radius: 0 0 0 var(--radius);
    border: 1px solid var(--navy-light); border-top: 2px solid var(--gold-bright);
  }
  .main-nav ul.open { display: flex; }
  .main-nav li a { display: block; padding: .7rem 1.3rem; border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── OBD-II code lookup ─────────────────────────────────────────────── */
.obd-search { margin: 1.8rem 0 2.5rem; }
.obd-search #obd-q { width: 100%; padding: 1rem 1.2rem; font-size: 1.05rem; border: 2px solid var(--border); border-radius: 12px; font-family: inherit; }
.obd-search #obd-q:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-soft); }
.obd-hint { font-size: .82rem; color: var(--text-muted); margin-top: .5rem; }
.obd-results { list-style: none; margin: .6rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.obd-results li { border-bottom: 1px solid var(--border); }
.obd-results li:last-child { border-bottom: 0; }
.obd-results a { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 1rem; text-decoration: none; }
.obd-results a:hover { background: var(--gold-soft); }
.obd-none { padding: .8rem 1rem; color: var(--text-muted); font-size: .9rem; }
.obd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; margin: 1rem 0 2.5rem; }
.obd-card { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.obd-card:hover { border-color: var(--gold-bright); transform: translateY(-2px); }
.obd-code { font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.obd-desc { font-size: .86rem; color: var(--text-muted); }
.obd-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.obd-cat { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.obd-cat-letter { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-bright)); border-radius: 10px; }
.obd-cat h3 { color: var(--navy); font-size: 1.05rem; margin: 0 0 .2rem; }
.obd-cat p { color: var(--text-muted); font-size: .86rem; margin: 0; }
.obd-severity { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 12px; margin: 1.5rem 0; border: 1px solid var(--border); background: var(--surface); }
.obd-severity p { margin: 0; }
.obd-sev-tag { flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .7rem; border-radius: 999px; color: #fff; white-space: nowrap; }
.obd-sev-high { border-color: #e0b4b4; background: #fbf1f1; }
.obd-sev-high .obd-sev-tag { background: #c0392b; }
.obd-sev-medium { border-color: #e6d6a8; background: #fbf7ea; }
.obd-sev-medium .obd-sev-tag { background: #b7860b; }
.obd-sev-low { border-color: #bfe0c4; background: #f1faf2; }
.obd-sev-low .obd-sev-tag { background: #2e7d43; }
@media (max-width: 640px) { .obd-severity { flex-direction: column; gap: .5rem; } }

/* ── Home widget: Last decoded VINs ─────────────────────────────────── */
.recent-vins-wrap { display: grid; grid-template-columns: 2.3fr 1fr; gap: 1.6rem; align-items: start; }
.rvins-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.rvins-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(240,220,130,.08), transparent); }
.rvins-head h2 { color: var(--navy); font-size: 1.15rem; margin: 0; }
.rvins-sub { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.rvins-table { display: block; }
.rvins-row { display: grid; grid-template-columns: 220px 1fr; align-items: baseline; gap: 1rem; padding: .55rem 1.3rem; text-decoration: none; border-top: 1px solid rgba(0,0,0,.04); transition: background-color .12s; }
.rvins-row:first-child { border-top: 0; }
.rvins-row:hover, .rvins-row:focus-visible { background: var(--gold-soft); outline: none; }
.rvins-vin { font-family: ui-monospace, SFMono-Regular, "Menlo", Consolas, monospace; font-size: .92rem; color: var(--navy); font-weight: 700; letter-spacing: .01em; }
.rvins-row:hover .rvins-vin { color: #1f7ae0; text-decoration: underline; }
.rvins-ymm { color: var(--text); font-size: .95rem; }
.rvins-trim { color: var(--text-muted); font-weight: 500; }
.rvins-body { color: var(--text-muted); font-size: .85rem; }
.rvins-foot { margin: 0; padding: .8rem 1.3rem; background: rgba(240,220,130,.08); border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-muted); }
.rvins-side { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 1.3rem; }
.rvins-side h2 { color: var(--navy); font-size: 1.1rem; margin: 0 0 1rem; }
@media (max-width: 900px) {
  .recent-vins-wrap { grid-template-columns: 1fr; }
  .rvins-row { grid-template-columns: 170px 1fr; padding: .55rem 1rem; }
  .rvins-vin { font-size: .82rem; }
  .rvins-ymm { font-size: .88rem; }
}

/* ── OBD callout on model pages ─────────────────────────────────────── */
.obd-callout { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; margin: 2rem 0; padding: 1.4rem 1.6rem; background: linear-gradient(90deg, var(--gold-soft), rgba(240,220,130,.06)); border: 1px solid var(--gold); border-radius: 14px; }
.obd-callout h3 { color: var(--navy); font-size: 1.05rem; margin: 0 0 .3rem; }
.obd-callout p { color: var(--text); font-size: .93rem; margin: 0; }
.obd-callout .btn { flex: none; }
@media (max-width: 720px) { .obd-callout { flex-direction: column; align-items: flex-start; gap: .8rem; } }

/* ── Related-guides list on model pages ─────────────────────────────── */
.related-guides { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.related-guides li { }
.related-guides a { display: block; padding: .95rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.related-guides a:hover { border-color: var(--gold-bright); transform: translateY(-2px); }
.rg-title { display: block; color: var(--navy); font-weight: 700; font-size: .98rem; margin-bottom: .3rem; }
.rg-desc { display: block; color: var(--text-muted); font-size: .82rem; line-height: 1.4; }

/* ── Year-nav on year/make/model pages ──────────────────────────────── */
.year-nav { display:grid; grid-template-columns:1fr auto 1fr; gap:1rem; align-items:center; margin:2rem 0 0; padding:1rem 1.2rem; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.year-nav a { color:var(--navy); text-decoration:none; font-weight:600; }
.year-nav a:hover { color:var(--gold-bright); }
.year-nav-prev { text-align:left; }
.year-nav-model { text-align:center; color:var(--text-muted); font-size:.9rem; }
.year-nav-next { text-align:right; }
@media (max-width:640px){ .year-nav { grid-template-columns:1fr; text-align:center; } .year-nav-prev,.year-nav-next { text-align:center; } }

/* ── Make landing enhancements ──────────────────────────────────────── */
.make-hero { display:grid; grid-template-columns:2fr 1fr; gap:2rem; align-items:start; margin:1.5rem 0 2rem; }
@media (max-width:900px){ .make-hero { grid-template-columns:1fr; } }
.make-facts { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:1.3rem; box-shadow:var(--shadow); }
.make-facts h3 { color:var(--navy); font-size:1.05rem; margin:0 0 .8rem; }
.make-facts dl { margin:0; display:grid; grid-template-columns:auto 1fr; gap:.5rem 1rem; font-size:.9rem; }
.make-facts dt { color:var(--text-muted); }
.make-facts dd { color:var(--navy); font-weight:600; margin:0; }
.wmi-block { background:linear-gradient(90deg,var(--gold-soft),transparent); border:1px solid var(--gold); border-radius:12px; padding:1.2rem 1.4rem; margin:2rem 0; }
.wmi-block h3 { color:var(--navy); margin:0 0 .5rem; font-size:1.05rem; }
.wmi-block code { background:var(--navy); color:var(--gold-bright); padding:.1rem .5rem; border-radius:4px; font-family:ui-monospace,monospace; }

/* ── A-Z alpha index on make pages ──────────────────────────────────── */
.alpha-index { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:1.2rem; margin-top:1rem; }
.alpha-group { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:1rem 1.2rem; }
.alpha-group h3 { color:var(--navy); font-size:1.05rem; margin:0 0 .5rem; border-bottom:2px solid var(--gold-bright); display:inline-block; padding-bottom:.15rem; }
.alpha-group .chip-list { list-style:none; padding:0; margin:.5rem 0 0; display:flex; flex-wrap:wrap; gap:.4rem; }
.alpha-group .chip-list a { display:inline-block; padding:.25rem .7rem; background:var(--gold-soft); border:1px solid var(--gold); border-radius:999px; font-size:.85rem; color:var(--navy); text-decoration:none; }
.alpha-group .chip-list a:hover { background:var(--gold-bright); }

/* ── VIN decode progress overlay (fires on submit click) ────────────── */
#vin-progress-overlay { position:fixed; inset:0; z-index:9999; background:rgba(15,16,48,.68); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; animation:vpo-fade .18s ease-out; }
@keyframes vpo-fade { from{opacity:0} to{opacity:1} }
.vpo-card { background:#fff; border-radius:16px; padding:1.6rem 1.8rem; max-width:440px; width:90%; box-shadow:0 25px 70px rgba(0,0,0,.45); border-top:5px solid var(--gold-bright); }
.vpo-vin { font-size:.92rem; color:var(--text-muted); margin-bottom:.9rem; }
.vpo-vin span { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-weight:800; color:var(--navy); letter-spacing:.02em; margin-left:.35rem; }
.vpo-bar { height:8px; background:var(--border); border-radius:99px; overflow:hidden; margin:.6rem 0 1rem; }
.vpo-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--gold),var(--gold-bright)); border-radius:99px; transition:width .35s ease-out; box-shadow:0 0 10px rgba(240,220,130,.6); }
.vpo-step { font-size:.98rem; color:var(--navy); font-weight:600; display:flex; align-items:center; gap:.5rem; }
.vpo-step::before { content:""; width:12px; height:12px; border-radius:50%; border:2.5px solid var(--gold-bright); border-top-color:transparent; animation:vpo-spin .8s linear infinite; }
@keyframes vpo-spin { to { transform:rotate(360deg); } }

/* ── Recent-VINs load-more button ────────────────────────────────────── */
.rvins-loadmore-wrap { padding: .8rem 1.3rem; text-align: center; border-top: 1px solid var(--border); background: rgba(240,220,130,.05); }
.rvins-loadmore { font-size: .88rem; padding: .55rem 1.2rem; display: inline-flex; align-items: center; gap: .55rem; }
.rvins-load-icon { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; display: inline-block; }
.rvins-loadmore:hover .rvins-load-icon { animation: rvins-spin .8s linear infinite; }
@keyframes rvins-spin { to { transform: rotate(360deg); } }
.rvins-revealed .rvins-row { animation: rvins-slide .35s ease-out both; }
.rvins-revealed .rvins-row:nth-child(2) { animation-delay: .08s; }
.rvins-revealed .rvins-row:nth-child(3) { animation-delay: .16s; }
@keyframes rvins-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── OBD quick-code pill buttons in the /obd-codes hero ─────────────── */
.obd-quick-row { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.obd-quick-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 74px; padding: .5rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem; font-weight: 700; letter-spacing: .04em;
  background: #1c1c40; color: #F0DC82;
  border: 1px solid #F0DC82; border-radius: 999px;
  text-decoration: none;
  transition: background-color .15s, color .15s, transform .15s;
}
.obd-quick-btn:hover,
.obd-quick-btn:focus-visible {
  background: #F0DC82; color: #1c1c40;
  outline: none;
  transform: translateY(-1px);
}

/* ── Guide byline (E-E-A-T author signal) ───────────────────────────── */
.guide-byline { margin-top: .8rem; font-size: .88rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.guide-byline a { color: #62628a; text-decoration: none; border-bottom: 1px solid rgba(98,98,138,.25); transition: color .15s, border-bottom-color .15s; }
.guide-byline a:hover, .guide-byline a:focus-visible { color: #f0dc82; border-bottom-color: #f0dc82; outline: none; }
.guide-byline .gb-role { color: var(--text-muted); }
.guide-byline time { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── Author card at end of guide (Person schema, visible) ───────────── */
.author-card { margin-top: 2.5rem; padding: 1.4rem 1.6rem; display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold-bright); border-radius: 12px; box-shadow: var(--shadow); }
.author-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold-bright); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.author-body { flex: 1; min-width: 0; }
.author-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .8rem; margin-bottom: .5rem; }
.author-name { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.author-role { color: var(--text-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.author-bio { color: var(--text); font-size: .92rem; line-height: 1.55; margin: 0 0 .7rem; }
.author-links { margin: 0; font-size: .85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.author-links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.author-links a:hover { color: var(--gold-bright); }
@media (max-width: 640px) { .author-card { flex-direction: column; } .author-avatar { width: 48px; height: 48px; font-size: 1.15rem; } }

/* ── Footer socials (visible SameAs reinforcement — SVG icons) ───── */
.footer-socials { list-style:none; padding:0; margin:.8rem 0 0; display:flex; flex-wrap:wrap; gap:.5rem; }
.footer-socials li { margin:0; }
.footer-socials a {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  color:var(--gold-bright);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(240,220,130,.28);
  text-decoration:none;
  transition:background-color .15s, color .15s, border-color .15s, transform .15s;
}
.footer-socials a:hover, .footer-socials a:focus-visible {
  background:var(--gold-bright); color:var(--navy-dark);
  border-color:var(--gold-bright); transform:translateY(-1px);
  outline:none;
}
.footer-socials svg { display:block; }

/* ── Comparison pages (/compare/{slug}, /alternatives/{slug}) ───── */
.page-subtitle { color: var(--text-muted); font-size: 1.05rem; margin: .35rem 0 .75rem; }

.pricing-grid { display:grid; grid-template-columns: 1fr 1fr; gap:.9rem; margin: 1.4rem 0; }
.pricing-card {
  border:1px solid rgba(39,39,87,.14); border-radius:14px;
  padding:1rem 1.15rem; background:#fff;
}
.pricing-card.pricing-us { border-color: var(--gold-bright); box-shadow: 0 6px 18px rgba(240,220,130,.18); }
.pricing-brand { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color: var(--text-muted); margin-bottom:.3rem; }
.pricing-value { font-size:1.02rem; line-height:1.4; color: var(--text); font-weight:600; }
.pricing-card.pricing-us .pricing-brand { color: var(--navy-dark); }

.table-scroll { overflow-x:auto; margin: 1rem 0 .5rem; }
.comparison-matrix { width:100%; border-collapse:collapse; font-size:.94rem; }
.comparison-matrix thead th {
  text-align:left; padding:.75rem .85rem; background: var(--navy-dark, #272757); color:#fff;
  border-bottom:2px solid var(--gold-bright); font-weight:600;
}
.comparison-matrix thead th:not(:first-child) { text-align:center; }
.comparison-matrix tbody th {
  text-align:left; padding:.7rem .85rem; font-weight:500; color:var(--text);
  border-bottom:1px solid rgba(39,39,87,.08);
}
.comparison-matrix tbody td.matrix-col {
  text-align:center; padding:.7rem .85rem; vertical-align:middle;
  border-bottom:1px solid rgba(39,39,87,.08); min-width:100px;
}
.comparison-matrix tbody tr:nth-child(even) th,
.comparison-matrix tbody tr:nth-child(even) td { background:#fafaf7; }
.matrix-check { display:inline-block; color:#1b7f3f; font-weight:700; font-size:1.15rem; line-height:1; }
.matrix-cross { display:inline-block; color:#c0392b; font-weight:700; font-size:1.15rem; line-height:1; }
.matrix-partial {
  display:inline-block; padding:.15rem .55rem; border-radius:999px;
  background:#fdf2c3; color:#8a6b12; font-size:.78rem; font-weight:600; letter-spacing:.02em;
}
.matrix-note {
  display:inline-block; padding:.15rem .55rem; border-radius:999px;
  background:#eef0f5; color:var(--navy-dark); font-size:.78rem; font-weight:600;
}
.matrix-legend { font-size:.82rem; color:var(--text-muted); margin:.35rem 0 1.5rem; display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; }

.verdict-grid { display:grid; grid-template-columns:1fr 1fr; gap:.9rem; margin: 1rem 0 1.6rem; }
.verdict-card {
  border-radius:14px; padding:1.05rem 1.15rem; background:#fff;
  border:1px solid rgba(39,39,87,.14);
}
.verdict-card h3 { margin:0 0 .45rem; font-size:1.02rem; color: var(--navy-dark); }
.verdict-card p { margin:0; font-size:.94rem; line-height:1.55; color: var(--text); }
.verdict-card.verdict-us {
  border-color: var(--gold-bright); background: linear-gradient(180deg,#fffdf3 0%, #fff 55%);
}
.verdict-card.verdict-them { background:#f7f7f2; }

@media (max-width: 640px) {
  .pricing-grid, .verdict-grid { grid-template-columns: 1fr; }
  .comparison-matrix { font-size:.88rem; }
  .comparison-matrix tbody td.matrix-col { min-width:80px; }
}

/* ── Popular Makes grid (home) ───── */
.makes-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:.7rem; margin:1.2rem 0 0;
}
.make-tile {
  display:flex; flex-direction:column; gap:.2rem; padding:.85rem 1rem;
  background:#fff; border:1px solid rgba(39,39,87,.14); border-radius:12px;
  text-decoration:none; color:var(--navy-dark);
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
.make-tile:hover, .make-tile:focus-visible {
  border-color: var(--gold-bright);
  transform:translateY(-2px);
  box-shadow: 0 6px 18px rgba(39,39,87,.08);
  outline:none;
}
.make-name { font-weight:700; font-size:1rem; }
.make-count { font-size:.78rem; color:var(--text-muted); }

/* ── Recall Check CTA (home) ───── */
.recall-cta-inner { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:2rem; align-items:center; }
.recall-cta-stats { display:flex; flex-direction:column; gap:.75rem; }
.rcs-item {
  background:#fff; border:1px solid rgba(39,39,87,.12); border-radius:14px;
  padding:.85rem 1.15rem;
}
.rcs-num { display:block; font-size:1.5rem; font-weight:800; color:var(--navy-dark); line-height:1.1; }
.rcs-lab { display:block; font-size:.85rem; color:var(--text-muted); margin-top:.15rem; }
@media (max-width: 780px) {
  .recall-cta-inner { grid-template-columns: 1fr; }
}

/* ── Section-level Capsule Method (Phase 32) ─────
 * The visual box that renders under each H2, holding the 25-40 word
 * answer that AI engines lift and quote. Deliberately different from
 * the top-level .answer-box (which is the whole-page answer).
 * Rules from seo-team + claude-blog + geo-seo-claude: NO links inside. */
.section-capsule {
  background: #fbfaf3;
  border-left: 4px solid var(--gold-bright);
  padding: .75rem 1.1rem;
  margin: .3rem 0 1.1rem;
  border-radius: 0 8px 8px 0;
}
.section-capsule p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--navy-dark);
  font-weight: 500;
}
.section-capsule p::before {
  content: "Quick answer: ";
  color: var(--navy);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: .2rem;
}

/* ── Page TOC (Phase 29) ───── */
.page-toc {
  background:#faf9f2; border:1px solid rgba(39,39,87,.12); border-radius:12px;
  padding:.9rem 1.15rem; margin:1.6rem 0 2rem;
}
.page-toc-lbl { font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:var(--navy-dark); margin:0 0 .5rem; }
.page-toc ul { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.35rem .75rem; }
.page-toc li { margin:0; }
.page-toc a { color:var(--navy); text-decoration:none; font-size:.88rem; padding:.15rem .5rem; border-radius:6px; background:#fff; border:1px solid rgba(39,39,87,.08); }
.page-toc a:hover, .page-toc a:focus-visible { background:var(--gold-bright); color:var(--navy-dark); outline:none; }

/* ── UGC Q&A form (Phase 28) ───── */
.ugc-qa { background:#faf9f2; border:1px solid rgba(39,39,87,.14); border-radius:14px; padding:1.4rem 1.6rem; margin:2rem 0; }
.ugc-qa h2 { margin-top:0; }
.ugc-qa-form { display:flex; flex-direction:column; gap:.9rem; margin-top:1rem; }
.ugc-qa-form label { display:flex; flex-direction:column; gap:.3rem; }
.ugc-qa-form label > span { font-size:.85rem; font-weight:600; color:var(--text-muted); }
.ugc-qa-form textarea, .ugc-qa-form input[type=email] { padding:.6rem .85rem; border:1px solid var(--border); border-radius:8px; font:inherit; font-size:.95rem; }
.ugc-qa-form textarea { min-height:90px; resize:vertical; }
.ugc-qa-form textarea:focus, .ugc-qa-form input:focus { outline:none; border-color:var(--gold-bright); }
.ugc-qa-form button { align-self:flex-start; }
.ugc-note { font-size:.78rem; color:var(--text-muted); margin:0; }

/* ── Recall summary block on year/trim pages (Phase 23) ───── */
.recall-summary {
  display:grid; grid-template-columns:auto 1fr; gap:1.2rem; align-items:center;
  padding:1.1rem 1.4rem; margin:1rem 0 1.4rem;
  background:linear-gradient(135deg,#fff5e5 0%, #ffe8d0 100%);
  border:1px solid #f0a865; border-radius:14px;
}
.recall-summary-clean { background:linear-gradient(135deg,#e9f7ec 0%, #d3efd8 100%); border-color:#7bbf87; }
.recall-summary .rs-num { font-size:2.6rem; font-weight:900; color:#c0392b; line-height:1; padding-right:1.2rem; border-right:2px solid rgba(0,0,0,.08); }
.recall-summary-clean .rs-num { color:#1b7f3f; }
.recall-summary .rs-lbl { font-size:.95rem; color: var(--text); line-height:1.5; }
.recall.recall-detailed { background:#fff; border:1px solid rgba(39,39,87,.14); border-radius:12px; padding:1rem 1.2rem; margin-bottom:.8rem; }
.recall.recall-detailed h3 { color:var(--navy-dark); font-size:1.02rem; margin:0 0 .4rem; }
.recall.recall-detailed p { margin:.35rem 0; font-size:.92rem; line-height:1.5; }
.recall.recall-detailed .recall-meta { font-size:.82rem; color:var(--text-muted); }

/* ── Year picker grid on /make/{make}/{model} (Phase 21) ───── */
.year-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:.55rem;
  margin:1rem 0 .5rem;
}
.year-tile {
  display:flex; flex-direction:column; align-items:flex-start; gap:.1rem;
  padding:.7rem .9rem; background:#fff;
  border:1px solid rgba(39,39,87,.14); border-radius:10px;
  text-decoration:none; color:var(--navy-dark);
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
.year-tile:hover, .year-tile:focus-visible {
  border-color: var(--gold-bright); transform:translateY(-1px);
  box-shadow: 0 4px 12px rgba(39,39,87,.08); outline:none;
}
.year-tile .year-num { font-weight:800; font-size:1.05rem; color:var(--navy-dark); }
.year-tile .year-label { font-size:.72rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }

/* ── VIN 17-position table on /vin-decoder ───── */
.comparison-matrix.vin-positions th[scope="row"] {
  font-weight:700; color:var(--navy-dark); white-space:nowrap; width:80px;
}
.comparison-matrix.vin-positions td { padding:.7rem .85rem; border-bottom:1px solid rgba(39,39,87,.08); }


/* ---------------------------------------------------------------------------
 * Footer company row — Company links + socials inline, above footer-bottom
 * ------------------------------------------------------------------------- */
.footer-company {
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding: 1.1rem 0 .4rem;
}
.footer-company .fc-label {
  color: #F0DC82;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
}
.footer-company .fc-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.footer-company .fc-links a {
  color: #e8e9f5;
  font-size: .88rem;
  text-decoration: none;
}
.footer-company .fc-links a:hover,
.footer-company .fc-links a:focus { color: #F0DC82; text-decoration: underline; }
.footer-company .fc-sep { color: rgba(255, 255, 255, .25); }
.footer-company .fc-socials {
  display: flex;
  align-items: center;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-company .fc-socials li { margin: 0; }
.footer-company .fc-socials a {
  color: #e8e9f5;
  display: inline-flex;
}
.footer-company .fc-socials a:hover,
.footer-company .fc-socials a:focus { color: #F0DC82; }

/* ===== Authors & byline row (2026-10-15) ===== */
.byline-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.byline-author { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.byline-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-bright); display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
}
.byline-meta { font-size: .88rem; color: var(--text-muted); line-height: 1.35; }
.byline-meta a { color: #62628a; text-decoration: none; border-bottom: 1px solid rgba(98,98,138,.25); transition: color .15s, border-bottom-color .15s; }
.byline-meta a:hover, .byline-meta a:focus-visible { color: #f0dc82; border-bottom-color: #f0dc82; outline: none; }
.byline-date, .byline-read { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.byline-share { display: flex; align-items: center; gap: .35rem; }
.byline-share a, .byline-share .byline-copy {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .78rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s;
}
.byline-share a:hover, .byline-share .byline-copy:hover,
.byline-share a:focus-visible, .byline-share .byline-copy:focus-visible {
  color: var(--gold-bright); border-color: var(--gold-bright); outline: none;
}
.byline-share .byline-copy { font-family: inherit; line-height: 1; }
.byline-copy.copied { color: #2e9e6b; border-color: #2e9e6b; }

/* Authors index grid */
.authors-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .authors-grid { grid-template-columns: 1fr 1fr; } }
.author-card-link {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.author-card-link:hover, .author-card-link:focus-visible { border-color: var(--gold-bright); box-shadow: var(--shadow); outline: none; }
.author-card-page { margin-top: 0; }
.author-avatar-lg { width: 76px; height: 76px; font-size: 1.7rem; }
.author-bio-full { color: var(--text); font-size: .95rem; line-height: 1.6; margin: 0 0 .8rem; }
.author-links-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .45rem; margin: 0; font-size: .85rem; }
.author-link-pill {
  display: inline-block; padding: .22rem .7rem; border-radius: 999px;
  background: rgba(98,98,138,.12); color: #62628a !important;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s;
}
.author-link-pill:hover, .author-link-pill:focus-visible { background: rgba(240,220,130,.18); color: #4a4a6a !important; }

/* ===== Bank Statement Converter (/bank-statement-converter) ===== */
.bsc-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2.6rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.bsc-dropzone:hover, .bsc-dropzone:focus-visible {
  border-color: var(--navy);
  outline: none;
  box-shadow: var(--shadow);
}
.bsc-dropzone.dragover {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: var(--shadow);
}
.bsc-dropzone-icon { font-size: 2.2rem; line-height: 1; margin-bottom: .6rem; }
.bsc-dropzone-title { font-size: 1.05rem; color: var(--text); }
.bsc-dropzone-sub { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

.bsc-filelist { margin-top: 1rem; display: grid; gap: .6rem; }
.bsc-file-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
}
.bsc-file-item.bsc-error { border-color: var(--danger); }
.bsc-file-item.bsc-warn { border-color: var(--gold); }
.bsc-file-item.bsc-done { border-color: var(--success); }
.bsc-file-name { font-weight: 600; font-size: .95rem; }
.bsc-file-msg { font-size: .84rem; color: var(--text-muted); margin-top: .2rem; }
.bsc-file-item.bsc-error .bsc-file-msg { color: var(--danger); }

.bsc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.bsc-actions .btn:disabled { opacity: .45; cursor: not-allowed; }

.bsc-status { margin-top: 1rem; padding: .8rem 1.1rem; border-radius: var(--radius); font-size: .92rem; }
.bsc-status.bsc-warn { background: var(--gold-soft); border: 1px solid var(--gold); }
.bsc-status.bsc-error { background: #fbeae8; border: 1px solid var(--danger); color: var(--danger); }

.bsc-preview { margin-top: 1.4rem; }
.bsc-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  max-height: 60vh;
  background: var(--surface);
}
.bsc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bsc-table th {
  position: sticky; top: 0;
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: .65rem .8rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 2;
}
.bsc-table th.num, .bsc-table td.num { text-align: right; }
.bsc-table td { padding: .5rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.bsc-table tbody tr:nth-child(even) { background: var(--bg); }
.bsc-table td.nowrap { white-space: nowrap; }
.bsc-table td.neg { color: var(--danger); }
.bsc-table td.pos { color: var(--success); }
.bsc-table .bsc-file-cell { color: var(--text-muted); font-size: .8rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bsc-totals {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: .9rem;
  padding: .9rem 1.1rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: .95rem;
}
.bsc-note { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }

@media (max-width: 900px) {
  .bsc-dropzone { padding: 1.8rem 1rem; }
  .bsc-table { font-size: .8rem; }
  .bsc-totals { gap: .8rem; flex-direction: column; }
}


/* Progress bar (real conversion progress) */
.bsc-progress { margin-top: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.bsc-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bsc-progress-head span:first-child { font-weight: 600; font-size: .95rem; }
.bsc-progress-pct { font-weight: 700; color: var(--navy); }
.bsc-progress-track { height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; margin-top: .55rem; }
.bsc-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--navy-light)); transition: width .3s ease; }
.bsc-progress-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; font-size: .8rem; color: var(--text-muted); }
