/* =============================================================
   phase6b.css — Sticky Scroll Stack (SSS) — How It Works
   Scope: index.html .how-it-works .sss-* only
   Extracted from phase6.css per code-refactoring rule (300+ lines)
   Constraint: dark section — white/alpha tones on black bg
   ============================================================= */


/* =============================================================
   STICKY SCROLL STACK — How It Works (.sss-*)
   Each phase card sticks, next card physically pushes it up
   ============================================================= */

/* ── OVERRIDE how-it-works inner layout ───────────────────── */
.how-it-works .phase-grid {
  display: block;
  position: relative;
}

/* ── STICKY STACK CONTAINER ────────────────────────────────── */
.sss-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── INDIVIDUAL PHASE CARD ─────────────────────────────────── */
.sss-card {
  position: relative;       /* was sticky — removed to kill overlap */
  border-radius: 1.75rem;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  will-change: transform;

  /* Entry animation */
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  transition:
    opacity   0.8s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.8s cubic-bezier(0.32, 0.72, 0, 1),
    filter    0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

/* nth-child stagger delays */
.sss-card:nth-child(1) { transition-delay: 0ms; }
.sss-card:nth-child(2) { transition-delay: 80ms; }
.sss-card:nth-child(3) { transition-delay: 160ms; }
.sss-card:nth-child(4) { transition-delay: 240ms; }

/* Visible class — added by JS IntersectionObserver */
.sss-card.sss-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ── CARD INNER SHELL ───────────────────────────────────────── */
.sss-inner {
  border-radius: calc(1.75rem - 0.375rem);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 36px;
  align-items: start;
}

/* ── PHASE NUMBER BADGE ─────────────────────────────────────── */
.sss-num {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── PHASE CONTENT ──────────────────────────────────────────── */
.sss-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sss-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.sss-body {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  margin: 0;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 900px) {
  .zac-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  /* Kill cascade rotations and overlaps on mobile */
  .zac-outer,
  .zac-outer:nth-child(1),
  .zac-outer:nth-child(2) {
    margin: 0 !important;
    transform: translateY(24px) rotate(0deg) !important;
    flex: 1 1 auto;
  }

  .zac-outer.zac-visible,
  .zac-outer.zac-visible:nth-child(1),
  .zac-outer.zac-visible:nth-child(2) {
    transform: rotate(0deg) translateY(0) !important;
  }

  .zac-outer:hover {
    transform: translateY(-4px) !important;
  }
}

@media (max-width: 768px) {
  .section-offers {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .zac-inner {
    padding: 24px 24px 20px;
    min-height: unset;
  }



  .how-it-works {
  padding: 56px 5vw 72px;
}
.how-it-works h2 {
  margin-bottom: 36px;
}

  .sss-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }

.how-it-works {
  padding: 56px 5vw 64px;
}
.how-it-works h2 {
  margin-bottom: 36px;
}

  .sss-num {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .zac-outer,
  .zac-outer:nth-child(1),
  .zac-outer:nth-child(2) {
    border-radius: 1.5rem;
  }

  .zac-inner {
    border-radius: calc(1.5rem - 0.375rem);
    padding: 20px 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zac-outer,
  .zac-outer:nth-child(1),
  .zac-outer:nth-child(2) {
    opacity: 1;
    transform: rotate(0deg) translateY(0) !important;
    transition: none;
  }

  .zac-outer::before {
    display: none;
  }

  .sss-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}