/* ============================================
   comparison.css — AI Comparison Engine
   ============================================ */

/* ── Hero ── */
.cmp-hero {
  background: linear-gradient(135deg, #0b1f4d 0%, #1a1a2e 50%, #16213e 100%);
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
}
.cmp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  color: #a5b4fc;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 99px;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.cmp-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.cmp-hero h1 span.vs-badge {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cmp-hero-meta {
  font-size: .8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── VS Cards ── */
.cmp-cards-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.cmp-vs-sep {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}
.cmp-tool-card {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  transition: transform .2s, box-shadow .2s;
}
.cmp-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.2);
}
.cmp-tool-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  object-fit: contain;
}
.cmp-tool-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.cmp-tool-tagline {
  font-size: .78rem;
  color: #94a3b8;
  line-height: 1.4;
}
.cmp-tool-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .2rem .7rem;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.3);
}

/* ── Verdict Banner ── */
.cmp-verdict {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(16,185,129,.1);
  border: 1.5px solid rgba(16,185,129,.3);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: #ecfdf5;
  font-size: .9rem;
  line-height: 1.6;
}
.cmp-verdict-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── Section layout ── */
.cmp-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
.cmp-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
html.dark .cmp-section-title { color: #f1f5f9; }

/* ── Comparison Grid ── */
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-cards-wrap { grid-template-columns: 1fr; }
  .cmp-vs-sep { order: 2; margin: .5rem 0; }
}

.cmp-col-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: .75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  color: #fff;
}

/* ── List items ── */
.cmp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.cmp-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: #374151;
  line-height: 1.5;
  padding: .5rem .75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid transparent;
}
html.dark .cmp-list li { background: #1e293b; color: #e2e8f0; }

.cmp-list.strengths li { border-left-color: #10b981; }
.cmp-list.weaknesses li { border-left-color: #ef4444; }
.cmp-list.best-for li { border-left-color: #3b82f6; }
.cmp-list li .icon { flex-shrink: 0; font-size: .9rem; }

/* ── Pricing cards ── */
.cmp-pricing-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
}
html.dark .cmp-pricing-card { background: #1e293b; border-color: #334155; }
.cmp-pricing-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: .35rem; }
.cmp-pricing-value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: #1e293b; margin-bottom: .15rem; }
html.dark .cmp-pricing-value { color: #f1f5f9; }
.cmp-pricing-detail { font-size: .78rem; color: #6b7280; }

.cmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  margin-top: .75rem;
  width: 100%;
}
.cmp-btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.cmp-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.cmp-btn-outline {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
}
html.dark .cmp-btn-outline { color: #60a5fa; border-color: #60a5fa; }
.cmp-btn-outline:hover { background: #eff6ff; }
html.dark .cmp-btn-outline:hover { background: #1e3a5f; }

/* ── Overview text ── */
.cmp-overview {
  font-size: .9rem;
  color: #374151;
  line-height: 1.75;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
}
html.dark .cmp-overview { background: #0f172a; color: #e2e8f0; border-left-color: #60a5fa; }

/* ── FAQ ── */
.cmp-faq-item {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: .75rem;
  background: #fff;
}
html.dark .cmp-faq-item { background: #1e293b; border-color: #334155; }
.cmp-faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
html.dark .cmp-faq-q { color: #f1f5f9; }
.cmp-faq-q:hover { background: #f8fafc; }
html.dark .cmp-faq-q:hover { background: #0f172a; }
.cmp-faq-a {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  font-size: .875rem;
  color: #374151;
  line-height: 1.7;
}
html.dark .cmp-faq-a { color: #e2e8f0; }
.cmp-faq-item.open .cmp-faq-a {
  max-height: 200px;
  padding: .75rem 1.25rem 1rem;
}
.cmp-faq-icon { flex-shrink: 0; transition: transform .3s; font-size: 1.1rem; color: #6b7280; }
.cmp-faq-item.open .cmp-faq-icon { transform: rotate(45deg); }

/* ── Related comparisons ── */
.cmp-related-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
html.dark .cmp-related-card { background: #1e293b; border-color: #334155; }
.cmp-related-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.cmp-related-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .9rem; color: #1e293b; }
html.dark .cmp-related-title { color: #f1f5f9; }
.cmp-related-cat { font-size: .72rem; color: #6b7280; font-weight: 600; }

/* ── Spec table ── */
.cmp-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  align-items: center;
  padding: .6rem .75rem;
  border-radius: 8px;
  font-size: .83rem;
}
.cmp-spec-row:nth-child(odd) { background: #f8fafc; }
html.dark .cmp-spec-row:nth-child(odd) { background: #1e293b; }
.cmp-spec-label { font-weight: 600; color: #374151; }
html.dark .cmp-spec-label { color: #e2e8f0; }
.cmp-spec-val { color: #6b7280; text-align: center; }
html.dark .cmp-spec-val { color: #94a3b8; }

/* ── Index page ── */
.cmp-index-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
html.dark .cmp-index-card { background: #1e293b; border-color: #334155; }
.cmp-index-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 8px 30px rgba(124,58,237,.15);
  transform: translateY(-3px);
}
.cmp-index-logos { display: flex; align-items: center; gap: .4rem; }
.cmp-index-logo { width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; padding: 4px; object-fit: contain; }
.cmp-index-vs { font-size: .65rem; font-weight: 900; color: #ef4444; padding: 0 .2rem; }
