/* Problem-frame section.
   Intro (eyebrow + H2 + deck) over a two-column side-by-side grid.
   Left column: the gap - muted, cool, outline. Right column: closed -
   teal-tinted surface with teal icons + accent CTA. */

.problem-frame {
  position: relative;
  padding-block: 0;
}

.problem-frame__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.problem-frame__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
}

.problem-frame__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-foreground);
  max-width: 22ch;
  text-transform: capitalize;
}

.problem-frame__heading-accent {
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-blue) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.problem-frame__deck {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--color-muted-foreground);
  max-width: 56ch;
}

/* --- Grid --------------------------------------------------------- */

.problem-frame__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.problem-frame__col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-card);
  box-shadow: 0 1px 0 color-mix(in oklch, white 55%, transparent) inset;
}

.problem-frame__col--b {
  border-color: color-mix(in oklch, var(--brand-teal) 28%, var(--color-border));
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--brand-teal) 4%, var(--color-card)) 0%,
    color-mix(in oklch, var(--brand-teal) 2%, var(--color-card)) 100%
  );
  box-shadow:
    0 1px 0 color-mix(in oklch, white 55%, transparent) inset,
    0 24px 48px -24px color-mix(in oklch, var(--brand-teal) 32%, transparent);
}

/* --- Column header ----------------------------------------------- */

.problem-frame__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.problem-frame__col--b .problem-frame__label {
  color: var(--brand-teal);
}

.problem-frame__col-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.015em;
  color: var(--color-foreground);
}

/* --- Item list --------------------------------------------------- */

.problem-frame__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.problem-frame__item {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.625rem;
  align-items: flex-start;
  color: var(--color-foreground);
  line-height: var(--lh-snug);
  font-size: var(--fs-sm);
}

.problem-frame__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.0625rem;
  color: var(--color-muted-foreground);
  flex-shrink: 0;
}

.problem-frame__col--b .problem-frame__icon {
  color: var(--brand-teal);
}

.problem-frame__text {
  min-width: 0;
  color: var(--color-foreground);
}

.problem-frame__col--a .problem-frame__text {
  color: var(--color-muted-foreground);
}

/* --- CTA link ---------------------------------------------------- */

.problem-frame__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground);
  text-decoration: none;
  padding-top: 0.25rem;
  transition: color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}

.problem-frame__cta:hover,
.problem-frame__cta:focus-visible {
  color: var(--brand-teal);
  gap: 0.625rem;
  outline: none;
}

.problem-frame__col--b .problem-frame__cta { color: var(--brand-teal); }
.problem-frame__col--b .problem-frame__cta:hover,
.problem-frame__col--b .problem-frame__cta:focus-visible {
  color: color-mix(in oklch, var(--brand-teal) 70%, var(--brand-blue));
}

/* --- Responsive --------------------------------------------------- */

@media (max-width: 860px) {
  .problem-frame__grid {
    grid-template-columns: 1fr;
  }
}
