/* ===================================================================
   COMPARISON PAGES — Shared Styles
   Extends the channel-page.css pattern for head-to-head competitor
   comparison pages. Uses the same design tokens.
   =================================================================== */

/* ─── Inherit Channel-Page Base ────────────────────────────────────── */
/* Hero, buttons, section, footer classes are imported from channel-page.css */

/* ─── Verdict Box ──────────────────────────────────────────────────── */
.cmp-verdict {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cmp-verdict-card {
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.cmp-verdict-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cmp-verdict-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
}
.cmp-verdict-win {
  background: oklch(0.95 0.06 155);
  border: 1px solid oklch(0.88 0.1 155);
}
.cmp-verdict-win h3 { color: oklch(0.35 0.12 155); }
.cmp-verdict-win p { color: oklch(0.45 0.08 155); }

.cmp-verdict-tie {
  background: oklch(0.96 0.02 264);
  border: 1px solid oklch(0.9 0.02 264);
}
.cmp-verdict-tie h3 { color: oklch(0.35 0.015 264); }
.cmp-verdict-tie p { color: oklch(0.5 0.015 264); }

.cmp-verdict-other {
  background: oklch(0.97 0.03 80);
  border: 1px solid oklch(0.9 0.06 80);
}
.cmp-verdict-other h3 { color: oklch(0.4 0.08 80); }
.cmp-verdict-other p { color: oklch(0.5 0.05 80); }

/* ─── Extended Comparison Table ────────────────────────────────────── */
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid oklch(0.928 0.006 264);
  font-size: 0.9375rem;
}
.cmp-table thead th {
  background: oklch(0.97 0.02 264);
  padding: 1rem 1.5rem;
  text-align: left;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(0.446 0.018 264);
}
.cmp-table thead th:first-child { width: 40%; }
.cmp-table thead th.cmp-highlight {
  background: oklch(0.94 0.06 264);
  color: oklch(0.35 0.12 264);
}
.cmp-table tbody td {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid oklch(0.928 0.006 264);
  vertical-align: middle;
}
.cmp-table tbody tr:hover { background: oklch(0.985 0.002 264); }
.cmp-table td.cmp-highlight {
  background: oklch(0.98 0.015 264);
  font-weight: 600;
}
.cmp-table .check { color: oklch(0.55 0.18 155); font-weight: 700; }
.cmp-table .cross { color: oklch(0.6 0.15 25); }
.cmp-table .partial { color: oklch(0.6 0.12 80); font-weight: 600; }
.cmp-table .category-row td {
  background: oklch(0.97 0.005 264);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(0.446 0.018 264);
  padding: 0.625rem 1.5rem;
}

/* ─── Pricing Comparison ───────────────────────────────────────────── */
.cmp-pricing-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
.cmp-pricing-card {
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  border: 1px solid oklch(0.928 0.006 264);
  background: white;
}
.cmp-pricing-card.cmp-pricing-highlight {
  border-color: oklch(0.488 0.178 264.376);
  box-shadow: 0 0 0 1px oklch(0.488 0.178 264.376), 0 8px 32px rgba(0,0,0,0.06);
  position: relative;
}
.cmp-pricing-card.cmp-pricing-highlight::before {
  content: 'Recommended';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: oklch(0.488 0.178 264.376);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cmp-pricing-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cmp-pricing-tagline {
  font-size: 0.875rem;
  color: oklch(0.551 0.018 264);
  margin-bottom: 1.5rem;
}
.cmp-pricing-tiers {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.cmp-pricing-tiers li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid oklch(0.95 0.004 264);
  font-size: 0.9375rem;
}
.cmp-pricing-tiers li:last-child { border-bottom: none; }
.cmp-pricing-tiers .tier-name { color: oklch(0.4 0.015 264); }
.cmp-pricing-tiers .tier-price {
  font-weight: 600;
  color: oklch(0.27 0.015 264);
}
.cmp-pricing-note {
  font-size: 0.8125rem;
  color: oklch(0.551 0.018 264);
  line-height: 1.55;
  padding-top: 0.75rem;
  border-top: 1px solid oklch(0.928 0.006 264);
}
.cmp-pricing-note strong { color: oklch(0.488 0.178 264.376); }

/* ─── Key Differentiators ──────────────────────────────────────────── */
.cmp-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.cmp-diff-card {
  background: white;
  border: 1px solid oklch(0.928 0.006 264);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.cmp-diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: oklch(0.88 0.08 264);
}
.cmp-diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: oklch(0.94 0.06 264);
}
.cmp-diff-icon svg { width: 22px; height: 22px; stroke: oklch(0.488 0.178 264.376); }
.cmp-diff-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: oklch(0.27 0.015 264);
}
.cmp-diff-card p {
  font-size: 0.9375rem;
  color: oklch(0.551 0.018 264);
  line-height: 1.55;
}

/* ─── FAQ Accordion ────────────────────────────────────────────────── */
.cmp-faq {
  max-width: 48rem;
  margin: 0 auto;
}
.cmp-faq-item {
  border-bottom: 1px solid oklch(0.928 0.006 264);
}
.cmp-faq-item:first-child {
  border-top: 1px solid oklch(0.928 0.006 264);
}
.cmp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: oklch(0.27 0.015 264);
  transition: color 0.2s;
}
.cmp-faq-q:hover { color: oklch(0.488 0.178 264.376); }
.cmp-faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: oklch(0.551 0.018 264);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.cmp-faq-item.open .cmp-faq-q::after {
  content: '\2212';
}
.cmp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.cmp-faq-item.open .cmp-faq-a {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.cmp-faq-a p {
  font-size: 0.9375rem;
  color: oklch(0.551 0.018 264);
  line-height: 1.65;
}

/* ─── Migration CTA Section ────────────────────────────────────────── */
.cmp-migration {
  text-align: center;
  padding: 4rem 2rem;
  background: oklch(0.97 0.02 264);
  border-radius: 0.75rem;
  border: 1px solid oklch(0.928 0.006 264);
  max-width: 56rem;
  margin: 0 auto;
}
.cmp-migration h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: oklch(0.27 0.015 264);
}
.cmp-migration p {
  font-size: 1rem;
  color: oklch(0.551 0.018 264);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.cmp-migration-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cmp-migration-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: oklch(0.4 0.015 264);
}
.cmp-migration-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: oklch(0.488 0.178 264.376);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Breadcrumb ───────────────────────────────────────────────────── */
.cmp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.cmp-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.cmp-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.cmp-breadcrumb span { color: rgba(255,255,255,0.35); }

/* ─── VS Badge ─────────────────────────────────────────────────────── */
.cmp-vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0.5rem;
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cmp-verdict { grid-template-columns: 1fr; }
  .cmp-pricing-compare { grid-template-columns: 1fr; }
  .cmp-diff-grid { grid-template-columns: 1fr; }
  .cmp-table { font-size: 0.8125rem; }
  .cmp-table thead th,
  .cmp-table tbody td { padding: 0.625rem 0.75rem; }
  .cmp-migration-steps { flex-direction: column; align-items: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cmp-diff-grid { grid-template-columns: repeat(2, 1fr); }
}
