/* The comparison pages at /vs/<slug> and the roundup of notification blockers, on the site's design system (site.css loads first: tokens, .band,
   .section-head, .panel, .grid, .faq, .closing, .btn, .overline). NotifDetox's column is the kept one:
   ultra. The other product's column is plain paper, never hatched: these pages compare, they don't mock. */

/* ---------- the opening */
.compare-hero { padding: 64px 0 48px; }
.compare-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.04em; margin: 14px 0 20px; max-width: 18em; }
.compare-hero .lead { font-size: 19px; line-height: 1.55; max-width: 38em; }
.compare-hero .lead + .lead { margin-top: 14px; }
.compare-hero .cta-row { margin-top: 28px; }

/* ---------- the short answer: one panel per choice */
.verdict { list-style: none; padding: 0; }
.verdict .panel { border-top: 4px solid var(--rule-strong); }
.verdict .panel.ours { border-top-color: var(--ultra); }
.verdict .panel p { margin-top: 6px; }

/* ---------- the side-by-side table */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.compare-table caption { text-align: left; padding: 16px 18px 0; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.compare-table thead th { border-top: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.compare-table tbody th { width: 24%; font-weight: 600; }
.compare-table td { width: 38%; color: var(--ink-muted); }
.compare-table .ours { background: var(--ultra-soft); color: var(--on-ultra-soft); }
.compare-table thead .ours { color: var(--on-ultra-soft); }

/* ---------- where each one is better */
.sides h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 6px 0 12px; }
.sides ul { padding-left: 1.2em; display: grid; gap: 10px; color: var(--ink-muted); }
.sides li strong { color: var(--ink); }
.sides .panel > p + p { margin-top: 10px; }

/* ---------- long-form text and the checklist of conditions */
.prose { max-width: 44em; display: grid; gap: 14px; font-size: 18px; color: var(--ink-muted); }
.prose strong { color: var(--ink); }
.conditions { max-width: 44em; padding-left: 1.2em; display: grid; gap: 8px; font-size: 18px; margin-top: 4px; }

/* ---------- the date the facts were checked, and links to the other comparisons */
.checked { margin-top: 18px; }
.see-also { margin-top: 18px; }
.see-also .overline { margin-bottom: 4px; }
.see-also ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; }

/* ---------- the roundup: a disclosure line, the apps one by one, a six-way table */
.disclosure { max-width: 44em; margin-bottom: 18px; padding: 10px 14px; border-left: 3px solid var(--rule-strong); background: var(--paper); font-size: 16px; color: var(--ink-muted); }
.verdict h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.verdict h3 a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.verdict .panel.ours h3 a { color: var(--ultra); }
.app-list { display: grid; gap: 12px; max-width: 52em; }
.app { border-left: 4px solid var(--rule-strong); scroll-margin-top: 84px; }
.app.ours { border-left-color: var(--ultra); }
.app h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 6px 0 10px; }
.app > p { font-size: 17px; }
.app dl { display: grid; gap: 10px; margin: 16px 0 0; }
.app dl div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.app dt { font-family: var(--font-mono); font-size: 11px; line-height: 22px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.app dd { margin: 0; font-size: 16px; }
.app .cta-row, .app .more { margin-top: 16px; }
.compare-table.wide { font-size: 15px; }
.compare-table.wide tbody th { width: 16%; }
.compare-table.wide td { width: auto; }

/* ---------- narrow screens: each row becomes a small card, so the row's label never scrolls away. The
   six-way table needs it sooner. */
@media (max-width: 1000px) {
  .table-scroll:has(.wide) { overflow: visible; }
  .compare-table.wide { min-width: 0; }
  .compare-table.wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table.wide tbody, .compare-table.wide tr, .compare-table.wide th, .compare-table.wide td { display: block; width: auto; }
  .compare-table.wide tr { border-top: 1px solid var(--rule); padding: 14px 16px; }
  .compare-table.wide tbody tr:first-child { border-top: 0; }
  .compare-table.wide th, .compare-table.wide td { border-top: 0; padding: 0; }
  .compare-table.wide tbody th { width: auto; margin-bottom: 8px; }
  .compare-table.wide td { padding: 8px 10px; border-radius: 6px; }
  .compare-table.wide td + td { margin-top: 6px; }
  .compare-table.wide td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
}

@media (max-width: 720px) {
  .table-scroll { overflow: visible; }
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table tr { border-top: 1px solid var(--rule); padding: 14px 16px; }
  .compare-table tbody tr:first-child { border-top: 0; }
  .compare-table th, .compare-table td { border-top: 0; padding: 0; }
  .compare-table tbody th { width: auto; margin-bottom: 8px; }
  .compare-table td { padding: 8px 10px; border-radius: 6px; }
  .compare-table td + td { margin-top: 6px; }
  .compare-table td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
}

@media (max-width: 560px) {
  .compare-hero { padding: 40px 0 32px; }
  .app dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
