/* ==========================================================================
   Lead gate — signup modal for logged-out visitors.
   Scoped under .qs-lead-gate so it never affects other pages.
   ========================================================================== */

.qs-lead-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qs-lead-gate[hidden] { display: none; }

.qs-lead-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 68, 0.55);
  backdrop-filter: blur(4px);
}

.qs-lead-gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 30px 26px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(7, 27, 101, 0.55);
  animation: qs-lead-gate-in 0.22s ease-out;
}

@keyframes qs-lead-gate-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.qs-lead-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f5fb;
  color: #526e9b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qs-lead-gate-close svg { width: 18px; height: 18px; }
.qs-lead-gate-close:hover { background: #e6edf8; color: #102b59; }

.qs-lead-gate-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b72e0, #0a50b8);
  color: #fff;
  box-shadow: 0 16px 30px -16px rgba(10, 80, 184, 0.8);
}
.qs-lead-gate-icon svg { width: 32px; height: 32px; }

.qs-lead-gate-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #082b68;
}

.qs-lead-gate-text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #526e9b;
}

.qs-lead-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.qs-lead-gate-btn:hover { transform: translateY(-1px); }

.qs-lead-gate-btn--primary {
  background: #0866ff;
  color: #fff;
  box-shadow: 0 16px 28px -18px rgba(8, 102, 255, 0.9);
}
.qs-lead-gate-btn--primary:hover { background: #0a5bd8; }

.qs-lead-gate-btn + .qs-lead-gate-btn { margin-top: 10px; }

.qs-lead-gate-btn:not(.qs-lead-gate-btn--primary) {
  background: #fff;
  color: #0866ff;
  border: 1.5px solid #d6e1f2;
}
.qs-lead-gate-btn:not(.qs-lead-gate-btn--primary):hover { background: #f3f8ff; }

.qs-lead-gate-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: #7388a9;
}

body.qs-lead-gate-open { overflow: hidden; }

@media (max-width: 480px) {
  .qs-lead-gate-card { padding: 28px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .qs-lead-gate-card { animation: none; }
}
