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

:root {
  --red: #e8001c;
  --red-dark: #b90018;
  --black: #0a0a0a;
  --surface: #121212;
  --surface-soft: #171717;
  --surface-border: #2a2a2a;
  --white: #ffffff;
  --text: #f1f1f1;
  --text-soft: #b8b8b8;
  --text-muted: #8d8d8d;
  --green: #25d366;
  --green-dark: #1fb35a;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.funnel {
  width: 100%;
  height: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--black);
  display: flex;
  flex-direction: column;
  border-inline: 1px solid #1e1e1e;
}

.header {
  flex-shrink: 0;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #1f1f1f;
  background: rgba(10, 10, 10, 0.95);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.brand-title em {
  color: var(--red);
  font-style: normal;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.level-pill {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.level-pill.hidden {
  display: none;
}

.prog-wrap {
  display: none;
  margin-top: 10px;
}

.prog-wrap.on {
  display: block;
}

.prog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.prog-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

.prog-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

.prog-track {
  height: 4px;
  border-radius: 99px;
  background: #232323;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.35s var(--ease);
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #303030;
  transition: all 0.2s ease;
}

.dot.done {
  background: #666;
}

.dot.active {
  width: 16px;
  background: var(--red);
}

.helper-copy {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.slides {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slide.exit {
  opacity: 0;
  transform: translateX(-14px);
}

.slide-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 8px;
  scrollbar-width: none;
}

#slide-welcome .slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 14px;
}

.slide-body::-webkit-scrollbar {
  display: none;
}

.slide-actions {
  flex-shrink: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid #1f1f1f;
  background: #0f0f0f;
}

.action-row,
.action-row-result {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
}

.action-trust {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.action-trust-wapp {
  color: #97d5b1;
}

.btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-red:disabled {
  background: #2d2d2d;
  color: #7f7f7f;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: #5b5b5b;
  color: var(--white);
}

.btn-start {
  min-height: 50px;
}

.start-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 22px;
  animation: startArrowBounce 1.2s ease-in-out infinite;
}

.start-arrow i {
  line-height: 1;
}

@keyframes startArrowBounce {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.65;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

.btn-wapp {
  background: linear-gradient(180deg, #32df76 0%, #25d366 100%);
  color: #fff;
  animation: pulseCta 1.35s ease-in-out infinite;
}

.btn-wapp:hover {
  background: linear-gradient(180deg, #2ad06e 0%, #1fb35a 100%);
}

.btn-wapp i {
  animation: ctaIconBounce 1.1s ease-in-out infinite;
}

@keyframes pulseCta {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(37, 211, 102, 0.14);
  }
}

@keyframes ctaIconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.welcome-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #c8c8c8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.welcome-title {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.35px;
  max-width: 14ch;
}

.welcome-title span {
  color: var(--red);
}

.welcome-desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 34ch;
}

.welcome-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.welcome-points li {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 5px 10px;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.2;
}

.journey-box {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
  background: #141414;
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.journey-box p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.journey-box strong {
  color: var(--white);
}

.welcome-proof {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.question-head {
  margin-bottom: 12px;
  text-align: center;
}

.q-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.q-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
  max-width: 18ch;
  margin-inline: auto;
}

.q-sub {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
  max-width: 38ch;
  margin-inline: auto;
}

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

.opt {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opt-icon-wrap {
  display: none;
}

.opt.selected {
  border-color: var(--red);
  background: rgba(232, 0, 28, 0.07);
}

.opt-body {
  flex: 1;
  min-width: 0;
}

.opt-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.opt-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.opt-check {
  width: 18px;
  height: 18px;
  border: 1px solid #5b5b5b;
  border-radius: 99px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.opt-check i {
  display: none;
}

.opt.selected .opt-check {
  border-color: var(--red);
  background: var(--red);
}

.opt.selected .opt-check::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #fff;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 11px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #151515;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  padding: 0 12px;
  outline: none;
}

.form-input:focus {
  border-color: #5a5a5a;
}

.form-input::placeholder {
  color: #777;
}

.form-trust {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.result-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-hero {
  width: 58px;
  height: 58px;
  border-radius: 99px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  animation: resultPop 0.35s ease;
}

.result-hero i {
  color: var(--green);
  font-size: 22px;
}

@keyframes resultPop {
  from {
    transform: scale(0.88);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.result-ring {
  display: none;
}

.result-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.result-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  margin-bottom: 0;
  max-width: 34ch;
  margin-inline: auto;
}

.result-qualified {
  border: 1px solid #2d3f35;
  background: #142219;
  color: #b8d8c4;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.summary-card {
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px;
  text-align: left;
  max-width: 380px;
  margin-inline: auto;
}

.summary-heading {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}

.summary-row + .summary-row {
  border-top: 1px solid #232323;
}

.summary-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  display: grid;
  place-items: center;
  color: #b1b1b1;
  flex-shrink: 0;
}

.summary-row-icon i {
  font-size: 11px;
}

.summary-row-text {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-soft);
}

.result-next-step {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #aad7bb;
}

.slide-actions-result {
  display: grid;
  gap: 8px;
  border-top-color: #1f2a22;
  background: linear-gradient(180deg, #0f0f0f 0%, #0d1210 100%);
}

.cta-hint {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #9de3ba;
  text-align: center;
}

.cta-hint i {
  color: #58df8e;
  font-size: 12px;
  animation: ctaArrowBounce 0.9s ease-in-out infinite;
}

@keyframes ctaArrowBounce {
  0%,
  100% {
    transform: translateY(-1px);
    opacity: 0.72;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}

.btn-wapp-primary {
  min-height: 60px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.33);
}

.btn-back-inline {
  border: none;
  background: transparent;
  color: #9f9f9f;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  min-height: 24px;
  cursor: pointer;
}

.btn-back-inline:hover {
  color: #d6d6d6;
}

#confetti {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 300;
}

.cp {
  position: absolute;
  animation: cFall linear forwards;
}

@keyframes cFall {
  0% {
    transform: translateY(-20px);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@media (max-width: 460px) {
  .funnel {
    max-width: none;
    border-inline: 0;
  }

  .header,
  .slide-body,
  .slide-actions {
    padding-inline: 14px;
  }

  .welcome-title {
    font-size: 27px;
  }

  .q-title {
    font-size: 24px;
  }

  .result-title {
    font-size: 34px;
  }

  .action-row,
  .action-row-result {
    grid-template-columns: 96px 1fr;
  }

  .btn-wapp-primary {
    min-height: 62px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
