/* ============================================================
   Build Your Car — Page Stylesheet
   All design tokens are scoped to .byc-page so they never
   override the site-wide :root tokens from theme-v2.css.
   Typography: Outfit (display) · Manrope (body)
   Accent: #FF4E16 (signal orange)
   ============================================================ */

/* Google Fonts are loaded via a <link> in the view <head>. */

.byc-page {
  /* Tokens */
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --surface-alt:  #F4F2EC;
  --ink:          #0E0E0E;
  --ink-2:        #4A4A47;
  --ink-3:        #8A8A85;
  --line:         #E8E6DF;
  --line-2:       #D5D3CB;
  --accent:       #FF4E16;
  --accent-deep:  #D43A07;
  --accent-soft:  #FFE9DF;
  --success:      #1A7F3D;
  --success-soft: #E0F4E6;
  --danger:       #C72C2C;
  --warn:         #B5650A;
  --warn-soft:    #FFF1D6;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-pill:  999px;
  --shadow-sm:    0 1px 2px rgba(14,14,14,0.04);
  --shadow-md:    0 8px 24px rgba(14,14,14,0.06);
  --shadow-lg:    0 16px 48px rgba(14,14,14,0.10);
  --t:            cubic-bezier(.22,.61,.36,1);

  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 60vh;
}

.byc-page *, .byc-page *::before, .byc-page *::after {
  box-sizing: border-box;
}

.byc-page h1,
.byc-page h2,
.byc-page h3,
.byc-page h4,
.byc-page .display {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.byc-page h1 { font-size: clamp(32px, 5vw, 52px); margin: 0; }
.byc-page h2 { font-size: 24px; margin: 0; }
.byc-page h3 { font-size: 18px; margin: 0; }

.byc-page a { color: inherit; text-decoration: none; }
.byc-page a:hover { color: var(--accent); }

.byc-page button { font-family: inherit; cursor: pointer; }

/* ============ Layout ============ */
.byc-main {
  padding: 28px 0 64px;
}
.byc-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Hero ============ */
.byc-hero {
  margin-bottom: 24px;
  max-width: 720px;
}
.byc-page .hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.byc-page .hero-title {
  color: var(--ink);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.05;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
}
.byc-page .hero-accent {
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding: 0 4px;
}
.byc-page .hero-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin: 12px 0 0;
  max-width: 580px;
  line-height: 1.5;
}

/* ============ Configurator shell ============ */
.byc-page .cfg-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

/* ============ Stepper ============ */
.byc-page .stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.byc-page .step-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.byc-page .step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.byc-page .step-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.byc-page .stepper { display: flex; gap: 6px; flex: 1; max-width: 320px; }
.byc-page .stp-dot {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: background .25s var(--t);
}
.byc-page .stp-dot.done   { background: var(--ink-3); }
.byc-page .stp-dot.active { background: var(--accent); }

@media (max-width: 640px) {
  .byc-page .cfg-shell { padding: 20px; }
  .byc-page .stepper-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .byc-page .stepper { max-width: none; width: 100%; }
}

/* ============ Soft-lead strip ============ */
.byc-page .soft-lead {
  background: var(--success-soft);
  border: 1px solid #C5E6CF;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--success);
  animation: byc-slideDown .35s var(--t);
}
.byc-page .soft-lead svg { flex-shrink: 0; }
.byc-page .soft-lead-text { flex: 1; min-width: 200px; font-weight: 500; }
.byc-page .soft-lead-input {
  border: 1px solid #B7DCC2;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  font: 500 13px 'Manrope', system-ui, sans-serif;
  width: 160px;
  outline: none;
  transition: border-color .15s var(--t);
}
.byc-page .soft-lead-input:focus { border-color: var(--success); }
.byc-page .soft-lead-btn {
  background: var(--success);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius);
  font: 600 12px 'Manrope', system-ui, sans-serif;
  cursor: pointer;
}
.byc-page .soft-lead-btn:hover { background: #0F6A30; }

/* ============ Stage ============ */
.byc-page .stage { min-height: 360px; }
.byc-page .step-title { color: var(--ink); margin-bottom: 4px; font-size: 22px; }
.byc-page .step-sub   { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; max-width: 520px; }

/* ============ Choice grids ============ */
.byc-page .grid { display: grid; gap: 12px; }
.byc-page .grid-3 { grid-template-columns: repeat(3, 1fr); }
.byc-page .grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .byc-page .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .byc-page .grid-2 { grid-template-columns: 1fr; }
}

