/* docs/components/gating/engagement-gate.css */

/* ── Full-blur mode (visits gate) ──────────────────────────── */

.engage-gated {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* Base overlay — covers the blurred content area (no card inside) */
.engage-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  z-index: 90;
  pointer-events: none;
}

/* Sticky card wrapper — stays centered on viewport while content-widget
   is in view; scrolls away when user scrolls past the section. */
.engage-gate-card-sticky {
  position: sticky;
  top: calc(50vh - 120px);
  z-index: 91;
  display: flex;
  justify-content: center;
  pointer-events: none; /* clicks pass through to scroll */
  margin-bottom: -300px;  /* reclaim vertical space so content isn't pushed down */
}

/* ── Preview mode (Docs) ───────────────────────────────────── */
/* Top ~35% of content visible, then gradient fade to opaque.  */
/* No blur wrapper needed — gradient obscures bottom content.  */

.engage-gate-overlay--preview {
  pointer-events: auto; /* block clicks on the faded content */
  background: linear-gradient(
    to bottom,
    rgba(15, 27, 46, 0.0)  0%,
    rgba(15, 27, 46, 0.05) 15%,
    rgba(15, 27, 46, 0.25) 28%,
    rgba(15, 27, 46, 0.55) 38%,
    rgba(15, 27, 46, 0.80) 48%,
    rgba(15, 27, 46, 0.93) 58%,
    rgba(15, 27, 46, 0.98) 68%,
    rgba(15, 27, 46, 1.0)  80%
  );
  padding-top: clamp(10rem, 38vh, 20rem);
}

/* Finance lens: match the dark bg color */
html[data-lens="finance"] .engage-gate-overlay--preview {
  background: linear-gradient(
    to bottom,
    rgba(30, 41, 59, 0.0)  0%,
    rgba(30, 41, 59, 0.05) 15%,
    rgba(30, 41, 59, 0.25) 28%,
    rgba(30, 41, 59, 0.55) 38%,
    rgba(30, 41, 59, 0.80) 48%,
    rgba(30, 41, 59, 0.93) 58%,
    rgba(30, 41, 59, 0.98) 68%,
    rgba(30, 41, 59, 1.0)  80%
  );
}

/* ── Card ──────────────────────────────────────────────────── */

.engage-gate-card {
  pointer-events: auto;
  max-width: 380px;
  width: 90%;
  padding: 2rem 1.75rem;
  background: rgba(15, 27, 46, 0.96);
  border: 1px solid rgba(90, 155, 212, 0.25);
  border-radius: var(--radius, 14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: #e2e8f0;
}

.engage-gate-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.engage-gate-card__text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94a3b8;
}

.engage-gate-card__btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background: #5A9BD4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.engage-gate-card__btn:hover {
  background: #4a8bc4;
}

/* ── Secondary links row ───────────────────────────────────── */

.engage-gate-card__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.engage-gate-link {
  color: #5A9BD4;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  transition: color 0.15s ease;
}

.engage-gate-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.engage-gate-link__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #475569;
  margin: 0 0.5rem;
  flex-shrink: 0;
}
