/* The comparison pages (compare/, made by tools/build-compare-pages.mjs). On top of style.css. */
.cmp-body main { padding-bottom: 40px; }
.cmp-body .wrap { margin-top: 56px; }
.cmp-body .wrap.narrow { max-width: 760px; }

.cmp-hero { text-align: center; max-width: 820px; padding-top: 40px; }
.cmp-hero h1 { font-family: var(--display); font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; margin: 0 0 18px; }
.cmp-vs { color: var(--dimmer); font-weight: 600; font-size: .6em; vertical-align: middle; margin: 0 .2em; }
.cmp-lede { font-size: 18px; color: var(--dim); margin: 0 auto 26px; max-width: 680px; }
.cmp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cmp-prices { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cmp-price { flex: 0 1 280px; text-align: center; padding: 22px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); }
.cmp-price.ours { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--panel-2)), var(--panel-2) 70%); }
.cmp-price span { display: block; font-size: 13px; color: var(--dim); font-weight: 700; }
.cmp-price b { display: block; font-family: var(--display); font-size: 40px; line-height: 1.15; margin: 6px 0 2px; }
.cmp-price small { color: var(--dimmer); font-size: 12.5px; }
.cmp-price-vs { align-self: center; color: var(--dimmer); font-weight: 700; }

.cmp-h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
.cmp-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.cmp-table thead th { font-family: var(--display); font-size: 15px; background: var(--panel); position: sticky; top: 0; }
.cmp-table thead th:nth-child(2) { color: var(--accent); }
.cmp-table tbody th { width: 22%; color: var(--dim); font-weight: 700; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td.win { color: var(--text); background: color-mix(in srgb, var(--good) 6%, transparent); }
.cmp-table td:not(.win) { color: var(--dim); }
.cmp-win { color: var(--good); font-weight: 800; }
.cmp-key { font-size: 13px; color: var(--dimmer); margin: 10px 0 0; }

.cmp-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cmp-why h3, .cmp-fit h3 { font-family: var(--display); font-size: 18px; margin: 0 0 8px; }
.cmp-why p { margin: 0; color: var(--dim); }
.cmp-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cmp-fit ul { margin: 0 0 16px; padding-left: 18px; color: var(--dim); display: grid; gap: 6px; }

.cmp-faq summary { padding: 16px 20px; }
.cmp-sources { font-size: 14px; color: var(--dim); }
.cmp-sources p { margin: 0 0 10px; }
.cmp-sources a { color: var(--accent); }
.cmp-fine { font-size: 12.5px; color: var(--dimmer); }

.cmp-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cmp-hub-card { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.cmp-hub-card:hover { border-color: var(--accent); }
.cmp-hub-card h2 { font-family: var(--display); font-size: 22px; margin: 0; }
.cmp-hub-card p { margin: 0; color: var(--dim); font-size: 14.5px; }
.cmp-hub-prices { display: flex; gap: 12px; margin-top: auto; }
.cmp-hub-prices span { flex: 1; display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
.cmp-hub-prices b { font-family: var(--display); font-size: 20px; }
.cmp-hub-prices small { color: var(--dimmer); font-size: 11.5px; }
.cmp-more { color: var(--accent); font-weight: 700; font-size: 14px; }

.cmp-cta { text-align: center; padding: 48px 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 40px; }
.cmp-cta h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; }
.cmp-cta p { color: var(--dim); margin: 0 0 20px; }

@media (max-width: 640px) {
  .cmp-body .wrap { margin-top: 40px; padding-inline: 16px; }
  .cmp-hero { padding-top: 24px; }
  .cmp-lede { font-size: 16px; }
  .cmp-price-vs { width: 100%; text-align: center; }
  .cmp-price { flex-basis: 100%; }
  .cmp-hub-prices { flex-direction: column; }
}
.cmp-body .site-footer nav a { white-space: nowrap; }