/* ============ Generic option card ============ */
.byc-page .opt {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .15s var(--t), background .15s var(--t), transform .12s var(--t);
}
.byc-page .opt:hover { border-color: var(--ink-3); background: var(--surface-alt); }
.byc-page .opt:active { transform: scale(.99); }
.byc-page .opt.sel {
  border-color: var(--accent);
  background: #FFF8F4;
  box-shadow: 0 0 0 4px rgba(255,78,22,0.08);
}
.byc-page .opt-icon { width: 24px; height: 24px; color: var(--ink-2); margin-bottom: 10px; }
.byc-page .opt.sel .opt-icon { color: var(--accent); }
.byc-page .opt-title { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 15px; margin: 0 0 2px; }
.byc-page .opt-sub   { font-size: 13px; color: var(--ink-2); margin: 0; }
.byc-page .opt-meta  { font-size: 12px; color: var(--ink-3); margin-top: 10px; font-weight: 600; }

/* Body type rows */
.byc-page .body-card { display: flex; align-items: center; gap: 14px; }
.byc-page .body-svg  { flex-shrink: 0; width: 72px; height: 36px; color: var(--ink-2); }
.byc-page .opt.sel .body-svg { color: var(--accent); }
.byc-page .body-card .opt-text { flex: 1; min-width: 0; }

/* ============ Variant cards ============ */
.byc-page .variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .byc-page .variants { grid-template-columns: 1fr; } }
.byc-page .variant {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  color: var(--ink);
  transition: all .15s var(--t);
}
.byc-page .variant:hover { border-color: var(--ink-3); }
.byc-page .variant.sel {
  border-color: var(--accent);
  background: #FFF8F4;
  box-shadow: 0 0 0 4px rgba(255,78,22,0.08);
}
.byc-page .variant-tag {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}
.byc-page .variant-name  { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.byc-page .variant-price { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.byc-page .feat {
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 0 5px 18px;
  position: relative;
  border-top: 1px dashed var(--line);
}
.byc-page .feat:first-of-type { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 8px; }
.byc-page .feat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--ink-3);
}

/* ============ Color step ============ */
.byc-page .car-stage {
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--bg) 100%);
  border-radius: var(--radius);
  padding: 32px 24px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.byc-page .car-stage svg { width: 100%; max-width: 380px; height: auto; }
.byc-page .car-stage-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.byc-page .swatch-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 640px) { .byc-page .swatch-row { grid-template-columns: repeat(3, 1fr); } }
.byc-page .swatch {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s var(--t);
}
.byc-page .swatch:hover { border-color: var(--ink-3); }
.byc-page .swatch.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,78,22,0.08);
}
.byc-page .sw-circle { width: 40px; height: 34px; border-radius: 50%; margin: 0 auto 8px; border: 1px solid var(--line-2); }
.byc-page .sw-name   { font-size: 11px; font-weight: 600; color: var(--ink); display: block; line-height: 1.2; }
.byc-page .sw-extra  { font-size: 10px; color: var(--ink-3); display: block; margin-top: 2px; }

/* ============ Summary step ============ */
.byc-page .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .byc-page .summary-grid { grid-template-columns: 1fr; } }
.byc-page .sum-card { background: var(--surface-alt); border-radius: var(--radius); padding: 20px; }
.byc-page .sum-card h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 14px;
}
.byc-page .sum-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.byc-page .sum-row:last-child { border-bottom: 0; padding-top: 14px; font-weight: 700; font-size: 16px; }
.byc-page .sum-key { color: var(--ink-2); width: 40%; }
.byc-page .sum-val { color: var(--ink); font-weight: 600; }

