:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;

  --opt-a: #2563eb;
  --opt-a-soft: #eff6ff;
  --opt-a-border: #93c5fd;

  --opt-b: #7c3aed;
  --opt-b-soft: #f5f3ff;
  --opt-b-border: #c4b5fd;

  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;

  --indigo: #4f46e5;
  --indigo-soft: #eef2ff;
  --indigo-border: #c7d2fe;

  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --rose-border: #fecdd3;

  --amber: #d97706;
  --amber-soft: #fffbeb;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-subtle: #1e293b;
  --bg-glass: rgba(17, 24, 39, 0.88);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --border-strong: #334155;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --primary-border: rgba(59, 130, 246, 0.35);

  --opt-a: #60a5fa;
  --opt-a-soft: rgba(59, 130, 246, 0.13);
  --opt-a-border: rgba(96, 165, 250, 0.4);

  --opt-b: #a78bfa;
  --opt-b-soft: rgba(139, 92, 246, 0.13);
  --opt-b-border: rgba(167, 139, 250, 0.4);

  --emerald: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(52, 211, 153, 0.35);

  --indigo: #818cf8;
  --indigo-soft: rgba(99, 102, 241, 0.14);
  --indigo-border: rgba(129, 140, 248, 0.35);

  --rose: #fb7185;
  --rose-soft: rgba(244, 63, 94, 0.14);
  --rose-border: rgba(251, 113, 133, 0.35);

  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-accent {
  background: linear-gradient(135deg, var(--opt-a) 0%, var(--opt-b) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn.is-active .icon-menu {
  display: none;
}

.mobile-menu-btn.is-active .icon-close {
  display: block;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 1rem;
}

.hero p.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* Search Bar */
.search-wrap {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0.35rem 0.65rem 0.35rem 1.1rem;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-lg);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text);
  padding: 0.65rem 0;
  outline: none;
}

.search-kbd {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.popular-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.popular-chip {
  padding: 0.25rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.15s ease;
}

.popular-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2.25rem;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cat-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.cat-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.18);
}

/* Comparison Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.comp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.comp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.cat-badge.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.cat-badge.indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
  border: 1px solid var(--indigo-border);
}

.cat-badge.rose {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.vs-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}

.vs-side {
  display: flex;
  flex-direction: column;
}

.vs-side.right {
  text-align: right;
}

.vs-name {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.25;
}

.vs-score {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.vs-score.score-a { color: var(--opt-a); }
.vs-score.score-b { color: var(--opt-b); }

.vs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.card-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.quiz-tag {
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-cta {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Comparison Article Page */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0.75rem;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-header {
  padding: 0.5rem 0 1.75rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.article-title {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

/* Featured Snippet Direct Answer Box */
.snippet-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.snippet-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.snippet-text {
  font-size: 1.03rem;
  color: var(--text);
  line-height: 1.65;
}

/* Head-to-Head Hero Score Cards */
.contenders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.contender-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  position: relative;
  transition: all 0.25s ease;
}

.contender-card.opt-a-card {
  border-top: 4px solid var(--opt-a);
}

.contender-card.opt-b-card {
  border-top: 4px solid var(--opt-b);
}

.contender-card.quiz-winner {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft), var(--shadow-lg);
}

.winner-ribbon {
  display: none;
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--emerald);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.contender-card.quiz-winner .winner-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.contender-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.contender-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contender-label.label-a { color: var(--opt-a); }
.contender-label.label-b { color: var(--opt-b); }

.contender-name {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 12px;
  font-weight: 850;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.score-badge.badge-a {
  background: var(--opt-a-soft);
  color: var(--opt-a);
  border: 1px solid var(--opt-a-border);
}

.score-badge.badge-b {
  background: var(--opt-b-soft);
  color: var(--opt-b);
  border: 1px solid var(--opt-b-border);
}

.score-badge span {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 3px;
}

.contender-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.best-for-pill {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.84rem;
}

.best-for-pill strong {
  color: var(--text);
}

/* Key Stats Bar */
.key-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.stat-vals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.stat-val-a { color: var(--opt-a); }
.stat-val-b { color: var(--opt-b); text-align: right; }
.stat-vs { color: var(--text-muted); font-size: 0.75rem; font-weight: 500; }

/* INTERACTIVE 3-QUESTION DECISION FILTER (CORE DIFFERENTIATOR) */
.quiz-section {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-md);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quiz-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.quiz-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.quiz-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.quiz-reset-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.quiz-reset-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quiz-q-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.quiz-q-text {
  font-weight: 750;
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
}

.quiz-opt-btn {
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quiz-opt-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.quiz-opt-btn.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-border);
}

