/* ============================================================
   IMPACT — stat strip + timeline comparison + 3 pillars
   ============================================================ */

.impact {
  padding: 120px 16px 0;
  background: var(--color-surface);
}

/* Wider section-header so the title fits in 2 lines, not 3 */
.impact .section-header { max-width: 1100px; }

/* Stats row: 2×2 numbers on the left, empty block on the right */
.impact__stats-row {
  display: grid;
  /* 1fr / 2fr matches the 3-col pillars grid below, so the right edge of
     the stats grid lines up with the right edge of the first pillar. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.impact__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-right: 1px solid var(--color-border);
}

.impact__stats-grid > .stat {
  padding: var(--sp-xl) var(--sp-lg);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* drop the inner edge dividers so the grid reads as 2×2 with one + */
.impact__stats-grid > .stat:nth-child(2n)   { border-right: 0; }
.impact__stats-grid > .stat:nth-child(n+3)  { border-bottom: 0; }

.impact__placeholder {
  min-height: 400px;
}

/* "years" unit and "+" suffix should match the digit color in this section */
.impact__stats-grid .stat__unit {
  color: inherit;
  font-size: inherit;
}

.impact__stats-grid .stat__suffix-mint {
  color: inherit;
}

/* Bump body/description text from 13px → 15px across this section */
.impact .small {
  font-size: 15px;
}

/* Feature-card top tags (→ ECONOMIC, → CLINICAL, → SCIENTIFIC) */
.impact .feature-card__tag {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.impact .feature-card__tag-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Drop the bottom margin on body — there's no CTA below it in these
   pillars, so the margin only created dead space inside the card. */
.impact .feature-card__body {
  margin-bottom: 0;
}

/* Three-pillar grid: continue the stats-row outline — share its bottom edge,
   wrap the rest in the same hairline border. */
.impact .grid--hairline {
  border: 1px solid var(--color-border);
  border-top: 0;
}

/* Stat labels in this section use the h3 style — Helvetica Medium 18px. */
.impact .stat__label {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: var(--fw-medium);
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--color-display);
}

/* ───── Mobile (≤ 720px) ───── */
@media (max-width: 720px) {
  /* Remove section side padding so cards/charts bleed to viewport edges.
     Section header keeps text padding via its own rule below. */
  .impact {
    padding: 80px 0 0;
  }

  /* Keep paddings only on the header text */
  .impact .section-header {
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
  }

  /* Stack stats grid above the pipeline chart */
  .impact__stats-row {
    grid-template-columns: 1fr;
    /* Drop left/right borders since the block now sits at viewport edges */
    border-left: 0;
    border-right: 0;
  }

  /* Stats grid keeps 2×2 — divider now sits at the bottom (chart is below) */
  .impact__stats-grid {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  /* Compact stat padding for tighter mobile cells */
  .impact__stats-grid > .stat {
    padding: var(--sp-lg) var(--sp-md);
  }

  /* Pipeline chart placeholder — a touch shorter on phone */
  .impact__placeholder {
    min-height: 340px;
  }

  /* Three impact pillars — 1 column, horizontal dividers, full-bleed frame */
  .impact .grid--hairline {
    grid-template-columns: 1fr;
    border-left: 0;
    border-right: 0;
  }
  .impact .grid--hairline > * + * {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  /* Tighter feature-cards: 32px top/bottom padding, drop the flex-stretch
     on body so there's no empty space below the text. */
  .impact .feature-card {
    padding-top: var(--sp-xl);
    padding-bottom: var(--sp-xl);
  }
  .impact .feature-card__body {
    flex: 0 0 auto;
  }
}