.byc-page .cta-stack { display: flex; flex-direction: column; gap: 10px; }
.byc-page .cta {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s var(--t);
}
.byc-page .cta:hover { border-color: var(--ink-3); }
.byc-page .cta-hot {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.byc-page .cta-hot:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.byc-page .cta-title { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 15px; }
.byc-page .cta-sub   { font-size: 12px; opacity: 0.75; font-weight: 500; }

/* ============ Build bar ============ */
.byc-page .build-bar {
  margin-top: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.byc-page .bb-meta  { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.byc-page .bb-price { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 26px; line-height: 1; }
.byc-page .build-bar-right { display: flex; gap: 10px; align-items: center; }
@media (max-width: 600px) {
  .byc-page .build-bar { flex-direction: column; align-items: stretch; }
  .byc-page .build-bar-right { justify-content: space-between; }
}

.byc-page .btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity .15s var(--t), transform .1s var(--t);
}
.byc-page .btn:active { transform: scale(.98); }
.byc-page .btn-primary { background: var(--accent); color: #fff; }
.byc-page .btn-primary:hover { background: var(--accent-deep); }
.byc-page .btn-primary:disabled { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); cursor: not-allowed; }
.byc-page .btn-ghost { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.byc-page .btn-ghost:hover { color: #fff; border-color: #fff; }
.byc-page .btn-block { width: 100%; }

.byc-page .help-row { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.byc-page .help-row a { color: var(--accent); font-weight: 600; }

/* ============ Modal ============ */
.byc-page .modal-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: byc-fadeIn .25s var(--t);
}
.byc-page .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(14,14,14,0.55);
}
.byc-page .modal-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: byc-popIn .3s var(--t);
}
.byc-page .modal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.byc-page .modal-title   { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.byc-page .modal-sub     { font-size: 14px; color: var(--ink-2); margin: 0 0 22px; }
.byc-page .modal-close   { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; color: var(--ink-3); padding: 4px; line-height: 0; cursor: pointer; }
.byc-page .modal-close:hover { color: var(--ink); }

.byc-page .field { margin-bottom: 12px; }
.byc-page .field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.byc-page .field input,
.byc-page .field select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
  font: 500 14px 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .15s var(--t);
}
.byc-page .field input:focus,
.byc-page .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,78,22,0.1);
}
.byc-page .field-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.byc-page .field-error { color: var(--danger); font-size: 12px; margin-top: 6px; min-height: 16px; }

.byc-page .success-state { text-align: center; padding: 12px 0; }
.byc-page .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Path chooser (Step 1) ============ */
.byc-page .path-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 540px) { .byc-page .path-chooser { grid-template-columns: 1fr; } }

.byc-page .path-card {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all .18s var(--t);
  min-height: 168px;
}
.byc-page .path-card:hover {
  border-color: var(--ink-2);
  box-shadow: 0 8px 24px rgba(14,14,14,0.08);
  transform: translateY(-2px);
}
.byc-page .path-card:active { transform: translateY(0); }

