/* =============================================================
   Ecofffersbike — Electric Bike Reviews & Comparisons
   Single stylesheet, organized by section. See README for the
   build pipeline (tools/build_site.py generates the HTML that
   uses these classes).

   Palette: navy shell (--bg), ivory content surfaces (--surface)
   so body copy stays on a light background, gold accent
   (--accent) for highlighted words/CTAs, near-black (--ink) for
   general text on light surfaces, and --on-dark tokens for text
   placed directly on navy chrome (nav, hero, footer, dark blocks).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink: #0D0D0D;
  --ink-soft: #45433C;
  --muted: #6B6558;
  --bg: #141F40;
  --surface: #F7F4EC;
  --surface-2: #EFE8D6;
  --band: #E5D7B2;         /* deeper sand — alternating section bands */
  --line: #E1D9C4;
  --line-strong: #CBBE9D;

  --accent: #BFA575;       /* gold — highlighted words, links, CTA */
  --accent-ink: #6B5A3C;
  --accent-soft: #F1E8D3;
  --cta: #BFA575;          /* buy button gold */
  --cta-hover: #AD9463;
  --cta-ink: #141F40;
  --danger: #8B3A3A;       /* functional: discount badges only */
  --danger-soft: #F3E1DD;

  --on-dark: #F5F2E8;      /* text placed directly on navy chrome */
  --on-dark-soft: rgba(245, 242, 232, .72);
  --on-dark-line: rgba(245, 242, 232, .16);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13,13,13,.08), 0 1px 1px rgba(13,13,13,.05);
  --shadow: 0 8px 24px rgba(13,13,13,.12), 0 2px 6px rgba(13,13,13,.06);
  --shadow-lg: 0 24px 60px rgba(13,13,13,.20), 0 8px 20px rgba(13,13,13,.10);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --nav-h: 72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
/* Main content sits on an ivory panel so body copy (near-black) stays
   legible; the navy shell shows through in nav/hero/footer/accent
   blocks, which explicitly paint their own dark background. */
main { background: var(--surface); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
ul, ol { padding-left: 1.15em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--cta-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--bg); color: var(--on-dark);
  border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section { padding-block: clamp(2.5rem, 5vw, 5rem); }
.band-alt { background: var(--band); border-block: 1px solid var(--line-strong); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head.center { max-width: 680px; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); display: inline-block; }
.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }
.text-muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.visually-hide-empty:empty { display: none; }

