/* ==========================================================
   How It Works
   ========================================================== */

.hiw-section {
  background: #fff;
  padding: clamp(24px, 6vw, 64px) 0;
}

.hiw-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.hiw-kicker {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827;
  font-size: clamp(22px, 3.4vw, 28px);
  margin: 0 0 8px;
}

.hiw-lead {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 800;
  color: #111827;
  font-size: clamp(20px, 3.6vw, 28px);
  margin: 0 0 6px;
}

.hiw-lead .accent {
  color: #7d65fd;
}

.hiw-desc {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #374151;
  max-width: 62ch;
  margin: 0 0 18px;
}

.hiw-scroll-wrapper {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  align-items: flex-start;
}

.hiw-steps-scroll {
  flex: 1 1 auto;
  min-width: 0;
}

.hiw-step {
  padding: clamp(20px, 4vw, 40px) 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: clamp(360px, 50vw, 500px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hiw-step:first-child {
  padding-top: 0;
}

.hiw-phone-col {
  flex: 0 0 auto;
  position: sticky;
  top: 100px;
}

.hiw-pill {
  display: inline-block;
  align-self: flex-start;
  border: 2px solid #7d65fd;
  color: #7d65fd;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 6px 12px;
  margin: 2px 0 10px;
}

.hiw-step-title {
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 3vw, 22px);
  margin: 0 0 6px;
}

.hiw-step-text {
  margin: 0 0 10px;
  color: #1f2937;
}

.hiw-list {
  margin: 6px 0 10px 18px;
  padding: 0;
  color: #1f2937;
}

.hiw-list li {
  margin: 6px 0;
}

.hiw-note {
  font-family: "Shadows Into Light Two", cursive;
  color: #8f94fb;
  font-size: clamp(16px, 2.6vw, 20px);
  margin: 10px 0 0;
}

.hiw-device {
  position: relative;
}

.hiw-device[data-hiw-device="2"],
.hiw-device[data-hiw-device="3"] {
  display: none;
}

.hiw-device svg {
  width: clamp(180px, 28vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.18));
}

.hiw-sticker {
  position: absolute;
  left: -14px;
  top: 44%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f2a173;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hiw-sticker svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.hiw-step-label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(125, 101, 253, 0.88);
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hiw-scroll-wrapper {
    flex-direction: column;
  }

  .hiw-phone-col {
    display: none;
  }

  .hiw-step {
    padding: 28px 0;
  }

  .hiw-step:first-child {
    padding-top: 0;
  }
}
