/*
  How It Works 03 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-400: #94a3b8;
  --white: #ffffff;
  --accent: #39ff14;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--slate-950);
  line-height: 1.5;
}

.hiw {
  padding: clamp(3rem, 2.5rem + 2vw, 5rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.hiw__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.hiw__intro {
  margin: 0 auto;
  max-width: 32rem;
  text-align: center;
}

.hiw__kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.hiw__heading {
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hiw__description {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-400);
}

.steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.step {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.75rem;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background-color: rgba(57, 255, 20, 0.1);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.3);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.step__title {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.step__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Motion — disabled entirely under reduced motion; every card renders at
   its final, fully visible state outside this media query with no glow
   pulse. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-howitworks03-depth {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes al-howitworks03-glow {
    0%,
    100% {
      box-shadow:
        inset 0 0 0 1px rgba(57, 255, 20, 0.3),
        0 0 0 0 rgba(57, 255, 20, 0.35);
    }
    50% {
      box-shadow:
        inset 0 0 0 1px rgba(57, 255, 20, 0.3),
        0 0 0 6px rgba(57, 255, 20, 0);
    }
  }

  .reveal {
    animation: al-howitworks03-depth 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .glow {
    animation: al-howitworks03-glow 2600ms ease-out infinite;
  }
}
