/**
 * /compare/ Phase G — Side-by-side EV comparison, Carwow flow.
 * Winner cells are red-soft; sub-score bars are CPSA red.
 */

.ax-compare {
  --ink: #232A25;
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-soft: #FFE6E6;
  --paper: #fff;
  --paper-soft: #F2F2F2;
  --paper-warm: #FAFAF8;
  --line: rgba(35,42,37,0.08);
  --mute: rgba(35,42,37,0.55);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
.ax-compare, .ax-compare * { box-sizing: border-box; }
.ax-compare a { text-decoration: none; color: inherit; }
.ax-compare p { line-height: 1.6; }

/* HERO */
.ax-compare .cmp-hero { padding: 56px 24px 36px; background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.ax-compare .cmp-hero-inner { max-width: 1320px; margin: 0 auto; text-align: center; }
.ax-compare .cmp-hero h1 { font-size: clamp(34px, 3vw + 8px, 54px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 14px; text-transform: uppercase; }
.ax-compare .cmp-hero p { font-size: 16px; color: var(--mute); margin: 0 0 28px; max-width: 620px; margin-left: auto; margin-right: auto; }
.ax-compare .picker-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; max-width: 920px; margin: 0 auto; align-items: center; }
.ax-compare .picker { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.ax-compare .picker .x { color: var(--mute); font-size: 18px; line-height: 1; margin-left: 12px; }
.ax-compare .vs { font-size: 13px; font-weight: 800; color: var(--mute); letter-spacing: 0.1em; }

/* STICKY COMPARE HEADER */
.ax-compare .cmp-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.ax-compare .cmp-header-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 18px; align-items: end; }
.ax-compare .cmp-spec-lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-bottom: 10px; }
.ax-compare .cmp-car { text-align: center; padding: 14px 12px; border-radius: 12px; transition: background 0.18s; }
.ax-compare .cmp-car.pick { background: var(--red-soft); }
.ax-compare .cmp-car-photo { aspect-ratio: 16/9; background-size: contain; background-position: center; background-repeat: no-repeat; min-height: 90px; max-height: 110px; margin: 0 auto 6px; }
.ax-compare .cmp-car .name { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 2px; }
.ax-compare .cmp-car .price { font-size: 12px; color: var(--mute); }
.ax-compare .cmp-car .price b { color: var(--ink); }
.ax-compare .cmp-car .pick-badge { display: inline-block; margin-top: 6px; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

/* BODY */
.ax-compare .cmp-body { max-width: 1320px; margin: 0 auto; padding: 36px 24px 64px; }
.ax-compare .cmp-section { margin-bottom: 40px; }
.ax-compare .cmp-section h2 { font-size: clamp(22px, 1.6vw + 6px, 30px); font-weight: 900; letter-spacing: -0.025em; line-height: 1; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); text-transform: uppercase; }
.ax-compare .cmp-row { display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 18px; align-items: stretch; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ax-compare .cmp-row .label { font-size: 13px; color: var(--mute); display: flex; align-items: center; padding-left: 4px; }
.ax-compare .cmp-cell { padding: 12px 14px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--paper-soft); display: flex; align-items: center; justify-content: center; line-height: 1.3; }
.ax-compare .cmp-cell.win { background: var(--red-soft); color: var(--red-dark); font-weight: 800; position: relative; }
.ax-compare .cmp-cell.win::after { content: "★"; position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--red); }
.ax-compare .cmp-cell .yes { color: var(--red); font-weight: 900; }
.ax-compare .cmp-cell .no { color: var(--mute); font-weight: 600; }
.ax-compare .cmp-cell .meta { display: block; font-size: 11px; color: var(--mute); margin-top: 3px; font-weight: 400; }

/* SUB-SCORE CELLS */
.ax-compare .ss-cell { display: flex; flex-direction: column; align-items: center; padding: 12px; width: 100%; }
.ax-compare .ss-cell .num { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin: 0 0 6px; }
.ax-compare .ss-cell .bar { width: 100%; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ax-compare .ss-cell .bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }

/* VERDICT BLOCK */
.ax-compare .verdict { background: var(--ink); color: #fff; border-radius: 18px; padding: 36px 40px; margin: 24px 0 0; }
.ax-compare .verdict h3 { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.ax-compare .verdict h2 { font-size: clamp(28px, 2.2vw + 6px, 38px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 16px; text-transform: uppercase; color: #fff; }
.ax-compare .verdict p { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.6; margin: 0 0 14px; }
.ax-compare .verdict .vc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 28px; }
.ax-compare .verdict .vc { padding: 18px 20px; background: rgba(255,255,255,0.05); border-radius: 12px; }
.ax-compare .verdict .vc.win { background: var(--red); }
.ax-compare .verdict .vc h4 { font-size: 14px; font-weight: 800; margin: 0 0 8px; }
.ax-compare .verdict .vc p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.5; }
.ax-compare .verdict .vc.win p { color: rgba(255,255,255,0.92); }

/* FINAL CTA */
.ax-compare .final { padding: 80px 24px; background: var(--paper-warm); }
.ax-compare .final-inner { max-width: 1320px; margin: 0 auto; background: var(--red); border-radius: 22px; padding: 56px 48px; text-align: center; color: var(--ink); }
.ax-compare .final h2 { font-size: clamp(32px, 2.8vw + 8px, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 14px; text-transform: uppercase; color: var(--ink); }
.ax-compare .final p { font-size: 17px; color: rgba(35,42,37,0.78); margin: 0 0 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.ax-compare .final .ctas { display: inline-flex; gap: 12px; }
.ax-compare .final .ctas a { padding: 14px 28px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.ax-compare .final .ctas .primary { background: var(--ink); color: #fff; }
.ax-compare .final .ctas .ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }

@media (max-width: 980px) {
  .ax-compare .picker-row { grid-template-columns: 1fr; }
  .ax-compare .vs { display: none; }
  .ax-compare .cmp-header-inner, .ax-compare .cmp-row { grid-template-columns: 110px 1fr 1fr 1fr; gap: 8px; }
  .ax-compare .cmp-row .label { font-size: 11px; }
  .ax-compare .cmp-cell { font-size: 12px; padding: 8px; }
  .ax-compare .cmp-spec-lbl { display: none; }
  .ax-compare .verdict .vc-row { grid-template-columns: 1fr; }
}
