/* Compare pages: competitor tabs, price face-off, capability grid, compare-all matrix.
   Built by scripts/build-compare-pages.js. Shares tokens with flagship.css. */

.cmp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Sub-tabs ---------- */
.cmp-tabs-wrap {
  position: relative;
  margin: 0 auto;
}

.cmp-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.cmp-tabs::-webkit-scrollbar { display: none; }

.cmp-tabs-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 0 10px 0 14px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cmp-tab {
  display: inline-flex;
  flex: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.cmp-tab:hover { background: #fff; }

.cmp-tab[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.cmp-tab img,
.cmp-tab .cmp-tab-glyph {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  object-fit: contain;
}

.cmp-tab .cmp-tab-glyph {
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
}

.cmp-tab[aria-current="page"] img,
.cmp-tab[aria-current="page"] .cmp-tab-glyph { background: #fff; }

.cmp-tabs-section { padding: 0 0 clamp(36px, 5vw, 56px); }

/* Every tab stays in view on desktop: the bar may grow past the page width on
   wide screens, tightens up on laptops, and only wraps where even that won't fit.
   Phones keep the swipe row. */
.cmp-tabs-section > .site-wrap { width: min(1680px, calc(100% - 32px)); }
.cmp-tabs { width: max-content; max-width: 100%; margin-inline: auto; }

@media (max-width: 1659px) {
  .cmp-tabs-label { display: none; }
}

@media (min-width: 761px) and (max-width: 1539px) {
  .cmp-tabs { gap: 4px; }
  .cmp-tab { gap: 7px; padding: 7px 12px 7px 7px; font-size: 13.5px; }
  .cmp-tab img,
  .cmp-tab .cmp-tab-glyph { width: 24px; height: 24px; }
}

/* Too narrow for one row: an even grid, so no tab is left alone on a line. */
@media (min-width: 761px) and (max-width: 1365px) {
  .cmp-tabs { display: grid; grid-template-columns: repeat(6, auto); justify-content: center; overflow-x: visible; border-radius: 30px; }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .cmp-tabs { grid-template-columns: repeat(4, auto); }
}

/* ---------- Logo tiles ---------- */
.cmp-logo {
  display: grid;
  width: var(--cmp-logo, 56px);
  height: var(--cmp-logo, 56px);
  flex: none;
  place-items: center;
  padding: calc(var(--cmp-logo, 56px) * 0.14);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--cmp-logo, 56px) * 0.28);
}

.cmp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cmp-logo-scale { background: var(--ink); border-color: var(--ink); }

/* ---------- Hero face-off ---------- */
.cmp-hero { padding-bottom: clamp(36px, 5vw, 56px); }

.cmp-faceoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  margin: 0 auto 30px;
}

.cmp-faceoff .cmp-logo {
  --cmp-logo: clamp(76px, 10vw, 112px);
  box-shadow: 0 18px 44px rgba(5, 5, 5, 0.1);
}

.cmp-faceoff .cmp-logo:first-child { transform: rotate(-4deg); }
.cmp-faceoff .cmp-logo:last-child { transform: rotate(4deg); }

.cmp-vs {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--coral);
  border-radius: 50%;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmp-hero h1 { max-width: 16ch; }

.cmp-hero-stat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 26px;
  padding: 10px 20px;
  background: var(--lime);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.cmp-hero-stat strong { font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Price face-off ---------- */
.cmp-price {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.cmp-price-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cmp-price-card-scale {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cmp-price-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.cmp-price-head .cmp-logo { --cmp-logo: 48px; }

.cmp-price-head strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cmp-price-head small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.cmp-price-card-scale .cmp-price-head small { color: rgba(255, 255, 255, 0.66); }
.cmp-price-card-scale .cmp-logo { border-color: rgba(255, 255, 255, 0.18); background: #fff; }

.cmp-plan-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.cmp-plan-picker button {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.cmp-plan-picker button:hover { border-color: var(--ink); }

.cmp-plan-picker button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cmp-price-amount {
  margin: auto 0 4px;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.cmp-price-amount small {
  font-size: 0.32em;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.cmp-price-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.cmp-price-card-scale .cmp-price-sub { color: rgba(255, 255, 255, 0.7); }

.cmp-price-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.cmp-price-card-scale .cmp-price-note {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.cmp-price-card-scale .cmp-price-amount { color: var(--coral); }

.cmp-savings {
  display: grid;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--coral);
  border-radius: var(--radius-lg);
}

.cmp-savings[data-direction="more"] { background: var(--lilac); }

.cmp-savings-figure small {
  display: block;
  margin-bottom: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cmp-savings-figure strong {
  display: block;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.cmp-savings-figure span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

.cmp-bars {
  display: grid;
  gap: 14px;
}

.cmp-bar-row {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: minmax(96px, 150px) 1fr auto;
  font-size: 14px;
  font-weight: 600;
}

.cmp-bar-track {
  height: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.cmp-bar-fill {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width var(--motion-marketing) var(--ease-out);
}

.cmp-bar-row-scale .cmp-bar-fill { background: #fff; }

.cmp-bar-value { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Scoreboard ---------- */
.cmp-score {
  display: grid;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  grid-template-columns: 0.9fr 1.1fr;
  margin-top: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cmp-score h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.cmp-score p { margin: 0; color: var(--muted); }

.cmp-score-bars { display: grid; gap: 16px; }

.cmp-score-row small {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.cmp-stack {
  display: flex;
  height: 16px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
  gap: 2px;
}

.cmp-stack i { display: block; height: 100%; }
.cmp-stack .is-yes { background: var(--green); }
.cmp-stack .is-partial { background: #e2c44d; }
.cmp-stack .is-addon { background: #e2a07b; }
.cmp-stack .is-preview { background: var(--explore-lilac-border); }

.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Status badges ---------- */
.cmp-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 640;
  line-height: 1.25;
}

.cmp-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 50%;
}

.cmp-icon svg { width: 14px; height: 14px; }

.is-yes .cmp-icon,
.cmp-icon.is-yes { background: #d8f0dd; color: var(--green); }
.is-partial .cmp-icon,
.cmp-icon.is-partial { background: #f8ecb6; color: #6d5600; }
.is-addon .cmp-icon,
.cmp-icon.is-addon { background: #fbdcc9; color: #8a3f12; }
.is-no .cmp-icon,
.cmp-icon.is-no,
.is-unknown .cmp-icon,
.cmp-icon.is-unknown { background: var(--soft); color: #9a9a94; }
.is-preview .cmp-icon,
.cmp-icon.is-preview { background: #ece5ff; color: var(--explore-lilac-border); }

.cmp-status.is-no,
.cmp-status.is-unknown { color: var(--muted); font-weight: 560; }

.cmp-cell-note {
  display: block;
  margin: 3px 0 0 31px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.35;
}

.cmp-app-link {
  color: inherit;
  text-decoration-color: rgba(5, 5, 5, 0.25);
  text-underline-offset: 3px;
}

.cmp-app-link:hover { text-decoration-color: var(--coral); }

.cmp-app-sep { margin: 0 2px; color: var(--muted); font-weight: 450; }

/* ---------- Grid controls ---------- */
.cmp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.cmp-switch {
  display: inline-flex;
  padding: 5px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.cmp-switch button {
  min-height: 40px;
  padding: 6px 18px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 620;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.cmp-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.cmp-filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.cmp-filter input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

/* ---------- Capability table (one competitor) ---------- */
.cmp-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
}

.cmp-table thead th {
  padding: 16px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  vertical-align: middle;
}

.cmp-th-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cmp-th-brand .cmp-logo { --cmp-logo: 30px; border: 0; }

.cmp-table col.cmp-col-label { width: 38%; }
.cmp-table col.cmp-col-scale { width: 31%; }

.cmp-table tbody th,
.cmp-table tbody td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp-table tbody th {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cmp-table tbody tr:hover > * { background: #fbfbf8; }

.cmp-table tbody tr.cmp-group-row > th {
  padding: 22px 22px 10px;
  background: #fff;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cmp-group-row > th span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cmp-group-row > th span::before {
  width: 10px;
  height: 10px;
  content: "";
  background: var(--tone, var(--coral));
  border-radius: 3px;
}

.cmp-tone-coral { --tone: var(--coral); }
.cmp-tone-lilac { --tone: #9f86ea; }
.cmp-tone-navy { --tone: var(--navy); }
.cmp-tone-lime { --tone: #9cc35a; }
.cmp-tone-peach { --tone: #e9a07a; }
.cmp-tone-mint { --tone: #6fbf8b; }
.cmp-tone-cream { --tone: #d9b85b; }

.cmp-only-missing tr[data-has="yes"] { display: none; }
.cmp-only-missing tr.cmp-group-row[data-empty="true"] { display: none; }

.cmp-table tbody:last-child tr:last-child > * { border-bottom: 0; }

/* ---------- Wins ---------- */
.cmp-wins {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.cmp-win-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cmp-win-card.is-scale { border-color: transparent; background: var(--lilac); }
.cmp-win-card.is-short { background: var(--soft); }

.cmp-win-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 32px);
}

.cmp-win-card h3 .cmp-logo { --cmp-logo: 40px; flex: none; }

.cmp-win-card ul {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.cmp-win-card li {
  display: grid;
  gap: 12px;
  grid-template-columns: 24px 1fr;
  font-size: 16px;
  line-height: 1.45;
}

.cmp-win-card li .cmp-icon { margin-top: 1px; }
.cmp-win-card.is-short .cmp-icon.is-no { background: #f6d9d2; color: #a33a24; }

.cmp-win-card li a {
  color: inherit;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cmp-win-card li a:hover { text-decoration-thickness: 2px; }

.cmp-win-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(5, 5, 5, 0.14);
}

.cmp-win-foot span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.3;
}

.cmp-win-card.is-scale .cmp-win-foot span { color: rgba(5, 5, 5, 0.66); }

.cmp-win-foot b {
  color: var(--ink);
  font-size: 28px;
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* The price leads each card's stats on its own line. */
.cmp-win-foot .cmp-win-price { flex-basis: 100%; }
.cmp-win-foot small { font-size: inherit; }
.cmp-win-foot em { font-style: normal; }
.cmp-win-card.is-short .cmp-win-price b { color: #a33a24; }

.cmp-win-extra {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.cmp-win-extra a {
  color: inherit;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- Closing bottom line ---------- */
.cmp-close {
  display: grid;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  margin-top: 18px;
  padding: clamp(28px, 4.6vw, 56px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fff;
}

.cmp-close .eyebrow { color: rgba(255, 255, 255, 0.72); }
.cmp-close .eyebrow::before { background: var(--lime); }

.cmp-close h3 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.cmp-close h3 span { color: var(--lime); }

.cmp-close-copy p {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.5;
}

.cmp-close-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.cmp-close-cta p {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 640;
  letter-spacing: -0.02em;
}

.cmp-close .button { border-color: var(--lime); background: var(--lime); color: var(--ink); }

/* ---------- Move panel ---------- */
.cmp-move {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  grid-template-columns: 1.15fr 0.85fr;
  padding: clamp(30px, 5vw, 64px);
  background: var(--mint);
  border-radius: var(--radius-lg);
}

.cmp-move h2 {
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
}

.cmp-move p { max-width: 48ch; margin: 0; font-size: 18px; }

.cmp-move-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: move;
}

.cmp-move-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  font-weight: 600;
  counter-increment: move;
}

.cmp-move-steps li::before {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  content: counter(move);
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
}

/* ---------- Competitor cards (hub + other comparisons) ---------- */
.cmp-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cmp-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--motion-ui) var(--ease-out), box-shadow var(--motion-ui) var(--ease-out), border-color var(--motion-ui) ease;
}

.cmp-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.cmp-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmp-card-top .cmp-logo { --cmp-logo: 44px; }

.cmp-card-top strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cmp-card-top small { color: var(--muted); font-size: 13px; }

.cmp-card-save {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

.cmp-card-save b {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.cmp-card-gap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.cmp-card-gap::after { content: "→"; color: var(--ink); font-size: 16px; }

.cmp-card-all {
  justify-content: space-between;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  grid-column: span 2;
}

.cmp-card-all .cmp-card-gap { border-top-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); }
.cmp-card-all .cmp-card-gap::after { color: #fff; }

.cmp-card-all-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmp-card-all-logos .cmp-logo { --cmp-logo: 34px; border: 0; }

.cmp-card-all h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
}

/* ---------- Compare-all leaderboard ---------- */
.cmp-board {
  display: grid;
  gap: 10px;
}

.cmp-board-row {
  display: grid;
  align-items: center;
  gap: 18px;
  grid-template-columns: minmax(220px, 1.1fr) 2fr minmax(150px, auto);
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

a.cmp-board-row:hover { border-color: var(--ink); background: #fbfbf8; }

.cmp-board-row.is-scale { border-color: var(--ink); background: var(--ink); color: #fff; }

.cmp-board-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmp-board-name .cmp-logo { --cmp-logo: 40px; }
.cmp-board-name strong { display: block; font-size: 16px; line-height: 1.15; }
.cmp-board-name small { color: var(--muted); font-size: 13px; }
.is-scale .cmp-board-name small { color: rgba(255, 255, 255, 0.66); }

.cmp-board .cmp-bar-track { height: 14px; background: var(--soft); }
.cmp-board .cmp-bar-fill { background: var(--coral); }
.cmp-board .is-scale .cmp-bar-track { background: rgba(255, 255, 255, 0.12); }
.cmp-board .is-scale .cmp-bar-fill { background: var(--lime); }

.cmp-board-cost { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-board-cost strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.cmp-board-cost small { color: var(--green); font-size: 13px; font-weight: 640; }
.cmp-board-cost small.is-more { color: var(--muted); font-weight: 560; }
.is-scale .cmp-board-cost small { color: var(--lime); }

/* ---------- Compare-all matrix ---------- */
.cmp-matrix-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  -webkit-overflow-scrolling: touch;
}

.cmp-matrix {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
}

.cmp-matrix th,
.cmp-matrix td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

.cmp-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 8px 14px;
  background: #fff;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.cmp-matrix-head {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.cmp-matrix-head .cmp-logo { --cmp-logo: 38px; }
.cmp-matrix-head small { color: var(--muted); font-size: 11px; font-weight: 520; }

.cmp-matrix tbody th,
.cmp-matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  padding-left: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 1px 0 0 var(--line);
}

.cmp-matrix thead th:first-child { z-index: 3; }

/* Wide screens: the grid fits, so let the header row stick under the site header. */
@media (min-width: 1100px) {
  .cmp-matrix-wrap { overflow: clip; }
  .cmp-matrix thead th { top: var(--cmp-sticky-top, 68px); }
}

.cmp-matrix tbody th { font-size: 14px; font-weight: 600; }

.cmp-matrix .cmp-col-scale { background: #fff6f3; }
.cmp-matrix thead .cmp-col-scale { background: #fff6f3; }

.cmp-matrix td .cmp-icon { margin: 0 auto; }

.cmp-matrix tr.cmp-group-row > th {
  padding-top: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cmp-matrix tr.cmp-group-row > td { background: #fff; }
.cmp-matrix tr.cmp-group-row > th { position: static; min-width: 0; box-shadow: none; }
.cmp-matrix tr.cmp-group-row > th > span { position: sticky; left: 18px; }

.cmp-matrix tfoot th,
.cmp-matrix tfoot td {
  padding: 16px 8px;
  border-bottom: 0;
  background: var(--soft);
  font-size: 14px;
  font-weight: 650;
}

.cmp-matrix tfoot th {
  position: sticky;
  left: 0;
  padding-left: 18px;
  text-align: left;
}

.cmp-matrix tfoot small { display: block; color: var(--muted); font-size: 11px; font-weight: 520; }

.cmp-matrix-legend { margin-top: 14px; }

/* ---------- FAQ + notes ---------- */
.cmp-faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.cmp-faq details {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.cmp-faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.cmp-faq details p { margin: 12px 0 0; color: var(--muted); }

.cmp-notes {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cmp-notes p { max-width: 110ch; margin: 0 0 10px; }
.cmp-notes a { color: inherit; }

/* ---------- Section heads ---------- */
.cmp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.cmp-head .section-title { max-width: 18ch; margin-bottom: 0; }
.cmp-head p { max-width: 46ch; margin: 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cmp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-board-row { grid-template-columns: minmax(180px, 1fr) 1.4fr auto; }
}

@media (max-width: 860px) {
  .cmp-price,
  .cmp-wins,
  .cmp-move,
  .cmp-close,
  .cmp-score { grid-template-columns: 1fr; }

  .cmp-savings { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cmp-table,
  .cmp-table thead,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td { display: block; }

  .cmp-table colgroup { display: none; }

  .cmp-table thead { display: none; }

  .cmp-table tbody tr:not(.cmp-group-row) {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: 1fr 1fr;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .cmp-table tbody tr:not(.cmp-group-row) > * {
    padding: 0;
    border: 0;
    background: none;
  }

  .cmp-table tbody tr:not(.cmp-group-row) > th { grid-column: 1 / -1; }

  .cmp-table tbody td::before {
    display: block;
    margin-bottom: 5px;
    content: attr(data-label);
    color: var(--muted);
    font-family: "Geist Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .cmp-table tbody tr.cmp-group-row > th { padding: 18px 16px 6px; }
  .cmp-cell-note { margin-left: 0; }

  .cmp-tabs-label { display: none; }

  .cmp-bar-row { grid-template-columns: 1fr auto; }
  .cmp-bar-row .cmp-bar-track { grid-column: 1 / -1; grid-row: 2; }

  .cmp-board-row { grid-template-columns: 1fr auto; }
  .cmp-board-row .cmp-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .cmp-cards { grid-template-columns: 1fr; }
  .cmp-card-all { grid-column: auto; }
  .cmp-controls { align-items: stretch; flex-direction: column; }
  .cmp-switch { align-self: flex-start; }
  .cmp-faceoff .cmp-logo { --cmp-logo: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-bar-fill,
  .cmp-card { transition: none; }
}

.cmp-nowrap { white-space: nowrap; }

@media (max-width: 760px) {
  .cmp-matrix tbody th,
  .cmp-matrix thead th:first-child,
  .cmp-matrix tfoot th {
    min-width: 132px;
    max-width: 150px;
    padding-left: 12px;
    font-size: 13px;
    line-height: 1.25;
  }
  .cmp-matrix tr.cmp-group-row > th { min-width: 0; max-width: none; }
  .cmp-matrix tr.cmp-group-row > th > span { left: 12px; }
  .cmp-matrix { min-width: 860px; }
  .cmp-matrix th, .cmp-matrix td { padding: 10px 6px; }
}

/* ---------- Build it yourself (/compare/build-it-yourself/) ---------- */
.diy-pile {
  display: grid;
  width: clamp(76px, 10vw, 112px);
  height: clamp(76px, 10vw, 112px);
  flex: none;
  place-content: center;
  background: var(--soft);
  border: 1px dashed #b9b9b2;
  border-radius: clamp(21px, 2.8vw, 31px);
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.diy-pile b {
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.diy-th { display: inline-flex; align-items: baseline; gap: 8px; }
.diy-th small { color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 500; }

.diy-table .cmp-group-row > th { overflow: hidden; }

.diy-subtotal {
  float: right;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.08em;
}

.diy-tool {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.3;
}

.diy-tool strong { font-weight: 650; }

.diy-cost {
  flex: none;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.diy-cost.is-covered { color: var(--muted); font-weight: 560; }

.diy-table .cmp-status { flex-wrap: wrap; min-width: 0; }
.diy-table td:last-child .cmp-cell-note { margin-left: 0; }
.diy-table tr.is-covered td:last-child .cmp-cell-note { color: var(--green); font-weight: 560; }

.diy-total {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.diy-total-side {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius-lg);
}

.diy-total-side.is-scale { border-color: var(--ink); background: var(--ink); color: #fff; }

.diy-total-side small {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diy-total-side small { min-height: 26px; }
.diy-total-side small .cmp-logo { border: 0; }

.diy-total-side strong {
  display: block;
  font-size: clamp(46px, 6.4vw, 84px);
  font-variant-numeric: tabular-nums;
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.diy-total-side.is-diy strong { color: #a33a24; }
.diy-total-side.is-scale strong { color: var(--lime); }

.diy-total-side strong span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.3em;
  letter-spacing: -0.01em;
}

.diy-total-side.is-scale strong span { color: rgba(255, 255, 255, 0.6); }

.diy-total-side p { margin: 14px 0 0; font-size: 16px; font-weight: 560; }
.diy-total-side.is-scale p { color: rgba(255, 255, 255, 0.78); }

.diy-total-keep {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 16px;
  grid-column: 1 / -1;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--coral);
  border-radius: var(--radius-lg);
  text-align: center;
}

.diy-total-keep small {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diy-total-keep strong {
  font-size: clamp(40px, 5.4vw, 68px);
  font-variant-numeric: tabular-nums;
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1;
}

.diy-total-keep span { font-size: 17px; font-weight: 620; }

.diy-fine {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 14px;
}

.diy-fine-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.diy-fine-card h3 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; }
.diy-fine-card > p { margin: 0; color: var(--muted); }
.diy-fine-card > p + p { margin-top: 12px; }

.diy-left-out {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.diy-left-out li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.diy-left-out li .cmp-icon { margin-top: 1px; }
.diy-left-out a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.diy-fine-card > p.diy-both { font-size: 14px; }

.cmp-card-diy {
  justify-content: space-between;
  border-color: var(--coral);
  background: var(--coral);
  grid-column: span 2;
}

.cmp-card-diy:hover { border-color: var(--ink); }

.cmp-card-diy-top small {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cmp-card-diy-top b {
  display: block;
  margin-top: 4px;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cmp-card-diy-top b i { font-size: 0.4em; font-style: normal; letter-spacing: 0; }

.cmp-card-diy h3 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
}

.cmp-card-diy .cmp-card-gap { border-top-color: rgba(5, 5, 5, 0.18); color: var(--ink); }

@media (max-width: 860px) {
  .diy-total,
  .diy-fine { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .diy-table tbody tr:not(.cmp-group-row) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .diy-subtotal { float: none; display: block; margin-top: 4px; }
  .diy-tool { flex-wrap: wrap; gap: 2px 10px; }
}

@media (max-width: 560px) {
  .cmp-card-diy { grid-column: auto; }
}
