/* compare.css — Compare page + index styles
   Scoped to .compare-body to avoid conflicts with other pages */

/* ── Base ── */
.compare-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #09090b;
  color: #e4e4e7;
  line-height: 1.6;
}

/* ── Nav ── */
.compare-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: rgba(9,9,11,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4e4e7;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99,102,241,0.6);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: #e4e4e7; }

.btn-nav-cta {
  background: #6366f1;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s !important;
}

.btn-nav-cta:hover { background: #4f46e5 !important; }

/* ── Sticky CTA Banner ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible { transform: translateY(0); }

.btn-sticky-cta {
  background: #fff;
  color: #4f46e5;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-sticky-cta:hover { background: #e0e7ff; }

/* ── Compare Hero ── */
.compare-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.compare-breadcrumb {
  font-size: 13px;
  color: #71717a;
  margin-bottom: 16px;
}

.compare-breadcrumb a {
  color: #71717a;
  text-decoration: none;
}

.compare-breadcrumb a:hover { color: #a1a1aa; }

.compare-h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fafafa;
  margin: 0 0 12px;
  text-transform: capitalize;
  line-height: 1.2;
}

.compare-subtitle {
  color: #a1a1aa;
  font-size: 16px;
  margin: 0 0 20px;
}

.compare-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ── Main Layout ── */
.compare-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.compare-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .compare-layout { grid-template-columns: 1fr; }
  .compare-sidebar { order: -1; }
}

/* ── Article Content ── */
.compare-article {
  min-width: 0;
}

.compare-article h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
}

.compare-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e4e4e7;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 3px solid #6366f1;
}

.compare-article h3 {
  font-size: 16px;
  font-weight: 600;
  color: #d4d4d8;
  margin: 24px 0 10px;
}

.compare-article h4 {
  font-size: 14px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 20px 0 8px;
}

.compare-article p {
  color: #d4d4d8;
  margin: 0 0 14px;
  line-height: 1.75;
  font-size: 15px;
}

.compare-article strong { color: #e4e4e7; }

.compare-article ul, .compare-article ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.compare-article li {
  color: #d4d4d8;
  margin: 6px 0;
  font-size: 15px;
}

.compare-article code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: #a5b4fc;
}

.compare-article hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 32px 0;
}

.compare-article em {
  font-style: italic;
  color: #a1a1aa;
}

/* Tables */
.brief-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.brief-table td, .brief-table th {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #d4d4d8;
  text-align: left;
  vertical-align: top;
}

.brief-table tr:first-child td {
  background: rgba(99,102,241,0.08);
  font-weight: 600;
  color: #e4e4e7;
}

.brief-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ── Sidebar ── */
.compare-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(168,85,247,0.08) 100%);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-cta-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sidebar-cta-card p {
  font-size: 13px;
  color: #a1a1aa;
  margin: 0 0 16px;
  line-height: 1.5;
}

.btn-sidebar-cta {
  display: block;
  text-align: center;
  background: #6366f1;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s;
}

.btn-sidebar-cta:hover { background: #4f46e5; }

.sidebar-cta-note {
  text-align: center;
  font-size: 11px;
  color: #71717a;
  margin-top: 8px;
}

.sidebar-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 18px;
}

.sidebar-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #71717a;
  font-weight: 600;
  margin: 0 0 12px;
}

.competitor-list, .related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.competitor-list li, .related-list li {
  font-size: 13px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.competitor-dot {
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  flex-shrink: 0;
}

.competitor-list a, .related-list a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s;
}

.competitor-list a:hover, .related-list a:hover { color: #e4e4e7; }

.sidebar-pricing {
  text-align: center;
  font-size: 13px;
}

.sidebar-pricing a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-pricing a:hover { color: #a5b4fc; }

/* ── Bottom CTA ── */
.compare-bottom-cta {
  background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(168,85,247,0.06) 100%);
  border-top: 1px solid rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  text-align: center;
  padding: 64px 24px;
  margin: 40px 0 0;
}

.compare-bottom-cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 12px;
}

.compare-bottom-cta p {
  color: #a1a1aa;
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.btn-bottom-cta {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.15s;
}

.btn-bottom-cta:hover { background: #4f46e5; }

.bottom-cta-note {
  margin-top: 12px;
  font-size: 13px;
  color: #71717a;
}

/* ── Footer ── */
.compare-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #71717a;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #52525b;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-links a:hover { color: #a1a1aa; }

.footer-note {
  font-size: 12px;
  color: #3f3f46;
  line-height: 1.5;
}

/* ── Compare Index Page ── */
.compare-index-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}

.compare-badge {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.compare-index-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fafafa;
  margin: 0 0 12px;
  line-height: 1.15;
}

.compare-index-subtitle {
  color: #a1a1aa;
  font-size: 17px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.btn-index-cta {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}

.btn-index-cta:hover { background: #4f46e5; }

.compare-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.compare-card:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.06);
}

.compare-card-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-logo-pill {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #a5b4fc;
}

.compare-logo-pill--b {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.25);
  color: #d8b4fe;
}

.compare-vs {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #52525b;
  letter-spacing: 0.05em;
}

.compare-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #e4e4e7;
  margin: 0;
  text-transform: capitalize;
  line-height: 1.3;
}

