/* ============================================
   HOMEPAGE - figures strip

   A soft pastel ground (pink, lilac, sky and peach glows), a short headline
   on the left, and five figures with indigo-to-rose gradient numbers.
   Numbers count up once on view (js/main.js). Markup: tools/home_figures.py.
   ============================================ */

.figures {
  background-color: #fbf8ff;
  background-image:
    radial-gradient(45% 150% at 0% 0%, #ffd9e3 0%, rgba(255, 217, 227, 0) 62%),
    radial-gradient(40% 150% at 34% 100%, #e3dcff 0%, rgba(227, 220, 255, 0) 62%),
    radial-gradient(40% 150% at 68% 0%, #d6eeff 0%, rgba(214, 238, 255, 0) 62%),
    radial-gradient(42% 150% at 100% 100%, #ffe6cf 0%, rgba(255, 230, 207, 0) 62%);
}

.figures__inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

/* ---------- Headline ---------- */
.figures__title {
  margin: 0;
  padding-right: 32px;
  border-right: 1px solid rgba(35, 13, 79, 0.14);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading-strong);
}

.figures__eyebrow {
  display: block;
  margin-bottom: 10px;
  font: 600 13px/20px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3230e0;
}

.figures__title em { font-style: normal; color: #3230e0; }

/* ---------- Figures ---------- */
.figures__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.figures__list li {
  padding: 6px 16px;
  text-align: center;
}

.figures__list li + li { border-left: 1px solid rgba(35, 13, 79, 0.1); }

/* The number and its unit share one indigo-to-rose gradient */
.figures__value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(120deg, #3230e0 15%, #c93a6a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.figures__unit { font-size: 24px; }

/* "+" reads as part of the number: larger and tighter than a word unit */
.figures__unit--symbol { margin-left: -2px; font-size: 34px; }

.figures__label {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .figures__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .figures__title { padding: 0; border: 0; text-align: center; }
}

@media (max-width: 1024px) {
  .figures__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .figures__list li:nth-child(3n + 1) { border-left: 0; }
}

@media (max-width: 640px) {
  .figures__title { font-size: 24px; }
  .figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .figures__list li { padding: 4px 8px; }
  .figures__list li:nth-child(odd) { border-left: 0; }
  .figures__list li:nth-child(even) { border-left: 1px solid rgba(35, 13, 79, 0.1); }
  .figures__list li:last-child { grid-column: 1 / -1; }
  .figures__value { font-size: 38px; }
  .figures__unit { font-size: 22px; }
  .figures__unit--symbol { font-size: 32px; }
  .figures__label { font-size: var(--fs-small); }
}