.byc-page .path-card.path-recommended {
  background: linear-gradient(135deg, #FFF8F4 0%, #FFEEE5 100%);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255,78,22,0.12);
}
.byc-page .path-card.path-recommended:hover {
  border-color: var(--accent-deep);
  box-shadow: 0 12px 32px rgba(255,78,22,0.20);
  transform: translateY(-3px);
}

.byc-page .path-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.byc-page .path-card.path-recommended .path-badge { background: var(--accent); }

.byc-page .path-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  margin-bottom: 4px;
  transition: background .18s var(--t), color .18s var(--t);
}
.byc-page .path-card:hover .path-icon-wrap             { background: var(--ink); color: #fff; }
.byc-page .path-card.path-recommended .path-icon-wrap  { background: var(--accent); color: #fff; }
.byc-page .path-card.path-recommended:hover .path-icon-wrap { background: var(--accent-deep); }
.byc-page .path-icon { width: 26px; height: 26px; }

.byc-page .path-title { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.2; }
.byc-page .path-sub   { font-size: 13px; color: var(--ink-2); line-height: 1.45; flex: 1; }
.byc-page .path-time  {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.byc-page .path-time::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  display: inline-block;
}
.byc-page .path-card.path-recommended .path-time         { color: var(--accent-deep); }
.byc-page .path-card.path-recommended .path-time::before { background: var(--accent); }

/* ============ Brand / Model grids ============ */
.byc-page .brand-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  animation: byc-slideDown .35s var(--t);
}
.byc-page .brand-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.byc-page .brand-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 0;
}
.byc-page .brand-search {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px 5px 28px;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") 8px center no-repeat;
  width: 140px;
  outline: none;
  transition: border-color .15s, width .2s;
}
.byc-page .brand-search:focus { border-color: var(--accent); width: 180px; }
.byc-page .brand-search::placeholder { color: var(--ink-3); }
@media (max-width: 480px) { .byc-page .brand-search { width: 110px; } .byc-page .brand-search:focus { width: 140px; } }
.byc-page .brand-tease { text-align: center; margin: 8px 0 0; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.byc-page .brand-tease a { color: var(--ink-2); font-weight: 600; border-bottom: 1px dashed var(--ink-3); padding-bottom: 1px; margin-left: 4px; }
.byc-page .brand-tease a:hover { color: var(--accent); border-color: var(--accent); }

.byc-page .brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
@media (max-width: 720px) { .byc-page .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .byc-page .brand-grid { grid-template-columns: repeat(2, 1fr); } }

.byc-page .brand-card {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s var(--t), background .15s var(--t), transform .12s var(--t);
}
.byc-page .brand-card:hover  { border-color: var(--ink-3); background: var(--surface-alt); }
.byc-page .brand-card:active { transform: scale(.99); }
.byc-page .brand-card.sel   { border-color: var(--accent); background: #FFF8F4; box-shadow: 0 0 0 4px rgba(255,78,22,0.08); }
.byc-page .brand-name  { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.byc-page .brand-count { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.byc-page .brand-card.sel .brand-count { color: var(--accent-deep); }

.byc-page .model-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
  animation: byc-slideDown .3s var(--t);
}
.byc-page .model-section-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.byc-page .model-section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.byc-page .model-section-brand   { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); }

.byc-page .model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .byc-page .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .byc-page .model-grid { grid-template-columns: 1fr; } }

.byc-page .model-card {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s var(--t), background .15s var(--t);
}
.byc-page .model-card:hover { border-color: var(--ink-3); background: var(--surface-alt); }
.byc-page .model-card.sel   { border-color: var(--accent); background: #FFF8F4; box-shadow: 0 0 0 4px rgba(255,78,22,0.08); }
.byc-page .model-svg        { flex-shrink: 0; width: 56px; height: 28px; color: var(--ink-2); }
.byc-page .model-card.sel .model-svg { color: var(--accent); }
.byc-page .model-info  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byc-page .model-name  { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.byc-page .model-meta  { font-size: 12px; color: var(--ink-2); }

.byc-page .skip-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.byc-page .skip-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: color .15s var(--t), background .15s var(--t);
}
.byc-page .skip-link:hover { color: var(--accent); background: var(--surface-alt); }

/* ============ Matches step ============ */
.byc-page .match-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .byc-page .match-list { grid-template-columns: 1fr; } }

.byc-page .match-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: border-color .15s var(--t), background .15s var(--t), transform .12s var(--t);
}
.byc-page .match-card:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.byc-page .match-card.sel   { border-color: var(--accent); background: #FFF8F4; box-shadow: 0 0 0 4px rgba(255,78,22,0.08); }

.byc-page .match-toptag {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.byc-page .match-card.sel .match-toptag { background: var(--accent); }

.byc-page .match-card-inner { display: flex; gap: 14px; padding: 18px 16px 14px; }
.byc-page .match-visual {
  flex-shrink: 0;
  width: 96px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 4px;
}
.byc-page .match-card.sel .match-visual { background: #FFF1E8; }
.byc-page .match-svg { width: 56px; height: 28px; color: var(--ink-2); }
.byc-page .match-card.sel .match-svg { color: var(--accent); }
.byc-page .match-img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }

.byc-page .match-body   { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.byc-page .match-head   { display: flex; flex-direction: column; gap: 1px; }
.byc-page .match-brand  { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.byc-page .match-model  { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.1; }
.byc-page .match-price  { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }

.byc-page .match-prios  { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.byc-page .prio-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.byc-page .prio-chip.hit  { background: var(--success-soft); color: var(--success); }
.byc-page .prio-chip.miss { background: var(--surface-alt); color: var(--ink-3); text-decoration: line-through; opacity: 0.7; }

.byc-page .match-meter { margin-top: 4px; }
.byc-page .meter-row   { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.byc-page .meter-value { color: var(--ink); }
.byc-page .match-card.sel .meter-value { color: var(--accent-deep); }
.byc-page .meter-bar   { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.byc-page .meter-bar span { display: block; height: 100%; background: var(--ink-2); transition: width .35s var(--t); }
.byc-page .match-card.sel .meter-bar span { background: var(--accent); }

.byc-page .match-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background .15s var(--t), color .15s var(--t);
  pointer-events: none;
}
.byc-page .match-card:hover .match-action { background: var(--line); color: var(--ink); }
.byc-page .match-card.sel .match-action { background: var(--accent); color: #fff; border-top-color: var(--accent); }

.byc-page .match-footer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.byc-page .match-footer a { color: var(--accent); font-weight: 600; }
.byc-page .match-footer a:hover { color: var(--accent-deep); }

.byc-page .empty-matches { background: var(--surface-alt); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.byc-page .empty-matches p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }

/* ============ Budget dual slider ============ */
.byc-page .budget-block {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  margin-bottom: 20px;
}
.byc-page .budget-city-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFE9DF;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.byc-page .budget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.byc-page .budget-label { font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.byc-page .budget-hint  { font-size: 11px; color: var(--ink-3); margin-left: 8px; font-weight: 500; }
.byc-page .budget-values {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
}
.byc-page .budget-sep { font-family: 'Manrope', system-ui, sans-serif; font-weight: 500; font-size: 12px; color: var(--ink-3); }

.byc-page .dual-slider { position: relative; height: 28px; margin: 0 8px; }
.byc-page .slider-track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: var(--line-2);
  border-radius: 2px;
  transform: translateY(-50%);
}
.byc-page .slider-range {
  position: absolute;
  top: 50%;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}
.byc-page .slider-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 28px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  outline: none;
  margin: 0;
}
.byc-page .slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(14,14,14,0.18);
  cursor: pointer;
  transition: transform .12s var(--t), box-shadow .12s var(--t);
}
.byc-page .slider-input::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(255,78,22,0.3); }
.byc-page .slider-input::-webkit-slider-thumb:active { transform: scale(1.15); background: var(--accent); }
.byc-page .slider-input::-moz-range-thumb {
  pointer-events: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(14,14,14,0.18);
  cursor: pointer;
}
.byc-page .slider-min { z-index: 1; }
.byc-page .slider-max { z-index: 2; }
.byc-page .budget-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 8px;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Out-of-budget indicator */
.byc-page .opt.oob { opacity: 0.45; position: relative; }
.byc-page .opt.oob:hover { opacity: 0.65; border-color: var(--line); background: var(--surface); }
.byc-page .oob-badge {
  display: inline-block;
  margin-left: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ============ Loading spinner ============ */
.byc-page .byc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--ink-3);
  font-size: 14px;
  gap: 10px;
}
.byc-page .byc-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: byc-spin .7s linear infinite;
}

/* ============ Animations ============ */
@keyframes byc-fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes byc-popIn    { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes byc-slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes byc-stageSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes byc-spin     { to { transform: rotate(360deg); } }

.byc-page .stage > * { animation: byc-stageSwap .25s var(--t); }

/* ============ Hidden util ============ */
.byc-page [hidden] { display: none !important; }