.compare-card-desc {
  font-size: 13px;
  color: #71717a;
  margin: 0;
  line-height: 1.5;
}

.compare-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.compare-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #71717a;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.compare-cta-link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
}

.compare-empty {
  text-align: center;
  padding: 60px 0;
  color: #71717a;
  font-size: 15px;
}

.compare-index-bottom {
  text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(168,85,247,0.05) 100%);
  border-top: 1px solid rgba(99,102,241,0.15);
  padding: 64px 24px;
}

.compare-index-bottom h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 12px;
}

.compare-index-bottom p {
  color: #a1a1aa;
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.6;
}

.btn-index-bottom {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}

.btn-index-bottom:hover { background: #4f46e5; }

/* ── Radar-specific styles ── */

.radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: radar-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes radar-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,197,94,0.7); }
  50%       { opacity: 0.6; box-shadow: 0 0 14px rgba(34,197,94,0.4); }
}

/* Radar index grid */
.radar-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.radar-card { display: flex; flex-direction: column; gap: 12px; }

.radar-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.radar-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.radar-card-meta { flex: 1; min-width: 0; }

.radar-new-count {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
}

.radar-entrant-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  flex: 1;
}

.radar-entrant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radar-entrant-name {
  font-size: 13px;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Classification badges */
.radar-classification {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.radar-cls-direct   { color: #ef4444; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); }
.radar-cls-adjacent { color: #f59e0b; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); }
.radar-cls-stealth  { color: #a78bfa; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25); }
.radar-cls-indirect { color: #60a5fa; background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.25); }

/* Legend */
.radar-cls-legend {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Detail page */
.radar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 13px;
  color: #52525b;
  max-width: 1100px;
  margin: 0 auto;
}
.radar-breadcrumb a { color: #71717a; text-decoration: none; }
.radar-breadcrumb a:hover { color: #a1a1aa; }

.radar-detail-hero {
  text-align: center;
  padding: 48px 24px 36px;
  max-width: 760px;
  margin: 0 auto;
}

.radar-table-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.radar-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.radar-table-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e4e4e7;
  margin: 0;
}

.radar-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-entrants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-entrant-card {
  background: #111118;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.15s;
}
.radar-entrant-card:hover { border-color: rgba(99,102,241,0.3); }

.radar-entrant-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.radar-entrant-info { flex: 1; min-width: 0; }

.radar-entrant-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.radar-entrant-name-lg {
  font-size: 16px;
  font-weight: 700;
  color: #e4e4e7;
}

.radar-cls-badge { font-size: 11px; padding: 3px 10px; }

.radar-entrant-rationale {
  font-size: 13px;
  color: #71717a;
  margin: 0;
  line-height: 1.5;
}

.radar-entrant-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

.radar-stat { display: flex; flex-direction: column; align-items: flex-end; }
.radar-stat-label { font-size: 10px; color: #52525b; text-transform: uppercase; letter-spacing: 0.5px; }
.radar-stat-value { font-size: 13px; font-weight: 600; color: #a1a1aa; }

.radar-entrant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.radar-source-link {
  font-size: 13px;
  color: #71717a;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, border-color 0.15s;
}
.radar-source-link:hover { color: #a1a1aa; border-color: rgba(255,255,255,0.15); }

.radar-brief-cta {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
  font-weight: 600;
  transition: background 0.15s;
}
.radar-brief-cta:hover { background: rgba(99,102,241,0.16); }

/* CTA band */
.radar-cta-band {
  background: rgba(99,102,241,0.06);
  border-top: 1px solid rgba(99,102,241,0.15);
  border-bottom: 1px solid rgba(99,102,241,0.15);
  padding: 60px 24px;
  text-align: center;
}
.radar-cta-inner { max-width: 640px; margin: 0 auto; }
.radar-cta-inner h2 { font-size: 28px; margin-bottom: 12px; color: #e4e4e7; }
.radar-cta-inner p  { color: #71717a; margin-bottom: 24px; }

/* Related categories */
.radar-related-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}
.radar-related-section h2 { font-size: 18px; font-weight: 700; color: #a1a1aa; margin-bottom: 16px; }
.radar-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radar-related-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #111118;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.radar-related-card:hover { border-color: rgba(99,102,241,0.4); }
.radar-related-name { font-size: 14px; font-weight: 600; color: #e4e4e7; }
.radar-related-count { font-size: 11px; color: #22c55e; font-weight: 600; }

/* How it works section */
.radar-how-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}
.radar-how-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 36px;
}
.radar-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.radar-how-step {
  text-align: center;
  padding: 24px;
  background: #111118;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.radar-how-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #6366f1;
  margin: 0 auto 12px;
}
.radar-how-step h3 { font-size: 14px; font-weight: 700; color: #e4e4e7; margin-bottom: 8px; }
.radar-how-step p  { font-size: 13px; color: #71717a; margin: 0; line-height: 1.5; }

/* Empty state */
.radar-empty-icon { font-size: 36px; margin-bottom: 12px; }

@media (max-width: 640px) {
  .radar-entrant-main { flex-direction: column; }
  .radar-entrant-stats { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .radar-stat { align-items: flex-start; }
  .radar-table-header { flex-direction: column; align-items: flex-start; }
  .radar-breadcrumb { padding: 12px 16px; }
}