.opt-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-opt-btn.selected .opt-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-opt-btn.selected .opt-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Live Personalized Result Banner */
.quiz-result-panel {
  margin-top: 1.35rem;
  background: var(--bg-elevated);
  border: 2px solid var(--emerald);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: none;
  animation: fadeIn 0.25s ease;
}

.quiz-result-panel.visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.result-winner-headline {
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-match-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.meter-bar-wrap {
  width: 180px;
  height: 10px;
  background: var(--opt-b-soft);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.meter-fill-a {
  height: 100%;
  background: var(--opt-a);
  transition: width 0.3s ease;
}

.meter-fill-b {
  height: 100%;
  background: var(--opt-b);
  transition: width 0.3s ease;
}

.result-reasons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.result-reasons-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-left: 1.35rem;
  position: relative;
}

.result-reasons-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 900;
}

.result-jump-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Comparison Table Section */
.section-block {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.table-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.comp-table th, .comp-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.93rem;
  transition: background-color 0.25s ease;
}

.comp-table th {
  background: var(--bg-subtle);
  font-weight: 800;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
}

.comp-table th.col-feature { width: 26%; }
.comp-table th.col-a { width: 37%; border-top: 3px solid var(--opt-a); }
.comp-table th.col-b { width: 37%; border-top: 3px solid var(--opt-b); }

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table td.feature-cell {
  font-weight: 700;
  color: var(--text);
}

/* Dynamic Table Highlights from Quiz */
.comp-table .col-winner-a {
  background: var(--opt-a-soft);
}

.comp-table .col-winner-b {
  background: var(--opt-b-soft);
}

.comp-table tr.row-highlighted td {
  background: var(--emerald-soft) !important;
}

.comp-table tr.row-highlighted td.feature-cell::before {
  content: "★ Your Priority: ";
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald);
  font-weight: 800;
}

.cell-win-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.4rem;
}

.cell-win-a {
  background: var(--opt-a-soft);
  color: var(--opt-a);
  border: 1px solid var(--opt-a-border);
}

.cell-win-b {
  background: var(--opt-b-soft);
  color: var(--opt-b);
  border: 1px solid var(--opt-b-border);
}

/* Pros & Cons Grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.pc-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.pc-subhead {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pc-subhead.pros-head { color: var(--emerald); }
.pc-subhead.cons-head { color: var(--rose); margin-top: 1.15rem; }

.pc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pc-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.4rem;
  position: relative;
}

.pc-list.pros-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 900;
  font-size: 1.05rem;
}

.pc-list.cons-list li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 900;
  font-size: 1.05rem;
}

/* When to Choose X vs Y */
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.choose-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.choose-box.choose-a { border-left: 4px solid var(--opt-a); }
.choose-box.choose-b { border-left: 4px solid var(--opt-b); }

.choose-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.choose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.choose-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.45rem;
  position: relative;
}

.choose-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--primary);
}

/* Final Verdict Banner */
.verdict-banner {
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.verdict-badge {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.verdict-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.05rem 1.25rem;
  font-weight: 750;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

/* AdSense Clean Placeholder Slot */
.ad-slot {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-inner {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.35rem;
    z-index: 120;
  }

  .nav-links.nav-open {
    display: flex;
    animation: fadeIn 0.18s ease;
  }

  .nav-link {
    padding: 0.7rem 0.95rem;
    font-size: 0.96rem;
    border-radius: var(--radius-sm);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
  }
}

@media (max-width: 768px) {
  .contenders-grid,
  .key-stats-grid,
  .pros-cons-grid,
  .choose-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 2.25rem 0 1.75rem;
  }
  .quiz-section {
    padding: 1.2rem 1rem;
  }
  .search-kbd {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cat-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
  }
}
