/* Texas Battery Replacement identity: the Texas battery mark (navy and red
   Texas, battery, bolt and speed lines) with the TEXAS wordmark.
   Lone Star Navy for the brand and dark surfaces, navy-tinted greys, and
   red kept for the battery accents: the + markers, the bolt and the
   triangle in the A. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #0B1727;
  --navy: #12284A;
  --navy-hi: #2B62AD;
  --navy-lo: #0A1A34;
  --red-hi: #F4513A;
  --red-lo: #A3101A;
  /* The logo's own gradients: navy lit from the top left, red from the top right. */
  --grad-navy: linear-gradient(135deg, var(--navy-lo) 0%, var(--navy) 48%, #1D4680 100%);
  --grad-red: linear-gradient(160deg, var(--red-hi) 0%, var(--red) 55%, var(--red-lo) 100%);
  --grad-brand: linear-gradient(90deg, var(--navy-lo) 0%, var(--navy-hi) 46%, var(--red) 58%, var(--red-hi) 100%);
  --steel: #506279;
  --muted: #425062;
  --silver: #A4B0BF;
  --line: #D2DBE7;
  --field: #B5BECB;
  --paper: #EFF3F7;
  --white: #FFFFFF;
  --red: #D7261E;
  --panel: #12243C;
  --panel-line: #1D3C64;
  --on-dark: #C5CDD7;
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; }
a { color: var(--ink); text-underline-offset: 3px; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.lid :focus-visible, .section-dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.mono { font-family: var(--mono); font-size: 0.9em; }

/* Plus marker */
.plus {
  display: inline-block; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 12px no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border: 2px solid transparent; border-radius: 6px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
}
.btn-small { min-height: 42px; padding: 8px 14px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--silver); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); position: relative; }
.brand { display: flex; flex: none; }
.brand .lockup { width: 204px; height: auto; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; font-size: 0.97rem; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* Tighter menu spacing so the full menu fits just above the phone breakpoint. */
@media (min-width: 1080px) and (max-width: 1199px) {
  .header-row { gap: 18px; }
  .main-nav ul { gap: 16px; }
}
.header-phone { font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-call { display: none; }
.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 6px;
  display: grid; place-content: center; gap: 5px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--ink); }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px 20px 24px; box-shadow: 0 24px 32px -24px rgba(11, 23, 39, 0.35);
}
.mobile-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-panel li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.mobile-panel .btn { width: 100%; margin-top: 10px; }

@media (max-width: 1079px) {
  .main-nav, .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .mobile-nav { display: block; }
  .header-actions { gap: 8px; }
}
@media (max-width: 560px) {
  .header-book { display: none; }
  .brand .lockup { width: 172px; }
  .header-row { gap: 12px; }
}

/* Breadcrumbs */
.breadcrumbs { padding-top: 20px; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--silver); }
.breadcrumbs a { color: var(--muted); }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 4vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 20px; max-width: 12em;
}
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 36em; }
.promise-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-weight: 600; }
.promise-list li { display: flex; align-items: center; gap: 12px; }
@media (min-width: 980px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
}

/* Battery-lid finder */
.lid {
  position: relative; background: var(--ink); color: var(--paper);
  border-radius: 12px; padding: 36px 24px 24px; margin-top: 18px;
}
@media (min-width: 560px) { .lid { padding: 40px 32px 32px; } }
.terminal {
  position: absolute; top: -18px; width: 58px; height: 18px; border-radius: 5px 5px 0 0;
  display: grid; place-items: center; color: var(--white); font-weight: 800; font-size: 17px; line-height: 1;
}
.terminal-pos { left: 36px; background: var(--red); }
.terminal-neg { right: 36px; background: var(--steel); }
.lid-title { font-size: 1.65rem; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--white); }
.lid-sub { color: var(--silver); font-size: 0.97rem; margin: 0 0 20px; }
.vehicle-type { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-type legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.vehicle-type label, .choice-row label {
  position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px;
  border: 1px solid var(--panel-line); border-radius: 999px; cursor: pointer; font-size: 0.95rem; font-weight: 500;
}
.vehicle-type input, .choice-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vehicle-type label:has(input:checked) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.vehicle-type label:has(:focus-visible), .choice-row label:has(:focus-visible) { outline: 3px solid currentColor; outline-offset: 3px; }
.finder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.finder-fields[hidden] { display: none; }
.field { display: block; }
.field span { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field small { font-weight: 400; }
.field-wide { grid-column: 1 / -1; }
.lid .field span { color: var(--silver); }
.lid select, .lid input {
  width: 100%; min-height: 48px; padding: 0 12px; font: inherit; font-size: 1rem;
  color: var(--white); background: var(--panel); border: 1px solid var(--panel-line); border-radius: 6px;
}
.lid select:disabled { opacity: 0.6; }
.vin-first, .finder-or { grid-column: 1 / -1; }
.vin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.finder-or { margin: 6px 0 0; font-size: 0.92rem; font-weight: 600; color: var(--silver); }
.vin-help { color: var(--silver); font-size: 0.88rem; margin: 8px 0 0; }
.finder-status { min-height: 1.5em; margin: 12px 0 0; font-size: 0.92rem; color: var(--silver); }
.finder-status:empty { min-height: 0; margin: 0; }
.finder-result { margin-top: 18px; background: var(--white); color: var(--ink); border-radius: 8px; padding: 20px; }
.finder-result:focus { outline: none; }
.finder-result h3 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.finder-result p { color: var(--muted); font-size: 0.97rem; }
.fit-options { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.fit-option { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 6px; }
.fit-option strong { font-size: 1.02rem; }
.fit-option .fit-meta { color: var(--muted); font-size: 0.9rem; }
.fit-option .actions { margin-top: 6px; }
.fit-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--paper); width: fit-content; }

/* Price breakdown in the finder: battery, core, labor, registration, total. */
/* Finder result: the battery size, then one card per battery type */
.size-label { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.finder-result .size-code { font-size: 1.75rem; letter-spacing: -0.02em; margin: 2px 0 8px; }
.choose-title { font-size: 1.12rem; margin: 20px 0 0; }
.finder-result .choose-note { margin: 6px 0 0; font-size: 0.92rem; }
.tier-card { grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: start; }
.tier-card > .quote, .tier-card > .actions { grid-column: 1 / -1; }
.tier-photo img { display: block; width: 88px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.tier-head { display: grid; gap: 4px; min-width: 0; }
@media (max-width: 420px) {
  .tier-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .tier-photo img { width: 64px; }
}
.quote { display: grid; gap: 4px; margin: 6px 0 2px; padding: 10px 12px; border-radius: 6px; background: var(--paper); font-size: 0.92rem; }
.lid-light .quote { background: var(--white); }
.quote div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.quote dt { color: var(--muted); }
.quote dd { margin: 0; font-family: var(--mono); font-weight: 500; text-align: right; white-space: nowrap; }
.quote dd:not(:has(> *)) { white-space: normal; }
.quote-total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.quote-total dt { color: var(--ink); font-weight: 700; }
.quote-total dd { font-weight: 700; font-size: 1.02rem; }
.quote-intro { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--red); background: var(--paper); border-radius: 0 6px 6px 0; }
.lid-light .quote-intro { background: var(--white); }
.quote-note { margin: 12px 0 0; font-size: 0.85rem; }

/* Labor tiers and labor by make on the pricing page. */
/* Battery basics on the finder page. */
.basics-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .basics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .basics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.basics-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.basics-grid h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.basics-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.labor-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.labor-tiers div { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.labor-tiers span { font-size: 0.85rem; color: var(--muted); }
.labor-tiers strong { font: 800 1.5rem/1.1 var(--font); letter-spacing: -0.01em; }
.labor-help { color: var(--muted); max-width: 70ch; }
.labor-makes { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 900px) { .labor-makes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.labor-make { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.labor-make summary { padding: 12px 16px; font-weight: 700; cursor: pointer; }
.labor-make[open] summary { border-bottom: 1px solid var(--line); }
.labor-table { margin: 0; width: 100%; }
.labor-table th { font-weight: 500; text-align: left; }
.labor-table th small { display: block; color: var(--muted); font-size: 0.8rem; }
.labor-table td { white-space: nowrap; color: var(--muted); font-size: 0.88rem; }
.labor-table td.mono { color: var(--ink); font-weight: 600; }
.model-other { margin-top: 10px; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 980px) { .section { padding: 88px 0; } }
.section-steel { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: var(--on-dark); }
.section-title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.025em; font-weight: 800; margin: 0 0 24px; }
.section-dark .section-title { color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 28px; }
.section-head .section-title { margin: 0; }
.section-lead { color: var(--muted); max-width: 46em; margin: -8px 0 28px; }
.after-faq, .after-grid { margin: 24px 0 0; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 72px; align-items: center; } }

.page-head { padding: 28px 0 56px; }
.page-head + .section:not(.section-steel):not(.section-dark) { padding-top: 8px; }
.page-head h1, .product-info h1, .article h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800; margin: 0 0 16px; max-width: 18em;
}
.jump-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; }
.jump-links a { font-weight: 600; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 12px;
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--silver);
}
.steps h3 { font-size: 1.2rem; margin: 0 0 6px; }
.steps p { color: var(--muted); margin: 0; }
.steps-inline { padding-left: 1.3em; display: grid; gap: 12px; margin: 0 0 1em; }