/* =============================================================
   4. Buttons & badges
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--bg); color: var(--on-dark); }
.btn-dark:hover { background: #0c1631; transform: translateY(-1px); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .btn-note { font-weight: 400; opacity: .85; font-size: .85em; }

.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .7em; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-ink);
}
.badge.offer { background: var(--danger-soft); color: var(--danger); }
.badge.bestseller { background: var(--accent); color: var(--cta-ink); box-shadow: var(--shadow-sm); }
.badge.editor { background: var(--surface-2); color: var(--ink-soft); }

.stars { display: inline-flex; align-items: center; gap: .4em; color: var(--ink-soft); font-size: .9rem; }
.stars .stars-value { color: var(--accent-ink); font-weight: 700; display: inline-flex; align-items: center; gap: .3em; }
.stars .stars-value svg { width: 1em; height: 1em; flex: none; }
.star-row { display: inline-flex; gap: 1px; }
.star-row svg { width: 14px; height: 14px; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(20, 31, 64, .92); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--on-dark); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), #DFC697);
  display: grid; place-items: center; color: var(--cta-ink);
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--on-dark-soft); transition: color .2s var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent); }
.nav-cta-wrap { display: flex; align-items: center; gap: .6rem; }
.nav-compare-count {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: var(--cta-ink);
  font-size: .68rem; font-weight: 700; padding-inline: .3em;
}
.nav-compare-count.is-visible { display: inline-flex; }
.nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.nav-mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 480;
  background: var(--bg); color: var(--on-dark); padding: 1.5rem 1.25rem; overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a { display: block; padding: .9rem 0; font-size: 1.15rem; font-weight: 600; color: var(--on-dark); border-bottom: 1px solid var(--on-dark-line); }
@media (min-width: 960px) { .nav-mobile { display: none !important; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { padding-block: clamp(2.75rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); position: relative; overflow: clip; background: var(--bg); color: var(--on-dark); }
.hero-halo {
  position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(191,165,117,.20), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(191,165,117,.10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 3.9rem); max-width: 16ch; color: var(--on-dark); }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 1.1rem; font-size: 1.1rem; color: var(--on-dark-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; }
.hero-stat b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--on-dark); }
.hero-stat span { display: block; font-size: .8rem; color: var(--on-dark-soft); margin-top: .15em; }
.hero-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.hero-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.hero-panel-head h3 { font-size: 1rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; } }

/* =============================================================
   7. Product cards & grids
   ============================================================= */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.grid-tight { gap: 1.1rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media .img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.card-badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.card-compare-toggle {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.92);
  border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.card-compare-toggle svg { width: 16px; height: 16px; }
.card-compare-toggle.is-active { background: var(--accent); color: var(--cta-ink); border-color: var(--accent); }
.card-body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.card-title { font-size: 1.06rem; line-height: 1.28; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent-ink); }
.card-specs-mini { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .78rem; color: var(--ink-soft); font-family: var(--mono); }
.card-specs-mini span { display: inline-flex; align-items: center; gap: .3em; }
.card-price-row { margin-top: auto; padding-top: .6rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.price-old { font-size: .82rem; color: var(--muted); text-decoration: line-through; margin-right: .4em; }
.price-note { font-size: .68rem; color: var(--muted); margin-top: .1em; }
.card-cta { flex: none; }

/* =============================================================
   8. Filters / toolbar
   ============================================================= */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 1.75rem;
}
.toolbar-group { display: flex; align-items: center; gap: .55rem; }
.toolbar label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.select, .range-input {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .5em 1em;
  font-size: .85rem; background: var(--surface); color: var(--ink);
}
.select:focus, .range-input:focus { outline: none; border-color: var(--accent); }
.toolbar-count { margin-left: auto; font-size: .82rem; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: var(--surface);
  transition: all .2s var(--ease-out);
}
.chip.is-active, .chip:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* =============================================================
   9. Ficha (product page)
   ============================================================= */
.ficha-head { display: grid; gap: 2.25rem; padding-block: clamp(1.5rem, 4vw, 2.75rem) 1rem; }
@media (min-width: 960px) { .ficha-head { grid-template-columns: 1.05fr .95fr; align-items: start; } }

