.numbers {
  border-bottom: 1px solid #e1eee6;
  background: linear-gradient(180deg, #ffffff 0%, #f1faf4 38%, #f7fbf8 100%);
}

.numbers__wrap {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 1152px;
  width: 100%;
  min-width: 0;
}

.numbers__main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.numbers__facts {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.numbers__head {
  max-width: 822px;
  text-align: center;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.numbers__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #e6efe9;
  border-radius: 24px;
  background-color: var(--opt-white);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Only where there is a pointer to hover with: a tap leaves :hover on, and the tapped card stayed tilted. */
@media (hover: hover) {
  .numbers__card:hover {
    border-color: #9fd2b4;
    box-shadow: 0 40px 70px -40px rgba(0, 80, 40, 0.5);
    transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-6px);
  }
}

.numbers__visual {
  display: flex;
  align-items: center;
  height: 54px;
}

.numbers__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}

.numbers__bars span {
  width: 9px;
  border-radius: 3px;
  background-color: var(--opt-line-green);
}

.numbers__bars span:nth-child(1) {
  height: 40%;
}

.numbers__bars span:nth-child(2) {
  height: 55%;
}

.numbers__bars span:nth-child(3) {
  height: 48%;
}

.numbers__bars span:nth-child(4) {
  height: 70%;
}

.numbers__bars span:nth-child(5) {
  height: 62%;
}

.numbers__bars span:nth-child(6) {
  height: 85%;
  background-color: var(--opt-green);
}

.numbers__bars span:nth-child(7) {
  height: 100%;
  background-color: var(--opt-green);
}

.numbers__meter {
  width: 120px;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background-color: var(--opt-line-soft);
}

.numbers__meter-fill {
  width: 6%;
  height: 100%;
  background-color: var(--opt-green);
}

.numbers__db {
  display: flex;
  gap: 4px;
}

.numbers__db span {
  width: 22px;
  height: 30px;
  border: 2px solid var(--opt-line-green);
  border-radius: 50% / 22%;
}

.numbers__dots {
  display: grid;
  grid-template-columns: repeat(10, 8px);
  gap: 3px;
}

.numbers__dots span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--opt-green);
}

.numbers__dots span:nth-child(8) {
  background-color: #e7a59b;
}

.numbers__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.numbers__card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.numbers__value {
  margin: 0;
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--opt-ink);
}

.numbers__label {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--opt-ink);
}

.numbers__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--opt-muted-strong);
}

.numbers__note {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: #3e4943;
}

.numbers__cta {
  display: flex;
  justify-content: center;
}

@media (max-width: 1199.98px) {
  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .numbers__value {
    font-size: 44px;
  }
}

@media (max-width: 575.98px) {
  .numbers__grid {
    grid-template-columns: 1fr;
  }

  .numbers__card {
    padding: 22px;
  }

  .numbers__value {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .numbers__card {
    transition: none;
  }

  .numbers__card:hover {
    transform: none;
  }
}

/* Tablet and phone: spacing and alignment only, the cards keep their layout (four, two, one column).
   - 64px between the heading and the cards is a desktop value: 40px here, 32px on phones.
   - Phones: the small illustrations (bars, meter, database cylinders, dots) sat in a 54px box and
     were centred in it, so the 6px meter floated mid-card with 24px above it and 24px under it while
     the bars filled the box; the box now takes the height of its illustration and starts at the top,
     so every card is built the same way (22px padding, illustration, 14px, number) and the gap
     between an illustration and its number no longer depends on which illustration it is. The note under the cards is a five- to
     six-line paragraph at 360px: centred it had a ragged edge on both sides, so on phones it is
     left-aligned, on the same edge as the cards above it. The button keeps its desktop size on
     phones (the shared button shrinks to a 14px label below 576px, 213px wide against 262px), the
     same as the Contact and CTA buttons, and the heading is 30px below 360px, where "behind the
     promise." no longer fits one line at 34px. */
@media (max-width: 991.98px) {
  .numbers__wrap {
    gap: 40px;
  }
}

@media (max-width: 575.98px) {
  .numbers__wrap {
    gap: 32px;
  }

  .numbers__main {
    gap: 24px;
  }

  .numbers__facts {
    gap: 20px;
  }

  .numbers__card {
    gap: 14px;
  }

  .numbers__visual {
    align-items: flex-start;
    height: auto;
  }

  .numbers__note {
    max-width: none;
    margin: 0;
    text-align: center;
    font-size: 13px;
  }

  .numbers__cta {
    --fs-hf-btn: 18px;
    --hf-btn-pad-x: 24px;
  }
}

@media (max-width: 359.98px) {
  .numbers__head .section-title {
    font-size: 30px;
  }

  .numbers__cta {
    --fs-hf-btn: 16px;
    --hf-btn-pad-x: 18px;
  }
}
/* Tablet (576-1199px, two columns): the four illustrations (bars, a 6px meter, database cylinders, dots)
   have four different heights and were centred in the same 54px box, so within one row the bars started
   at the top of the card and the meter floated about 19px lower, with a different gap to the number under
   each. Standing on the bottom edge of the box they all sit on one line just above the number (the number
   and the label already start at the same height in every card), like bars on a common baseline. Phones
   stack the cards and have their own rule above; four columns (1200px and up) keep the design's centring. */
@media (min-width: 576px) and (max-width: 1199.98px) {
  .numbers__visual {
    align-items: flex-end;
  }
}
