/* ============================================================
   eevee.sg - shared design system
   Editorial automotive review × precision instrument cluster
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

:root {
  /* Core palette - ink on warm paper, charged with acid lime */
  --ink:        #14160F;   /* near-black, warm */
  --ink-soft:   #3a3d33;
  --paper:      #F3F0E7;   /* warm off-white */
  --paper-2:    #EAE6D9;   /* slightly deeper paper for panels */
  --line:       #d9d4c4;   /* hairline */
  --volt:       #C7F23C;   /* signature acid-lime "voltage" */
  --volt-deep:  #9bcc1a;
  --rust:       #E0531F;   /* warm secondary accent for warnings/highlights */
  --muted:      #6b6e60;

  --shadow:     0 1px 0 rgba(20,22,15,.04), 0 18px 40px -24px rgba(20,22,15,.45);

  --maxw: 1180px;
  --r: 4px;

  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Schibsted Grotesk', system-ui, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20,22,15,.025) 1px, transparent 0);
  background-size: 4px 4px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--f-mono); }
.volt-text { color: var(--volt-deep); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,240,231,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; }
.brand .plug {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--volt);
  font-family: var(--f-mono); font-size: 15px; font-weight: 600;
}
.brand .dot-sg { font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: 0; align-self: flex-end; padding-bottom: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--volt-deep);
  transition: width .25s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.nav-cta:hover { background: #000; }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-family: var(--f-mono); font-size: 13px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--volt); color: var(--ink); }
.btn-primary:hover { background: var(--volt-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 600; letter-spacing: -0.045em; }
.hero h1 em { font-style: italic; color: var(--volt-deep); }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* charge bar motif */
.chargebar { height: 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.chargebar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--volt-deep), var(--volt)); border-radius: 999px; }

/* instrument panel in hero */
.cluster {
  background: var(--ink); color: var(--paper); border-radius: 16px; padding: 26px;
  box-shadow: var(--shadow); position: relative;
}
.cluster::before {
  content: 'FULL REVIEW'; position: absolute; top: 18px; right: 20px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--volt);
}
.cluster .big { font-family: var(--f-display); font-size: 76px; line-height: 1; }
.cluster .big small { font-size: 22px; color: var(--muted); }
.cluster .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #b9bdaa; }
.cluster .row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; font-family: var(--f-mono); font-size: 13px; }
.cluster .meter { flex: 1; height: 7px; background: #2a2d22; border-radius: 999px; overflow: hidden; }
.cluster .meter > i { display: block; height: 100%; background: var(--volt); }

/* ---------- section heads ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head .eyebrow { margin-bottom: 8px; }

/* ---------- review cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--paper-2); }
.card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.05); }
.card .scorechip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: var(--volt); font-family: var(--f-mono); font-weight: 600;
  padding: 5px 11px; border-radius: 999px; font-size: 14px;
}
.card .body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 23px; font-weight: 600; }
.card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card .read { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--volt-deep); margin-top: 6px; }
.card.soon { opacity: .72; }
.card.soon .read { color: var(--muted); }

/* feature row */
.feat { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat .item { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.feat .item .n { font-family: var(--f-mono); font-size: 12px; color: var(--volt-deep); letter-spacing: .12em; }
.feat .item h3 { font-size: 22px; margin: 12px 0 8px; }
.feat .item p { font-size: 15px; color: var(--ink-soft); }

/* big featured review */
.featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--ink); }
.featured .pic { background: var(--paper-2); min-height: 380px; position: relative; }
.featured .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.featured .pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured .content { padding: 40px; color: var(--paper); display: flex; flex-direction: column; justify-content: center; }
.featured .content .eyebrow { color: var(--volt); }
.featured .content h2 { color: var(--paper); font-size: clamp(30px, 4vw, 46px); margin: 14px 0 14px; }
.featured .content p { color: #c9ccbd; max-width: 48ch; margin-bottom: 24px; }

/* ---------- article / review page ---------- */
.article { padding: 48px 0 24px; }
.article-head { max-width: 820px; margin: 0 auto; text-align: center; }
.article-head .eyebrow { display: block; margin-bottom: 16px; }
.article-head h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 600; }
.article-head .sub { font-size: 20px; color: var(--ink-soft); margin: 20px auto 0; max-width: 60ch; }
.byline { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 26px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.byline span { display: inline-flex; gap: 7px; align-items: center; }

.hero-shot { aspect-ratio: 21/9; background: var(--paper-2); border-radius: 16px; margin: 40px 0; position: relative; overflow: hidden; border: 1px solid var(--line); }
.hero-shot .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.hero-shot .ph .mono { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 32px; margin: 44px 0 14px; }
.article-body h3 { font-size: 23px; margin: 30px 0 10px; }
.article-body p { margin-bottom: 18px; font-size: 18px; line-height: 1.72; }
.article-body p .drop { float: left; font-family: var(--f-display); font-size: 64px; line-height: .8; padding: 6px 10px 0 0; color: var(--volt-deep); }
.article-body ul { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--volt); margin: 28px 0; padding: 6px 0 6px 22px;
  font-family: var(--f-display); font-size: 24px; font-style: italic; color: var(--ink);
}

/* verdict scorecard - the signature instrument cluster */
.scorecard {
  background: var(--ink); color: var(--paper); border-radius: 18px; padding: 34px; margin: 44px auto; max-width: 760px;
  box-shadow: var(--shadow);
}
.scorecard .top { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #2a2d22; padding-bottom: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.scorecard .composite { display: flex; align-items: baseline; gap: 12px; }
.scorecard .composite .num { font-family: var(--f-display); font-size: 84px; line-height: .85; color: var(--volt); }
.scorecard .composite .den { font-family: var(--f-mono); font-size: 22px; color: var(--muted); }
.scorecard .composite .verdict-word { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); }
.scorecard .metrics { display: grid; gap: 14px; }
.metric { display: grid; grid-template-columns: 150px 1fr 46px; align-items: center; gap: 14px; }
.metric .mname { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #c9ccbd; }
.metric .mbar { height: 8px; background: #2a2d22; border-radius: 999px; overflow: hidden; }
.metric .mbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--volt-deep), var(--volt)); border-radius: 999px; }
.metric .mval { font-family: var(--f-mono); font-size: 14px; text-align: right; color: var(--volt); }
.metric.key .mname { color: var(--volt); font-weight: 600; }

/* pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px auto; max-width: 760px; }
.pc { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--paper); }
.pc h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.pc.good h4 { color: var(--volt-deep); }
.pc.bad h4 { color: var(--rust); }
.pc ul { list-style: none; }
.pc li { padding-left: 22px; position: relative; margin-bottom: 10px; font-size: 15px; }
.pc.good li::before { content: '+'; position: absolute; left: 0; color: var(--volt-deep); font-family: var(--f-mono); font-weight: 600; }
.pc.bad li::before { content: '−'; position: absolute; left: 0; color: var(--rust); font-family: var(--f-mono); font-weight: 600; }

/* spec table */
.specs { max-width: 760px; margin: 36px auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs table { width: 100%; border-collapse: collapse; }
.specs td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs tr:last-child td { border-bottom: none; }
.specs td:first-child { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); width: 42%; }
.specs td:last-child { font-weight: 500; }
.specs caption { caption-side: bottom; padding: 12px 18px; font-size: 12px; color: var(--muted); text-align: left; font-family: var(--f-mono); }

/* ---------- newsletter ---------- */
.signup { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 48px; text-align: center; }
.signup h2 { color: var(--paper); font-size: clamp(28px, 4vw, 42px); }
.signup p { color: #c9ccbd; max-width: 50ch; margin: 14px auto 26px; }
.signup form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup input { font-family: var(--f-body); font-size: 16px; padding: 14px 18px; border-radius: 999px; border: 1px solid #3a3d33; background: #1d1f17; color: var(--paper); min-width: 280px; }
.signup input::placeholder { color: #8a8d7d; }
.signup .fineprint { font-family: var(--f-mono); font-size: 11px; color: #8a8d7d; margin-top: 16px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
footer .brand { margin-bottom: 14px; }
footer p.tag { font-size: 14px; color: var(--muted); max-width: 32ch; }
footer h5 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: 15px; }
footer li a:hover { color: var(--volt-deep); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; font-family: var(--f-mono); }

/* breadcrumb / back */
.crumb { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumb a:hover { color: var(--volt-deep); }

/* ---------- reveal animation (progressive enhancement) ---------- */
/* Only hide when JS is active; without JS everything is visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .pic { min-height: 240px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 18px 28px; gap: 16px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .cards { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .metric { grid-template-columns: 110px 1fr 40px; gap: 10px; }
  .metric .mname { font-size: 11px; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .signup { padding: 32px 22px; }
}

/* ===== Soul score - signature standalone callout (sits apart from composite) ===== */
.soul {
  max-width: 760px; margin: 28px auto 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--ink); display: grid; grid-template-columns: auto 1fr;
}
.soul .badge {
  background: var(--volt); color: var(--ink); padding: 26px 30px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.soul .badge .num { font-family: var(--f-display); font-size: 64px; line-height: .85; font-weight: 600; }
.soul .badge .den { font-family: var(--f-mono); font-size: 14px; margin-top: 4px; }
.soul .badge .word { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; }
.soul .says { background: var(--ink); color: var(--paper); padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.soul .says .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--volt); margin-bottom: 8px; }
.soul .says p { font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--paper); }
@media (max-width: 620px){ .soul { grid-template-columns: 1fr; } }

/* Soul mini-tag on cards */
.card .soultag { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--volt); color: var(--ink); font-family: var(--f-mono); font-weight: 600; padding: 5px 10px; border-radius: 999px; font-size: 12px; }

/* First Drive badge */
.firstdrive-note { max-width: 720px; margin: 0 auto 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: 15px; color: var(--ink-soft); }
.firstdrive-note strong { color: var(--rust); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.pill-firstdrive { display:inline-block; background: var(--rust); color: var(--paper); font-family: var(--f-mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }

/* inline article images + captions */
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
.article-body figure figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }
.img-credit { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: center; margin: 8px auto 0; letter-spacing: .04em; }

/* ============================================================
   Compare page (compare.html) - additive, uses existing tokens
   ============================================================ */
.cmp-draft { background: var(--ink); color: var(--paper); }
.cmp-draft .wrap { padding-top: 12px; padding-bottom: 12px; font-family: var(--f-mono); font-size: 13px; color: #d3d6c8; }
.cmp-draft strong { color: var(--rust); }

.cmp-h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 26px; }
.cmp-h1 em { font-style: italic; color: var(--volt-deep); }
.cmp-lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 64ch; margin: 0; }

/* controls */
.cmp-controls { display: flex; flex-wrap: wrap; gap: 26px 34px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cmp-ctl-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-ctl-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.cmp-chip { font-family: var(--f-body); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.cmp-chip:hover { background: var(--paper-2); }
.cmp-chip.active { background: var(--ink); color: var(--volt); }
.cmp-select { font-family: var(--f-body); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.cmp-summary { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* table */
.cmp-tablewrap { margin-top: 14px; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: right; padding: 0 0 14px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.cmp-table thead th.cmp-th-car { text-align: left; }
.cmp-table tbody td { padding: 18px 0 18px 18px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; font-family: var(--f-mono); font-size: 16px; font-weight: 500; white-space: nowrap; }
.cmp-table tbody tr:hover { background: rgba(20,22,15,.025); }
.cmp-car { text-align: left !important; padding-left: 0 !important; white-space: normal !important; }
.cmp-name { display: block; font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cmp-variant { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.cmp-num .v { font-weight: 600; }
.cmp-num .cv { white-space: nowrap; }
.cmp-real { display: block; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--volt-deep); margin-top: 6px; }
.cmp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); border: 1.2px solid var(--ink); vertical-align: middle; margin-right: 3px; }

/* verdict cell */
.cmp-verdict { white-space: normal !important; }
.cmp-verdict-link { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cmp-score { background: var(--ink); color: var(--volt); font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1; padding: 7px 12px; border-radius: 8px; }
.cmp-soul { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--ink); background: var(--volt); padding: 3px 9px; border-radius: 999px; }
.cmp-pill-fd { background: var(--rust); color: var(--paper); font-family: var(--f-mono); font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.cmp-read { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: var(--volt-deep); }
.cmp-untested { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.cmp-untested::before { content: '○ '; }

/* legend / asof */
.cmp-meta { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.cmp-legend, .cmp-asof { font-family: var(--f-mono); font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.cmp-legend b { color: var(--volt-deep); }
.cmp-asof b { color: var(--ink); }

/* FAQ */
.cmp-faq { max-width: 820px; }
.cmp-faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.cmp-faq-item summary { font-family: var(--f-display); font-size: 20px; font-weight: 600; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cmp-faq-item summary::-webkit-details-marker { display: none; }
.cmp-faq-item summary::after { content: '+'; font-family: var(--f-mono); color: var(--volt-deep); font-size: 22px; }
.cmp-faq-item[open] summary::after { content: '−'; }
.cmp-faq-item p { font-size: 16.5px; color: var(--ink-soft); padding: 0 0 20px; max-width: 70ch; }

/* responsive: table becomes cards */
@media (max-width: 760px) {
  .cmp-controls { gap: 18px; }
  .cmp-tablewrap { overflow-x: visible; }
  .cmp-table thead { position: absolute; left: -9999px; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table td { display: block; width: 100%; }
  .cmp-table tr { border: 1px solid var(--ink); border-radius: 14px; margin-bottom: 14px; padding: 4px 18px; background: var(--paper); }
  .cmp-table tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; text-align: right; white-space: normal; }
  .cmp-table tbody td .cv { flex: 0 0 auto; text-align: right; white-space: nowrap; }
  .cmp-table tbody td::before { content: attr(data-label); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; }
  .cmp-table td.cmp-car { flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 2px solid var(--ink); padding-top: 14px; }
  .cmp-table td.cmp-car::before { display: none; }
  .cmp-name { font-size: 22px; }
  .cmp-real { margin-top: 4px; }
  .cmp-table td.cmp-verdict { border-bottom: none; }
  .cmp-verdict-link { flex-direction: row; align-items: center; gap: 10px; }
  .cmp-meta { flex-direction: column; gap: 12px; }
}
.cmp-pill-coming { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper-2); font-family: var(--f-mono); font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.cmp-pill-coming::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); border: 1px solid var(--ink); display: inline-block; }

.cmp-note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* homepage compare promo */
.home-compare { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; border: 1px solid var(--ink); border-radius: 16px; padding: 38px 40px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.home-compare:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-compare h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 12px; }
.home-compare p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 22px; font-size: 16px; }
.home-compare-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.home-compare-chips span { font-family: var(--f-mono); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.home-compare-chips span:first-child { background: var(--ink); color: var(--volt); border-color: var(--ink); }
@media (max-width: 720px){ .home-compare { grid-template-columns: 1fr; padding: 30px 24px; } .home-compare-chips { justify-content: flex-start; } }

.cmp-hint { font-family: var(--f-mono); font-size: 11px; color: var(--muted); align-self: center; }

/* sortable column headers (desktop) */
.cmp-th-sort { cursor: pointer; user-select: none; transition: color .12s; white-space: nowrap; }
.cmp-th-sort:hover { color: var(--ink); }
.cmp-th-sort.active { color: var(--ink); }
/* on desktop the headers do the sorting, so hide the chip row; keep chips for mobile cards */
@media (min-width: 761px){ .cmp-sortgroup { display: none; } }

/* compare: how-to guidance + active-column scan highlight (Pei Leng feedback) */
.cmp-howto { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.65; max-width: 82ch; }
.cmp-howto-tag { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-right: 9px; }
.cmp-table thead th.cmp-col-active { color: var(--ink); }
.cmp-table tbody td.cmp-col-active { background: rgba(199,242,60,.16); }
@media (max-width: 760px){ .cmp-table tbody td.cmp-col-active { background: transparent; } }

/* the short version - answer-first summary above the fold */
.tldr {
  max-width: 760px; margin: 36px auto 0; background: var(--paper-2);
  border: 1px solid var(--line); border-left: 3px solid var(--volt);
  border-radius: 12px; padding: 22px 26px;
}
.tldr .lbl { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tldr p { font-size: 16.5px; line-height: 1.55; }
.tldr .facts { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft); }
.tldr .facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 620px){ .tldr { padding: 18px 20px; } .tldr .facts { font-size: 11.5px; } }
