/* OnCatch comparison page — feature matrix + competitor cards.
   Reuses the OnCatch design tokens from oncatch.css. */

/* Hero stats — three big numbers right-column under the lede */
.cmp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.cmp-hero-stat-num {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cmp-hero-stat-plus {
  font-size: 32px;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
}
.cmp-hero-stat-label {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Competitor wordmark strip — visual proof we did the homework */
.cmp-wordmarks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}
.cmp-wordmarks-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmp-wordmarks-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
}
.cmp-wordmark {
  color: var(--ink);
  transition: color 0.15s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.cmp-wordmark:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.cmp-wordmarks-sep {
  color: var(--muted-2);
  font-style: normal;
  font-size: 18px;
}

@media (max-width: 720px) {
  .cmp-hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .cmp-hero-stat-num { font-size: 42px; }
  .cmp-wordmarks-row { font-size: 18px; gap: 10px; }
}


/* Honesty band — quick legend at top */
.cmp-honesty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.5;
}
.cmp-honesty-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cmp-honesty-key {
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  min-width: 50px;
  text-align: center;
}

/* Section spacing inside a single section */
.cmp-section { margin-top: 64px; }
.cmp-section:first-of-type { margin-top: 32px; }
.cmp-section-title {
  margin-bottom: 8px;
  font-family: var(--font-serif);
}
.cmp-section-note {
  margin: 0 0 24px 0;
  max-width: 70ch;
  font-size: 15px;
  color: var(--muted);
}

/* The matrix table */
.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.cmp-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: 14px;
}
.cmp-table th, .cmp-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.cmp-table thead th {
  background: var(--paper-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 2px solid var(--rule);
}
.cmp-table .cmp-feature-col {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 240px;
  max-width: 320px;
}
.cmp-table tbody tr:hover { background: var(--paper-2); }

/* OnCatch column highlight */
.cmp-table .cmp-us {
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--accent-deep);
}
.cmp-table thead .cmp-us {
  background: var(--accent);
  color: var(--paper);
}

/* Cell value styles */
.cmp-yes { color: var(--ok); font-weight: 700; font-size: 16px; }
.cmp-no { color: var(--muted-2); font-weight: 400; }
.cmp-paid {
  color: var(--warn);
  font-weight: 600;
  font-size: 13px;
  cursor: help;
  border-bottom: 1px dotted var(--warn);
}
.cmp-paid-top {
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 13px;
  cursor: help;
  border-bottom: 1px dotted var(--accent-deep);
}
.cmp-soon {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: help;
}
.cmp-future {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: help;
}
.cmp-yes-plus {
  color: var(--ok);
  font-weight: 600;
  font-size: 12px;
}
.cmp-text {
  color: var(--ink-2);
  font-size: 13px;
}

/* Honest read grid */
.cmp-honest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.cmp-honest-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.cmp-honest-cell ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
}
.cmp-honest-cell li { margin-bottom: 10px; color: var(--ink-2); }
.cmp-honest-cell li b { color: var(--ink); }
.cmp-honest-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.cmp-honest-win {
  border-left: 3px solid var(--ok);
}
.cmp-honest-win .cmp-honest-label { color: var(--ok); }
.cmp-honest-match {
  border-left: 3px solid var(--accent);
}
.cmp-honest-match .cmp-honest-label { color: var(--accent); }
.cmp-honest-behind {
  border-left: 3px solid var(--warn);
}
.cmp-honest-behind .cmp-honest-label { color: var(--warn); }

/* Per-competitor cards */
.cmp-card-grid-outer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.cmp-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.cmp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.cmp-card-url {
  font-size: 12px;
}
.cmp-card-line {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px 0;
  max-width: 80ch;
  font-style: italic;
}
.cmp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.cmp-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cmp-card-grid ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cmp-card-grid ul li { margin-bottom: 6px; }
.cmp-card-grid p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Bottom-line grid */
.cmp-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.cmp-bottom-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px;
}
.cmp-bottom-num {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cmp-bottom-cell h3 {
  margin: 0 0 12px 0;
  font-family: var(--font-serif);
}
.cmp-bottom-cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================================
   Wave 2 additions (2026-05-24) — matrix v2 + adjacent + legend
   ============================================================ */

/* Tier-specific OnCatch cells (Solo $19, Team $49, SDLC) — distinct from
   competitor $ / $$ markers. Reads as "available at this tier" not "paid
   gate." */
.cmp-tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, var(--rule));
  white-space: nowrap;
}

.cmp-by-design,
.cmp-progress,
.cmp-partial,
.cmp-unknown,
.cmp-na {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cmp-by-design { color: var(--muted-2); font-style: italic; }
.cmp-progress { color: var(--warn); }

/* Section sub-nav at the top of the matrix — lets buyers jump straight
   to the category they care about */
.cmp-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  margin: 24px 0 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cmp-section-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
}
.cmp-section-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Cell-legend band rendered ABOVE the matrix so buyers know how to read it */
.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 13px;
}
.cmp-legend-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.cmp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cmp-legend-sym {
  min-width: 64px;
  text-align: center;
}
.cmp-legend-text { color: var(--ink-2); }

/* Adjacent competitors — different category, lighter treatment than the
   main per-competitor cards above */
.cmp-adjacent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cmp-adjacent-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cmp-adjacent-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmp-adjacent-line {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.cmp-adjacent-pick {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.cmp-adjacent-pick b { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .cmp-adjacent-grid { grid-template-columns: 1fr; }
  .cmp-section-nav { gap: 10px 16px; font-size: 11px; }
}
@media (max-width: 720px) {
  .cmp-table { font-size: 13px; }
  .cmp-card { padding: 24px; }
  .cmp-card-head { flex-direction: column; gap: 8px; }
  .cmp-tier { font-size: 10.5px; padding: 2px 6px; }
  .cmp-legend { padding: 16px; gap: 12px 20px; }
}
