/* ============================================================
   compare.css — Comparison pages (vs Tally / SAP / TMS / Excel)
   Uses design tokens from global.css
   ============================================================ */

.cmp-hero {
  background: var(--c-white);
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.cmp-hero .hero-blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  filter: blur(80px); background: rgba(234,88,12,0.10); top: -120px; right: 8%;
  pointer-events: none; z-index: 0;
}

/* VS badge */
.vs-row { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.vs-chip {
  font-family: var(--ff-display); font-weight: 800; font-size: 1rem;
  padding: 0.5rem 1rem; border-radius: 10px; border: 1px solid var(--c-slate-200);
  background: var(--c-slate-50); color: var(--c-slate-800);
}
.vs-chip.lc { background: var(--c-slate-900); color: #fff; border-color: var(--c-slate-900); }
.vs-mark { font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 700; color: var(--c-slate-400); letter-spacing: 0.15em; }

/* Matrix */
.cmp-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-slate-200);
  border-radius: 1rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-sm);
  background: var(--c-white);
}
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.9375rem; }
table.cmp th, table.cmp td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--c-slate-100); text-align: center; }
table.cmp thead th {
  position: sticky; top: 0; background: var(--c-slate-900); color: #fff;
  font-family: var(--ff-display); font-weight: 800; font-size: 0.9375rem;
}
table.cmp thead th.cap { text-align: left; background: var(--c-slate-950); }
table.cmp thead th.lc { background: var(--c-orange-700); }
table.cmp td.cap { text-align: left; font-weight: 600; color: var(--c-slate-800); }
table.cmp td.lc { background: rgba(234,88,12,0.05); }
table.cmp tbody tr:hover td { background: var(--c-slate-50); }
table.cmp tbody tr:hover td.lc { background: rgba(234,88,12,0.09); }
table.cmp td.val-yes { color: #16a34a; font-weight: 800; font-size: 1.05rem; }
table.cmp td.val-warn { color: #b45309; font-weight: 700; font-size: 0.8125rem; }
table.cmp td.val-no { color: var(--c-slate-300); font-weight: 800; font-size: 1.05rem; }
table.cmp tbody tr:last-child td { border-bottom: none; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: 0.75rem; color: var(--c-slate-500); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cmp-legend b { font-size: 0.95rem; }

/* Wins / fits split */
.cmp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.cmp-panel { border-radius: 1rem; padding: 1.75rem; border: 1px solid var(--c-slate-200); }
.cmp-panel.win { background: rgba(234,88,12,0.04); border-color: var(--accent-line, #f9d9c4); }
.cmp-panel.fit { background: var(--c-slate-50); }
.cmp-panel h3 { font-family: var(--ff-display); font-weight: 800; font-size: 1.125rem; display: flex; align-items: center; gap: 0.5rem; }
.cmp-panel.win h3 { color: var(--c-orange-700); }
.cmp-panel.fit h3 { color: var(--c-slate-700); }
.cmp-panel ul { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.cmp-panel li { font-size: 0.9rem; color: var(--c-slate-700); line-height: 1.5; padding-left: 1.5rem; position: relative; }
.cmp-panel.win li::before { content: "✓"; position: absolute; left: 0; color: var(--c-orange-600); font-weight: 800; }
.cmp-panel.fit li::before { content: "•"; position: absolute; left: 0.3rem; color: var(--c-slate-400); font-weight: 800; }

/* Callout */
.cmp-callout {
  background: var(--c-white); border: 1px solid var(--c-slate-200);
  border-left: 3px solid var(--c-orange-600); border-radius: 0 1rem 1rem 0;
  padding: 1.75rem 2rem; box-shadow: var(--shadow-sm); margin-top: 2.5rem;
}
.cmp-callout h3 { font-family: var(--ff-display); font-weight: 800; font-size: 1.125rem; color: var(--c-slate-900); }
.cmp-callout p { font-size: 0.9375rem; color: var(--c-slate-600); margin-top: 0.6rem; line-height: 1.7; }

/* Other comparisons */
.cmp-others { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.cmp-others a {
  font-size: 0.875rem; font-weight: 600; color: var(--c-slate-700);
  background: var(--c-white); border: 1px solid var(--c-slate-200); border-radius: 999px;
  padding: 0.5rem 1rem; transition: all 0.2s;
}
.cmp-others a:hover { border-color: var(--c-slate-400); color: var(--c-slate-900); }

@media (max-width: 720px) { .cmp-split { grid-template-columns: 1fr; } }
