/* Comparison section — "How Artificial Labs stacks up" */

.marketing-page #comparison .section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 16px auto 48px;
  line-height: 1.6;
}

.comparison-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.marketing-page .comparison-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  margin: 0;
}

.marketing-page .comparison-table th,
.marketing-page .comparison-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.marketing-page .comparison-table thead th {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.marketing-page .comparison-table thead th.highlight-head {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.marketing-page .comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.marketing-page .comparison-table td:first-child {
  color: var(--text);
  font-weight: 600;
  min-width: 190px;
}

.marketing-page .comparison-table td {
  color: var(--text-muted);
}

.marketing-page .comparison-table td.highlight {
  background: rgba(92, 225, 230, 0.07);
  border-left: 1px solid rgba(92, 225, 230, 0.25);
  border-right: 1px solid rgba(92, 225, 230, 0.25);
}

.marketing-page .comparison-table td.highlight .good {
  color: var(--accent-cyan);
  font-weight: 600;
}

.marketing-page .comparison-table .good,
.marketing-page .comparison-table .warn,
.marketing-page .comparison-table .bad,
.marketing-page .comparison-table .na {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.marketing-page .comparison-table .good::before,
.marketing-page .comparison-table .warn::before,
.marketing-page .comparison-table .bad::before,
.marketing-page .comparison-table .na::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.marketing-page .comparison-table .good::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.marketing-page .comparison-table .warn::before {
  background: #facc15;
}

.marketing-page .comparison-table .bad::before {
  background: #ef4444;
}

.marketing-page .comparison-table .na::before {
  background: var(--text-light);
}

.comparison-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.good {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.legend-dot.warn {
  background: #facc15;
}

.legend-dot.bad {
  background: #ef4444;
}

.legend-dot.na {
  background: var(--text-light);
}

.comparison-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 225, 230, 0.35);
}

.detail-card .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(92, 225, 230, 0.08);
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

.detail-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--text);
}

.detail-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .comparison-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .marketing-page #comparison .section-subtitle {
    margin-bottom: 36px;
  }

  .comparison-wrapper {
    padding: 8px;
  }

  .marketing-page .comparison-table {
    min-width: 900px;
  }

  .marketing-page .comparison-table th,
  .marketing-page .comparison-table td {
    padding: 12px 10px;
    font-size: 0.82rem;
  }

  .comparison-legend {
    gap: 14px;
  }

  .comparison-details {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }
}
