/* ============================================================
   DifferenceCSS.css
   Styles for the "Before vs. After" comparison section.
   Depends on tokens defined in global.css.
   ============================================================ */

/* ── COMPARE GRID — gap 24px (8×3) ── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;              /* 8×3 */
}

/* ── CARDS ── */
.compare-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 32px;          /* 8×4 */
}

/* "After" card flips to navy */
.compare-card.after {
  background: var(--blue);
  color: #fff;
}

/* ── CARD HEADER ("Before" / "After Upsilon") ── */
.card-header {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;    /* 8×3 */
}
.compare-card.after .card-header {
  color: rgba(255, 255, 255, 0.45);
}

/* ── BENEFIT ROW ── */
.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;              /* 8×1.5 */
  margin-bottom: 24px;    /* 8×3 */
}
.benefit-row:last-child { margin-bottom: 0; }

/* ── ICON — 24×24 (8×3) ── */
.icon {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.icon.bad  { background: rgba(220, 53, 53, 0.12); color: var(--red);   }
.icon.good { background: rgba(31, 158, 95, 0.18);  color: var(--green); }

/* On the navy "after" card, invert the good icon to white */
.compare-card.after .icon.good {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ── BENEFIT TEXT ── */
.benefit-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.compare-card.after .benefit-text strong {
  color: #fff;
}

.benefit-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.compare-card.after .benefit-text span {
  color: rgba(255, 255, 255, 0.6);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .compare-grid { grid-template-columns: 1fr; }
}