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

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

.beyond__title {
  margin-top: 0;
}

.beyond__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.beyond-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 26px;
  border: 1px solid #e6efe9;
  border-radius: 24px;
  background-color: var(--opt-white);
  box-shadow: 0 20px 50px -40px rgba(0, 80, 40, 0.35);
  transition: box-shadow 0.25s ease, transform 0.25s ease, translate 0.18s ease-out;
}

/* Only where there is a pointer to hover with (a tap left the card lifted). */
@media (hover: hover) {
  .beyond-card:hover {
    box-shadow: 0 30px 60px -36px rgba(0, 80, 40, 0.45);
    transform: translateY(-4px);
  }
}

.beyond-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  border-radius: 18px;
  background-color: #f3faf6;
}

.beyond-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid #d6eadf;
  border-radius: 20px;
  background-color: var(--opt-white);
}

.beyond-card__icon svg {
  fill: none;
  stroke: var(--opt-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beyond-card__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.beyond-card__title {
  min-height: 2.5em;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--opt-ink);
  text-wrap: balance;

}

.beyond-card__text {
  margin: 0;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--opt-body);
}

@media (max-width: 1061.98px) {
  .beyond__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

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

  .beyond-card:hover {
    transform: none;
  }
}

/* Tablet and phone: same four cards, the desktop card design everywhere, set to the width it gets.
   - Four cards in three columns (804-1061px) left the fourth alone in a second row, so the grid
     goes straight from four columns to two (2 x 2) and stays two columns down to 600px.
   - 64px between the heading and the cards is a desktop value: 40px here, 32px on phones.
   - Phones (<=599px): one column made every card as wide as the screen (up to 569px), a flat
     banner stretched edge to edge above two lines of text. The desktop card (mint banner on
     top, title and text under it) is the design, so the card keeps its desktop size, 285px (the desktop cards are 287px),
     and the four of them sit in a swipe row: the row runs to the screen edges, the first card
     starts at the page gutter, the next one always shows its first 30-75px as the cue, and each
     swipe lands a card exactly on the gutter (scroll-snap). The title keeps its two-line minimum
     height, since here the cards are in a row again and the text starts level in all of them. */
@media (max-width: 1061.98px) {
  .beyond__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .beyond__wrap {
    gap: 40px;
  }
}

@media (max-width: 599.98px) {
  .beyond__wrap {
    gap: 32px;
  }

  .beyond__title {
    text-wrap: balance;
  }

  .beyond__grid {
    display: flex;
    gap: 14px;
    margin: 0 calc(-1 * var(--page-gutter)) -14px;
    padding: 6px var(--page-gutter) 22px;
    overflow-x: auto;
    scroll-padding-inline: var(--page-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-color: #cfe3d8 transparent;
    scrollbar-width: thin;
  }

  .beyond-card {
    flex: 0 0 285px;
    scroll-snap-align: start;
  }
}

@media (max-width: 359.98px) {
  .beyond-card {
    flex-basis: 260px;
  }
}
