/* =============================================================
   phase6.css — Z-Axis Cascade + Spotlight + Sticky Scroll Stack
   Scope: .section-offers (.zac-*) + .how-it-works (.sss-*)
   Constraint: black / white / gray only — no hue
   New file: Phase 6+ CSS home. index.css is AT LIMIT.
   ============================================================= */


/* ── SECTION WRAPPER ───────────────────────────────────────── */
.section-offers {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ── Z-AXIS CASCADE GRID ───────────────────────────────────── */
/* Kill the old symmetric 2-col grid — now a cascade stack      */
.zac-grid {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

/* ── OUTER BEZEL SHELL ─────────────────────────────────────── */
/* Matches Double-Bezel architecture established in phase5.css  */
.zac-outer {
  position: relative;
  border-radius: 2rem;
  padding: 6px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  flex: 1 1 50%;
  transition:
    transform  0.55s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.55s cubic-bezier(0.32, 0.72, 0, 1),
    z-index    0s;
  will-change: transform;
  z-index: 1;

  /* Entry: start invisible */
  opacity: 0;
  transform: translateY(24px) rotate(0deg);
}

/* Card 1 — slight tilt left, overlaps card 2 from behind */
.zac-outer:nth-child(1) {
  transform: translateY(24px) rotate(-1.2deg);
  z-index: 2;
  margin-right: -40px;
  transition-delay: 0ms;
}

/* Card 2 — tilt right, pulled back under card 1 */
.zac-outer:nth-child(2) {
  transform: translateY(24px) rotate(1.5deg);
  z-index: 1;
  margin-left: 0;
  transition-delay: 80ms;
}

/* Visible state — added by IntersectionObserver */
.zac-outer.zac-visible {
  opacity: 1;
}
.zac-outer.zac-visible:nth-child(1) {
  transform: rotate(-1.2deg) translateY(0);
}
.zac-outer.zac-visible:nth-child(2) {
  transform: rotate(1.5deg) translateY(0);
}

/* Hover — card lifts, straightens, comes to front */
.zac-outer:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  z-index: 10;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.11),
    0 20px 60px rgba(0, 0, 0, 0.11),
    0 8px 24px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* ── SPOTLIGHT BORDER ──────────────────────────────────────── */
/* JS sets --mx / --my as normalized 0..1 cursor position       */
/* The conic-gradient sweeps from the cursor quadrant           */
.zac-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;                         /* border thickness */
  background: conic-gradient(
    from calc(var(--spotlight-angle, 0deg)),
    transparent 20%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.45) 60%,
    transparent 80%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.zac-outer:hover::before {
  opacity: 1;
}

/* ── INNER CORE ────────────────────────────────────────────── */
.zac-inner {
  border-radius: calc(2rem - 0.375rem);
  background: var(--surface-container-lowest, #fff);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  height: 100%;
}

/* ── CARD NUMBER ───────────────────────────────────────────── */
.zac-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--outline);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── CARD HEADING ──────────────────────────────────────────── */
.zac-inner h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  line-height: 1.15;
  margin: 0;
}

/* ── CARD BODY ─────────────────────────────────────────────── */
.zac-inner p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  font-weight: 300;
  margin: 0;
  flex: 1;
}

/* ── BUTTON-IN-BUTTON CTA ──────────────────────────────────── */
/* High-end-visual-design: arrow lives in its own nested circle */
.zac-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-surface);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: color 0.25s ease;
}

.zac-cta:hover {
  color: var(--on-surface-variant);
}

/* Price tag */
.zac-price {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

/* Arrow circle — nested "Button-in-Button" architecture */
.zac-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform  0.35s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.25s ease;
}

.zac-cta:hover .zac-arrow-circle {
  transform: translateX(3px) translateY(-2px) scale(1.08);
  background: rgba(0, 0, 0, 0.1);
}

.zac-arrow-circle svg {
  width: 12px;
  height: 12px;
}
