/* LSQ Impact stat cards — Figma Home Page Revamp 2026, node 2215:20362 */
.lsq-impact-stat-cards {
  --lsq-isc-bg: rgba(255, 255, 255, 0.57);
  --lsq-isc-border: rgba(147, 126, 255, 0.24);
  --lsq-isc-text: #2e2e2e;
  --lsq-isc-pill-text: #291974;
  --lsq-isc-rule: rgba(147, 126, 255, 0.22);
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 16px;
  box-sizing: border-box;
}

.lsq-impact-stat-cards *,
.lsq-impact-stat-cards *::before,
.lsq-impact-stat-cards *::after {
  box-sizing: border-box;
}

.lsq-impact-stat-cards__inner {
  width: 100%;
}

.lsq-impact-stat-cards__heading {
  margin: 0 0 24px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--lsq-isc-text);
  text-align: center;
}

.lsq-impact-stat-cards__intro {
  margin: 0 auto 32px;
  max-width: 720px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lsq-isc-text);
  text-align: center;
}

.lsq-impact-stat-cards__intro p:last-child {
  margin-bottom: 0;
}

.lsq-impact-stat-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .lsq-impact-stat-cards__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
}

.lsq-impact-stat-cards__card {
  position: relative;
  background: var(--lsq-isc-bg);
  border: 1px solid var(--lsq-isc-border);
  border-radius: 20px;
  padding: 38px 32px 28px;
  min-height: 261px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lsq-impact-stat-cards__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 12px;
  border-radius: 36px;
  /* Figma: ~7px from pill bottom to stat top (y 73 → 80 in frame) */
  margin-bottom: 15px;
  max-width: 100%;
  align-self: flex-start;
  background: linear-gradient(
    143.75deg,
    rgb(223, 211, 255) 34.94%,
    rgb(247, 244, 255) 118.72%
  );
}

.lsq-impact-stat-cards__pill-text {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.25;
  color: var(--lsq-isc-pill-text);
  text-align: center;
}

.lsq-impact-stat-cards__stat {
  /* Figma: stat block height 62, headline at y 163 → ~21px gap */
  margin: 0 0 21px;
  padding: 0;
  line-height: 0.95;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 2px;
}

.lsq-impact-stat-cards__stat-value,
.lsq-impact-stat-cards__stat-suffix {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  background-image: linear-gradient(
    129.91deg,
    rgb(95, 63, 255) 16.32%,
    rgb(196, 172, 255) 87.3%,
    rgb(67, 142, 213) 116.07%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lsq-impact-stat-cards__stat-value {
  font-size: clamp(2.75rem, 6vw, 4rem);
  letter-spacing: -0.025em;
}

.lsq-impact-stat-cards__stat-suffix {
  font-size: clamp(1.25rem, 3vw, 2.125rem);
  line-height: 1.1;
  position: relative;
  top: -0.12em;
  margin-left: 1px;
}

.lsq-impact-stat-cards__headline {
  /* Figma: headline bottom ~190, rule at 202 → 12px */
  margin: 0 0 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: var(--lsq-isc-text);
}

.lsq-impact-stat-cards__rule {
  border: 0;
  height: 1px;
  width: 100%;
  /* Figma: rule at 202, attribution at 213 → ~11px */
  margin: 0 0 11px;
  background: var(--lsq-isc-rule);
}

#top .lsq-impact-stat-cards__attribution p {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--lsq-isc-text);
  width: 100%;
  margin: 0;
}

.lsq-impact-stat-cards__attribution p {
  margin: 0 0 8px;
}

.lsq-impact-stat-cards__attribution p:last-child {
  margin-bottom: 0;
}
