/* The comparison page (compare/) shares styles.css: tokens, header, footer,
   buttons, the hero grid, .cells, .montage tiles, the dark card and the FAQ
   list. This sheet adds the side-by-side table and the cost ledger. Dark
   only, like the rest of the site. */

/* ---------- hero ---------- */
.cmp-hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.cmp-hero .hero-head { margin-bottom: 0; }
.cmp-hero .hero-head h1 { max-width: 15ch; }
.cmp-hero .eyebrow { margin-bottom: 18px; }

/* ---------- promises ---------- */
.cmp-promises { padding: 0 0 var(--section); }
.cells--promise li { min-height: 0; align-content: start; justify-items: start; gap: 12px; padding: 28px 26px 30px; text-align: left; }
.cells--promise h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cells--promise p { max-width: 34ch; font-size: 1rem; line-height: 1.5; color: var(--text-2); }

/* ---------- the table ---------- */
.cmp-table-section { padding: var(--section) 0; border-top: 1px solid var(--edge-soft); }
.cmp-table-wrap { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; background: var(--bg); }
.cmp { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.cmp col.cmp-col-criterion { width: 15%; }
.cmp col.cmp-col-us { width: 21%; }
.cmp th, .cmp td { padding: 18px 18px; border-bottom: 1px solid var(--edge-soft); vertical-align: top; text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
.cmp thead th { padding-block: 20px; border-bottom: 1px solid var(--edge); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.cmp thead .cmp-sub { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.cmp tbody th { font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.cmp td { color: var(--text-2); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
/* Starkomand's column sits on the lighter panel with hairlines either side,
   so the eye can run down it without reading the row labels. */
.cmp .col-us { background: var(--panel); color: var(--on-panel); box-shadow: inset 1px 0 0 var(--panel-edge), inset -1px 0 0 var(--panel-edge); }
.cmp td.col-us { color: var(--on-panel); }
.cmp-brand { display: inline-flex; align-items: center; gap: 8px; }
.cmp-brand img { width: 18px; height: 18px; }
/* The mark is absolutely placed, not a grid column, so inline keys and links
   inside the cell stay in the sentence's flow. */
.yes, .no { position: relative; display: block; padding-left: 27px; }
.yes::before, .no::before { content: ''; position: absolute; left: 0; top: 0.22em; width: 17px; height: 17px; border-radius: 999px; }
.yes::before { background: var(--done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.no::before { background: #3a2224 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 5.2l5.6 5.6M10.8 5.2l-5.6 5.6' fill='none' stroke='%23ff7b72' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.na { color: var(--muted); }
.cell-note { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--muted); }
.cmp td.col-us .cell-note { color: var(--on-panel-2); }
.cmp-foot { margin-top: 18px; max-width: 78ch; }
.cmp-fair { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 62ch; font-size: var(--t-lede); line-height: 1.45; color: var(--text-2); }
.cmp-fair strong { color: var(--text); font-weight: 650; }

/* A rival's name in the header row leads to its own page. The line under the
   table repeats those links, because the header row is hidden on phones. */
.cmp thead th a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--edge); text-underline-offset: 0.2em; }
.cmp thead th a:hover { text-decoration-color: var(--text); }
.cmp-versus { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 18px; font-size: var(--t-small); font-weight: 600; letter-spacing: -0.01em; }
.cmp-versus > span:first-child { margin-right: 4px; color: var(--muted); }
.cmp-versus a { color: var(--text); text-decoration: none; opacity: 0.85; }
.cmp-versus a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.2em; }
.cmp-versus-dot { color: var(--muted); }

/* Below 900px the five columns stack: every row becomes a card headed by its
   criterion, and each cell names its product in a left gutter. */
@media (max-width: 899.98px) {
  .cmp, .cmp thead, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp colgroup { display: none; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .cmp tbody tr { padding: 18px 0 10px; border-bottom: 1px solid var(--edge); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { padding: 0 18px 10px; border: 0; font-size: 1.0625rem; }
  .cmp td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 12px; padding: 8px 18px; border: 0; }
  .cmp td::before { content: attr(data-col); padding-top: 1px; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; color: var(--muted); }
  .cmp td.col-us { margin: 0 8px 6px; padding: 12px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--panel-edge); }
  .cmp td.col-us::before { color: var(--on-panel); }
}
@media (max-width: 420px) {
  .cmp td { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* ---------- hosted agents: the ledger inside the dark card ---------- */
.cmp-hosted { padding: 0 0 var(--section); }
/* A real border, not an inset shadow: the columns paint over the box, so a
   shadow would only show in the clipped corners. */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--panel-edge); border-radius: 16px; overflow: hidden; background: var(--panel-edge); }
.ledger-col { display: grid; align-content: start; gap: 14px; padding: 22px 24px; background: var(--panel-2); }
.ledger-col--us { background: color-mix(in srgb, var(--done) 7%, var(--panel-2)); }
.ledger-head { font-size: var(--t-small); font-weight: 600; color: var(--on-panel-2); }
.ledger-col--us .ledger-head { color: var(--done); }
.ledger dl { margin: 0; display: grid; gap: 12px; }
.ledger dt { font-size: 0.8125rem; color: var(--on-panel-2); }
.ledger dd { margin: 2px 0 0; font-weight: 600; letter-spacing: -0.015em; color: var(--on-panel); }
.ledger dd s { color: var(--on-panel-2); font-weight: 500; }
@media (max-width: 520px) { .ledger { grid-template-columns: minmax(0, 1fr); } }

/* ---------- more than a grid, everything, switching ---------- */
.cmp-more { padding: var(--section) 0; border-top: 1px solid var(--edge-soft); }
.cmp-more .montage { margin-top: clamp(2rem, 4vw, 3rem); }
.cmp-everything { padding: 0 0 var(--section); }
.cells--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells--four li { min-height: 170px; }
.cells--four h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
@media (max-width: 899.98px) { .cells--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cells--four { grid-template-columns: minmax(0, 1fr); } }
.cmp-switch { padding: var(--section) 0; border-top: 1px solid var(--edge-soft); }
.cmp-switch .faq-list { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--edge); }

/* ---------- closing ---------- */
.cmp-close { padding: var(--section) 0; border-top: 1px solid var(--edge-soft); text-align: center; }
.cmp-close .wrap { display: grid; justify-items: center; }
.cmp-close h2 { max-width: 16ch; }
.cmp-close .section-line { text-align: center; }
.cmp-close .hero-cta { margin-top: 28px; }

/* ---------- one rival at a time (compare/<slug>/) ---------- */
/* Two product columns share the width the hub spreads over five; the rows
   stack on phones under the same rules as the hub's. */
.cmp-hero .eyebrow a { color: inherit; text-decoration: none; }
.cmp-hero .eyebrow a:hover { color: var(--text); }
.cmp--two col.cmp-col-criterion { width: 22%; }
.cmp--two col.cmp-col-us { width: 39%; }
.cmp-same { margin-top: 18px; max-width: 62ch; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.cmp-same strong { color: var(--text); font-weight: 650; }
.cmp-pick { padding: 0 0 var(--section); }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; background: var(--edge); }
.pick-col { display: grid; align-content: start; gap: 12px; padding: 28px 26px 30px; background: var(--bg); }
.pick-col--us { background: var(--panel); }
.pick-head { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.pick-col--us .pick-head { color: var(--on-panel); }
.pick-col p:not(.pick-head) { max-width: 40ch; font-size: var(--t-lede); line-height: 1.45; color: var(--text-2); }
.pick-col--us p:not(.pick-head) { color: var(--on-panel-2); }
@media (max-width: 720px) { .pick { grid-template-columns: minmax(0, 1fr); } }
