/* =========================================
   DEZENS vs remove.bg — Comparison Page
   ========================================= */

/* Comparison Table */
.compare-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-header {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px;
}

.compare-header:first-child {
  color: var(--text);
}

.compare-header.dezens {
  color: var(--accent);
}

.compare-cell {
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.compare-row:nth-child(even) .compare-cell {
  background: var(--surface);
}

.compare-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
}

.compare-row:nth-child(even) .compare-label {
  background: var(--surface-2);
}

.cell-dezens {
  color: var(--text);
  font-weight: 500;
}

.cell-removebg {
  color: var(--text-muted);
}

.cell-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-free {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.badge-paid {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent);
}

.check-icon {
  color: #27ae60;
  margin-right: 6px;
}

.cross-icon {
  color: #e74c3c;
  margin-right: 6px;
}

/* Embedded demo */
.demo-embed {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  height: 600px;
  background: var(--surface);
}

.demo-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CTA section */
.the-math {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.math-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.math-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.math-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 2rem;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-value.free { color: #27ae60; }
.price-value.paid { color: var(--accent); }

.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-vs {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.math-savings {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-header {
    display: none;
  }

  .compare-row::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 20px;
    background: var(--surface-2);
    display: block;
  }

  .compare-label,
  .compare-cell {
    border-right: none;
  }

  .demo-embed {
    height: 500px;
  }

  .math-price {
    gap: 1.5rem;
  }

  .price-value {
    font-size: 2rem;
  }
}