:root {
  --funnel-bg: #05070a;
  --funnel-surface: #0f141c;
  --funnel-surface-strong: #151b25;
  --funnel-text: #f5f7fb;
  --funnel-muted: #aab3c0;
  --funnel-line: rgba(255, 255, 255, 0.11);
  --funnel-blue: #4f7cff;
  --funnel-green: #6fdaa2;
}

body.funnel-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(63, 130, 246, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(75, 184, 120, 0.08), transparent 24rem),
    linear-gradient(180deg, var(--funnel-bg), #070a0f 54%, var(--funnel-bg));
  color: var(--funnel-text);
}

body.funnel-page::before {
  opacity: 0.12;
}

.funnel-page [hidden] {
  display: none !important;
}

.funnel-page a:focus-visible,
.funnel-page button:focus-visible,
.funnel-page summary:focus-visible {
  outline: 3px solid #9ec0ff;
  outline-offset: 3px;
}

.funnel-main {
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px) 0 58px;
}

.funnel-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.funnel-card {
  border: 1px solid var(--funnel-line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.042));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.funnel-primary-card {
  display: grid;
  align-content: center;
  min-height: 410px;
  padding: clamp(28px, 5vw, 46px);
}

.funnel-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(111, 218, 162, 0.3);
  border-radius: 999px;
  background: rgba(111, 218, 162, 0.1);
  color: rgba(245, 247, 251, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
}

.funnel-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--funnel-green);
  box-shadow: 0 0 0 5px rgba(111, 218, 162, 0.12);
}

.funnel-status[data-state="starting"] .funnel-status-dot {
  animation: funnel-pulse 1.25s ease-in-out infinite;
}

@keyframes funnel-pulse {
  50% { transform: scale(0.78); opacity: 0.66; }
}

.funnel-primary-card h1 {
  max-width: 680px;
  margin: 18px 0 14px;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.funnel-lead {
  max-width: 660px;
  margin: 0;
  color: var(--funnel-muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.58;
}

.funnel-lead strong {
  color: #fff;
}

.funnel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.funnel-actions .button,
.funnel-actions button.button {
  min-width: 164px;
  justify-content: center;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.funnel-text-link {
  color: rgba(245, 247, 251, 0.78);
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.funnel-note {
  margin: 15px 0 0;
  color: rgba(245, 247, 251, 0.58);
  font-size: 0.9rem;
  line-height: 1.52;
}

.funnel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.funnel-meta li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  color: rgba(245, 247, 251, 0.7);
  font-size: 0.82rem;
  font-weight: 760;
}

.funnel-secondary-card {
  min-height: 410px;
  padding: 26px;
}

.funnel-label {
  margin: 0 0 8px;
  color: rgba(245, 247, 251, 0.6);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.funnel-secondary-card h2,
.funnel-followup h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.funnel-secondary-card > p:not(.funnel-label),
.funnel-followup p {
  margin: 10px 0 0;
  color: rgba(245, 247, 251, 0.66);
  line-height: 1.55;
}

.funnel-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.funnel-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.048);
}

.funnel-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: rgba(79, 124, 255, 0.18);
  color: #c3d5ff;
  font-size: 0.87rem;
  font-weight: 900;
}

.funnel-step strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.96rem;
}

.funnel-step span:last-child {
  color: rgba(245, 247, 251, 0.64);
  font-size: 0.92rem;
  line-height: 1.45;
}

.funnel-followup {
  margin-top: 18px;
  padding: 26px;
}

.funnel-handoff-url {
  display: block;
  margin-top: 16px;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7ff;
  font: 0.88rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.funnel-reassurance {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(111, 218, 162, 0.16);
  border-radius: 16px;
  background: rgba(111, 218, 162, 0.06);
  color: rgba(245, 247, 251, 0.75);
  line-height: 1.55;
}

.funnel-page .site-footer {
  margin-top: 44px;
}

@media (max-width: 880px) {
  .funnel-hero {
    grid-template-columns: 1fr;
  }

  .funnel-primary-card,
  .funnel-secondary-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .funnel-main {
    width: min(100% - 28px, 1040px);
    padding-top: 18px;
  }

  .funnel-card {
    border-radius: 22px;
  }

  .funnel-primary-card,
  .funnel-secondary-card,
  .funnel-followup {
    padding: 22px;
  }

  .funnel-primary-card h1 {
    font-size: clamp(2.3rem, 14vw, 3.8rem);
  }

  .funnel-actions {
    display: grid;
  }

  .funnel-actions .button,
  .funnel-actions button.button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funnel-status-dot {
    animation: none !important;
  }
}
