/* =============================================
   SCROLL STORY — CARA KERJA + WHATSAPP SIMULASI
   ============================================= */

.scroll-story {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1fr);
  width: 100%;
  padding: 24px max(24px, calc((100% - 1152px) / 2)) 64px;
  gap: clamp(28px, 5vw, 64px);
  position: relative;
  background: #ffffff;
  scroll-margin-top: 72px;
}

/* LEFT: sticky WhatsApp stage */
.story-sticky {
  position: sticky;
  top: 76px;
  height: min(calc(100vh - 84px), 680px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-wa-stage {
  position: relative;
  width: min(100%, 440px);
  padding: 18px 18px 14px;
  border-radius: 30px;
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 55%, #d1fae5 100%);
  border: 1px solid rgba(10, 36, 99, 0.08);
  box-shadow: 0 22px 54px rgba(10, 36, 99, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: background 0.55s ease, box-shadow 0.45s ease;
}

.story-wa-stage[data-stage="1"] {
  background: linear-gradient(160deg, #d1fae5 0%, #ecfdf5 48%, #dbeafe 100%);
}

.story-wa-stage[data-stage="2"] {
  background: linear-gradient(160deg, #0d1f52 0%, #1a3a7c 55%, #0f766e 100%);
  box-shadow: 0 26px 60px rgba(10, 36, 99, 0.24);
}

.story-stage-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: -90px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.story-wa-stage .wa-phone {
  position: relative;
  z-index: 1;
  max-width: 356px;
}

.story-wa-stage .wa-chat-body {
  height: 318px;
}

/* Toolbar below phone inside stage */
.story-sim-toolbar {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.story-stage-dots {
  display: inline-flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(10, 36, 99, 0.08);
  backdrop-filter: blur(8px);
}

.stage-dot {
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.stage-dot:hover {
  color: var(--navy);
}

.stage-dot.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(10, 36, 99, 0.24);
}

.story-wa-stage[data-stage="2"] .wa-ctrl-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.story-wa-stage[data-stage="2"] .wa-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.story-sim-toolbar .wa-ctrl-btn {
  padding: 6px 10px;
  font-size: 11.5px;
  border-radius: 100px;
}

/* RIGHT: scroll text steps */
.story-steps {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.story-step {
  min-height: min(68vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.34;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  padding: 32px 0;
}

.story-step.active {
  opacity: 1;
  transform: none;
}

.ss-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(62, 146, 204, 0.1);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.story-step h2 {
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--navy);
  margin-bottom: 14px;
}

.story-step p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 22px;
}

.ss-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ss-methods span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
}

.ss-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
}

.ss-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* =============================================
   RESPONSIVE for scroll story
   ============================================= */
@media (max-width: 900px) {
  .scroll-story {
    grid-template-columns: 1fr;
    padding: 20px 20px 44px;
    gap: 24px;
  }

  .story-sticky {
    position: relative;
    top: auto;
    height: auto;
  }

  .story-wa-stage {
    padding: 16px 14px 14px;
    border-radius: 24px;
  }

  .story-wa-stage .wa-chat-body {
    height: 330px;
  }

  .story-sim-toolbar {
    justify-content: center;
  }

  .story-steps {
    padding: 0;
    gap: 16px;
  }

  .story-step {
    min-height: auto;
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    opacity: 1;
    transform: none;
  }

  .story-step.active {
    background: #ffffff;
    border-color: rgba(62, 146, 204, 0.45);
    box-shadow: var(--shadow-sm);
  }
}
