/* ============================================================
   COMPARE PAGES — page-specific styles
   Inherits tokens (--cyan, --purple, --ink, --paper, etc.) and
   global components (.nav, .btn, .foot) from /styles.css.
============================================================ */

.cmp-page{ background: var(--bg); }

/* ============ HERO ============ */
.cmp-hero{
  position: relative;
  padding: 92px 0 64px;
  overflow: hidden;
}
.cmp-hero::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: .45;
  pointer-events: none;
}
.cmp-hero-inner{
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 0;
  text-align: center;
}
.cmp-eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.cmp-eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,161,214,.15);
}
.cmp-h1{
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.cmp-h1 em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 0 .04em;
}
.cmp-lede{
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.cmp-hero-cta{
  display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 48px;
}
.cmp-meta{
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.cmp-meta b{ color: var(--ink); font-weight: 600; }
.cmp-meta-dot{ width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* "vs." mark */
.cmp-vs-card{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20,20,40,.04), 0 16px 48px -28px rgba(20,20,40,.25);
}
.cmp-vs-side{
  padding: 22px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.cmp-vs-side.us{ background: linear-gradient(180deg, #FAFBFE 0%, var(--paper) 100%); }
.cmp-vs-logo{
  height: 38px;
  max-width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-vs-logo img{
  height: auto;
  max-height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
.cmp-vs-name{
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.cmp-vs-tag{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cmp-vs-side.us .cmp-vs-tag{ color: var(--cyan); }
.cmp-vs-pipe{
  position: relative;
  width: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.cmp-vs-pipe span{
  display: inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}

/* ============ TL;DR VERDICT ============ */
.cmp-verdict{
  padding: 8px 0 56px;
}
.cmp-verdict-inner{
  max-width: 940px;
  margin: 0 auto;
  padding: 0 32px;
}
.cmp-verdict-card{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 1px 0 rgba(20,20,40,.04), 0 22px 56px -32px rgba(20,20,40,.2);
}
.cmp-verdict-card::before{
  content:""; position:absolute; left:0; top:24px; bottom:24px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand-grad);
}
.cmp-verdict-lbl{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.cmp-verdict-lbl .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(102,87,204,.15);
}
.cmp-verdict-h{
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.cmp-verdict-h em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
}
.cmp-verdict-body{
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 70ch;
  text-wrap: pretty;
}

/* ============ AT-A-GLANCE TABLE ============ */
.cmp-glance{
  padding: 48px 0 24px;
}
.cmp-glance-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.cmp-section-h{
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.05;
}
.cmp-section-h em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cmp-section-sub{
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

.cmp-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20,20,40,.04);
}
.cmp-table thead th{
  background: linear-gradient(180deg, #FAFBFE 0%, var(--paper) 100%);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}
.cmp-table thead th.us{ color: var(--cyan); }
.cmp-table thead th .h{
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: 4px;
  text-transform: none;
}
.cmp-table thead th.us .h{ color: var(--ink); }
.cmp-table tbody td{
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.cmp-table tbody tr:first-child td{ border-top: none; }
.cmp-table .row-h{
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  width: 22%;
  white-space: nowrap;
}
.cmp-table .cell-us{
  background: linear-gradient(180deg, rgba(0,161,214,.04), rgba(102,87,204,.04));
  border-left: 1px solid var(--line);
}
.cmp-table .ico{
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  margin-right: 8px; flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  vertical-align: -3px;
}
.cmp-table .ico-yes{ background: rgba(0,161,214,.12); color: var(--cyan); }
.cmp-table .ico-no{ background: rgba(111,110,131,.12); color: var(--muted); }
.cmp-table .ico-partial{ background: rgba(102,87,204,.12); color: var(--purple); }

@media (max-width: 760px){
  .cmp-table thead{ display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table td{ display: block; width: 100%; }
  .cmp-table tr{
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .cmp-table tbody tr:first-child{ border-top: none; }
  .cmp-table td{
    border: none;
    padding: 6px 18px;
    background: transparent;
  }
  .cmp-table .row-h{
    width: 100%;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    padding-bottom: 2px;
  }
  .cmp-table .cell-us::before,
  .cmp-table td.cell-them::before{
    content: attr(data-h);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .cmp-table .cell-us::before{ color: var(--cyan); }
}

/* ============ BODY (TOC + PROSE) ============ */
.cmp-body{
  padding: 56px 0 88px;
}
.cmp-body-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.cmp-toc{
  position: sticky;
  top: 96px;
  font-size: 13.5px;
}
.cmp-toc-h{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.cmp-toc ul{ list-style: none; padding: 0; margin: 0; }
.cmp-toc li + li{ margin-top: 8px; }
.cmp-toc a{
  color: var(--ink-2);
  border-left: 2px solid transparent;
  padding-left: 12px;
  display: block;
  line-height: 1.4;
  transition: color .15s, border-color .15s;
}
.cmp-toc a:hover{ color: var(--ink); }
.cmp-toc a.is-active{
  color: var(--ink);
  border-left-color: var(--cyan);
  font-weight: 500;
}
@media (max-width: 980px){
  .cmp-body-inner{ grid-template-columns: 1fr; gap: 32px; }
  .cmp-toc{ position: static; }
}

.cmp-prose{
  max-width: 740px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
}
.cmp-prose h2{
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 56px 0 18px;
  line-height: 1.15;
  display: flex; gap: 16px; align-items: baseline;
}
.cmp-prose h2:first-child{ margin-top: 0; }
.cmp-prose h2 .num{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.cmp-prose h3{
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 32px 0 10px;
}
.cmp-prose p{ margin: 0 0 16px; max-width: 70ch; text-wrap: pretty; }
.cmp-prose p strong, .cmp-prose li strong{ color: var(--ink); font-weight: 600; }
.cmp-prose ul{
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.cmp-prose ul li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.6;
  max-width: 70ch;
}
.cmp-prose ul li::before{
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
}
.cmp-prose a{ color: var(--purple); border-bottom: 1px solid currentColor; }
.cmp-prose a:hover{ color: var(--cyan); }
.cmp-prose .callout{
  margin: 22px 0;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(0,161,214,.04), rgba(102,87,204,.04));
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cmp-prose .callout-lbl{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-right: 10px;
  font-weight: 500;
}

/* in-prose feature cards */
.cmp-feat-pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 26px;
}
@media (max-width: 720px){ .cmp-feat-pair{ grid-template-columns: 1fr; } }
.cmp-feat{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cmp-feat.us{
  background: linear-gradient(180deg, rgba(0,161,214,.05), var(--paper));
  border-color: rgba(0,161,214,.2);
}
.cmp-feat-h{
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cmp-feat.us .cmp-feat-h{ color: var(--cyan); }
.cmp-feat-h .dot{
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-2);
}
.cmp-feat.us .cmp-feat-h .dot{ background: var(--cyan); }
.cmp-feat-name{
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}
.cmp-feat p{ margin: 0; }

/* ============ STAT STRIP ============ */
.cmp-stats{
  padding: 56px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cmp-stats-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px){
  .cmp-stats{ padding: 44px 0; }
  .cmp-stats-inner{ padding: 0 24px; gap: 28px; }
}
@media (max-width: 760px){
  .cmp-stats-inner{ grid-template-columns: 1fr; gap: 24px; }
}
.cmp-stat{
  text-align: left;
}
.cmp-stat-n{
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  font-feature-settings: "ss01";
  /* Allow italic-serif overhang on emphasized numerals to render without clipping */
  overflow: visible;
}
.cmp-stat-n em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  /* Solid brand color — gradient text-clip + italic trailing glyphs (esp. "7") clips
     in Chrome regardless of padding/bg-size workarounds. Solid purple keeps the
     brand-aligned editorial accent without rendering quirks. */
  color: var(--purple);
  display: inline-block;
  padding-right: 0.04em;
}
.cmp-stat-lbl{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 32ch;
  margin: 0;
}
.cmp-stat-lbl b{ color: var(--ink); font-weight: 600; }

/* ============ FINAL CTA (DARK) ============ */
.cmp-cta-dark{
  padding: 96px 0;
  background: #2A2840;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cmp-cta-dark::before{
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(0,161,214,.18), transparent 70%),
    radial-gradient(ellipse 55% 50% at 80% 70%, rgba(102,87,204,.22), transparent 70%);
  pointer-events: none;
}
.cmp-cta-inner{
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.cmp-cta-eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 24px;
}
.cmp-cta-eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-light);
  box-shadow: 0 0 0 4px rgba(51,196,229,.18);
}
.cmp-cta-h{
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  font-weight: 500;
  margin: 0 auto 18px;
  max-width: 18ch;
  color: #fff;
  text-wrap: balance;
}
.cmp-cta-h em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cmp-cta-sub{
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,.7);
  margin: 0 auto 36px;
  max-width: 56ch;
  line-height: 1.5;
}
.cmp-cta-row{
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.cmp-cta-row .btn-primary{
  background: #fff; color: var(--ink); border-color: #fff;
}
.cmp-cta-row .btn-primary:hover{ background: var(--cyan-light); border-color: var(--cyan-light); color: var(--ink); }
.cmp-cta-row .btn-ghost{
  background: transparent; color: #fff; border-color: rgba(255,255,255,.25);
}
.cmp-cta-row .btn-ghost:hover{ background: rgba(255,255,255,.08); }

/* ============ COMPARE OTHERS GRID ============ */
.cmp-others{
  padding: 80px 0;
}
.cmp-others-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.cmp-others-head{
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cmp-others-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){ .cmp-others-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px){ .cmp-others-grid{ grid-template-columns: 1fr; } }
.cmp-other-card{
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cmp-other-card:hover{
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 8px 24px -16px rgba(20,20,40,.18);
}
.cmp-other-lbl{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmp-other-name{
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.cmp-other-name em{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
}
.cmp-other-arrow{
  margin-top: auto;
  font-size: 13px;
  color: var(--purple);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ============ MOBILE HERO TWEAKS ============ */
@media (max-width: 720px){
  .cmp-hero{ padding: 64px 0 40px; }
  .cmp-verdict-card{ padding: 26px 24px; }
  .cmp-prose h2{ flex-direction: column; gap: 4px; }
  .cmp-vs-side{ padding: 18px 14px; }
  .cmp-vs-pipe{ width: 48px; }
  .cmp-vs-pipe span{ font-size: 22px; }
  .cmp-vs-logo{ height: 30px; }
  .cmp-vs-logo img{ max-height: 28px; }
  .cmp-vs-name{ font-size: 14px; }
}
@media (max-width: 480px){
  .cmp-vs-card{
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .cmp-vs-side{ padding: 18px 22px; }
  .cmp-vs-pipe{
    width: 100%;
    height: 32px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .cmp-vs-logo{ height: 36px; }
  .cmp-vs-logo img{ max-height: 34px; }
  .cmp-vs-name{ font-size: 15px; }
}
