/* ═══════════════════════════════════════════════════════════ compare ══
   /pricing's table (PlanCompare), after pricing.css, whose tick it shares.
   Its own sheet so pricing.css stays under the length rule (AGENTS.md).
   The picker's plan lights its column, Scout in plain CSS, as the picker
   starts there.                                                           */

/* Not built yet: a tag on the row, grey, never an accent. */
.soon {
  display: inline-block;
  margin-left: .35rem;
  padding: 0 .5rem;
  border-radius: var(--r-sm);
  background: var(--tint);
  color: var(--ink-soft);
  font-size: var(--t-micro);
  font-weight: 600;
  line-height: 1.7;
  vertical-align: .1em;
  white-space: nowrap;
}

.compare { padding-top: var(--bay-lg); }
.compare h2 { font-size: var(--t-h2); }
.cmp-scroll { margin-top: 2rem; overflow-x: auto; }

.cmp { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .94rem; }
.cmp th, .cmp td { padding: .9rem 1.1rem; text-align: left; font-weight: 400; }
.cmp thead tr { border-bottom: 1px solid var(--stroke-hi); }
.cmp thead th { vertical-align: bottom; border-radius: var(--r-md) var(--r-md) 0 0; font-size: 1.2rem; font-weight: 650; }
.cmp thead th span { display: block; font-family: var(--body); font-size: var(--t-small); font-weight: 400; color: var(--ink-soft); }
.cmp tbody tr { border-bottom: 1px solid var(--line); }
.cmp tbody th { width: 46%; padding-left: 0; }
.cmp td { width: 18%; }

.cmp .cmp-q { border-bottom: 0; }
.cmp .cmp-q th { padding: 2rem 0 .6rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.015em; }

.cmp .yes { display: inline-block; vertical-align: .25em; border-color: var(--ink); }
.cmp .no { color: var(--ink-faint); }

.cmp .col-scout,
.pricing:has(#show-free:checked) .cmp .col-free,
.pricing:has(#show-pro:checked) .cmp .col-pro { background: var(--tint); }
.pricing:has(#show-free:checked, #show-pro:checked) .cmp .col-scout { background: none; }

@media (max-width: 40rem) {
  /* The table fits the screen instead of scrolling sideways (WCAG 1.4.10): fixed columns, the
     plans centred, no prices, since the picker carries them. The scroll box goes, so the
     plan names can stick to the top of the page all the way down the rows. */
  .cmp-scroll { overflow: visible; }
  .cmp { min-width: 0; table-layout: fixed; font-size: .875rem; }
  .cmp thead { position: sticky; top: 0; z-index: 1; background: var(--paper); }
  /* A table's own border stays put when its head sticks; a shadow on the cells moves with it. */
  .cmp thead tr { border-bottom: 0; }
  .cmp thead th, .cmp thead td { box-shadow: inset 0 -1px var(--stroke-hi); }
  .cmp th, .cmp td { padding: .6rem .4rem; }
  .cmp thead td, .cmp tbody th { width: 46%; }
  .cmp thead th, .cmp td { width: 18%; text-align: center; }
  .cmp thead th { font-size: 1rem; }
  .cmp thead th span { display: none; }
  .cmp .cmp-q th { padding-top: 1.5rem; font-size: 1.05rem; }
  /* The space before it is gap enough, and a tag that wraps then starts flush. */
  .cmp .soon { margin-left: 0; }
}
