* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --funnel-bg: #0a0a0b;
  --funnel-surface: #141416;
  --funnel-border: #27272a;
  --funnel-text: #ffffff;
  --funnel-muted: #a1a1aa;
  --funnel-accent: #e11d48;
  --funnel-accent-hover: #f43f5e;
  --funnel-radius: 12px;
}

body.funnel {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--funnel-bg);
  color: var(--funnel-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.funnel-header {
  width: 100%;
  max-width: 560px;
  padding: 1.25rem 1.5rem;
  flex-shrink: 0;
  text-align: center;
}

.funnel-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--funnel-accent) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s;
}
.funnel-brand:hover {
  opacity: 0.9;
}
.funnel-brand-icon {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  display: block;
  margin-right: -0.02em;
}

.funnel-page {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 0 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Age gate: overlay with blurred landing page behind (no iframe, adblocker-safe) */
.funnel-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 10, 11, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.funnel-gate-overlay.funnel-gate-dismissed {
  display: none;
}
.funnel-gate-box {
  padding: 2.5rem 2rem;
  max-width: 360px;
  width: 100%;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: var(--funnel-radius);
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.funnel-gate-box h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--funnel-accent) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.funnel-gate-box p {
  color: var(--funnel-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.funnel-gate-box .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--funnel-accent);
  color: white;
  border: none;
  border-radius: var(--funnel-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.funnel-gate-box .btn:hover {
  background: var(--funnel-accent-hover);
}

/* LP (after gate) */
.funnel-lp .funnel-hero {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.funnel-lp .funnel-sub {
  color: var(--funnel-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}
.funnel-lp .funnel-how {
  color: var(--funnel-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}
.funnel-lp .funnel-proof {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  border-radius: var(--funnel-radius);
  overflow: hidden;
  border: 1px solid var(--funnel-border);
}
.funnel-lp .funnel-proof img {
  width: 100%;
  display: block;
}
.funnel-lp .funnel-proof-label {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  line-height: 1.35;
  text-align: right;
}
.funnel-lp .funnel-proof-censored {
  font-size: 0.65rem;
  font-style: normal;
  opacity: 0.85;
  margin-top: 0.2rem;
  display: block;
}
.funnel-lp .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--funnel-accent);
  color: white;
  border: none;
  border-radius: var(--funnel-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.funnel-lp .btn:hover {
  background: var(--funnel-accent-hover);
}

/* Quiz */
.funnel-quiz h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.funnel-quiz form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.funnel-quiz label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--funnel-muted);
  margin-bottom: 0.35rem;
}
.funnel-quiz select,
.funnel-quiz input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: 8px;
  color: var(--funnel-text);
  font-size: 1rem;
}
.funnel-quiz select:focus,
.funnel-quiz input:focus {
  outline: none;
  border-color: var(--funnel-accent);
}
.funnel-quiz .btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--funnel-accent);
  color: white;
  border: none;
  border-radius: var(--funnel-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}
.funnel-quiz .btn:hover:not(:disabled) {
  background: var(--funnel-accent-hover);
}
.funnel-quiz .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.funnel-quiz .loading {
  margin-top: 1rem;
  color: var(--funnel-muted);
}

/* Result (blurred image + CTA) */
.funnel-result h1 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.funnel-result .result-image-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 1.5rem;
  border-radius: var(--funnel-radius);
  overflow: hidden;
  border: 1px solid var(--funnel-border);
}
.funnel-result .result-image-wrap img {
  width: 100%;
  display: block;
}
.funnel-result .result-image-wrap.blurred img {
  filter: blur(12px);
  transform: scale(1.05);
}
.funnel-result .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--funnel-accent);
  color: white;
  border: none;
  border-radius: var(--funnel-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.funnel-result .btn:hover {
  background: var(--funnel-accent-hover);
}
.funnel-result .error {
  color: #ef4444;
  margin-top: 1rem;
}

/* Plans */
.funnel-plans h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.funnel-plans .plans-preview {
  max-width: 96px;
  margin: 0 auto 0.75rem;
  border-radius: var(--funnel-radius);
  overflow: hidden;
  border: 1px solid var(--funnel-border);
}
.funnel-plans .plans-preview img {
  width: 100%;
  display: block;
}
.funnel-plans .plans-preview.blurred img {
  filter: blur(4px);
  transform: scale(1.05);
}
.funnel-plans .plans-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.funnel-plans .plan-card {
  padding: 1.25rem;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: var(--funnel-radius);
  text-align: left;
}
.funnel-plans .plan-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.funnel-plans .plan-card p {
  color: var(--funnel-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.funnel-plans .plan-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.funnel-plans .plan-card .btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--funnel-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.funnel-plans .plan-card .btn:hover {
  background: var(--funnel-accent-hover);
}

/* Checkout intent */
.funnel-checkout h1 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
.funnel-checkout form {
  text-align: left;
  max-width: 320px;
  margin: 0 auto 1.5rem;
}
.funnel-checkout label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--funnel-muted);
  margin-bottom: 0.35rem;
}
.funnel-checkout input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: 8px;
  color: var(--funnel-text);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.funnel-checkout .btn {
  width: 100%;
  padding: 1rem;
  background: var(--funnel-accent);
  color: white;
  border: none;
  border-radius: var(--funnel-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}
.funnel-checkout .btn:hover:not(:disabled) {
  background: var(--funnel-accent-hover);
}
.funnel-checkout .success {
  color: #22c55e;
  margin-top: 1rem;
}
.funnel-checkout .error {
  color: #ef4444;
  margin-top: 0.5rem;
}
