/* ─────────────────────────────────────────────────────────────────────────
 * Comparison-page styles — LIGHT theme, layered on styles.css (NOT page.css).
 *
 * Only loaded by /compare/* pages. These are bottom-funnel conversion pages,
 * so they now match the rich light look of the home + product pages instead
 * of the dark documentation theme. This file is self-contained for the compare
 * markup: it defines the hero (.subhero + head-to-head chips), the TL;DR
 * verdict, the feature/pricing table, the "where each wins" cards, the bundle
 * math strip, the FAQ, the hub grid, and the closing CTA — all on the
 * styles.css :root tokens (--surface / --line / --brand / --grad …).
 *
 * Do NOT link page.css alongside this — it would flip everything back to dark.
 * ─────────────────────────────────────────────────────────────── */

/* ── Head-to-head hero ──────────────────────────────────────────── */
.subhero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(60% 120% at 50% -10%, rgba(0, 128, 128, 0.12), transparent 60%),
    radial-gradient(40% 90% at 85% 0%, rgba(13, 219, 212, 0.10), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.subhero__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.subhero__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.subhero__title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin: 0 0 14px;
}
.subhero__lede {
  font-size: 17px; line-height: 1.6; color: var(--muted);
  max-width: 640px; margin: 0 auto;
}
.subhero__cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Two-brand chips: "◆ BackOffice  vs  Competitor" */
.cmp-vs {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.cmp-vs__brand {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm);
}
.cmp-vs__brand--us { border-color: transparent; background: var(--grad); color: #fff; }
.cmp-vs__brand--us .cmp-vs__mark { background: rgba(255, 255, 255, 0.9); }
.cmp-vs__mark {
  width: 16px; height: 16px; border-radius: 5px; background: var(--grad);
  display: inline-block;
}
.cmp-vs__x {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2, var(--muted));
}

/* ── Section wrapper ────────────────────────────────────────────── */
.cmp-section { padding: 56px 0; }
.cmp-section--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cmp-section__inner { max-width: 980px; margin: 0 auto; }
.cmp-section h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cmp-section__lede {
  font-size: 15px; line-height: 1.65; color: var(--muted);
  margin: 0 0 28px; max-width: 700px;
}

/* ── TL;DR verdict box ──────────────────────────────────────────── */
.cmp-verdict {
  max-width: 900px; margin: -20px auto 0;
  position: relative; z-index: 2;
  padding: 24px 28px; border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.cmp-verdict__label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.cmp-verdict p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0; }
.cmp-verdict strong { font-weight: 700; }

/* ── Comparison table ───────────────────────────────────────────── */
.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.cmp-table th, .cmp-table td {
  padding: 15px 20px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.cmp-table thead th {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted); background: var(--surface-2);
}
.cmp-table thead th.is-us {
  color: var(--brand);
  background: linear-gradient(180deg, rgba(0, 128, 128, 0.12), rgba(0, 128, 128, 0.05));
}
.cmp-table tbody th { font-weight: 600; color: var(--ink); width: 40%; }
.cmp-table td { color: var(--muted); }
.cmp-table col.is-us { background: rgba(0, 128, 128, 0.05); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:hover th, .cmp-table tbody tr:hover td { background: rgba(0, 128, 128, 0.03); }
.cmp-table td.is-us, .cmp-table td.cmp-yes { font-weight: 600; }
.cmp-yes { color: #168f5b; }
.cmp-mid { color: #b0791f; }
.cmp-no  { color: var(--muted-2, #9aa3b2); }

/* ── "Where each wins" cards ────────────────────────────────────── */
.cmp-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 8px;
}
.cmp-card {
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.cmp-card--us { border-color: rgba(0, 128, 128, 0.4); box-shadow: 0 18px 40px -22px rgba(0, 128, 128, 0.5); }
.cmp-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.cmp-card--us h3::before { content: ''; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.cmp-card ul { list-style: none; padding: 0; margin: 0; }
.cmp-card li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 14.5px; line-height: 1.55; color: var(--muted);
}
.cmp-card li:last-child { margin-bottom: 0; }
.cmp-card li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
}
.cmp-card--us li::before { background: var(--grad); }
.cmp-card strong { color: var(--ink); font-weight: 700; }

/* ── Bundle-math strip ──────────────────────────────────────────── */
.cmp-math {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 8px;
}
.cmp-math__cell {
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.cmp-math__cell--total {
  border-color: transparent;
  background: var(--grad); color: #fff;
  box-shadow: 0 16px 36px -18px rgba(0, 128, 128, 0.6);
}
.cmp-math__price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.cmp-math__cell--total .cmp-math__price { color: #fff; }
.cmp-math__label { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cmp-math__cell--total .cmp-math__label { color: rgba(255, 255, 255, 0.9); }

/* ── FAQ list ───────────────────────────────────────────────────── */
.cmp-faq { max-width: 820px; margin: 0 auto; }
.cmp-faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  margin-bottom: 10px; padding: 0 18px; box-shadow: var(--shadow-sm);
}
.cmp-faq summary {
  cursor: pointer; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-faq summary::after { content: '+'; color: var(--brand); font-size: 20px; }
.cmp-faq details[open] summary::after { content: '−'; }
.cmp-faq p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ── Hub grid (compare/index.html) ──────────────────────────────── */
.cmp-hub {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1040px; margin: 0 auto;
}
.cmp-hub__card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  text-decoration: none; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cmp-hub__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ac, var(--brand));
}
.cmp-hub__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.cmp-hub__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cmp-hub__card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.cmp-hub__price { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cmp-hub__card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.cmp-hub__go { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--brand); }

/* ── "Everything else included" chip band ───────────────────────── */
.cmp-all { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp-all a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 999px; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cmp-all a:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 12px 26px -14px rgba(0, 128, 128, .55); }
.cmp-all .e { font-size: 16px; line-height: 1; }
.cmp-all__note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.cmp-all__note strong { color: var(--ink); }

/* ── Closing CTA (light) ────────────────────────────────────────── */
.cta { padding: 32px 0 96px; }
.cta__inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 56px 32px; border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid var(--line);
}
.cta__inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.cta__inner p { color: var(--muted); font-size: 16px; margin: 0 0 24px; }

@media (max-width: 620px) {
  .cmp-vs { flex-wrap: wrap; justify-content: center; }
  .subhero { padding: 40px 0 32px; }
}
