/* ============================================================
   VCC, Problem section
   Before and after, side-by-side comparison
   ============================================================ */

.problem {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px);
  overflow: hidden;
  background: rgba(46, 63, 50, 0.12);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(229, 99, 118, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(116, 219, 139, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.problem__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-5);
}

.problem__head .eyebrow { margin-bottom: var(--space-3); }

.problem__head h2 {
  font-size: var(--fs-primary);
  font-weight: var(--fw-light);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin-bottom: var(--space-3);
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: balance;
}

.problem__head h2 .accent { color: var(--accent); font-weight: var(--fw-bold); }

.problem__head .lead {
  margin-inline: auto;
  max-width: 56ch;
}

/* ---------- Comparison grid ---------- */

.problem__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: var(--max-w);
  margin-inline: auto;
}

@media (max-width: 760px) {
  .problem__grid { grid-template-columns: 1fr; }
}

.problem__card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.problem__card--before {
  background: rgba(229, 99, 118, 0.04);
  border: 1px solid rgba(229, 99, 118, 0.2);
}

.problem__card--after {
  background: rgba(116, 219, 139, 0.04);
  border: 1px solid rgba(116, 219, 139, 0.25);
}

.problem__card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.problem__card-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.problem__card--before .problem__card-label { color: var(--unverified); }
.problem__card--after .problem__card-label { color: var(--accent); }

.problem__card-title {
  font-size: 1.125rem;
  font-weight: var(--fw-light);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.problem__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.problem__card-list li {
  display: flex;
  gap: var(--space-3);
  padding-block: 10px;
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.problem__card-list li:last-child { border-bottom: none; }

.problem__card-list strong {
  flex-shrink: 0;
  width: 96px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  padding-top: 2px;
}

@media (max-width: 480px) {
  .problem__card-list strong { width: 72px; }
}
