/* Compare pages (/compare/*): Aither against another help desk. Builds on styles.css tokens. */
.cmp-page { --accent-soft: #eef3fe; --space: clamp(80px, 9vw, 144px); background: var(--bg); }
.cmp { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 112px) var(--margin) 0; }
.cmp > section + section, .cmp > .cmp-alts + section, .cmp > section + .cmp-fine { margin-top: var(--space); }
.cmp-h2 { font-size: var(--step-h3); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: clamp(24px, 3vw, 40px); text-wrap: balance; }

/* hero */
.cmp-hero { max-width: 980px; margin-bottom: clamp(56px, 7vw, 104px); }
.cmp-crumb { font-size: var(--step-small); color: var(--muted); margin-bottom: 20px; }
.cmp-crumb a { color: var(--muted); text-underline-offset: 0.2em; }
.cmp-hero h1 { font-size: clamp(3rem, 1.2rem + 5vw, 5.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 28px; }
.cmp-lead { font-size: var(--step-lead); line-height: 1.42; color: var(--ink-2); max-width: 48ch; }
.cmp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button--quiet { background: var(--surface); color: var(--ink); }
.cmp-checked { margin-top: 24px; font-size: var(--step-small); color: var(--muted); max-width: 70ch; }
.cmp-checked a, .cmp-fine a { color: inherit; text-underline-offset: 0.2em; }

/* who should pick which */
.cmp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cmp-pick-card { background: var(--surface); border-radius: 24px; padding: clamp(28px, 3.4vw, 48px); }
.cmp-pick-card--us { background: var(--accent); color: #fff; }
.cmp-pick-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 24px; }
.cmp-pick-card ul { display: grid; gap: 16px; }
.cmp-pick-card li { position: relative; padding-left: 30px; line-height: 1.5; }
.cmp-pick-card li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: 0.9; }
.cmp-pick-card:not(.cmp-pick-card--us) li { color: var(--ink-2); }

/* side-by-side table */
.cmp-table-wrap { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 20px 24px; }
.cmp-table thead th { font-weight: 600; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
.cmp-table thead th.cmp-us { color: var(--accent); }
.cmp-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.cmp-table tbody th { font-weight: 600; width: 22%; }
.cmp-table td { color: var(--ink-2); width: 39%; }
.cmp-table .cmp-us, .cmp-table tr.cmp-us > * { background: var(--accent-soft); color: var(--ink); }
.cmp-table--wide td { width: auto; }

/* cost calculator */
.cmp-calc { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; background: var(--surface); border-radius: 28px; padding: clamp(28px, 4vw, 64px); align-items: start; }
.cmp-calc-copy { grid-column: 1 / 6; }
.cmp-calc-copy > p { color: var(--ink-2); max-width: 44ch; }
.cmp-sliders { display: grid; gap: 28px; margin-top: 40px; }
.cmp-range { display: grid; gap: 12px; }
.cmp-range span { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.cmp-range output { font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; --fill: 50%; }
.cmp-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill), #d5dbe5 var(--fill)); }
.cmp-range input::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill), #d5dbe5 var(--fill)); }
.cmp-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.12), 0 2px 6px rgba(12, 18, 34, 0.2); transition: transform var(--t-press) var(--ease-out); }
.cmp-range input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.12), 0 2px 6px rgba(12, 18, 34, 0.2); }
.cmp-range input:active::-webkit-slider-thumb { transform: scale(1.12); }
.cmp-range input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.cmp-bill { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-bill-col { background: #fff; border-radius: 20px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.cmp-bill-name { font-weight: 600; color: var(--muted); }
.cmp-bill-col--us .cmp-bill-name { color: var(--accent); }
.cmp-bill-total { font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cmp-bill-total small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.cmp-bill-lines { display: grid; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--ink-2); }
.cmp-bill-lines li { display: flex; justify-content: space-between; gap: 12px; }
.cmp-bill-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.cmp-verdict { grid-column: 1 / -1; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; padding: 4px 4px 0; }

/* switching */
.cmp-switch { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; align-items: center; }
.cmp-switch-copy { grid-column: 1 / 6; }
.cmp-steps { display: grid; gap: 22px; counter-reset: step; }
.cmp-steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--ink-2); line-height: 1.5; }
.cmp-steps li::before { content: counter(step); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; display: grid; place-items: center; }
.cmp-steps strong { color: var(--ink); font-weight: 600; }
.cmp-video { grid-column: 7 / 13; }
.cmp-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--dark); display: block; box-shadow: var(--shadow-float); }
.cmp-video figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* questions: the shared FAQ block, without its own page margins, shown without the landing page's reveal */
.cmp .faq { padding: 0; }
.js .cmp .faq details { opacity: 1; transform: none; }

.cmp-fine { max-width: 86ch; font-size: var(--step-small); color: var(--muted); line-height: 1.6; padding-bottom: var(--space); }

/* alternatives list */
.cmp-alts { display: grid; gap: 12px; }
.cmp-alt { background: var(--surface); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--gap); row-gap: 20px; }
.cmp-alt--us { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cmp-alt-head { display: flex; align-items: baseline; gap: 14px; }
.cmp-alt-n { font-size: var(--step-small); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp-alt h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.cmp-alt dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cmp-alt dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.cmp-alt dd { color: var(--ink-2); line-height: 1.5; }
.cmp-alt-foot { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); color: var(--muted); }
.cmp-alt-foot a { color: var(--accent); font-weight: 600; text-underline-offset: 0.2em; margin-left: auto; }
.cmp-choose .def-rows { display: grid; gap: 4px; }

/* closing band */
.cmp-cta { background: var(--accent); color: #fff; padding: clamp(56px, 7vw, 104px) var(--margin); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.cmp-cta > div:first-child { max-width: 760px; }
.cmp-cta-title { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 18px; text-wrap: balance; }
.cmp-cta p { max-width: 50ch; font-size: var(--step-lead); line-height: 1.4; }
.cmp-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cmp-cta-link { color: #fff; font-weight: 600; text-underline-offset: 0.25em; }

@media (hover: hover) and (pointer: fine) {
  .button--quiet:hover { background-color: var(--surface-2); }
  .cmp-crumb a:hover { color: var(--ink); }
}

@media (max-width: 1100px) {
  .cmp-calc-copy, .cmp-bill, .cmp-switch-copy, .cmp-video { grid-column: 1 / -1; }
  .cmp-alt { grid-template-columns: 1fr; }
  .cmp-alt-foot { grid-column: 1; }
}
@media (max-width: 860px) {
  .cmp-pick { grid-template-columns: 1fr; }
  .cmp-alt dl { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .cmp-bill { grid-template-columns: 1fr; }
  /* The two-column table becomes one card per topic. */
  .cmp-table:not(.cmp-table--wide) thead { display: none; }
  .cmp-table:not(.cmp-table--wide), .cmp-table:not(.cmp-table--wide) tbody, .cmp-table:not(.cmp-table--wide) tr, .cmp-table:not(.cmp-table--wide) th, .cmp-table:not(.cmp-table--wide) td { display: block; width: auto; }
  .cmp-table:not(.cmp-table--wide) tbody th { padding: 18px 18px 10px; }
  .cmp-table:not(.cmp-table--wide) td { padding: 12px 18px; border-top: 0 !important; }
  .cmp-table:not(.cmp-table--wide) td:last-child { padding-bottom: 18px; }
  .cmp-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .cmp-table td.cmp-us[data-label]::before { color: var(--accent); }
  .cmp-table--wide { min-width: 600px; }
  .cmp-table-wrap:has(.cmp-table--wide) { overflow-x: auto; }
}
