/* Numbered steps from the first contact to working together. */
@layer components {
  .how-it-works {
    padding: var(--section-padding);
    scroll-margin-top: 50px;
  }

  .how-it-works__title {
    color: var(--color-ink);
    font-size: var(--font-size-title);
    font-weight: var(--font-weight-bold);
    text-align: center;
  }

  .how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: calc(var(--space-block) * 1.25);
    margin: calc(var(--space-block) * 2.5) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
  }

  .how-it-works__step {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-block) / 2);
    color: var(--color-subtle);
    font-weight: 300;
    line-height: 1.6;
    counter-increment: step;

    &::before {
      content: counter(step);
      display: grid;
      place-items: center;
      inline-size: 2.5rem;
      block-size: 2.5rem;
      border: 1.5px solid var(--color-ink);
      border-radius: 50%;
      color: var(--color-ink);
      font-weight: 500;
    }
  }

  .how-it-works__name {
    color: var(--color-ink);
    font-size: 1.1rem;
    font-weight: 500;
  }
}