/* Lines and cards */
.chip-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px;
  font-family: var(--mono); font-size: 0.85rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
}
.chip:hover { border-color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.battery-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.battery-card:hover { border-color: var(--ink); }
.battery-card-link { text-decoration: none; }
.battery-card-link svg { display: block; height: auto; margin: 0 auto 16px; }
.battery-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 4px; }
.battery-card-link:hover h3 { text-decoration: underline; }
.group-code { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.battery-card-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.battery-card-specs { display: block; margin-top: 2px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.battery-card-fits { margin: -4px 0 12px; font-size: 0.86rem; color: var(--muted); }
.battery-card[hidden], .section[hidden] { display: none; }
.battery-card-price { margin: auto 0 0; }
.price { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.price-note { display: block; color: var(--muted); font-size: 0.86rem; }
.price-tbd { font-size: 0.97rem; font-weight: 600; }

/* Receipt */
.receipt {
  margin: 0; width: 100%; max-width: 440px; justify-self: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 28px;
  box-shadow: 0 24px 48px -36px rgba(11, 23, 39, 0.5);
}
.section-steel .receipt, .page-head .receipt { border-color: var(--line); }
.receipt figcaption { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.receipt dl { margin: 0; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--field); }
.receipt dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 0.92rem; white-space: nowrap; }
.receipt .dd-text { font-family: var(--font); font-size: 0.92rem; color: var(--muted); white-space: normal; max-width: 12em; }
.receipt-total .dd-text { color: var(--ink); font-weight: 700; }
.receipt-total { display: flex; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 1.05rem; margin: 16px 0 0; }
.receipt-foot { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.battery-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin: 0 auto 16px; border-radius: 6px; mix-blend-mode: multiply; }
.dark-art { display: flex; justify-content: center; background: var(--paper); border-radius: 12px; padding: 40px 24px; }
.dark-art svg { height: auto; }

/* Cities */
.city-grid, .link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); column-gap: 28px; }
.link-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.city-grid a, .link-grid a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.city-grid a:hover, .link-grid a:hover { text-decoration: underline; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.county h3 { font-size: 1.02rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.county ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.county a { font-weight: 600; }
.inline-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-list li { padding: 6px 12px; background: var(--paper); border-radius: 4px; font-size: 0.95rem; }
.section-steel .inline-list li { background: var(--white); }

/* Vehicles */
.vehicle-head { display: grid; gap: 40px; }
.vehicle-head > * { min-width: 0; }
@media (min-width: 980px) { .vehicle-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; } }
.fit-summary { margin: 16px 0 18px; }
.fit-summary div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--panel-line); }
.fit-summary div:first-child { border-top: 1px solid var(--panel-line); }
.fit-summary dt { font-family: var(--mono); font-size: 0.9rem; color: var(--silver); white-space: nowrap; }
.fit-summary dd { margin: 0; font-weight: 700; color: var(--white); text-align: right; }
.year-list { display: grid; gap: 20px; }
.year-block { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.year-block > * { min-width: 0; }
@media (min-width: 900px) { .year-block { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 28px; } }
.year-range { font-family: var(--mono); font-size: 0.95rem; color: var(--muted); margin: 0 0 4px; }
.year-head h3 { font-size: 1.45rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.year-meta { color: var(--muted); font-size: 0.93rem; margin: 0; }
.year-block .fit-options { margin: 0; }
@media (min-width: 1100px) { .year-block .fit-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.year-block-other { background: var(--paper); border-color: var(--paper); }
.year-block-other p { color: var(--muted); }
.vehicle-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 600px) { .vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } }
.vehicle-grid a { display: block; height: 100%; padding: 16px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 600px) { .vehicle-grid a { padding: 20px; } }
.vehicle-grid a:hover { border-color: var(--ink); }
.vehicle-grid h3 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2px 0 10px; }
.vehicle-grid a:hover h3 { text-decoration: underline; }
.vehicle-make { display: block; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.vehicle-fit { display: grid; gap: 2px; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* FAQ: plus to open, minus when open */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 44px 18px 0; font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 3px; margin-top: -1.5px;
  background: var(--red); border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s;
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::before { background: var(--ink); }
.faq[open] summary::after { transform: rotate(0deg) scaleX(0); }
.faq-answer { padding: 0 0 18px; color: var(--muted); max-width: 46em; }
.faq-answer p { margin: 0 0 10px; }

/* Guides and services */
.guide-list, .service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide-list a, .service-list a {
  display: block; height: 100%; padding: 24px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.guide-list a:hover, .service-list a:hover { border-color: var(--ink); }
.guide-list h2, .guide-list h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.service-list h2 { font-size: 1.4rem; margin: 0 0 8px; }
.guide-list p, .service-list p { color: var(--muted); margin: 0; }

/* Prose */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.prose-grid > *, .split > *, .hero-grid > *, .product-grid > *, .book-grid > *, .finder-page > * { min-width: 0; }
@media (min-width: 980px) { .prose-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } }
.prose { max-width: 44em; }
.prose h2 { font-size: 1.6rem; letter-spacing: -0.015em; margin: 44px 0 12px; }
.prose > h2:first-child, .prose > h1 + .article-meta + h2 { margin-top: 0; }
.prose p, .prose li { color: #162E4D; }
.prose table { font-size: 0.95rem; }
.article-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 28px; }
.side-card { background: var(--paper); border-radius: 10px; padding: 24px; }
@media (min-width: 980px) { .side-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.side-card p { color: var(--muted); }
.side-card .btn + .btn { margin-top: 10px; }
.side-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.side-list a { font-weight: 600; }
.plus-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.plus-list li { position: relative; padding-left: 26px; }
.plus-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px;
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 12px no-repeat;
}
.small-print { color: var(--muted); font-size: 0.92rem; }

/* Tables */
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin: 16px 0 24px; }
.table-scroll table { width: 100%; min-width: 640px; border-collapse: collapse; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-scroll thead th { background: var(--paper); color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.table-scroll tbody th { font-weight: 600; }

/* Product */
.product { padding: 24px 0 64px; }
.product-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.product-art { display: flex; justify-content: center; align-items: center; background: var(--paper); border-radius: 12px; padding: 48px 24px; }
.product-art svg { height: auto; }
.product-line { margin: 0 0 8px; }
.product-line a { color: var(--muted); font-weight: 600; text-decoration: none; }
.price-box { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 24px 0 0; }
.price-row { margin: 0; }
.price-row .price { font-size: 2.1rem; letter-spacing: -0.02em; }
.price-small { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0; }
.notice { color: var(--ink); font-weight: 600; }
.spec-list { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.spec-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 0.86rem; color: var(--muted); }
.spec-list dd { margin: 2px 0 0; font-weight: 600; }

/* Booking */
.book-grid, .finder-page { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .book-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .book-intro { position: sticky; top: calc(var(--header-h) + 24px); }
  .finder-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}
.book-form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
@media (min-width: 560px) { .book-form { padding: 32px; } }
.book-form fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.book-form legend { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 14px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid, .finder-fields { grid-template-columns: 1fr; } }
.book-form input:not([type='radio']):not([type='checkbox']), .book-form select, .book-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: 6px;
}
.book-form textarea { min-height: 112px; resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.choice-row label { border-color: var(--field); }
.choice-row label:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; font-size: 0.97rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.form-small { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }

/* Stepped booking with a charge bar */
.book-progress { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.book-progress[hidden] { display: none; }
.book-progress li { display: grid; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.book-progress .cell { position: relative; height: 12px; border-radius: 4px; background: var(--line); overflow: hidden; }
.book-progress .cell::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.book-progress li.is-done .cell::after { transform: scaleX(1); }
.book-progress li.is-current { color: var(--ink); }
.book-progress li.is-current .cell::after { transform: scaleX(0.35); animation: cell-charge 1.6s ease-in-out infinite; }
.book-progress.is-charged li .cell::after { background: var(--red); }
@keyframes cell-charge { 0%, 100% { transform: scaleX(0.2); } 50% { transform: scaleX(0.55); } }
.is-stepped .book-step[hidden] { display: none; }
.is-stepped .book-step { animation: step-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.book-step legend:focus { outline: none; }
.step-nav, .step-submit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; }
.step-nav[hidden], .step-submit [hidden] { display: none; }
.step-nav [data-next] { margin-left: auto; }
.step-submit .btn-primary { margin-left: auto; }
.book-summary { margin: 22px 0 18px; padding: 16px; border-radius: 8px; background: var(--paper); display: grid; gap: 8px; }
.book-summary[hidden] { display: none; }
.book-summary div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.book-summary dt { color: var(--muted); }
.book-summary dd { margin: 0; font-weight: 600; text-align: right; }
@media (prefers-reduced-motion: reduce) { .book-progress li.is-current .cell::after { animation: none; } .is-stepped .book-step { animation: none; } }

/* Contact */
.contact-options { display: grid; gap: 12px; margin: 28px 0; }
@media (min-width: 700px) { .contact-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-option { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.contact-option:hover { border-color: var(--ink); }
.contact-option span { display: block; color: var(--muted); font-size: 0.92rem; }
.contact-option strong { font-size: 1.15rem; }

/* CTA band and footer */
.cta-band { background: var(--ink); color: var(--white); padding: 56px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.cta-band p { color: var(--on-dark); margin: 0; max-width: 38em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--paper); }

.site-footer { background: var(--ink); color: var(--on-dark); border-top: 1px solid #152C4A; }
.footer-grid { display: grid; gap: 32px; padding: 56px 20px 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 56px 32px 32px; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } }
.footer-brand .lockup { width: 240px; height: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--silver); max-width: 30em; }
.footer-phone { color: var(--white); font-size: 1.4rem; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; }
.site-footer h2 { color: var(--white); font-size: 0.97rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { border-top: 1px solid #152C4A; padding-top: 20px; padding-bottom: 32px; color: #8797AB; font-size: 0.86rem; }
.footer-legal p { margin: 0 0 8px; max-width: 70em; }

.hero-help { margin: 20px 0 0; }

/* Fixed contact bar on phones */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 8px 10px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Dark hero with the 3D battery ---------- */
.hero-dark {
  position: relative; overflow: hidden; color: var(--white); border-bottom: 0;
  background:
    radial-gradient(55% 65% at 74% 48%, #172E4E 0%, rgba(11, 23, 39, 0) 70%),
    linear-gradient(180deg, #0B1727 0%, #091320 100%);
  padding: 48px 0 140px;
}
.hero-dark h1 { color: var(--white); }
.hero-dark .lead { color: var(--on-dark); }
.hero-dark .promise-list { color: var(--white); }
.hero-dark .btn-primary { background: var(--white); color: var(--ink); }
.hero-dark .btn-primary:hover { background: var(--paper); }
.hero-dark .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.hero-dark .btn-secondary:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.hero-dark .text-link { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.45); }
.hero-dark .text-link:hover { text-decoration-color: var(--white); }
.hero-dark :focus-visible { outline-color: var(--white); }
@media (min-width: 980px) { .hero-dark { padding: 72px 0 168px; } }

.hero-visual { position: relative; width: 100%; max-width: 640px; justify-self: center; aspect-ratio: 5 / 4; min-height: 280px; display: grid; place-items: center; }
.hero-fallback { display: grid; place-items: center; transition: opacity 0.6s ease; }
.hero-fallback .battery-art, .hero-fallback .battery-photo { width: min(420px, 82%); height: auto; }
.three-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.is-3d > .three-canvas { opacity: 1; }
.hero-visual.is-3d .hero-fallback { opacity: 0; }
/* Where 3D will run, the drawing never shows first: the 3D battery is the first
   thing seen. It stays as the fallback when WebGL is missing or 3D fails. */
.webgl:not(.no-3d) .hero-visual[data-photo3d]:not(.is-3d) .hero-fallback { opacity: 0; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .webgl:not(.no-3d) .inside-visual[data-photo3d]:not(.is-3d):not(.no-3d) .inside-fallback { opacity: 0; }
}

/* What's inside: a sticky stage while the cutaway plays */
.inside { position: relative; background: var(--ink); color: var(--white); padding: 88px 0; }
.inside .section-title { color: var(--white); }
.inside-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .inside-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; } }
.inside-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: inside; }
.inside-steps li { counter-increment: inside; }
.inside-steps h3 { font-size: 1.35rem; margin: 0 0 8px; }
.inside-steps h3::before { content: counter(inside, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--silver); margin-bottom: 6px; }
.inside-steps p { color: var(--on-dark); margin: 0; max-width: 34em; }
.inside .text-link { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.45); }
.inside-cells { display: none; }
.inside-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.inside-fallback { transition: opacity 0.6s; }
.inside.inside-3d { height: 460vh; padding: 0; }
.inside.inside-3d .inside-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.inside.inside-3d .inside-visual { height: min(70vh, 640px); width: 100%; }
.inside.inside-3d .inside-fallback { opacity: 0; }
.inside.inside-3d .inside-steps { position: relative; min-height: 12.5em; }
.inside.inside-3d .inside-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.3s ease; pointer-events: none; }
.inside.inside-3d .inside-steps li.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.45s ease 0.22s, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s; }
.inside.inside-3d .inside-cells { display: flex; gap: 8px; margin: -6px 0 22px; }
.inside-cells span { width: 34px; height: 10px; border-radius: 3px; background: var(--panel-line); transition: background-color 0.3s; }
.inside-cells span.on { background: var(--paper); }
@media (max-width: 979px) {
  .inside.inside-3d .inside-grid { grid-template-rows: auto 1fr; gap: 16px; }
  .inside.inside-3d .inside-visual { order: -1; height: 42vh; height: 42svh; }
  .inside.inside-3d .inside-steps { min-height: 11em; }
  .inside.inside-3d .section-title { font-size: 1.6rem; margin-bottom: 12px; }
}

/* Service map */
.service-map {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white);
  box-shadow: 0 34px 60px -46px rgba(11, 23, 39, 0.45);
}
.map-panel { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; padding: 22px 20px; border-bottom: 1px solid var(--line); }
.map-search label { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.map-search-row { display: flex; gap: 8px; }
.map-search-field { position: relative; display: flex; flex: 1; min-width: 0; }
.map-search-field svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.map-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px 0 40px; font: inherit; border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink); }
.map-search .btn { min-height: 48px; padding-inline: 18px; border-radius: 8px; }
.map-answer { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.map-answer:empty { display: none; }
.map-answer a { font-weight: 600; }
.map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.map-stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--paper); }
.map-stats dt { font-size: 0.82rem; color: var(--muted); }
.map-stats dd { margin: 0; font: 800 1.9rem/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.map-areas[hidden] { display: none; }
.map-areas-title { margin: 0 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.map-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.map-chip {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--field); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 600 0.9rem var(--font); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.map-chip:hover { border-color: var(--ink); }
.map-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 12px; height: 12px; }
.lg-featured, .lg-served { background: linear-gradient(var(--red), var(--red)) center / 12px 3.5px no-repeat, linear-gradient(var(--red), var(--red)) center / 3.5px 12px no-repeat; }
.lg-served { background: linear-gradient(#6E839F, #6E839F) center / 10px 3px no-repeat, linear-gradient(#6E839F, #6E839F) center / 3px 10px no-repeat; }
.lg-extended { width: 8px; height: 8px; border-radius: 50%; background: #5C708B; }

.map-frame {
  position: relative; height: 360px; overflow: hidden; outline: none;
  background: radial-gradient(80% 90% at 50% 45%, #12243C, #0A1524 78%);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.map-frame.is-ready { cursor: grab; }
.map-frame.is-zoomed { touch-action: none; }
.map-frame.is-panning { cursor: grabbing; }
.map-frame.is-lens { cursor: none; touch-action: none; }
.map-frame.is-lens .map-tools { cursor: auto; }
.map-frame:focus-visible { box-shadow: inset 0 0 0 3px var(--white); }
.map-frame > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.map-grid line { stroke: #0F1F33; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-roads-case path, .map-roads path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-roads-case path { stroke: #070E17; stroke-width: 6; }
.map-roads path { stroke: #1F3F69; stroke-width: 2.5; }
.map-shield { pointer-events: none; }
.map-shield rect { fill: #152C4A; stroke: #455467; stroke-width: 1; }
.map-shield text { fill: #D0D7DF; font: 700 10.5px var(--font); letter-spacing: 0.02em; text-anchor: middle; }
.map-city { cursor: pointer; outline: none; transition: opacity 0.3s; }
.map-city .map-hit { fill: transparent; }
.map-city path { fill: #A4B0BF; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), fill 0.2s; transform-box: fill-box; transform-origin: center; }
.map-city.tier-featured path { fill: var(--red); }
.map-dot { fill: #5C708B; }
.map-city text { fill: #F0F3F7; font: 600 15px var(--font); paint-order: stroke; stroke: #0A1524; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.map-city text.lbl-1 { display: none; font-size: 13px; font-weight: 500; fill: #CED8E5; }
.map-city text.lbl-2 { display: none; font-size: 12px; font-weight: 500; fill: #A4B0BF; }
.map-frame[data-detail="1"] text.lbl-1,
.map-frame[data-detail="2"] text.lbl-1,
.map-frame[data-detail="2"] text.lbl-2,
.map-frame[data-area] .map-city:not(.is-dim) text,
.map-city:hover text, .map-city:focus-visible text, .map-city.is-found text { display: inline; }
.map-city:not(:hover):not(:focus-visible):not(.is-found) text.lbl-hide { display: none; }
.map-city.is-dim { opacity: 0.25; }
.map-city:hover path, .map-city:focus-visible path, .map-city.is-found path { transform: scale(1.5); fill: var(--white); }
.map-city.tier-featured:hover path, .map-city.tier-featured:focus-visible path, .map-city.tier-featured.is-found path { fill: #FF5247; }
.map-city:hover .map-dot, .map-city:focus-visible .map-dot, .map-city.is-found .map-dot { fill: var(--white); }
.map-city:focus-visible .map-hit { stroke: var(--white); stroke-width: 2; }
.map-city.is-found .map-hit { stroke: var(--white); stroke-width: 2; animation: map-ping 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes map-ping { 0% { stroke-opacity: 1; transform: scale(0.6); } 100% { stroke-opacity: 0; transform: scale(2.2); } }

.map-tools { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; gap: 8px; }
.map-tools[hidden] { display: none; }
.map-tool-group, .map-tool {
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 10px;
  background: rgba(10, 21, 36, 0.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.9);
}
.map-tool-group { display: grid; overflow: hidden; }
.map-tool { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--white); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.map-tool-group .map-tool { border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.map-tool-group .map-tool + .map-tool { border-top: 1px solid rgba(255, 255, 255, 0.13); }
.map-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-tool:hover { background: rgba(26, 54, 90, 0.95); }
.map-tool:disabled { color: #4E5F75; cursor: default; background: transparent; }
.map-tool[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.map-tool:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.map-scale {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; background: rgba(10, 21, 36, 0.74); color: #D0D7DF;
  font: 600 0.74rem/1 var(--mono); pointer-events: none;
}
.map-scale[hidden] { display: none; }
.map-scale-bar { display: block; height: 6px; border: 1.5px solid currentColor; border-top: 0; }
.map-hint {
  position: absolute; left: 50%; top: 12px; z-index: 3; margin: 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 21, 36, 0.9); color: var(--white); font-size: 0.85rem; white-space: nowrap;
  transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.map-hint.is-on { opacity: 1; }
.map-hint[hidden] { display: none; }

.map-lens {
  position: absolute; left: 0; top: 0; z-index: 2; width: 168px; height: 168px; border-radius: 50%; overflow: hidden;
  pointer-events: none; will-change: transform;
  background: radial-gradient(90% 90% at 50% 50%, #132741, #0C192A);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 0 0 5px rgba(0, 0, 0, 0.35), 0 22px 40px -14px rgba(0, 0, 0, 0.9);
}
.map-lens[hidden] { display: none; }
.map-lens svg { display: block; width: 100%; height: 100%; }
.map-lens::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); opacity: 0.6;
  background: linear-gradient(#fff, #fff) center / 16px 1.5px no-repeat, linear-gradient(#fff, #fff) center / 1.5px 16px no-repeat;
}
.map-lens-power { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: rgba(10, 21, 36, 0.85); color: var(--white); font: 700 0.72rem/1 var(--mono); }

.map-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 14px)); z-index: 4; pointer-events: none;
  display: grid; gap: 2px; min-width: 170px; padding: 10px 12px; border-radius: 8px;
  background: var(--white); color: var(--ink); font-size: 0.86rem; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
}
.map-tip strong { font-size: 0.98rem; }
.map-tip span { color: var(--muted); }
.map-tip[hidden] { display: none; }
.city-grid-below { margin-top: 28px; }

@media (min-width: 600px) {
  .map-frame { height: 420px; }
  .map-panel { padding: 24px; }
}
@media (min-width: 900px) {
  .service-map { grid-template-columns: minmax(300px, 350px) minmax(0, 1fr); }
  .map-panel { padding: 28px; border-bottom: 0; border-right: 1px solid var(--line); }
  .map-frame { height: auto; min-height: 460px; }
}
@media (max-width: 599px) {
  .map-tool { width: 38px; height: 38px; }
  .map-lens { width: 140px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .map-city.is-found .map-hit { animation: none; } }

/* Product page 3D viewer */
.product-art { position: relative; min-height: 300px; }
.product-art .three-canvas { cursor: grab; }
.product-art .three-canvas:active { cursor: grabbing; }
.product-fallback { display: grid; place-items: center; transition: opacity 0.6s; }
.product-art.is-3d .product-fallback { opacity: 0; }
.product-art.is-3d .product-fallback, .product-art.is-3d .product-fallback * { pointer-events: none; }
.product-3d-hint { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 0.86rem; color: var(--muted); opacity: 0; transition: opacity 0.6s 0.4s; pointer-events: none; }
.product-art.is-3d .product-3d-hint { opacity: 1; }
.view-3d { position: absolute; right: 14px; top: 14px; z-index: 2; min-height: 40px; padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px; background: var(--white); font: 600 0.9rem/1 var(--font); cursor: pointer; }
.view-3d:hover { border-color: var(--ink); }
.view-3d[hidden] { display: none; }

/* Product photo gallery */
.product-media { display: grid; gap: 12px; align-content: start; min-width: 0; }
.product-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 76px); gap: 8px; list-style: none; margin: 0; padding: 0; }
.product-fallback .battery-photo { mix-blend-mode: multiply; margin-bottom: 0; }
.thumb {
  display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1; padding: 4px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.thumb[hidden] { display: none; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.thumb:hover { border-color: var(--field); }
.thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumb-3d { background: var(--ink); border-color: var(--ink); color: var(--white); font: 800 1.05rem/1 var(--font); letter-spacing: -0.01em; }
.thumb-3d:hover { border-color: var(--ink); background: #000; }
.thumb-3d[aria-pressed="true"] { background: var(--red); border-color: var(--red); box-shadow: none; }

@media (max-width: 979px) { .hero-visual { aspect-ratio: 4 / 3; max-height: 360px; } }

/* Headline: words rise into place once on load */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .w > span { display: inline-block; animation: word-rise 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
.hero-dark .hero-copy > :not(h1) { animation: fade-in 0.8s ease both; animation-delay: 0.55s; }
@keyframes word-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Finder docked under the hero, like a battery top */
.finder-dock { position: relative; z-index: 2; margin-top: -104px; padding-bottom: 8px; }
.lid-light { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(11, 23, 39, 0.55); }
.lid-light .lid-title { color: var(--ink); }
.lid-light .lid-sub, .lid-light .vin-help, .lid-light .finder-status { color: var(--muted); }
.lid-light .field span { color: var(--muted); }
.lid-light select, .lid-light input { color: var(--ink); background: var(--white); border-color: var(--field); }
.lid-light .vehicle-type label { border-color: var(--field); }
.lid-light .vehicle-type label:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lid-light .finder-or { color: var(--muted); }
.lid-light .btn-light { background: var(--grad-navy); background-size: 160% 160%; color: var(--white); }
.lid-light .btn-light:hover { background: var(--grad-navy); background-size: 160% 160%; background-position: 100% 50%; }
.lid-light .finder-result { background: var(--paper); }
.lid-light :focus-visible { outline-color: var(--ink); }
@media (min-width: 980px) {
  .lid-light .finder-form { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 16px; align-items: end; }
  .lid-light .vehicle-type { grid-column: 1 / -1; }
  .lid-light .finder-fields { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr); margin-bottom: 0; }
  .lid-light .finder-fields .field-wide { grid-column: auto; }
  .lid-light .finder-fields .vin-row { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 16px; }
  /* "Show my battery" lines up with the year, make and model row, below the VIN. */
  .lid-light .finder-form > .btn-block { align-self: end; margin-top: 0; }
  .lid-light .finder-status { grid-column: 1 / -1; }
}

/* ---------- Interactive terminals and charge effects ---------- */
button.terminal { border: 0; padding: 0; cursor: pointer; font-family: var(--font); transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.2s; }
button.terminal:hover { transform: translateY(-3px); filter: brightness(1.1); }
button.terminal:active { transform: translateY(1px); }
button.terminal::before { content: ''; position: absolute; inset: -14px -8px -6px; }
.lid::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0); opacity: 0; pointer-events: none;
}
.lid.charged { animation: lid-charge 1s ease-out; }
.lid.charged::after { animation: current-flow 0.9s ease-out; }
.lid.charged .terminal-pos { animation: terminal-glow 1s ease-out; }
.lid.discharged { animation: lid-discharge 0.6s ease-out; }
@keyframes lid-charge { 0% { box-shadow: 0 0 0 0 rgba(215, 38, 30, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(215, 38, 30, 0); } }
@keyframes current-flow { 0% { transform: scaleX(0); opacity: 1; transform-origin: left; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes terminal-glow { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 6px rgba(215, 38, 30, 0.35), 0 0 22px 4px rgba(215, 38, 30, 0.6); } }
@keyframes lid-discharge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }

.charge-hint {
  position: absolute; left: 50%; bottom: -4px; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(11, 23, 39, 0.6);
  color: var(--white); font: 600 0.92rem/1 var(--font); cursor: pointer; white-space: nowrap;
  backdrop-filter: blur(6px); transition: border-color 0.2s, background-color 0.2s;
}
.charge-hint:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(11, 23, 39, 0.85); }
.charge-hint .plus { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.charge-hint:hover .plus { transform: rotate(180deg) scale(1.2); }
.charge-hint[hidden] { display: none; }

/* The speed lines in the header logo pull back when you point at the brand */
@media (prefers-reduced-motion: no-preference) {
  .brand .lockup .speed { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .brand:hover .lockup .speed, .brand:focus-visible .lockup .speed { transform: translateX(-26px); }
  .brand:hover .lockup .speed:nth-of-type(2), .brand:focus-visible .lockup .speed:nth-of-type(2) { transform: translateX(-46px); }
}

/* Logo pattern: section dividers and dark-section watermark */
.pattern-band {
  height: 104px; background: var(--ink) url('/assets/pattern-band.svg?v=bd67dbd656') repeat-x 0 center / 120px 104px;
}
.pattern-band-light { background-color: var(--paper); background-image: url('/assets/pattern-band-light.svg?v=9c563ecdbe'); border-top: 1px solid var(--line); }
@media (max-width: 759px) {
  .pattern-band { height: 78px; background-size: 90px 78px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pattern-band { animation: band-drift 48s linear infinite; }
  .pattern-band-light { animation-direction: reverse; }
}
@keyframes band-drift { to { background-position-x: 1200px; } }
.section-dark, .cta-band {
  background-image: url('/assets/pattern-dark.svg?v=1ca2c80341');
  background-size: 240px 208px;
}

/* ---------- Motion ---------- */
.btn { transition: transform 0.15s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary:hover { box-shadow: 0 12px 26px -16px rgba(11, 23, 39, 0.7); }
.btn .plus { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn:hover .plus { transform: rotate(180deg) scale(1.15); }

.site-header { transition: box-shadow 0.3s, background-color 0.3s; }
.site-header.scrolled { box-shadow: 0 10px 28px -20px rgba(11, 23, 39, 0.45); }

.battery-card, .line-col, .guide-list a, .service-list a, .vehicle-grid a, .contact-option {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, border-color 0.2s;
}
.battery-card:hover, .guide-list a:hover, .service-list a:hover, .vehicle-grid a:hover, .contact-option:hover {
  transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(11, 23, 39, 0.5);
}
.battery-card .battery-art, .battery-card .battery-photo { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.battery-card:hover .battery-art, .battery-card:hover .battery-photo { transform: translateY(-3px) rotate(-1.5deg); }

/* Reveal on scroll (only once JS has marked the page) */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* How it works: a charge line fills across the steps */
.steps li { position: relative; border-top-color: var(--line); }
.steps li::after {
  content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink);
  transform-origin: left; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 260ms + 150ms);
}
.js .steps li::after { transform: scaleX(0); }
.steps li::before { transition: color 0.4s; transition-delay: calc(var(--d, 0) * 260ms + 450ms); }
.js .steps li.in::after { transform: scaleX(1); }
.js .steps li.in::before { color: var(--ink); }

/* Example quote prints line by line */
.js .receipt dl > div, .js .receipt .receipt-total, .js .receipt .receipt-foot {
  opacity: 0; transform: translateY(-6px); transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: calc(var(--r, 0) * 140ms + 200ms);
}
.js .receipt.in dl > div, .js .receipt.in .receipt-total, .js .receipt.in .receipt-foot { opacity: 1; transform: none; }

/* Smooth FAQ opening where supported */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.35s allow-discrete; }
  .faq[open]::details-content { block-size: auto; }
}

/* Page-to-page transitions; battery images morph from card to product page */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .mobile-bar { view-transition-name: mobile-bar; }
  ::view-transition-group(site-header), ::view-transition-group(mobile-bar) { animation: none; }
  ::view-transition-old(root) { animation: vt-out 0.22s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  ::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Brand gradients and motion ---------- */
::selection { background: var(--navy); color: var(--white); }

/* A navy-to-red line under the header, like the split in the logo */
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--grad-brand); transform-origin: left;
}
.site-footer { border-top: 0; position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-brand); }

/* Buttons: navy gradient with a light sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary { background: var(--grad-navy); background-size: 160% 160%; background-position: 0% 50%; transition: transform 0.15s ease, background-position 0.5s ease, box-shadow 0.25s, color 0.2s; }
.btn-primary:hover { background: var(--grad-navy); background-size: 160% 160%; background-position: 100% 50%; box-shadow: 0 14px 28px -16px rgba(18, 40, 74, 0.75); }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s ease; }
.hero-dark .btn-primary, .cta-band .btn-primary { background: var(--white); }
.hero-dark .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--paper); }
.hero-dark .btn-primary::after, .cta-band .btn-primary::after { background: linear-gradient(105deg, transparent 30%, rgba(43, 98, 173, 0.18) 48%, transparent 66%); }

/* Dark surfaces take the logo's navy gradient */
.hero-dark {
  background:
    radial-gradient(42% 52% at 76% 46%, rgba(215, 38, 30, 0.22) 0%, rgba(215, 38, 30, 0) 70%),
    radial-gradient(60% 70% at 70% 50%, #1B3E70 0%, rgba(11, 23, 39, 0) 72%),
    linear-gradient(160deg, #0E2142 0%, #0B1727 55%, #091320 100%);
  background-size: 120% 120%, 100% 100%, 100% 100%;
}
.cta-band, .section-dark {
  background-image: url('/assets/pattern-dark.svg?v=1ca2c80341'), linear-gradient(135deg, var(--navy-lo) 0%, var(--ink) 50%, #10284B 100%);
  background-size: 240px 208px, 100% 100%;
}
.lid:not(.lid-light) { background: linear-gradient(165deg, #12294C 0%, var(--ink) 58%); }
.pattern-band {
  background-color: transparent;
  background-image: url('/assets/pattern-band.svg?v=bd67dbd656'), linear-gradient(90deg, var(--navy-lo), var(--ink) 50%, var(--navy-lo));
  background-repeat: repeat-x, no-repeat; background-position: 0 center, 0 0; background-size: 120px 104px, 100% 100%;
}
@media (max-width: 759px) { .pattern-band { background-size: 90px 78px, 100% 100%; } }
.pattern-band-light { background-image: url('/assets/pattern-band-light.svg?v=9c563ecdbe'), linear-gradient(90deg, var(--paper), #E6EDF6 50%, var(--paper)); }

/* Section titles end in a short gradient bar that charges up as it scrolls in */
.section-title::after {
  content: ''; display: block; width: 64px; height: 4px; margin-top: 14px; border-radius: 2px;
  background: var(--grad-brand); transform-origin: left;
}

/* Cards get a gradient border on hover */
.battery-card:hover, .vehicle-grid a:hover, .guide-list a:hover, .service-list a:hover, .tier-card:hover {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-brand) border-box;
}

/* The battery size in the finder reads in the logo gradient */
.finder-result .size-code {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-hi) 55%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  /* First visit: the speed lines slide in, the bolt flashes, the header line charges. */
  .intro .brand .lockup .speed { animation: speed-in 0.75s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
  .intro .brand .lockup .speed:nth-of-type(2) { animation-delay: 0.08s; }
  .intro .brand .lockup .speed:nth-of-type(3) { animation-delay: 0.16s; }
  .intro .brand .lockup .bolt { animation: bolt-flash 0.9s ease-out 0.55s both; }
  .intro .site-header::after { animation: line-charge 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
  /* Pointing at the logo flickers the bolt like a charge */
  .brand:hover .lockup .bolt, .brand:focus-visible .lockup .bolt { animation: bolt-flash 0.7s ease-out; }

  /* The red glow behind the 3D battery drifts slowly */
  .hero-dark { animation: glow-drift 14s ease-in-out infinite alternate; }

  /* Finder results: the battery cards arrive one after another */
  .tier-options .tier-card { animation: card-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .finder-result .size-code { animation: size-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-title::after { animation: bar-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes speed-in { from { transform: translateX(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bolt-flash { 0% { opacity: 1; } 20% { opacity: 0.2; } 35% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }
@keyframes line-charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glow-drift { from { background-position: 0% 50%, 0 0, 0 0; } to { background-position: 100% 40%, 0 0, 0 0; } }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes size-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleX(0.1); } to { transform: scaleX(1); } }

/* ---------- Battery types ---------- */
/* Batteries page header: the pattern with the four types standing on rising steps */
.shop-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 60% 70% at 80% 75%, rgba(43, 98, 173, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 98% 30%, rgba(215, 38, 30, 0.1), transparent 70%),
    url('/assets/pattern-band-light.svg?v=9c563ecdbe');
  background-size: auto, auto, 150px 130px;
}
.shop-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--grad-brand); }
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
.shop-hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 18px; max-width: 12em;
}
.shop-hero .lead { font-size: 1.1rem; }
.shop-facts {
  display: inline-block; margin: 4px 0 24px; padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 0.95rem; color: var(--navy);
}
.shop-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 8px; }
.shelf-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--white); min-width: 0; }
.shelf-item img {
  display: block; width: 116%; max-width: none; height: auto; margin: 0 -8% -6%;
  mix-blend-mode: multiply; position: relative; z-index: 1;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shelf-label {
  align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px;
  height: calc(64px + var(--i) * 30px); padding: 12px 8px 0; border-radius: 8px 8px 0 0;
  background: var(--grad-navy); text-align: center; font-size: 0.82rem; line-height: 1.25; color: var(--on-dark);
}
.shelf-label strong { color: var(--white); font-size: 0.95rem; }
.shelf-item:last-child .shelf-label { background: var(--grad-red); color: var(--white); }
.shelf-item:hover img, .shelf-item:focus-visible img { transform: translateY(-6px); }
@media (min-width: 980px) {
  .shop-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 48px; padding-top: 32px; }
  .shop-hero-copy { padding-bottom: 64px; }
  .shelf-label { height: calc(84px + var(--i) * 40px); font-size: 0.9rem; padding-top: 16px; }
  .shelf-label strong { font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .shop-shelf { gap: 5px; }
  .shelf-label { font-size: 0.72rem; padding: 8px 4px 0; height: calc(52px + var(--i) * 22px); }
  .shelf-label strong { font-size: 0.8rem; }
}

/* Charge meter: a small battery whose cells fill with the type's level */
.charge-meter {
  position: relative; display: inline-flex; gap: 3px; padding: 3px; margin-right: 6px;
  border: 2px solid var(--ink); border-radius: 4px; vertical-align: middle;
}
.charge-meter::after {
  content: ''; position: absolute; top: 50%; right: -6px; width: 4px; height: 8px;
  background: var(--ink); border-radius: 0 2px 2px 0; transform: translateY(-50%);
}
.type-card-link .charge-meter { align-self: flex-start; }
.charge-meter i { width: 12px; height: 10px; border-radius: 1px; background: var(--line); }
.charge-meter i.on { background: var(--grad-navy); }
.type-agm .charge-meter i.on { background: var(--grad-red); }

/* Type cards, cheapest to strongest */
.type-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .type-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .type-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type-card-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
}
.type-card-link:hover, .type-card-link:focus-visible {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-brand) border-box;
}
.type-photo { display: block; margin: -4px auto 4px; width: 100%; max-width: 210px; }
@media (max-width: 639px) { .type-photo { max-width: 170px; } }
.type-photo img, .type-photo svg { display: block; width: 100%; height: auto; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.type-card-link:hover .type-photo img { transform: translateY(-4px) rotate(-1.5deg); }
.type-tier { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.type-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 4px; }
.type-price { font-size: 0.95rem; color: var(--muted); margin-top: 6px; }
.type-price strong { font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.type-warranty { font-weight: 700; font-size: 0.95rem; }
.type-points { list-style: none; margin: 8px 0 14px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.type-points li { position: relative; padding-left: 18px; }
.type-points li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-red); }
.type-more { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.type-more::after { content: ' →'; }
.heavy-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; padding: 12px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--muted);
}
.heavy-row:hover { border-color: transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-brand) border-box; }
.heavy-row img { width: 96px; height: auto; }
.heavy-row > span:nth-of-type(1) { flex: 1 1 260px; }
.heavy-row strong { display: block; color: var(--ink); font-size: 1.05rem; }
.heavy-row .type-more { margin: 0; color: var(--ink); }

/* Size filter, stuck under the header while the list scrolls */
.size-filter {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255, 255, 255, 0.96); border-block: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) { .size-filter { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); } }
.size-filter-inner { display: flex; align-items: center; gap: 8px 14px; padding-block: 10px; }
.size-filter-label { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.size-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding: 2px; }
.size-chips::-webkit-scrollbar { display: none; }
.size-chip {
  flex: none; font: 600 0.88rem/1 var(--mono); padding: 8px 11px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
}
.size-chip:hover { border-color: var(--ink); }
.size-chip[aria-pressed="true"] { background: var(--grad-navy); color: var(--white); border-color: transparent; }
.size-status { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.size-status:empty { display: none; }
@media (min-width: 721px) { .size-chips { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 720px) {
  .size-filter-inner { flex-wrap: wrap; }
  .size-chips { flex-basis: 100%; order: 2; }
}

/* Facts under each type's heading */
.line-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: -12px 0 28px; color: var(--muted); font-size: 0.95rem; }
.line-facts strong { color: var(--ink); font-size: 1.1rem; }
.line-facts > span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 12px 3px -10px; border-radius: 50%; background: var(--silver); }
.line-facts .charge-meter + span::before { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* The photo animates, not its link: a moving parent would stop the photo blending into the pattern. */
  .shelf-item img { animation: shelf-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .shelf-label { transform-origin: bottom; animation: step-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 110ms); }
  .charge-meter i.on { animation: cell-on 0.4s ease-out both; }
  .charge-meter i.on:nth-child(2) { animation-delay: 0.12s; }
  .charge-meter i.on:nth-child(3) { animation-delay: 0.24s; }
  .charge-meter i.on:nth-child(4) { animation-delay: 0.36s; }
  .js [data-reveal]:not(.in) .charge-meter i.on { animation-play-state: paused; }
}
@keyframes shelf-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes step-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes cell-on { from { opacity: 0.15; } to { opacity: 1; } }

/* ---------- Display font ---------- */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/unbounded-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/unbounded-latin-700-normal.woff2') format('woff2'); }
:root { --display: 'Unbounded', var(--font); }
h1, .section-title, .cta-band h2 { font-family: var(--display); }
.section-title { font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.page-head h1, .product-info h1, .article h1, .shop-hero h1 {
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3.05rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08;
}
.cta-band h2 { font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Icons ---------- */
.icon { flex: none; vertical-align: middle; }
.icon .ia { stroke: var(--icon-accent, var(--red)); }
.icon .iaf { fill: var(--icon-accent, var(--red)); stroke: none; }
.icon-tile {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad-navy); color: var(--white); --icon-accent: var(--red-hi);
  box-shadow: 0 10px 20px -12px rgba(10, 26, 52, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.icon-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 14px; align-items: flex-start; }
.icon-list .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.icon-list li > span:last-child { padding-top: 7px; }
.steps li { display: flex; flex-direction: column; }
.steps .icon-tile { order: -2; margin-bottom: 14px; width: 54px; height: 54px; border-radius: 14px; }
.steps li::before { order: -1; content: 'Step ' counter(step); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.basics-grid .icon-tile { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px; }
.contact-option { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.contact-option .icon-tile { grid-row: span 2; }

/* ---------- Page headers: the brand pattern behind every page title ---------- */
.page-head, .page-top {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(239, 243, 247, 0.95) 0%, rgba(239, 243, 247, 0.82) 42%, rgba(239, 243, 247, 0.25) 78%, rgba(239, 243, 247, 0.1) 100%),
    radial-gradient(ellipse 45% 70% at 84% 62%, rgba(43, 98, 173, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 45% at 100% 15%, rgba(215, 38, 30, 0.1), transparent 70%),
    url('/assets/pattern-band-light.svg?v=9c563ecdbe');
  background-size: auto, auto, auto, 150px 130px;
}
@media (max-width: 979px) {
  .page-head, .page-top { background-image: linear-gradient(rgba(239, 243, 247, 0.86), rgba(239, 243, 247, 0.86)), url('/assets/pattern-band-light.svg?v=9c563ecdbe'); background-size: auto, 150px 130px; }
}
.page-head::after, .page-top::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--grad-brand); }
.page-head { padding: 0 0 56px; }
.page-head > .wrap { position: relative; padding-top: 22px; }
.page-head > .wrap:first-child { padding-top: 52px; }
.page-head + .section:not(.section-steel):not(.section-dark) { padding-top: 64px; }
@media (min-width: 980px) { .page-head + .section:not(.section-steel):not(.section-dark) { padding-top: 88px; } }
.page-top.product { padding-top: 0; background-image: linear-gradient(rgba(239, 243, 247, 0.9), rgba(239, 243, 247, 0.9)), url('/assets/pattern-band-light.svg?v=9c563ecdbe'); background-size: auto, 150px 130px; }
.page-top .product-art { background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -42px rgba(11, 23, 39, 0.55); }
.page-top > .product-grid { padding-top: 24px; }
.head-grid { display: grid; gap: 28px; }
.head-grid > * { min-width: 0; }
@media (min-width: 980px) { .head-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.page-head .article-meta { margin: 12px 0 0; }

.art-stage { position: relative; height: 300px; }
.art-badge {
  position: absolute; left: 14%; top: 34px; width: 168px; height: 168px; border-radius: 42px;
  display: grid; place-items: center; color: var(--white); --icon-accent: var(--red-hi);
  background: var(--grad-navy); transform: rotate(-6deg);
  box-shadow: 0 34px 60px -26px rgba(10, 26, 52, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.art-badge::before { content: ''; position: absolute; inset: -16px; border-radius: 56px; border: 2px dashed rgba(18, 40, 74, 0.16); }
.art-photo { position: absolute; right: -4%; bottom: -16px; width: 64%; height: auto; mix-blend-mode: multiply; }
.art-chips { list-style: none; margin: 0; padding: 0; }
.art-chips li {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 0.88rem; color: var(--ink); white-space: nowrap;
  box-shadow: 0 16px 30px -20px rgba(11, 23, 39, 0.55);
}
.art-chips li:nth-child(1) { right: 0; top: 14px; }
.art-chips li:nth-child(2) { left: 0; bottom: 70px; }
.art-chips li:nth-child(3) { right: 6%; bottom: 6px; }
@media (max-width: 979px) {
  .art-stage { height: auto; }
  .art-badge, .art-photo { display: none; }
  .art-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .art-chips li { position: static; box-shadow: none; font-size: 0.84rem; }
}

/* ---------- Cards ---------- */
.service-cards a { display: flex; gap: 18px; align-items: flex-start; }
.service-cards .icon-tile { width: 58px; height: 58px; border-radius: 15px; }
.service-cards .service-text { min-width: 0; }
.service-from { display: block; margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.service-from strong { color: var(--ink); font-size: 1.05rem; }

.guide-cards a { display: flex; flex-direction: column; gap: 8px; padding: 0 0 22px; overflow: hidden; }
.guide-cards a > :not(.guide-cover) { margin-inline: 22px; }
.guide-cover {
  position: relative; display: grid; place-items: center; height: 132px; margin-bottom: 10px;
  color: var(--white); --icon-accent: var(--red-hi);
  background: url('/assets/pattern-dark.svg?v=1ca2c80341') 0 0 / 150px 130px, var(--grad-navy);
}
.guide-cover::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--grad-brand); }
.guide-cover .icon { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.guide-cards a:hover .guide-cover .icon { transform: scale(1.12) rotate(-4deg); }
.guide-kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--red); }
.guide-cards .type-more { margin-top: auto; padding-top: 6px; }

.city-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.city-cards a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
.city-cards a:hover { border-color: transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-brand) border-box; }
.city-cards .icon-tile { width: 40px; height: 40px; border-radius: 10px; }
.city-cards strong { display: block; font-size: 1.05rem; }
.city-cards a span span { color: var(--muted); font-size: 0.86rem; }

.vehicle-grid .vehicle-icon { display: block; color: var(--navy); margin-bottom: 4px; }

.vehicle-option { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
.vehicle-option > * { grid-column: 2; }
.vehicle-option .option-photo { grid-column: 1; grid-row: 1 / span 4; width: 76px; height: auto; align-self: center; }
.option-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

.compare-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.compare-card a {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%;
  padding: 16px 18px 18px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
.compare-card a:hover, .compare-card.is-current a { border-color: transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-brand) border-box; }
.compare-card.is-current a { border-width: 2px; padding: 15px 17px 17px; }
.compare-card img { align-self: center; width: 130px; height: auto; margin-bottom: 6px; }
.compare-flag { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; color: var(--white); background: var(--grad-red); }
.compare-name { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.compare-card .charge-meter { margin: 6px 0 2px; }
.compare-price { margin-top: 6px; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.compare-specs { color: var(--muted); font-size: 0.88rem; }

/* ---------- Price estimator ---------- */
.estimator { display: grid; gap: 24px; }
@media (min-width: 900px) { .estimator { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: start; } }
.est-controls { display: grid; gap: 22px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.est-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-controls legend, .est-field > span { display: block; margin-bottom: 10px; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.est-field select { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: 8px; }
.est-options { display: flex; flex-wrap: wrap; gap: 8px; }
.est-option { position: relative; }
.est-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.est-option span {
  display: flex; flex-direction: column; gap: 2px; min-width: 110px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); font-weight: 800;
}
.est-option small { font-weight: 500; color: var(--muted); }
.est-option input:checked + span { background: var(--grad-navy); color: var(--white); border-color: transparent; }
.est-option input:checked + span small { color: var(--on-dark); }
.est-option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.est-option input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.est-help { margin: 0; color: var(--muted); font-size: 0.92rem; }
.est-result {
  padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(11, 23, 39, 0.55);
}
@media (min-width: 900px) { .est-result { position: sticky; top: calc(var(--header-h) + 16px); } }
.est-result img { display: block; width: 150px; height: auto; margin: -6px auto 6px; }
.est-name { margin: 0 0 14px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.est-result dl { margin: 0; display: grid; gap: 8px; }
.est-result dl > div { display: flex; justify-content: space-between; gap: 12px; }
.est-result dt { color: var(--muted); }
.est-result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.est-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); align-items: baseline; }
.est-total dt { color: var(--ink); font-weight: 800; }
.est-total dd { font-size: 1.55rem; font-weight: 800; }
.est-note { margin: 14px 0; color: var(--muted); font-size: 0.86rem; }

/* ---------- Home hero: centered copy over the charging battery ---------- */
.hero-charge {
  position: relative; overflow: hidden; padding: 40px 0 150px; border-bottom: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 78% 64% at 50% 22%, rgba(239, 243, 247, 0.97) 0%, rgba(239, 243, 247, 0.9) 55%, rgba(239, 243, 247, 0.35) 100%),
    radial-gradient(ellipse 50% 40% at 50% 74%, rgba(43, 98, 173, 0.2), transparent 70%),
    url('/assets/pattern-band-light.svg?v=9c563ecdbe');
  background-size: auto, auto, 150px 130px;
}
.hero-center { display: flex; justify-content: center; text-align: center; }
.hero-charge .hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-alert {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 0.92rem; text-decoration: none;
  box-shadow: 0 12px 26px -20px rgba(11, 23, 39, 0.6);
}
.hero-alert .icon { color: var(--red); }
.hero-alert strong { color: var(--red); }
.hero-alert:hover { border-color: var(--red); }
.hero-charge h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 0.9rem + 4.2vw, 4rem);
  line-height: 1.04; letter-spacing: -0.045em; max-width: 15em; margin: 0 0 22px; color: var(--ink);
}
.hero-place {
  display: table; margin: 0 auto; padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--navy-hi) 0%, #6A3C8C 45%, var(--red) 78%, var(--red-hi) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: place-in 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) 0.3s both;
}
@keyframes place-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.preload .hero-place { animation-delay: 1.35s; }
.hero-charge .lead { max-width: 38em; margin: 0 auto; }
.hero-charge .actions { justify-content: center; margin-top: 28px; }
.hero-stage { position: relative; display: grid; justify-items: center; margin-top: 44px; }
.hero-core {
  position: absolute; left: 50%; top: 50%; width: min(500px, 86vw); aspect-ratio: 1; transform: translate(-50%, -47%); border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(215, 38, 30, 0.28), transparent 52%), radial-gradient(circle, #1B3E70 0%, #0E2142 58%, #0A1A34 100%);
  box-shadow: 0 0 0 16px rgba(18, 40, 74, 0.06), 0 0 0 34px rgba(18, 40, 74, 0.035), 0 50px 90px -40px rgba(10, 26, 52, 0.75);
}
.hero-core::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: url('/assets/pattern-dark.svg?v=1ca2c80341') center / 150px 130px; opacity: 0.55; }
.hero-core::after { content: ''; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.2); }
.hero-charge .hero-visual { z-index: 1; max-width: 560px; }
.hero-charge .charge-hint { background: var(--white); color: var(--ink); border-color: var(--line); }
.hero-callouts { list-style: none; margin: 0; padding: 0; }
.hero-callouts li {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; color: var(--ink);
  box-shadow: 0 18px 34px -24px rgba(11, 23, 39, 0.6);
}
.hero-callouts .icon-tile { width: 40px; height: 40px; border-radius: 10px; }
@media (min-width: 1100px) {
  .hero-callouts li { position: absolute; z-index: 2; max-width: 250px; }
  .hero-callouts li::after { content: ''; position: absolute; top: 50%; width: 64px; border-top: 2px dashed rgba(18, 40, 74, 0.28); }
  .hero-callouts li::before { content: ''; position: absolute; top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 30, 0.18); }
  .hero-callouts .co-1 { left: 3%; top: 16%; }
  .hero-callouts .co-3 { left: 6%; bottom: 14%; }
  .hero-callouts .co-1::after, .hero-callouts .co-3::after { left: 100%; }
  .hero-callouts .co-1::before, .hero-callouts .co-3::before { left: calc(100% + 64px); }
  .hero-callouts .co-2 { right: 3%; top: 38%; }
  .hero-callouts .co-2::after { right: 100%; }
  .hero-callouts .co-2::before { right: calc(100% + 64px); }
}
@media (max-width: 1099px) {
  .hero-callouts { display: grid; gap: 10px; width: 100%; max-width: 520px; margin-top: 20px; }
}
@media (min-width: 980px) { .hero-charge { padding: 56px 0 160px; } }

/* ---------- Loading screen, first page of a visit only ---------- */
@property --pct { syntax: '<integer>'; inherits: false; initial-value: 0; }
.preloader { display: none; }
.preload .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: var(--white);
  background: url('/assets/pattern-dark.svg?v=1ca2c80341') 0 0 / 150px 130px, radial-gradient(60% 60% at 50% 45%, #1B3E70 0%, var(--navy-lo) 70%), var(--navy-lo);
  animation: pre-out 0.4s cubic-bezier(0.6, 0, 0.4, 1) 1.05s forwards;
}
.pre-inner { display: grid; justify-items: center; gap: 22px; }
.pre-inner .mark { animation: pre-mark 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.pre-battery {
  position: relative; width: 168px; height: 40px; padding: 4px; border: 3px solid var(--white); border-radius: 8px;
}
.pre-battery::after { content: ''; position: absolute; top: 50%; right: -10px; width: 6px; height: 14px; border-radius: 0 3px 3px 0; background: var(--white); transform: translateY(-50%); }
.pre-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--red-lo), var(--red) 55%, var(--red-hi)); transform-origin: left; animation: pre-fill 0.85s cubic-bezier(0.5, 0, 0.3, 1) 0.1s both; box-shadow: 0 0 18px rgba(244, 81, 58, 0.6); }
.pre-text { margin: 0; font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark); }
.pre-pct { animation: pre-count 0.85s cubic-bezier(0.5, 0, 0.3, 1) 0.1s both; counter-reset: pct var(--pct); color: var(--white); }
.pre-pct::after { content: counter(pct) '%'; }
@keyframes pre-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pre-count { from { --pct: 0; } to { --pct: 100; } }
@keyframes pre-mark { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
/* The page's own entrance waits for the loading screen. */
.preload .hero-title .w > span { animation-delay: calc(var(--i) * 55ms + 1.15s); }
.preload .hero-charge .hero-copy > :not(h1) { animation-delay: 1.5s; }
.preload .brand .lockup .speed { animation-delay: 1.1s; }
.preload .brand .lockup .speed:nth-of-type(2) { animation-delay: 1.18s; }
.preload .brand .lockup .speed:nth-of-type(3) { animation-delay: 1.26s; }
.preload .brand .lockup .bolt { animation-delay: 1.6s; }
.preload .site-header::after { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) { .preload .preloader { display: none; } }

/* ---------- Sparks between pages ---------- */
.spark-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 150; pointer-events: none; }
.arrive body::before {
  content: ''; position: fixed; inset: 0 0 auto; height: 2px; z-index: 151; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 81, 58, 0.7), transparent);
  animation: arrive-line 0.8s cubic-bezier(0.3, 0.6, 0.2, 1) both;
}
@keyframes arrive-line { from { transform: translateX(-100%); opacity: 1; } 70% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-charge .hero-copy > :not(h1) { animation: fade-in 0.8s ease both; animation-delay: 0.55s; }
  .hero-core { animation: core-pulse 3.2s ease-in-out infinite; }
  .hero-callouts li { animation: fade-in 0.7s ease both; animation-delay: calc(0.9s + var(--n, 0) * 0.12s); }
  .hero-callouts .co-2 { --n: 1; }
  .hero-callouts .co-3 { --n: 2; }
  .preload .hero-callouts li { animation-delay: calc(1.8s + var(--n, 0) * 0.12s); }
  .art-badge { animation: badge-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .art-chips li { animation: chip-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); }
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 16px rgba(18, 40, 74, 0.06), 0 0 0 34px rgba(18, 40, 74, 0.035), 0 50px 90px -40px rgba(10, 26, 52, 0.75); }
  50% { box-shadow: 0 0 0 20px rgba(215, 38, 30, 0.07), 0 0 0 42px rgba(18, 40, 74, 0.03), 0 50px 90px -40px rgba(10, 26, 52, 0.75); }
}
@keyframes badge-in { from { opacity: 0; transform: rotate(-16deg) scale(0.85); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Moving logo bands ---------- */
.pattern-band {
  position: relative; display: grid; place-items: center; height: 60px; overflow: hidden; border: 0;
  background: url('/assets/band-dark.svg?v=fbb9ff9892') 0 center / 96px 64px repeat-x, linear-gradient(90deg, var(--navy-lo), var(--ink) 50%, var(--navy-lo));
}
.pattern-band-light {
  background: url('/assets/band-light.svg?v=8aacadd0a0') 0 center / 96px 64px repeat-x, linear-gradient(90deg, var(--paper), #E6EDF6 50%, var(--paper));
  border-top: 1px solid var(--line);
}
@media (max-width: 759px) { .pattern-band { height: 48px; background-size: 72px 48px, 100% 100%; } }
.pattern-band::before { content: ''; position: absolute; inset: 0; background: rgba(11, 23, 39, 0.6); opacity: 0; transition: opacity 0.3s ease; }
.pattern-band-light::before { background: rgba(239, 243, 247, 0.75); }
.band-logo {
  position: relative; display: inline-flex; padding: 7px 20px; border-radius: 999px; background: var(--navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: scale(0.85); transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pattern-band-light .band-logo { background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -10px rgba(11, 23, 39, 0.35); }
.band-logo .lockup { display: block; height: 30px; width: auto; }
@media (max-width: 759px) { .band-logo .lockup { height: 24px; } }
.pattern-band:hover::before { opacity: 1; }
.pattern-band:hover .band-logo { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .pattern-band, .pattern-band-light { animation: band-run 14s linear infinite; }
  .pattern-band-light { animation-direction: reverse; }
}
@keyframes band-run { from { background-position: 0 center, 0 0; } to { background-position: 864px center, 0 0; } }

/* ---------- Compact sizing: shorter pages ---------- */
body { font-size: 1rem; }
.lead { font-size: 1.05rem; }
.section { padding: 44px 0; }
@media (min-width: 980px) { .section { padding: 60px 0; } }
.page-head + .section:not(.section-steel):not(.section-dark) { padding-top: 44px; }
@media (min-width: 980px) { .page-head + .section:not(.section-steel):not(.section-dark) { padding-top: 60px; } }
.section-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); margin-bottom: 16px; }
.section-lead { margin: -4px 0 20px; }
.section-head { margin-bottom: 20px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.page-head { padding-bottom: 34px; }
.page-head > .wrap { padding-top: 12px; }
.page-head > .wrap:first-child { padding-top: 34px; }
.page-head h1, .product-info h1, .article h1, .shop-hero h1 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.45rem); margin-bottom: 12px; }
@media (min-width: 980px) { .head-grid { gap: 40px; } }
.art-stage { height: 210px; }
.art-badge { width: 120px; height: 120px; border-radius: 30px; top: 30px; left: 18%; }
.art-badge .icon { width: 54px; height: 54px; }
.art-badge::before { inset: -11px; border-radius: 40px; }
.art-photo { width: 50%; bottom: -10px; }
.art-chips li { padding: 6px 11px 6px 8px; font-size: 0.8rem; }
.art-chips li:nth-child(1) { top: 4px; }
.art-chips li:nth-child(2) { bottom: 44px; }
.art-chips li:nth-child(3) { bottom: 0; }
.icon-tile { width: 42px; height: 42px; }
.icon-list { gap: 10px; }
.icon-list .icon-tile { width: 34px; height: 34px; }
.icon-list li > span:last-child { padding-top: 5px; }

.hero-charge { padding: 30px 0 118px; }
@media (min-width: 980px) { .hero-charge { padding: 36px 0 124px; } }
.hero-alert { margin-bottom: 16px; font-size: 0.86rem; }
.hero-charge h1 { font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3.2rem); margin-bottom: 14px; }
.hero-charge .actions { margin-top: 20px; }
.hero-stage { margin-top: 26px; }
.hero-core { width: min(390px, 80vw); }
.hero-charge .hero-visual { max-width: 430px; min-height: 240px; }
.hero-callouts li { padding: 7px 13px 7px 7px; font-size: 0.9rem; }
.hero-callouts .icon-tile { width: 34px; height: 34px; }
@media (min-width: 1100px) {
  .hero-callouts .co-1 { left: 9%; top: 14%; }
  .hero-callouts .co-3 { left: 11%; bottom: 12%; }
  .hero-callouts .co-2 { right: 9%; }
  .hero-callouts li::after { width: 44px; }
  .hero-callouts .co-1::before, .hero-callouts .co-3::before { left: calc(100% + 44px); }
  .hero-callouts .co-2::before { right: calc(100% + 44px); }
}
.inside { padding: 60px 0; }
.inside.inside-3d { height: 230vh; padding: 0; }

.steps { gap: 18px; }
.steps .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; }
.steps h3 { font-size: 1.05rem; }
.basics-grid > div { padding: 16px; }
.faq summary { padding: 13px 40px 13px 0; font-size: 1rem; }
.faq-answer { padding-bottom: 14px; }

.card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.labor-makes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) { .labor-makes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .labor-makes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.labor-make[open] { grid-column: 1 / -1; }
.labor-make summary { padding: 8px 12px; font-size: 0.95rem; }
.battery-card { padding: 14px; }
.battery-card .battery-photo { max-width: 140px !important; margin-bottom: 10px; }
.battery-card h3 { font-size: 0.98rem; }
.battery-card-meta { font-size: 0.84rem; margin-bottom: 8px; }
.battery-card-fits { font-size: 0.8rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chart-toggle > summary {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; cursor: pointer; list-style: none;
  font-weight: 700; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 24px -20px rgba(11, 23, 39, 0.6);
}
.chart-toggle > summary::-webkit-details-marker { display: none; }
.chart-toggle > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--red); }
.chart-toggle[open] > summary::after { content: "\2212"; }
.chart-toggle[open] > summary { margin-bottom: 18px; }
.chart-toggle > summary:hover { border-color: var(--ink); }
.price { font-size: 1.12rem; }
.price-note { font-size: 0.8rem; }

.type-ladder { gap: 14px; }
.type-card-link { gap: 4px; padding: 14px 16px 16px; }
.type-photo { max-width: 140px; margin-bottom: 0; }
.type-name { font-size: 1.12rem; margin-bottom: 2px; }
.type-price strong { font-size: 1.3rem; }
.type-points { margin: 6px 0 10px; padding-top: 8px; gap: 4px; font-size: 0.86rem; }
.heavy-row { margin-top: 14px; padding: 8px 18px; }
.heavy-row img { width: 72px; }
.shop-hero-grid { padding-top: 16px; }
@media (min-width: 980px) {
  .shop-hero-copy { padding-bottom: 40px; }
  .shelf-label { height: calc(60px + var(--i) * 28px); padding-top: 12px; }
  .shop-hero-grid { padding-top: 20px; gap: 36px; }
}
.shop-facts { margin-bottom: 18px; }
.line-facts { margin: -8px 0 18px; }
.size-filter-inner { padding-block: 8px; }
.size-chip { padding: 6px 8px; font-size: 0.8rem; }
.size-chips { gap: 4px; }

.service-list, .guide-list { gap: 14px; }
.service-list a, .guide-list a { padding: 18px; }
.service-cards .icon-tile { width: 48px; height: 48px; border-radius: 13px; }
.service-list h2 { font-size: 1.15rem; }
.guide-cards a { padding: 0 0 16px; }
.guide-cards a > :not(.guide-cover) { margin-inline: 18px; }
.guide-cover { height: 96px; margin-bottom: 6px; }
.guide-list h2, .guide-list h3 { font-size: 1.05rem; }
.city-cards a { padding: 10px 14px; }
.city-cards .icon-tile { width: 34px; height: 34px; }
.vehicle-grid a { padding: 12px; }
.vehicle-grid h3 { font-size: 1.1rem; margin-bottom: 6px; }

.year-list { gap: 14px; }
.year-block { padding: 16px; gap: 12px; }
@media (min-width: 900px) { .year-block { padding: 20px; gap: 24px; grid-template-columns: 200px minmax(0, 1fr); } }
.year-head h3 { font-size: 1.2rem; }
.fit-option { padding: 10px 12px; gap: 4px; }
.vehicle-option { grid-template-columns: 60px minmax(0, 1fr); }
.vehicle-option .option-photo { width: 60px; }

.product { padding: 16px 0 40px; }
.product-art { padding: 24px 16px; min-height: 240px; }
.spec-list { margin-top: 18px; }
.spec-list div { padding: 8px 0; }
.compare-row { gap: 12px; }
.compare-card a { padding: 12px 14px 14px; }
.compare-card.is-current a { padding: 11px 13px 13px; }
.compare-card img { width: 100px; }
.compare-price { font-size: 1.15rem; }

.est-controls { padding: 20px; gap: 16px; }
.est-option span { min-width: 96px; padding: 8px 12px; }
.est-result { padding: 18px; }
.est-result img { width: 120px; }

.cta-band { padding: 40px 0; }
.footer-grid { padding: 40px 20px 24px; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .receipt dl > div, .js .receipt .receipt-total, .js .receipt .receipt-foot { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .mobile-nav { display: none; }
}
