:root {
  --red: #C8102E;
  --red-text: #A50D25;
  --red-dark: #7A0A1B;
  --red-soft: #F6E3E6;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --muted: #4A4A4A;
  --line: #DEDCD8;
  --chip-line: #CFCCC6;
  --bg: #F4F3F1;
  --photo: #ECEAE6;
  --char: #161616;
  --char-2: #1F1F1F;
  --char-3: #2F2F2F;
  --green: #1E7A34;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45; }
a { color: var(--red-text); }
a:hover { color: var(--red-dark); }
img, svg { display: block; }
:focus-visible { outline: 3px solid #1565C0; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 700px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.section { padding-top: 36px; padding-bottom: 8px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); margin: 0; }

/* Type */
.h-page, .h-xl, .h-lg, .h-md, .h-sm, legend { font-family: var(--display); text-transform: uppercase; margin: 0; line-height: 1.05; }
.h-page { font-weight: 800; font-size: clamp(36px, 5vw, 50px); }
.h-xl { font-weight: 800; font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 4px; }
.h-lg { font-weight: 700; font-size: 30px; margin-bottom: 6px; }
.h-md { font-weight: 700; font-size: 24px; }
.h-sm { font-weight: 700; font-size: 20px; }

/* Header / footer */
.site-header { background: var(--char); color: #fff; border-bottom: 4px solid var(--red); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { display: inline-flex; width: 40px; height: 40px; border-radius: 6px; background: var(--red); align-items: center; justify-content: center; color: #fff; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .5px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -10px; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; padding: 12px 12px; border-radius: 6px; }
.main-nav a:hover, .main-nav a[aria-current] { background: #2A2A2A; color: #fff; }
.site-footer { background: var(--char); color: #CFCFCF; margin-top: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent; font-family: var(--body); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; text-align: center; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-text); color: #fff; }
.btn-dark { background: var(--char); color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-outline { background: #fff; color: var(--red-text); border-color: var(--red-text); }
.btn-xl { min-height: 60px; font-family: var(--display); font-size: 24px; letter-spacing: .5px; padding: 0 30px; }
.btn-go { min-height: 68px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: .5px; padding: 0 32px; }
.btn-block { display: flex; width: 100%; }
.link-btn { font-weight: 700; color: var(--red-text); min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }

/* Hero */
.hero { background: var(--char-2); color: #fff; padding: 44px 0 48px; }
.hero-col { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 58px); line-height: 1; text-transform: uppercase; }
.lead { margin: 0; font-size: 20px; color: #D6D6D6; max-width: 720px; }
.search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 820px; }
.search input { flex: 1 1 280px; min-height: 60px; padding: 0 20px; font: 20px var(--body); border: 3px solid #fff; border-radius: 8px; color: var(--ink); }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel-dark { background: var(--char); color: #fff; border-color: var(--char); }

/* Finder */
.finder { display: flex; flex-direction: column; gap: 26px; }
.group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.group legend { font-weight: 700; font-size: 20px; margin-bottom: 10px; padding: 0; }
.finder .group legend { font-size: 24px; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile, .chip, .check { position: relative; }
.tile input, .chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile span { display: flex; flex-direction: column; gap: 6px; min-height: 100px; padding: 16px 18px; border: 3px solid var(--char); border-radius: 10px; background: #fff; cursor: pointer; }
.tile strong { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.tile small { font-size: 16px; }
.tile input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.tile input:focus-visible + span, .chip input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid #1565C0; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 2px solid var(--chip-line); border-radius: 8px; background: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip .count { font-style: normal; font-weight: 500; }
.chip.is-empty span { color: #6B6B6B; background: #F7F6F4; border-color: #E4E2DE; }
.chip.is-empty input:checked + span { color: #fff; background: var(--red); border-color: var(--red); }
.chip-gap { width: 16px; }
.finder-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 2px solid var(--photo); padding-top: 22px; }

/* Section headers & grids */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section > .muted { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; padding-bottom: 36px; }

/* Cards */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card-photo { position: relative; height: 160px; background: var(--photo); display: flex; align-items: center; justify-content: center; }
.photo-icon { color: #9A968F; stroke-width: 1.4; }
.badge { position: absolute; top: 10px; left: 10px; font-weight: 800; font-size: 13px; padding: 5px 9px; border-radius: 6px; letter-spacing: .5px; }
.badge-new { background: var(--red); color: #fff; }
.badge-gem { background: #fff; color: var(--ink); border: 2px solid var(--char); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { margin: 0; font-size: 19px; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.model { font-size: 14px; color: var(--muted); margin-top: -6px; }
.model-lg { color: var(--ink); }
.card-blurb { margin: 0; font-size: 15px; color: var(--ink-2); }
.card-price { margin-top: auto; border-top: 1px solid var(--photo); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-label { width: 100%; font-size: 14px; color: var(--muted); }
.price { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--red-text); line-height: 1; }
.price-xl { font-size: 60px; }
.price-store { font-weight: 600; font-size: 15px; }
.price-stores { font-weight: 600; font-size: 15px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 6px; border: 2px solid; font-weight: 700; font-size: 14px; text-decoration: none; }
.tags-lg .tag { min-height: 44px; padding: 0 12px; font-size: 15px; }
.tags-lg .tag::after { content: '›'; margin-left: 6px; font-size: 18px; }
.tag-dark { background: var(--char); color: #fff; border-color: var(--char); }
.tag-dark:hover { background: #333; color: #fff; }
.tag-red { background: var(--red-soft); color: #8A0B1F; border-color: var(--red-soft); }
.tag-red:hover { border-color: #8A0B1F; color: #8A0B1F; }
.tag-light { background: #fff; color: var(--ink); border-color: var(--chip-line); }
.tag-light:hover { border-color: var(--ink); color: var(--ink); }

/* Trades */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.trade { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 120px; padding: 18px; background: var(--char); color: #fff; border-radius: 12px; text-decoration: none; border: 3px solid var(--char); }
.trade:hover { border-color: var(--red); color: #fff; }
.trade-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 8px; background: var(--red); align-items: center; justify-content: center; }
.trade-row { display: flex; flex-direction: column; gap: 2px; }
.trade-row strong { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.trade-row small { font-size: 15px; color: #D6D6D6; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.news-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.news-item:hover { border-color: var(--ink); color: var(--ink); }
.news-item small { color: #5A5A5A; font-size: 14px; }
.news-item strong { font-size: 18px; font-weight: 600; line-height: 1.3; }

/* Results */
.results-page { display: flex; flex-direction: column; gap: 18px; }
.active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.pill-remove { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; background: var(--red); color: #fff; border: 0; border-radius: 22px; font: 700 16px var(--body); cursor: pointer; }
.results-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.filters { flex: 1 1 280px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 20px; }
@media (min-width: 900px) { .filters { max-width: 330px; } }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.results { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tip { font-size: 16px; }
.empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.input { width: 100%; min-height: 50px; padding: 0 14px; font: 17px var(--body); border: 2px solid var(--chip-line); border-radius: 8px; color: var(--ink); background: #fff; }
.input-lg { min-height: 56px; font-size: 20px; border: 0; }
.check span { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 2px solid var(--chip-line); border-radius: 8px; font-weight: 600; cursor: pointer; }
.check span::before { content: ''; width: 24px; height: 24px; flex: none; border: 2px solid #9A968F; border-radius: 5px; background: #fff center/16px no-repeat; }
.check input:checked + span { border-color: var(--red); background: #FBEDEF; }
.check input:checked + span::before { background-color: var(--red); border-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* Product */
.product { display: flex; flex-direction: column; gap: 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.product-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.product-photo { flex: 1 1 380px; min-width: 0; height: 400px; background: var(--photo); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.product-info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.product-blurb { margin: 0; font-size: 19px; }
.tag-help { display: flex; flex-direction: column; gap: 8px; }
.tag-help > span { font-size: 15px; font-weight: 600; color: var(--muted); }
.buybox { background: #fff; border: 3px solid var(--red); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.buybox-stores { font-size: 20px; }
.popular { background: var(--char); color: #fff; border-radius: 12px; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--char-3); color: #fff; border: 2px solid #5A5A5A; border-radius: 22px; font-weight: 700; text-decoration: none; }
.pill:hover { border-color: #fff; color: #fff; }
.store-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.store-best { border: 2px solid var(--green); background: #F1F8F2; }
.store-name { flex: 1 1 200px; display: flex; flex-direction: column; }
.store-name strong { font-size: 20px; }
.store-name small { font-size: 15px; color: var(--ink-2); }
.store-price { font-family: var(--display); font-weight: 800; font-size: 32px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.split > * { flex: 1 1 360px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 0; }
.facts div { background: var(--bg); border-radius: 8px; padding: 14px 16px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 20px; font-weight: 700; }
.alert-box form { display: flex; flex-direction: column; gap: 12px; }
.alert-box p { color: #D6D6D6; }
.alert-box label { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Photos & battery shop */
.card-photo, .product-photo { position: relative; }
.photo-soon { position: absolute; bottom: 8px; right: 10px; font-size: 12px; font-weight: 600; color: #5A5A5A; }
.product-photo .photo-soon { font-size: 14px; bottom: 12px; right: 14px; }
.card-photo img, .product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.badge-ah { left: auto; right: 10px; background: var(--char); color: #fff; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.batt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.batt { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: 10px; color: var(--ink); text-decoration: none; }
.batt:hover { border-color: var(--ink); color: var(--ink); }
.batt-ah { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; }
.batt-ah small { font-size: 22px; margin-left: 4px; }
.batt-line { font-weight: 700; color: var(--red-text); text-transform: uppercase; font-size: 15px; letter-spacing: .3px; }
.batt-name { font-size: 15px; }
.batt-sub { margin: 28px 0 12px; }
.lines dd { font-size: 16px; font-weight: 500; }

/* My Garage (coming soon) */
.soon { align-self: flex-start; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 1px; padding: 6px 10px; border-radius: 6px; }
.hero-note { color: #BDBDBD; font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.feature { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feature-icon { flex: none; display: inline-flex; width: 48px; height: 48px; border-radius: 8px; background: var(--red); color: #fff; align-items: center; justify-content: center; }
.feature strong { font-size: 19px; }
.feature p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.garage-preview { display: flex; flex-direction: column; gap: 18px; }
.garage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.garage-head > div { display: flex; flex-direction: column; flex: 1 1 220px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 28px; }
.garage-name { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1.05; }
.example { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .5px; vertical-align: middle; background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; text-transform: uppercase; }
.garage-share { background: var(--char); color: #fff; font-weight: 700; border-radius: 8px; padding: 12px 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats div { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.stats small { display: block; color: var(--muted); font-weight: 600; }
.stats strong { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.05; }
.batteries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.battery { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 8px; padding: 12px 14px; color: var(--red-text); }
.battery strong { display: block; color: var(--ink); font-size: 17px; }
.battery small { color: var(--muted); font-size: 15px; }
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lineup-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.lineup-item:hover { border-color: var(--ink); color: var(--ink); }
.lineup-item small { color: var(--muted); }

.garage-link { color: #fff; font-weight: 700; margin-top: 6px; display: inline-block; }
.garage-link:hover { color: #fff; }

/* Pre-launch curtain */
.curtain-page { display: none; }
html.curtain body > *:not(#curtain) { display: none !important; }
html.curtain .curtain-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px 16px; background: var(--char-2); color: #fff; border-top: 6px solid var(--red); }
.curtain-box { max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.curtain-box h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 9vw, 76px); line-height: 1; text-transform: uppercase; }
.curtain-box p { margin: 0; font-size: 20px; color: #D6D6D6; }
.curtain-box form { display: flex; flex-wrap: wrap; gap: 12px; }
.curtain-box form .input { flex: 1 1 260px; }
.curtain-box small { color: #BDBDBD; font-size: 14px; }

/* Text pages */
.prose p { font-size: 18px; max-width: 70ch; }
.prose h1 { margin-bottom: 16px; }

@media (max-width: 600px) {
  .main-nav a { padding: 10px 8px; font-size: 16px; }
  .panel { padding: 18px; }
  .product-photo { height: 260px; }
  .price-xl { font-size: 48px; }
}
