/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  color: #1a1a2e;
  background: #f8f9fa;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 40%, #24243e 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: /* {{HERO_BG_IMAGE}} */ url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1200') center/cover;
  opacity: 0.15;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #64748b;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ===== ARTICLE BODY ===== */
.article-body {
  background: #ffffff;
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  padding: 40px 40px 60px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
  .article-body { padding: 24px 20px 40px; border-radius: 0; }
}

/* ===== TL;DR BOX ===== */
.tldr-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.tldr-box h3 {
  color: #1e40af;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tldr-box ul { list-style: none; padding: 0; }
.tldr-box ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}
.tldr-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}
.tldr-box .highlight {
  background: #fef08a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ===== HEADINGS ===== */
h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
  color: #111827;
}
h2:first-of-type { margin-top: 32px; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: #1e293b; }
h4 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; color: #334155; }
p { margin: 12px 0; font-size: 1rem; color: #374151; }

/* ===== COMPARISON TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
thead th {
  background: #1e293b;
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
thead th:first-child { border-radius: 12px 0 0 0; }
thead th:last-child { border-radius: 0 12px 0 0; }
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
tbody tr:nth-child(even) { background: #f8fafc; }
tbody tr:hover { background: #eff6ff; }
.winner { color: #16a34a; font-weight: 700; }

/* ===== PROS/CONS CARDS ===== */
.card-grid {
  display: grid;
  gap: 20px;
  margin: 24px 0 32px;
}
.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  background: #ffffff;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.card-header img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}
.card-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.card h4 { margin: 0; font-size: 1.1rem; }
.card-pros, .card-cons { list-style: none; padding: 0; margin: 8px 0 0; }
.card-pros li, .card-cons li {
  padding: 4px 0 4px 24px;
  position: relative;
  font-size: 0.9rem;
  color: #475569;
}
.card-pros li::before {
  content: '+';
  position: absolute;
  left: 2px;
  color: #16a34a;
  font-weight: 700;
}
.card-cons li::before {
  content: '−';
  position: absolute;
  left: 2px;
  color: #dc2626;
  font-weight: 700;
}

/* ===== DEEP DIVE SECTIONS ===== */
.deep-dive {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  margin: 24px 0 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .deep-dive { grid-template-columns: 1fr; }
}
.deep-dive-sidebar {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 20px;
}
.deep-dive-sidebar h4 { margin-top: 0; font-size: 0.9rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
}
.spec-row:last-child { border: none; }
.spec-label { color: #64748b; }
.spec-value { font-weight: 600; color: #1e293b; text-align: right; }

/* ===== PRICING TABLE ===== */
.pricing-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}
.pricing-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.pricing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .pricing-grid.cols-2, .pricing-grid.cols-3 { grid-template-columns: 1fr; }
}
.pricing-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.pricing-card.popular {
  border-color: #6366f1;
  position: relative;
}
.pricing-card.popular::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}
.pricing-card h4 { font-size: 1.1rem; margin: 0 0 4px; }
.pricing-price { font-size: 2rem; font-weight: 800; color: #111827; margin: 8px 0; }
.pricing-price span { font-size: 0.85rem; color: #64748b; font-weight: 400; }
.pricing-features { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; }
.pricing-features li {
  padding: 5px 0;
  font-size: 0.88rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* ===== DECISION BOX ===== */
.decision-box {
  background: #1e293b;
  color: #ffffff;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0 32px;
}
.decision-box h3 { color: #e2e8f0; margin-top: 0; }
.decision-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #334155;
}
.decision-item:last-child { border: none; }
.decision-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.decision-text h4 { margin: 0; font-size: 0.95rem; color: #e2e8f0; }
.decision-text p { margin: 4px 0 0; font-size: 0.85rem; color: #94a3b8; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.faq-question {
  background: #f8fafc;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: default;
  color: #1e293b;
}
.faq-answer {
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

/* ===== CALLOUT BOX ===== */
.callout {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #92400e;
}
.callout strong { color: #78350f; }

/* ===== SCORE BADGE (for ratings) ===== */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}
.score-badge.excellent { background: #16a34a; }
.score-badge.good { background: #2563eb; }
.score-badge.average { background: #f59e0b; }

/* ===== VERDICT TABLE ===== */
.verdict-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}
.verdict-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.verdict-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .verdict-grid.cols-2, .verdict-grid.cols-3 { grid-template-columns: 1fr; }
}
.verdict-card {
  border: 2px solid #16a34a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #f0fdf4;
}
.verdict-card h4 { font-size: 1rem; margin: 0 0 4px; color: #166534; }
.verdict-card .verdict-scenario { font-size: 0.85rem; color: #15803d; margin-bottom: 8px; font-weight: 600; }
.verdict-card .verdict-tool { font-size: 1.3rem; font-weight: 800; color: #111827; }

/* ===== SCREENSHOT PLACEHOLDER ===== */
.screenshot-placeholder {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border: 2px dashed #a5b4fc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0;
  color: #4338ca;
  font-size: 0.9rem;
}
.screenshot-placeholder.dark {
  background: linear-gradient(135deg, #334155, #1e293b);
  border-color: #475569;
  color: #94a3b8;
}

/* ===== IMAGE FIGURE ===== */
.figure {
  margin: 28px 0;
  text-align: center;
}
.figure img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
}
.figure figcaption {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

/* ===== INLINE LOGOS ===== */
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.logo-row img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ===== RELATED LINKS ===== */
.related-links {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}
.related-links h4 { color: #166534; margin: 0 0 10px; font-size: 0.95rem; }
.related-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}
