/* =====================================================================
   XEED Bike Finder — STYLES
   Light "app" look: soft grey page, white rounded cards, black text,
   one orange accent. Mobile first (390px); bigger screens at the bottom.
   Change the colours in :root.
   ===================================================================== */

:root {
  /* Colours */
  --bg: #ebebeb;          /* page background (light grey) */
  --surface: #f6f6f6;     /* cards */
  --surface-2: #ffffff;   /* chips, inputs, raised things */
  --border: #dddddd;
  --text: #151515;
  --muted: #6b6b6b;       /* secondary text (≈ 4.8:1 on --bg) */
  --dark: #111111;        /* banner + main buttons */
  --on-dark: #ffffff;
  --accent: #ff6a13;      /* orange accent */
  --accent-soft: rgba(255, 106, 19, 0.10);
  --on-accent: #111111;
  --star: #f2a33a;        /* rating / match star */
  --good: #1d8f4e;
  --warn: #a35f00;
  --error: #c62828;

  /* Type & shape */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;         /* cards */
  --radius-small: 16px;   /* inputs, small boxes */
  --gutter: 18px;
  --tap: 52px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--dark); color: var(--on-dark);
  padding: 10px 14px; border-radius: var(--radius-small); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container-narrow, .container-app { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header: logo · title · language ---------- */
.site-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 18px var(--gutter) 6px;
}
.logo-btn img { width: 44px; height: 44px; border-radius: 14px; }
.header-center { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.15; }
.header-kicker { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.header-title { font-size: 19px; font-weight: 600; color: var(--text); }
.wordmark-logo { font-weight: 900; font-style: italic; letter-spacing: .06em; }

/* Language dropdown */
.lang-wrap { position: relative; display: flex; align-items: center; justify-self: end; }
.lang-icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; max-width: 150px;
  padding: 8px 30px 8px 36px;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6b6b' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 0; border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
button, .btn-primary, .btn-secondary, .btn-ghost { font: inherit; cursor: pointer; }
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 17px;
  text-decoration: none; text-align: center;
  border: 0;
  transition: background-color .15s, transform .1s, box-shadow .15s;
}
.btn-primary { background: var(--dark); color: var(--on-dark); }
.btn-primary:hover { background: #2a2a2a; color: var(--on-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: .5; cursor: wait; }
.btn-primary[aria-disabled="true"] { background: #d6d6d6; color: var(--muted); cursor: not-allowed; }
.btn-secondary { background: var(--accent); color: var(--on-accent); }
.btn-secondary:hover { background: #ff8540; color: var(--on-accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--text); background: #fafafa; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Home ---------- */
.screen { padding-top: 14px; padding-bottom: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin: 10px 0 10px; padding: 4px 12px 4px 4px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.kicker-tag {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 4px 10px; border-radius: 999px;
  background: var(--dark); color: #fff; font-size: 12px; letter-spacing: .02em;
}
.kicker-tag svg { color: var(--accent); }
.kicker-text { min-width: 0; line-height: 1.25; }
/* Live riders pill */
.live-pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  margin: 6px 0 14px; padding: 6px 12px 6px 6px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 14px; color: var(--muted);
  animation: live-in .6s ease both;
}
.live-pill[hidden] { display: none; }
.live-avatars { display: inline-flex; }
.live-av {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -8px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  border: 2px solid var(--surface);
  animation: av-bob 3.2s ease-in-out infinite;
}
.live-av:first-child { margin-left: 0; }
.av1 { background: var(--accent); }
.av2 { background: #222; animation-delay: .4s; }
.av3 { background: #1d8f4e; animation-delay: .8s; }
.live-text { display: block; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.live-num-wrap { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: top; margin-right: 3px; }
.live-num { display: inline-block; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.live-num.roll-up { animation: roll-up .5s ease; }
.live-num.roll-down { animation: roll-down .5s ease; }
.live-badge {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: #e8f6ee; color: #1d8f4e; font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22b35f; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22b35f;
  animation: live-ping 1.6s ease-out infinite;
}
.live-delta {
  position: absolute; right: 14px; top: -4px; font-size: 12px; font-weight: 800;
  opacity: 0; pointer-events: none;
}
.live-delta.show { animation: delta-float 1.6s ease forwards; }
.live-delta.up { color: #1d8f4e; }
.live-delta.down { color: var(--muted); }
@keyframes live-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes av-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes roll-up { 0% { transform: translateY(100%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes roll-down { 0% { transform: translateY(-100%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes delta-float { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes live-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .live-pill, .live-av, .live-dot::after, .live-num, .live-delta.show { animation: none !important; }
}

.home-title, .hero-title { margin: 0 0 6px; font-size: clamp(30px, 8.5vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.lead { margin: 0 0 18px; color: var(--muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.section-note { font-size: 15px; color: var(--muted); }

/* Riding-style chips (scroll sideways on phones) */
.chip-row {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.style-chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 18px 6px 8px;
  border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-size: 17px; font-weight: 500;
  box-shadow: var(--shadow);
}
.style-chip img { width: 46px; height: 32px; object-fit: contain; }
.style-chip:hover { box-shadow: 0 0 0 2px var(--dark); }

/* Dark banner (quick quiz) */
.promo-banner {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 150px; margin: 18px 0 14px;
  padding: 16px 20px 16px 10px;
  border: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse 60% 90% at 25% 60%, #2c2c2c 0%, #0c0c0c 70%);
  color: var(--on-dark); text-align: left;
  overflow: hidden;
}
.promo-banner:disabled { opacity: .6; cursor: wait; }
.promo-banner:hover .promo-title { color: #ffd2b8; }
.promo-img { width: 52%; max-width: 260px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.promo-text { display: flex; flex-direction: column; gap: 4px; }
.promo-title { font-size: clamp(24px, 7vw, 34px); font-weight: 400; line-height: 1.1; }
.promo-sub { font-size: 14px; color: #b9b9b9; }

.intro-points { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.intro-points li::before { content: "•"; margin-right: 6px; color: var(--accent); }

/* Product grid (home: deals + saved) — 2 columns like an app */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-link { display: block; padding: 50px 16px 16px; text-decoration: none; color: var(--text); height: 100%; }
.product-link:hover { color: var(--text); }
.product-media { aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 10px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
.product-brand { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product-name { margin: 0 0 8px; font-size: 17px; font-weight: 500; line-height: 1.25; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.product-price { font-size: 17px; font-weight: 600; }

.deal-badge { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: #c94c00; font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Heart (save) button — top-left of a card */
.heart {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--text);
}
.heart:hover { background: rgba(0,0,0,.05); }
.heart[aria-pressed="true"] { color: #e5484d; --heart-fill: #e5484d; }

/* Star + number (match % on results, discount on deals) */
.star { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 16px; color: var(--muted); white-space: nowrap; }
.star::before { content: "★"; color: var(--star); font-size: 20px; line-height: 1; }

/* ---------- Notices ---------- */
.notice {
  margin: 16px 0; padding: 14px 18px;
  border-radius: var(--radius-small);
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 16px;
}
.notice p { margin: 0; }
.notice-error { box-shadow: inset 0 0 0 2px var(--error); }
.notice-warn { box-shadow: inset 0 0 0 2px #f0b45d; }

/* ---------- Quiz ---------- */
.progress { margin-bottom: 20px; }
.progress-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.progress-track { height: 6px; background: #d9d9d9; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--dark); border-radius: 99px; transition: width .25s ease; }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { padding: 0; margin: 0 0 6px; font-size: clamp(28px, 8vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; outline: none; }
.step-help { margin: 0 0 20px; color: var(--muted); }
.field-label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--muted); }

.number-wrap { position: relative; margin-bottom: 16px; }
.number-wrap input {
  width: 100%; min-height: 72px;
  padding: 10px 70px 10px 22px;
  font: inherit; font-size: 40px; font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow);
  -moz-appearance: textfield; appearance: textfield;
}
.number-wrap input::-webkit-outer-spin-button,
.number-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.number-wrap input:focus { outline: none; box-shadow: 0 0 0 3px var(--dark); }
.number-wrap .unit { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 600; color: var(--muted); }

input[type="range"] { width: 100%; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: #d4d4d4; }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #d4d4d4; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--dark); border: 4px solid var(--surface-2); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--dark); border: 4px solid var(--surface-2); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.budget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.budget-head .field-label { margin: 0; }
.currency-select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 6px 30px 6px 14px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6b6b' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 0; border-radius: 999px; box-shadow: var(--shadow); cursor: pointer;
}
.currency-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.currency-note { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: -4px 0 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 18px;
  border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-weight: 500; box-shadow: var(--shadow);
}
.chip[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); }

/* Option cards */
.options { display: grid; gap: 12px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-body {
  position: relative; display: block;
  min-height: var(--tap); padding: 16px 20px 16px 56px;
  background: var(--surface-2);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, background-color .15s;
}
.option-body::before {
  content: ""; position: absolute; left: 20px; top: 20px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #b5b5b5;
}
.option:hover .option-body { box-shadow: 0 0 0 2px #cfcfcf; }
.option input:checked + .option-body { box-shadow: 0 0 0 2px var(--dark); }
.option input:checked + .option-body::before { border-color: var(--dark); background: var(--dark); box-shadow: inset 0 0 0 4px var(--surface-2); }
.option input:focus-visible + .option-body { outline: 3px solid var(--accent); outline-offset: 3px; }
.option-name { display: block; font-size: 19px; font-weight: 600; }
.option-desc { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

.field-error { min-height: 1.5em; margin: 10px 0 0; color: var(--error); font-weight: 600; font-size: 15px; }
.field-error:empty { min-height: 0; margin: 0; }

.quiz-nav {
  position: sticky; bottom: 0;
  display: flex; gap: 10px;
  margin-top: 26px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(235,235,235,0) 0%, var(--bg) 30%);
}
.quiz-nav .btn-primary { flex: 1; }

/* ---------- Results ---------- */
.results-title { margin: 0 0 12px; font-size: clamp(30px, 8.5vw, 44px); font-weight: 600; letter-spacing: -0.02em; outline: none; }
.summary-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.summary-chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; }
.info-row { display: grid; gap: 12px; margin-bottom: 8px; }
.info-row .notice { margin: 0; }
.size-box { padding: 16px 18px; border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow); }
.size-title { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.size-note { margin: 0; font-size: 15px; color: var(--muted); }
.message-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.results-list { display: grid; gap: 16px; margin: 18px 0; }

.bike-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bike-card.is-top { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.bike-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.bike-card.has-image .bike-placeholder { display: none; }
.bike-media img {
  position: absolute; inset: 12% 6% 2%; z-index: 0;
  width: 88%; height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.12));
}
.bike-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 12px, transparent 12px 24px);
}
.bike-placeholder span { font-size: 40px; font-weight: 900; font-style: italic; letter-spacing: .08em; color: #d0d0d0; }
.bike-card.no-image .bike-media { aspect-ratio: 3 / 1; }
.bike-card.no-image .bike-placeholder span { font-size: 30px; }
.photo-note {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--muted);
  font-size: 12px; font-weight: 600;
}
.rank-badge {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  padding: 3px 12px; border-radius: 999px;
  background: var(--surface-2); box-shadow: var(--shadow);
  font-weight: 700; font-size: 15px;
}
.bike-card.is-top .rank-badge { background: var(--accent); color: var(--on-accent); }

.bike-body { display: flex; flex-direction: column; flex: 1; padding: 6px 20px 20px; gap: 2px; }
.bike-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); }
.badge-warn { background: #fff1dc; color: var(--warn); box-shadow: none; }
.badge-xeed { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.bike-brand { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bike-name { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.bike-price { margin: 0; font-size: 24px; font-weight: 600; }
.price-row .star { font-size: 18px; color: var(--text); }

.bike-size { margin: 0 0 6px; font-weight: 600; }
.bike-specs { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }

.bike-card h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bike-card ul.why-list, .bike-card ul.warn-list, .pros-list, .cons-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.why-list li, .pros-list li, .cons-list li, .warn-list li { position: relative; padding-left: 22px; }
.why-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pros-list li::before { content: "+"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.cons-list li::before { content: "−"; position: absolute; left: 2px; color: var(--error); font-weight: 800; }
.warn-list li::before { content: "!"; position: absolute; left: 4px; color: var(--warn); font-weight: 800; }
.pros-cons { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-bottom: 18px; }
.buy-btn { margin-top: auto; }

/* XEED take (your note) */
.xeed-take { margin: 4px 0 12px; padding: 12px 16px; border-radius: var(--radius-small); background: var(--accent-soft); }
.xeed-take-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.xeed-take-text { margin: 0; font-size: 16px; font-weight: 500; font-style: italic; }

.affiliate-note { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.results-actions > * { flex: 1 1 160px; }
.share-status { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; color: var(--good); }
.share-fallback { width: 100%; padding: 10px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-small); font: inherit; font-size: 14px; }

/* Quick-quiz note */
.quick-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.quick-note p { flex: 1 1 220px; }

/* ---------- Compare ---------- */
.compare-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.compare-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--muted); cursor: pointer; }
.compare-toggle input { width: 22px; height: 22px; accent-color: var(--dark); cursor: pointer; }
.compare-toggle:has(input:checked) { color: var(--text); }
.compare-bar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  width: min(560px, calc(100% - 24px));
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--dark); color: var(--on-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.compare-count { flex: 1; font-weight: 600; font-size: 15px; }
.compare-bar .btn-ghost { background: #2a2a2a; color: var(--on-dark); box-shadow: none; }
.compare-bar .btn-primary { background: var(--accent); color: var(--on-accent); }
.compare-bar .btn-primary:disabled { background: #3a3a3a; color: #9a9a9a; cursor: default; opacity: 1; }
.compare-section { margin: 8px 0 24px; padding: 18px 0 8px; scroll-margin-top: 12px; }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.compare-title { margin: 0; font-size: 26px; font-weight: 600; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-small); box-shadow: var(--shadow); }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; background: var(--surface-2); }
.compare-table th, .compare-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #eeeeee; }
.compare-table tbody th { position: sticky; left: 0; z-index: 1; width: 120px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.compare-table thead th { background: var(--surface-2); }
.cmp-corner { position: sticky; left: 0; z-index: 2; background: var(--surface) !important; }
.cmp-bike img { display: block; width: 100%; max-width: 180px; aspect-ratio: 16 / 10; object-fit: contain; margin-bottom: 6px; }
.cmp-brand { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmp-name { display: block; font-size: 15px; font-weight: 600; }
.compare-table td.is-best { color: var(--good); font-weight: 700; }
.compare-table td.is-best::after { content: " ✓"; }
.compare-legend { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
#screen-results { padding-bottom: 96px; }

/* ---------- Email capture ---------- */
.email-card {
  margin-top: 28px; padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--dark); color: var(--on-dark);
}
.email-title { margin: 0 0 8px; font-size: 24px; line-height: 1.2; font-weight: 600; }
.email-text { margin: 0 0 16px; color: #bdbdbd; }
.email-card .field-label { color: #bdbdbd; }
input[type="email"] {
  width: 100%; min-height: var(--tap);
  padding: 12px 18px; margin-bottom: 14px;
  font: inherit; color: var(--text);
  background: var(--surface-2);
  border: 0; border-radius: 999px;
  box-shadow: var(--shadow);
}
input[type="email"]::placeholder { color: #8d8d8d; }
input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; color: var(--muted); }
.email-card .consent { color: #bdbdbd; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent a { color: inherit; }
.email-card .btn-primary { background: var(--accent); color: var(--on-accent); }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.form-status.is-success { color: var(--good); }
.email-card .form-status.is-success { color: #7fe0a4; }
.form-status.is-error { color: var(--error); }
.email-card .form-status.is-error { color: #ff9b8f; }

/* ---------- Pop-up: upcoming XEED app ---------- */
.app-popup {
  width: min(420px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: auto;
}
.app-popup::backdrop { background: rgba(17, 17, 17, 0.45); backdrop-filter: blur(3px); }
.app-popup[open] { animation: popup-in .25s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.popup-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
}
.popup-close:hover { background: #fff; }
.popup-hero {
  position: relative;
  display: grid; place-items: center;
  height: 190px;
  background: radial-gradient(ellipse 60% 80% at 50% 60%, #2c2c2c 0%, #0c0c0c 75%);
}
.popup-hero img { width: 72%; max-width: 300px; height: auto; transform: rotate(-5deg); filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); }
.popup-badge {
  position: absolute; left: 16px; top: 16px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 700;
}
.app-popup .app-form { padding: 20px 22px 6px; background: none; box-shadow: none; border-radius: 0; }
.app-popup .app-title { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.popup-text { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.app-popup .inline-field { flex-direction: column; }
.app-popup .btn-secondary { min-height: var(--tap); }
.popup-later {
  display: block; width: 100%;
  padding: 10px 0 18px; border: 0; background: none;
  color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}
.popup-later:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 30px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 22px; }
.app-form { padding: 22px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.app-title { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.inline-field { display: flex; flex-direction: column; gap: 10px; }
.inline-field input { margin-bottom: 0; }
.consent-small { margin-top: 12px; font-size: 14px; }
.tiktok-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }
.disclaimer { font-size: 14px; color: var(--muted); margin: 8px 0; }
.footer-links { font-size: 14px; color: var(--muted); margin: 0; }
.footer-links a { color: var(--muted); }

/* Small app sign-up above the footer (fades up on scroll) */
.mini-signup {
  padding: 20px; border-radius: var(--radius);
  background: var(--dark); color: var(--on-dark);
}
.mini-title { margin: 0 0 14px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.mini-signup .field-label { color: #bdbdbd; font-size: 13px; }
.mini-row { display: flex; gap: 8px; }
.mini-row input[type="email"] { flex: 1; min-width: 0; margin: 0; }
.mini-row .btn-secondary { flex: none; min-height: var(--tap); padding: 0 18px; }
.mini-signup .consent { color: #bdbdbd; margin-bottom: 0; }
.mini-signup .form-status { margin-top: 10px; min-height: 0; }
.mini-signup .form-status:empty { display: none; }
.mini-signup .form-status.is-success { color: #7fe0a4; }
.mini-signup .form-status.is-error { color: #ff9b8f; }
/* Flip card: sign-up on the front, "idea for the app" on the back */
.mini-flip { perspective: 1400px; }
.mini-flip[hidden] { display: none; }
.flip-inner {
  display: grid; position: relative;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; }
.mini-flip.is-flipped .flip-inner { transform: rotateY(-180deg); }
.mini-flip.ideas-only .flip-inner { transform: none; transition: none; }
.mini-flip.ideas-only .flip-front { display: none; }
.mini-flip.ideas-only .flip-back { transform: none; }
.mini-flip.ideas-only .flip-to-front { visibility: hidden; }
.flip-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 6px 0; border: 0; background: none;
  color: #ffb27f; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.flip-link:hover { color: #fff; }
.flip-to-front { margin-top: 0; color: #bdbdbd; }
#idea-text {
  width: 100%; min-height: 96px; flex: 1;
  padding: 12px 16px; border: 0; border-radius: 18px; resize: vertical;
  font: inherit; color: var(--text); background: var(--surface-2);
}
#idea-text::placeholder { color: #8d8d8d; }
#idea-text:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.idea-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.idea-row .btn-secondary { min-height: var(--tap); padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Text pages (privacy, 404) ---------- */
.page { padding-top: 28px; padding-bottom: 40px; }
.page h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.1; margin: 0 0 16px; font-weight: 600; }
.page h2 { font-size: 21px; margin: 28px 0 8px; font-weight: 600; }
.page p, .page li { color: #333333; }
.placeholder-text { background: #fff1dc; color: var(--warn); padding: 0 4px; border-radius: 4px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.site-header:has(> .wordmark:only-child) { display: flex; }
.wordmark-tag { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* =====================================================================
   BIGGER SCREENS
   ===================================================================== */
@media (min-width: 640px) {
  .inline-field { flex-direction: row; }
  .inline-field input { flex: 1; }
  .results-actions > * { flex: 0 0 auto; }
  .info-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .container-app { max-width: 900px; }
}

@media (min-width: 960px) {
  .screen { padding-top: 24px; }
  .results-list { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .email-card { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .email-card > .email-title, .email-card > .email-text { grid-column: 1; }
  .email-card > .email-title { grid-row: 1; }
  .email-card > .email-text { grid-row: 2 / span 5; }
  .email-card > label, .email-card > input[type="email"], .email-card > .consent,
  .email-card > button, .email-card > .form-status { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .quiz-nav { position: static; background: none; }
  .container-app { max-width: 1040px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  #screen-intro .btn-block#start-btn { max-width: 420px; margin: 0 auto; display: flex; }
  .promo-banner { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
