.best-next-step {
  margin: 2.75rem 0;
  padding: 1.5rem;
  border: 1px solid rgba(45, 66, 60, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 252, 249, 0.98), rgba(246, 250, 252, 0.98));
  color: #23332f;
  text-align: left;
}

.best-next-step__eyebrow {
  margin: 0 0 0.45rem;
  color: #7a4b28;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.best-next-step h2 {
  margin: 0;
  color: #1f302b;
  font-size: 1.65rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.best-next-step__intro {
  max-width: 58rem;
  margin: 0.75rem 0 0;
  color: #4c5c57;
  font-size: 1rem;
  line-height: 1.65;
}

.best-next-step__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.best-next-step__card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid rgba(45, 66, 60, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #243530;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.best-next-step__card:hover,
.best-next-step__card:focus-visible {
  border-color: rgba(19, 105, 98, 0.42);
  box-shadow: 0 12px 28px rgba(31, 48, 43, 0.1);
  color: #1e3b36;
  transform: translateY(-2px);
}

.best-next-step__card:focus-visible {
  outline: 3px solid rgba(36, 113, 163, 0.28);
  outline-offset: 3px;
}

.best-next-step__label {
  align-self: start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(122, 75, 40, 0.18);
  border-radius: 999px;
  background: #fff7ef;
  color: #6d4325;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.best-next-step__card strong {
  display: block;
  margin: 0;
  color: #1f302b;
  font-size: 1rem;
  line-height: 1.3;
}

.best-next-step__card span:last-child {
  display: block;
  margin-top: 0.65rem;
  color: #566661;
  font-size: 0.9rem;
  line-height: 1.5;
}

.best-next-step--hub .best-next-step__eyebrow {
  color: #315a7a;
}

.best-next-step--hub .best-next-step__label {
  border-color: rgba(49, 90, 122, 0.18);
  background: #eef6fb;
  color: #315a7a;
}

.best-next-step--solution .best-next-step__card,
.best-next-step--feature .best-next-step__card {
  min-height: 12.5rem;
}

@media screen and (max-width: 1280px) {
  .best-next-step__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 736px) {
  .best-next-step {
    margin: 2rem 0;
    padding: 1rem;
  }

  .best-next-step__grid {
    grid-template-columns: 1fr;
  }

  .best-next-step__card {
    min-height: 0;
  }

  .best-next-step h2 {
    font-size: 1.35rem;
  }
}
