.features {
  text-align: center;
  padding: var(--spacing-jumbo) 0;
}

.features-heading {
  text-align: center;
  font-size: clamp(3rem, 4vw, 4rem);
}


.features-flex {
  margin-top: var(--spacing-jumbo);
}

.feature-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: var(--color-primary-light);
  position: relative;
}

.feature-text {
  margin-top: var(--spacing-md);
}

.feature-number {
  background-color: var(--color-primary-dark);
  color: var(--color-primary-light);
  text-align: center;
  font-size: 3rem;
  line-height: 5rem;
  width: 100%;
  display: block;
}

.feature-heading {
  color: var(--color-highlight);
  font-size: 2rem;
  text-align: center;
}

.feature-summary {
  font-size: 1.2rem;
  margin-top: var(--spacing-sm);
}

.features-cta {
  background-color: var(--color-highlight);
  margin-top: var(--spacing-lg);
  position: relative;
}

@media screen and (width > 540px) {

  .features-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 540px;
  }

  .feature-wrapper {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: clamp(540px, 50%, 700px);
  }

  .feature-text {
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .feature-number {
    padding: 12px 200px 0;
  }

}

@media screen and (width > 1100px) {

  .feature-wrapper:last-child,
  .features-cta {
    top: -268px;
  }

}

@media screen and (width > 1560px) {

  .features-flex {
    flex-wrap: nowrap;
  }

  .feature-wrapper {
    width: 33.33%;
  }

  .feature-wrapper:last-child,
  .features-cta {
    top: 0;
  }

}