[data-cheers-component="how-it-works"] {
  --_cheers-how-it-works-background: var(--cheers-how-it-works-background, var(--cheers-component-background, #ffffff));
  --_cheers-how-it-works-surface: var(--cheers-how-it-works-surface, var(--cheers-component-surface, #f3f3f3));
  --_cheers-how-it-works-text: var(--cheers-how-it-works-text, var(--cheers-component-text, #2b2b2b));
  --_cheers-how-it-works-muted: var(--cheers-how-it-works-muted, var(--cheers-component-muted, #666666));
  --_cheers-how-it-works-heading: var(--cheers-how-it-works-heading, var(--cheers-component-heading, #202020));
  --_cheers-how-it-works-accent: var(--cheers-how-it-works-accent, var(--cheers-component-accent, #555555));
  --_cheers-how-it-works-focus: var(--cheers-how-it-works-focus, var(--cheers-component-focus, #111111));
  --_cheers-how-it-works-border: var(--cheers-how-it-works-border, var(--cheers-component-border, rgb(0 0 0 / 16%)));
  --_cheers-how-it-works-font: var(--cheers-how-it-works-font, var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
  --_cheers-how-it-works-heading-font: var(--cheers-how-it-works-heading-font, var(--font-display, var(--_cheers-how-it-works-font)));
  --_cheers-how-it-works-max-width: var(--cheers-how-it-works-max-width, 1232px);
  --_cheers-how-it-works-node-size: var(--cheers-how-it-works-node-size, 80px);

  width: 100%;
  overflow: hidden;
  color: var(--_cheers-how-it-works-text);
  background: var(--_cheers-how-it-works-background);
  font-family: var(--_cheers-how-it-works-font);
}

.cheers-how-it-works,
.cheers-how-it-works *,
.cheers-how-it-works *::before,
.cheers-how-it-works *::after {
  box-sizing: border-box;
}

.cheers-how-it-works__inner {
  width: min(100%, var(--_cheers-how-it-works-max-width));
  margin-inline: auto;
  padding: 80px 24px;
}

.cheers-how-it-works__header {
  width: min(100%, 780px);
  margin-inline: auto;
  text-align: center;
}

.cheers-how-it-works__eyebrow,
.cheers-how-it-works__description,
.cheers-how-it-works__step h3,
.cheers-how-it-works__step p {
  margin: 0;
}

.cheers-how-it-works__eyebrow {
  color: var(--_cheers-how-it-works-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cheers-how-it-works__header h2 {
  margin: 12px 0 0;
  color: var(--_cheers-how-it-works-heading);
  font-family: var(--_cheers-how-it-works-heading-font);
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cheers-how-it-works__heading-accent {
  color: var(--_cheers-how-it-works-accent);
}

.cheers-how-it-works__description {
  margin-top: 12px;
  color: var(--_cheers-how-it-works-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.cheers-how-it-works__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cheers-how-it-works-step-count), minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.cheers-how-it-works__steps::before {
  position: absolute;
  z-index: 0;
  top: calc(var(--_cheers-how-it-works-node-size) / 2 - 1px);
  right: calc(50% / var(--cheers-how-it-works-step-count));
  left: calc(50% / var(--cheers-how-it-works-step-count));
  height: 2px;
  background: var(--_cheers-how-it-works-accent);
  content: "";
}

.cheers-how-it-works__step {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: start;
  gap: 16px;
  text-align: center;
}

.cheers-how-it-works__visual {
  display: grid;
  width: var(--_cheers-how-it-works-node-size);
  height: var(--_cheers-how-it-works-node-size);
  flex: none;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--_cheers-how-it-works-border);
  border-radius: 50%;
  color: var(--_cheers-how-it-works-heading);
  background: var(--_cheers-how-it-works-surface);
}

.cheers-how-it-works__visual--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cheers-how-it-works__visual--number {
  font-family: var(--_cheers-how-it-works-heading-font);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cheers-how-it-works__step-copy {
  max-width: 160px;
}

.cheers-how-it-works__step h3 {
  color: var(--_cheers-how-it-works-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.cheers-how-it-works__step p {
  margin-top: 8px;
  color: var(--_cheers-how-it-works-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  [data-cheers-component="how-it-works"] {
    --_cheers-how-it-works-node-size: var(--cheers-how-it-works-node-size, 80px);
  }

  .cheers-how-it-works__inner {
    padding: 56px 20px 64px;
  }

  .cheers-how-it-works__header {
    text-align: center;
  }

  .cheers-how-it-works__header h2 {
    margin-top: 12px;
    font-size: 2rem;
  }

  .cheers-how-it-works__description {
    margin-top: 12px;
  }

  .cheers-how-it-works__steps {
    grid-template-columns: none;
    grid-auto-columns: 140px;
    grid-auto-flow: column;
    gap: 0;
    width: calc(100% + 40px);
    margin: 32px -20px 0;
    padding: 0 10px 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 10px;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .cheers-how-it-works__steps::before {
    display: none;
  }

  .cheers-how-it-works__steps::-webkit-scrollbar {
    display: none;
  }

  .cheers-how-it-works__step {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 16px;
    text-align: center;
    scroll-snap-align: start;
  }

  .cheers-how-it-works__step:not(:last-child)::after {
    position: absolute;
    z-index: -1;
    top: calc(var(--_cheers-how-it-works-node-size) / 2 - 1px);
    left: 50%;
    width: 140px;
    height: 2px;
    background: var(--_cheers-how-it-works-accent);
    content: "";
  }

  .cheers-how-it-works__visual {
    position: relative;
    z-index: 1;
  }

  .cheers-how-it-works__step-copy {
    max-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cheers-how-it-works *,
  .cheers-how-it-works *::before,
  .cheers-how-it-works *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
