/* =========================================================================
   ONE BOOST — problems.css
   "Problems it solves" section. Each card is a two-beat story: the pain
   (recessed, desaturated) then the fix (lit, red accent), split by a
   hairline the arrow sits on. Hovering lifts the card and warms the fix.
   ========================================================================= */

.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.prob-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .28s;
}

.prob-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

/* ---- the pain: quiet, desaturated, sits in a recessed well ---- */
.prob-pain {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 24px 24px 20px;
  background: rgba(0, 0, 0, .18);
}

.prob-ico {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--text-3);
  margin-top: 2px;
  transition: color .28s;
}

.prob-card:hover .prob-ico { color: var(--text-2); }

.prob-pain p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

/* ---- the fix: lit, red accent, separated by the seam hairline ---- */
.prob-fix {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  flex: 1;
}

.prob-check {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--red-ink);
  background: color-mix(in srgb, var(--red) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 28%, transparent);
  transition: background .22s, transform .22s var(--ease);
}

.prob-card:hover .prob-check {
  background: color-mix(in srgb, var(--red) 26%, transparent);
  transform: scale(1.06);
}

.prob-check svg { width: 16px; height: 16px; }

.prob-fix strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 4px;
}

html[lang="ar"] .prob-fix strong { font-family: var(--font-ar); }

/* Scoped to the text column only. A bare `.prob-fix span` would also match
   `.prob-check` (a direct child span) and — being the more specific selector
   — would repaint the red tick in body-text grey. */
.prob-fix > div > span {
  display: block;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .problems { grid-template-columns: 1fr; gap: 16px; }
  .prob-pain { padding: 20px 18px 16px; }
  .prob-fix { padding: 16px 18px 20px; }
  .prob-pain p { font-size: 15px; }
}