.gallery { position: sticky; top: calc(var(--nav-h) + 1rem); }
.gallery-main {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.gallery-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 .6rem; opacity: 0; transition: opacity .2s; pointer-events: none; }
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav button { pointer-events: auto; width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .2rem; }
.gallery-thumbs button { flex: none; width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.ficha-info h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.ficha-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .6rem; }
.ficha-brand { color: var(--muted); font-size: .92rem; }
.ficha-price-block { margin-top: 1.4rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ficha-price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.ficha-price { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; }
.ficha-price-old { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.ficha-price-date { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.ficha-buy-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.ficha-highlight { margin-top: 1.1rem; padding: .9rem 1rem; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .92rem; color: var(--accent-ink); font-weight: 600; }
.ficha-ideal { margin-top: .9rem; font-size: .92rem; color: var(--ink-soft); }
.disclosure-line { font-size: .74rem; color: var(--muted); margin-top: 1rem; }
.disclosure-line a { text-decoration: underline; }

/* Radar chart */
.radar-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.radar-block h2 { font-size: 1.2rem; margin-bottom: .25rem; }
.radar-wrap { display: flex; justify-content: center; margin-top: .75rem; }
.radar-wrap svg { width: 100%; max-width: 420px; height: auto; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1rem; justify-content: center; font-size: .78rem; color: var(--ink-soft); }
.radar-legend-item { display: flex; align-items: center; gap: .4em; }
.radar-legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Spec table */
.spec-block { margin-top: 2.5rem; }
.spec-groups { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .spec-groups { grid-template-columns: repeat(2, 1fr); } }
.spec-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-group h3 { padding: .9rem 1.15rem; font-size: .92rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.spec-group table { width: 100%; }
.spec-group tr { border-bottom: 1px solid var(--line); }
.spec-group tr:last-child { border-bottom: none; }
.spec-group th, .spec-group td { padding: .65rem 1.15rem; text-align: left; font-size: .88rem; font-weight: 400; }
.spec-group th { color: var(--ink-soft); font-weight: 500; width: 55%; }
.spec-group td { font-family: var(--mono); font-weight: 600; text-align: right; }
.spec-note { margin-top: .9rem; font-size: .78rem; color: var(--muted); }

/* Editorial */
.editorial-block { margin-top: 2.75rem; max-width: 780px; }
.editorial-block h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.editorial-body p { margin-bottom: 1.05em; color: var(--ink-soft); font-size: 1.02rem; }
.editorial-body p:last-child { margin-bottom: 0; }

.pc-cols { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .pc-cols { grid-template-columns: 1fr 1fr; } }
.pc-col { padding: 1.25rem; border-radius: var(--radius); }
.pc-col.pros { background: #EAF2E3; }
.pc-col.cons { background: var(--danger-soft); }
.pc-col h3 { display: flex; align-items: center; gap: .5em; font-size: 1rem; margin-bottom: .85rem; }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-col.pros h3 { color: #3D6B2C; }
.pc-col.cons h3 { color: var(--danger); }
.pc-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.pc-col li { display: flex; gap: .55em; font-size: .92rem; color: var(--ink-soft); }
.pc-col li svg { width: 1.1em; height: 1.1em; flex: none; margin-top: .15em; }
.pc-col.pros li svg { color: #3D6B2C; }
.pc-col.cons li svg { color: var(--danger); }

/* Reviews */
.reviews-block { margin-top: 2.75rem; max-width: 780px; }
.reviews-summary { padding: 1.15rem; background: var(--surface-2); border-radius: var(--radius); font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.review-card { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.review-card:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.review-author { font-weight: 700; font-size: .9rem; }
.review-verified { display: inline-flex; align-items: center; gap: .3em; font-size: .72rem; color: #3D6B2C; font-weight: 600; }
.review-verified svg { width: 1.1em; height: 1.1em; }
.review-title { font-weight: 600; margin-bottom: .3rem; }
.review-text { color: var(--ink-soft); font-size: .92rem; }
.review-source { font-size: .74rem; color: var(--muted); margin-top: 1rem; }

/* Similar products / compare CTA */
.similar-block { margin-top: 3rem; }
.compare-cta-block { margin-top: 2.75rem; padding: 1.75rem; background: var(--bg); color: var(--on-dark); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.compare-cta-block h3 { color: var(--on-dark); font-size: 1.15rem; }
.compare-cta-block p { color: var(--on-dark-soft); font-size: .9rem; margin-top: .3rem; }

/* =============================================================
   10. Comparator
   ============================================================= */
.compare-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.compare-hero-copy { max-width: 520px; }
.compare-hero-copy .btn { margin-top: 1.5rem; }
.compare-hero-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.compare-hero-stat { text-align: center; }
.compare-hero-stat b { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--accent); }
.compare-hero-stat span { font-size: .78rem; color: var(--on-dark-soft); }

.quick-compare-block { margin-bottom: 3rem; }
.quick-compare-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quick-compare-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.quick-compare-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.quick-compare-label { font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink); }
.quick-compare-thumbs { display: flex; align-items: center; justify-content: center; }
.quick-compare-thumbs img {
  width: 60px; height: 60px; border-radius: 999px; object-fit: cover; border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm); background: var(--surface-2);
}
.quick-compare-thumbs img:first-child { margin-right: -14px; }
.quick-compare-thumbs img:last-child { margin-left: -14px; }
.quick-compare-vs {
  width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--cta-ink);
  display: grid; place-items: center; font-size: .66rem; font-weight: 800; z-index: 1;
  box-shadow: var(--shadow-sm); flex: none;
}
.quick-compare-names { font-size: .85rem; line-height: 1.4; }
.quick-compare-names b { display: block; color: var(--ink); }
.quick-compare-names span { color: var(--muted); }
.quick-compare-names span::before { content: "vs "; }
.quick-compare-cta { display: inline-flex; align-items: center; gap: .3em; font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.quick-compare-cta svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.quick-compare-card:hover .quick-compare-cta svg { transform: translateX(3px); }

.compare-empty-icon {
  width: 56px; height: 56px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-inline: auto; margin-bottom: 1rem;
}
.compare-empty-icon svg { width: 24px; height: 24px; }

.compare-stats-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1.5rem; }
.compare-stat-tile {
  background: var(--bg); color: var(--on-dark); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .3rem;
  transition: transform .25s var(--ease-out);
}
.compare-stat-tile:hover { transform: translateY(-3px); }
.compare-stat-tile .stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-soft); }
.compare-stat-tile .stat-value { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); }
.compare-stat-tile .stat-name { font-size: .8rem; color: var(--on-dark-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.compare-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.compare-search { position: relative; }
.compare-search input {
  width: 100%; padding: .85em 1em .85em 2.6em; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .95rem; background: var(--surface);
}
.compare-search svg { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.compare-results { margin-top: .85rem; display: grid; gap: .6rem; max-height: 320px; overflow-y: auto; }
.compare-result-row { display: flex; align-items: center; gap: .8rem; padding: .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; transition: transform .15s var(--ease-out), border-color .15s var(--ease-out), background .15s var(--ease-out); }
.compare-result-row:hover { transform: translateX(4px); border-color: var(--accent); background: var(--accent-soft); }
.compare-result-row img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.compare-result-row .info { flex: 1; min-width: 0; }
.compare-result-row .info strong { display: block; font-size: .88rem; }
.compare-result-row .info span { font-size: .78rem; color: var(--muted); }
.compare-selected { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.compare-slot { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem .5rem .5rem; background: var(--surface-2); border-radius: 999px; animation: slotIn .25s var(--ease-out); }
@keyframes slotIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.compare-slot img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.compare-slot span { font-size: .82rem; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-slot button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--line-strong); }
.compare-slot button svg { width: 12px; height: 12px; }
.compare-empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }

.compare-results-block { margin-top: 2.5rem; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
/* table-layout:fixed forces every product column to the same computed width
   (only the row-label column gets an explicit width) — without it, a table's
   auto layout sizes each column to its own content, so a bike with a longer
   name or spec value gets a wider column, and its width:100% photo renders
   visibly larger than the others (the asymmetric-photos bug). */
.compare-table { min-width: 640px; table-layout: fixed; }
.compare-table th, .compare-table td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .88rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-table thead th { background: var(--surface-2); position: sticky; top: 0; }
.compare-table .row-label { font-weight: 600; color: var(--ink-soft); position: sticky; left: 0; background: var(--surface); z-index: 1; width: 170px; white-space: normal; }
.compare-table thead .row-label { background: var(--surface-2); z-index: 2; }
.compare-table td.best { color: var(--accent-ink); font-weight: 700; background: var(--accent-soft); }
.compare-col-head { white-space: normal; vertical-align: top; }
.compare-col-head img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .6rem; background: var(--surface-2); }
.compare-col-head .name { font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.compare-radar-block { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.compare-radar-block .radar-wrap svg { max-width: 520px; }
.share-row { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.share-link-box { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: var(--surface-2); border-radius: 999px; font-size: .82rem; color: var(--muted); }

/* =============================================================
   11. Category / how-we-score / trust blocks
   ============================================================= */
.category-intro { max-width: 720px; }
.trust-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.trust-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.trust-item p { font-size: .9rem; color: var(--ink-soft); }
.trust-item .num { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-ink); }

.category-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4;
  background: linear-gradient(160deg, var(--bg), #0A1330); display: flex; align-items: flex-end; padding: 1.5rem;
}
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.cat-card-content { position: relative; z-index: 1; color: var(--on-dark); }
.cat-card h3 { color: var(--on-dark); font-size: 1.3rem; }
.cat-card span { font-size: .82rem; color: var(--on-dark-soft); }

/* =============================================================
   12. Guides / rankings / articles
   ============================================================= */
.article-shell { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.article-head .eyebrow { justify-content: center; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.article-meta { display: flex; justify-content: center; gap: 1rem; font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2rem; margin-bottom: .9rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: .6rem; }
.article-body p { color: var(--ink-soft); margin-bottom: 1.1em; font-size: 1.02rem; }
.article-body ul, .article-body ol { color: var(--ink-soft); margin-bottom: 1.1em; }
.article-body li { margin-bottom: .4em; }
.shortlist { display: flex; flex-direction: column; gap: 1.1rem; margin-block: 1.75rem; }
.shortlist-item { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.shortlist-item img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.shortlist-rank { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-ink); width: 2ch; flex: none; }
.shortlist-item .info h4 { font-size: 1rem; margin-bottom: .25rem; }
.shortlist-item .info p { font-size: .85rem; color: var(--ink-soft); margin-bottom: .5rem; }
.faq-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: .75rem; color: var(--ink-soft); font-size: .92rem; }

/* =============================================================
   13. Offers
   ============================================================= */
.offer-hero { background: linear-gradient(135deg, var(--bg), #0A1330); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.offer-hero h1 { color: var(--on-dark); }
.offer-hero p { color: var(--on-dark-soft); margin-top: .6rem; max-width: 60ch; }
.discount-pill { display: inline-flex; align-items: center; gap: .4em; background: var(--danger); color: #fff; font-weight: 800; font-size: .78rem; padding: .3em .7em; border-radius: 999px; }

/* =============================================================
   14. Legal / static
   ============================================================= */
.legal-body { max-width: 760px; margin-inline: auto; }
.legal-body h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .7rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: .9em; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.legal-toc a { font-size: .82rem; padding: .4em .9em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); }
.legal-toc a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* =============================================================
   15. Footer
   ============================================================= */
.site-footer { margin-top: 4rem; padding-block: 3rem 2rem; background: var(--bg); color: var(--on-dark-soft); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand .brand-mark { background: linear-gradient(135deg, var(--accent), #DFC697); }
.footer-tagline { margin-top: .85rem; font-size: .88rem; max-width: 32ch; }
.footer-col h4 { color: var(--on-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-disclosure { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--on-dark-line); font-size: .78rem; line-height: 1.7; }
.footer-bottom { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .78rem; }

/* =============================================================
   16. Reveal-on-scroll (functional, not gated by reduced-motion)
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   17. Empty / no-js states
   ============================================================= */
.js-only { display: none; }
.no-js-note { font-size: .85rem; color: var(--muted); padding: 1rem; background: var(--surface-2); border-radius: var(--radius-sm); }
html.has-js .js-only { display: block; }
html.has-js .no-js-note { display: none; }

/* =============================================================
   18. Responsive helpers
   ============================================================= */
@media (max-width: 539px) {
  .ficha-buy-row .btn, .hero-actions .btn { width: 100%; }
  .compare-cta-block { flex-direction: column; align-items: flex-start; }
  .compare-hero { flex-direction: column; align-items: flex-start; }
}
