/* Quiz funnel gate — shown before landing */
html.funnel-active,
html.funnel-active body {
  overflow: hidden;
  height: 100%;
}

html.funnel-active #__next {
  display: none !important;
}

.funnel-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 209, 178, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(34, 197, 94, 0.1), transparent 50%),
    #050a12;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html.funnel-active .funnel-gate {
  display: block;
}

.funnel-gate__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 48px;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}

.funnel-gate__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}

.funnel-gate__brand img {
  width: 36px;
  height: 36px;
}

.funnel-gate__brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.funnel-gate__brand-ai {
  background: linear-gradient(135deg, #00d1b2, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-left: 2px;
}

.funnel-progress {
  width: 100%;
  margin-bottom: 28px;
}

.funnel-progress__bar {
  height: 4px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}

.funnel-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d1b2, #22c55e);
  transition: width 0.35s ease;
}

.funnel-progress__label {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

.funnel-step {
  display: none;
  width: 100%;
  animation: funnelFadeIn 0.35s ease;
}

.funnel-step.is-active {
  display: block;
}

@keyframes funnelFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.funnel-step__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d1b2;
  margin-bottom: 12px;
}

.funnel-step__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.funnel-step__subtitle {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
}

.funnel-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.funnel-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 217, 255, 0.16);
  background: #081020;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: inherit;
}

.funnel-option:hover {
  border-color: rgba(0, 209, 178, 0.45);
  background: #0a1528;
  transform: translateY(-1px);
}

.funnel-option:focus-visible {
  outline: 2px solid #00d1b2;
  outline-offset: 2px;
}

.funnel-option.is-selected {
  border-color: #00d1b2;
  background: rgba(0, 209, 178, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 209, 178, 0.25);
}

.funnel-ready {
  text-align: center;
}

.funnel-ready .funnel-step__title {
  background: linear-gradient(135deg, #fff 30%, #00d1b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.funnel-ready p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

.funnel-ready p strong {
  color: #e2e8f0;
  font-weight: 600;
}

.funnel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 16px 36px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d1b2, #22c55e);
  color: #050a12;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s;
}

.funnel-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.funnel-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.funnel-lead-card {
  width: 100%;
  padding: 28px 24px;
  border-radius: 14px;
  background: #081020;
  border: 1px solid rgba(0, 217, 255, 0.16);
  box-sizing: border-box;
}

.funnel-lead-card label {
  display: block;
  color: #b4bdcc;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.funnel-lead-card input[type="text"],
.funnel-lead-card input[type="email"],
.funnel-lead-card input[type="tel"] {
  width: 100%;
  height: 46px;
  margin-top: 0.5rem;
  padding: 0 1rem;
  border-radius: 10px;
  outline: none;
  color: #fff;
  background: #050a12;
  border: 1px solid #1e293b;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.funnel-lead-card input:focus {
  border-color: #00d1b2;
}

.funnel-lead-card .funnel-cta {
  width: 100%;
  margin-top: 0;
}

.funnel-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.funnel-thanks {
  text-align: center;
}

.funnel-thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 209, 178, 0.12);
  border: 1px solid rgba(0, 209, 178, 0.35);
  font-size: 1.75rem;
  color: #00d1b2;
}

.funnel-thanks .funnel-step__title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-bottom: 16px;
}

.funnel-thanks p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 12px;
}

.funnel-thanks__meantime {
  margin-top: 32px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.funnel-thanks .funnel-cta {
  margin-top: 14px;
}

.funnel-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 0;
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.funnel-back:hover {
  color: #00d1b2;
}

@media (max-width: 480px) {
  .funnel-gate__inner {
    padding: 20px 16px 40px;
    justify-content: flex-start;
    padding-top: 36px;
  }

  .funnel-lead-card {
    padding: 22px 16px;
  }

  .funnel-option {
    padding: 13px 14px;
    font-size: 0.9rem;
  }
}
