/* === Comparison Hero (v3) === */

.cmp-hero { padding: 40px 0 72px; }
@media (max-width: 760px) { .cmp-hero { padding: 20px 0 48px; } }

.cmp-wrap { max-width: 860px; }

/* Headline — Bilteorien's own type, plate-yellow highlight */
.cmp-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.cmp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.cmp-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.cmp-title {
  font-size: clamp(27px, 6.2vw, 46px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  margin: 0;
}
.cmp-title .hl {
  background: linear-gradient(180deg, transparent 58%, var(--signal) 58%);
  padding: 0 4px;
}
.cmp-title .hand { font-size: 0.9em; margin-left: 6px; }
@media (max-width: 760px) { .cmp-head { margin-bottom: 26px; } }

/* Split comparison panel */
.cmp-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.cmp-side {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 34px 22px 30px;
  gap: 6px;
  min-height: 260px;
}
.cmp-side--bad  { background: var(--bg-soft); }
.cmp-side--good {
  background:
    radial-gradient(120% 90% at 50% 12%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
    var(--accent-soft);
}

.cmp-side h3 {
  font-size: clamp(16px, 3.4vw, 22px);
  font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cmp-side--good h3 { color: var(--accent-ink); }

/* Dot grid — 43 of 100 fail */
.cmp-dots {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: clamp(3px, 1.1vw, 5px);
  width: clamp(98px, 24vw, 132px);
  margin: 10px 0 6px;
}
.cmp-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line-strong); }
.cmp-dots i.on { background: var(--bad); }

/* App tile stack on the winning side */
.cmp-tiles { position: relative; width: clamp(84px, 20vw, 116px); height: clamp(84px, 20vw, 116px); margin: 8px 0; }
.cmp-tile {
  position: absolute; border-radius: 22%;
  box-shadow: 0 12px 24px -10px rgba(15,30,55,0.45), 0 3px 8px rgba(15,30,55,0.16);
  background: var(--bg-elev);
}
.cmp-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cmp-tile--main {
  width: 78%; height: 78%; left: 11%; top: 8%;
  transform: rotate(-6deg);
  z-index: 2;
  overflow: hidden;
}
.cmp-tile--ghost {
  width: 58%; height: 58%; right: 2%; bottom: 2%;
  transform: rotate(9deg);
  background: color-mix(in oklab, var(--accent) 22%, var(--bg-elev));
  z-index: 1;
}

.cmp-pct {
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; margin-top: 12px;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.cmp-pct--bad { color: var(--bad); }
.cmp-pct--good {
  color: var(--good);
  position: relative; display: inline-block;
}
.cmp-pct--good::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -6px; height: 4px;
  border-radius: 999px;
  background: var(--good);
  opacity: 0.55;
}

.cmp-note {
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.4vw, 12px);
  color: var(--muted);
  margin-top: 16px; line-height: 1.4;
  max-width: 22ch;
}

/* Divider = Norwegian yellow centre-line (opposing directions) */
.cmp-div {
  position: relative; align-self: stretch;
  width: 6px;
  background: repeating-linear-gradient(180deg, var(--signal) 0 16px, transparent 16px 30px);
}
.cmp-vs {
  position: absolute; top: 96px; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  box-shadow: 0 0 0 4px var(--bg-elev), 0 0 0 6px var(--signal), var(--shadow);
  z-index: 3;
}
@media (max-width: 760px) {
  .cmp-side { padding: 26px 12px 24px; min-height: 220px; }
  .cmp-vs { top: 82px; width: 40px; height: 40px; font-size: 13px; }
}

/* Feature cards */
.cmp-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 20px;
}
@media (max-width: 640px) { .cmp-cards { grid-template-columns: 1fr; } }

.cmp-card {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.cmp-card-ico {
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cmp-card-ico--pop {
  background: linear-gradient(160deg, var(--signal), var(--signal-deep));
  color: var(--ink);
  box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--signal) 70%, transparent);
}
.cmp-card-ico--guar {
  background: linear-gradient(160deg, var(--good), color-mix(in oklab, var(--good) 70%, black));
  color: #fff;
  box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--good) 60%, transparent);
}
.cmp-card h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.cmp-card p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.cmp-card .cmp-card-strong { color: var(--ink-2); font-weight: 500; }

/* Social proof — subtle avatar stack */
.cmp-proof {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-top: 30px;
}
.cmp-avatars { display: flex; }
.cmp-avatars image-slot {
  width: 34px; height: 34px; border-radius: 50%;
  margin-left: -9px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg); 
  background: var(--bg-soft);
}
.cmp-avatars image-slot:first-child { margin-left: 0; }
.cmp-avatars image-slot::part(empty) { font-size: 0; padding: 0; gap: 0; }
.cmp-proof-text { font-size: 14px; color: var(--muted); }
.cmp-proof-text strong { color: var(--ink); font-weight: 600; }
.cmp-stars { color: var(--signal); letter-spacing: 1px; margin-right: 6px; }

/* Teorihuset logo mark (nav + footer) */
.bt-logo-mark img { width: 30px; height: 30px; border-radius: 8px; display: block; }
/* no sticky mobile CTA on v3 */
@media (max-width: 760px) { body { padding-bottom: 0 !important; } }

/* CTA */
.cmp-cta-row { display: flex; justify-content: center; margin-top: 22px; }
.cmp-cta {
  padding: 18px 40px; font-size: 17px; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset,
              0 12px 26px -8px color-mix(in oklab, var(--accent) 65%, transparent);
}
@media (max-width: 760px) { .cmp-cta { width: 100%; max-width: 420px; } }

.cmp-subnote {
  text-align: center; margin-top: 14px;
  font-size: 13px; color: var(--muted);
}
.cmp-subnote .check { color: var(--good); font-weight: 700; margin-right: 4px; }
