.website-benefits,
.website-benefits * {
  box-sizing: border-box;
}

.website-benefits {
  --benefits-green: #5b6d49;
  --benefits-hover-fill: #f1f1ef;
  position: relative;
  overflow-x: clip;
  padding: 92px 0 68px;
  background: #fff;
  color: #000;
  font-family: Montserrat, sans-serif;
}

.website-benefits__sticky {
  position: relative;
  isolation: isolate;
  padding-bottom: 28px;
  overflow: clip;
}

.website-benefits__orbit {
  position: relative;
  height: 600px;
}

.website-benefits__card {
  position: absolute;
  top: 20px;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 342px;
  height: 460px;
  padding: 24px;
  border: 1px solid rgba(28, 48, 15, 0.1);
  border-radius: 16px;
  background: var(--benefits-green);
  background-image: url("../img/website-card-noise.a7b8f5e44c58.png");
  background-repeat: repeat;
  box-shadow: none;
  color: #fff;
  overflow: hidden;
  /* wheel centre: half the card height plus the 1100px wheel radius */
  transform-origin: 50% 1330px;
  transition: background-color 300ms ease, color 300ms ease;
  will-change: transform, opacity;
}

.website-benefits__card:focus-visible {
  background-color: var(--benefits-hover-fill);
  color: #111;
}

@media (hover: hover) {
  .website-benefits__card:hover {
    background-color: var(--benefits-hover-fill);
    color: #111;
  }
}

.website-benefits__card:focus-visible {
  outline: 3px solid #0c3c01;
  outline-offset: 4px;
}

.website-benefits__number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.website-benefits__card h4 {
  max-width: 270px;
  margin: 0;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}

.website-benefits__card p {
  margin: auto 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.43;
  overflow-wrap: break-word;
}

.website-benefits__card:nth-child(4) p {
  font-size: 12.5px;
}

.website-benefits__intro {
  position: relative;
  z-index: 12;
  width: calc(100% - 40px);
  max-width: 730px;
  margin: -30px auto 0;
  text-align: center;
}

.website-benefits__intro h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
}

.website-benefits__intro p {
  max-width: 610px;
  margin: 12px auto 0;
  font-size: 13px;
  line-height: 1.45;
}

.website-benefits__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 39px;
  margin-top: 16px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: #0c3c01;
  color: #fff;
  font: 600 13px/1.2 Montserrat, sans-serif;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.website-benefits__cta:hover {
  background: #164e0a;
  transform: translateY(-2px);
}

.website-benefits__cta:focus-visible {
  outline: 3px solid #5b6d49;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .website-benefits {
    padding: 72px 0 82px;
  }

  .website-benefits__sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .website-benefits__intro {
    position: static;
    order: -1;
    width: min(700px, calc(100% - 40px));
    margin: 0 auto 32px;
  }

  .website-benefits__intro h2 {
    font-size: clamp(26px, 4vw, 32px) !important;
  }

  .website-benefits__orbit {
    position: relative;
    display: flex;
    gap: 18px;
    width: 100%;
    height: auto;
    padding: 14px max(20px, calc((100vw - 360px) / 2)) 30px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: max(20px, calc((100vw - 360px) / 2));
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
  }

  .website-benefits__orbit:active {
    cursor: grabbing;
  }

  .website-benefits__orbit::-webkit-scrollbar {
    height: 0;
  }

  .website-benefits__card {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 min(360px, calc(100vw - 48px));
    width: min(360px, calc(100vw - 48px));
    height: auto;
    min-height: 460px;
    scroll-snap-align: center;
    transform: none !important;
    transform-origin: center;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: auto;
  }

  .website-benefits__card h4 {
    font-size: clamp(23px, 5vw, 29px);
  }

  .website-benefits__card p {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .website-benefits {
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .website-benefits__desktop-break {
    display: none;
  }

  .website-benefits__intro p {
    font-size: 13px;
  }

  .website-benefits__orbit {
    gap: 14px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
  }

  .website-benefits__card {
    min-height: 490px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .website-benefits {
    height: auto;
    padding: 70px 0;
  }

  .website-benefits__sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .website-benefits__intro {
    position: static;
    order: -1;
    margin-bottom: 32px;
  }

  .website-benefits__orbit {
    position: relative;
    inset: auto;
    display: flex;
    gap: 18px;
    height: auto;
    padding: 16px 24px 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .website-benefits__card {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 min(342px, calc(100vw - 48px));
    width: min(342px, calc(100vw - 48px));
    height: auto;
    min-height: 460px;
    transform: none !important;
    transform-origin: center;
    opacity: 1 !important;
    scroll-snap-align: center;
    transition: none;
  }
}

/* Sections with a different number of cards: no special small text on the fourth card. */
.website-benefits--compact .website-benefits__card:nth-child(4) p {
  font-size: 15px;
}

/* On desktop a click brings any card to the centre. */
@media (min-width: 1025px) {
  .website-benefits__card {
    cursor: pointer;
  }
}
