/*
  How It Works 06 — 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 {
  --white: #ffffff;
  --slate-800: #1e293b;
  --slate-300: #cbd5e1;
  --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(--slate-800);
  background-color: var(--white);
  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;
}

.wave {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background-image: linear-gradient(115deg, #0ea5e9 0%, #6366f1 45%, #a855f7 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.wave__shape {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  width: 100%;
  height: 4rem;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hiw__kicker {
  position: relative;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hiw__heading {
  position: relative;
  margin: 0.75rem auto 0;
  max-width: 32rem;
  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 {
  position: relative;
  margin: 0.75rem auto 0;
  max-width: 26rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.strip {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strip__number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-300);
}

.strip__title {
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .wave {
    padding: 5rem 3rem;
  }

  .strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Motion — disabled entirely under reduced motion; the gradient renders
   static at its resting position and every strip item already renders at
   its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-howitworks06-drift {
    0%,
    100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }

  @keyframes al-howitworks06-strip {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .drift {
    background-size: 220% 220%;
    animation: al-howitworks06-drift 12000ms ease-in-out infinite;
  }

  .fade {
    animation: al-howitworks06-strip 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
