:root {
  --bg: #0d0d10;
  --bg-deep: #130721;
  --panel: rgba(36, 18, 68, 0.88);
  --panel-strong: rgba(25, 12, 49, 0.96);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f8f2ff;
  --muted: #bdb2d4;
  --pink: #ff1e6f;
  --pink-soft: #ff4f95;
  --cyan: #22d3e0;
  --cyan-soft: #63f5ff;
  --sun-top: #ffd06d;
  --sun-bottom: #ff4f95;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.46);
  --radius-xl: 1.5rem;
  --radius-lg: 1.1rem;
  --radius-md: 0.85rem;
  --slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(112, 51, 171, 0.65), transparent 38%),
    linear-gradient(180deg, #25103d 0%, #0b0a15 84%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: 4;
  inset: 0;
  background:
    linear-gradient(transparent 0 97%, rgba(255, 255, 255, 0.025) 97% 100%),
    radial-gradient(circle at center, transparent 0 45%, rgba(0, 0, 0, 0.24) 100%);
  background-size: 100% 4px, 100% 100%;
  pointer-events: none;
  opacity: 0.52;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.ambient {
  position: absolute;
  z-index: -2;
  width: 20rem;
  height: 20rem;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}

.ambient-left {
  top: 35%;
  left: -12rem;
  background: rgba(34, 211, 224, 0.82);
}

.ambient-right {
  top: -4rem;
  right: -12rem;
  background: rgba(255, 30, 111, 0.7);
}

.sun {
  position: absolute;
  z-index: -1;
  inset: 11svh auto auto 50%;
  transform: translateX(-50%);
  width: min(20rem, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 0.8rem,
      rgba(46, 18, 77, 0.82) 0.8rem 1.1rem
    ),
    linear-gradient(180deg, var(--sun-top), var(--sun-bottom));
  box-shadow: 0 0 80px rgba(255, 109, 179, 0.22);
  opacity: 0.88;
  pointer-events: none;
}

.slides-viewport,
.slides-track,
.slide {
  width: 100%;
  height: 100%;
}

.slides-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.slides-track {
  display: flex;
  will-change: transform;
  transition: transform 520ms var(--slide-ease);
}

.slide {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(0.85rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow: hidden;
  pointer-events: none;
}

.slide.is-active {
  pointer-events: auto;
}

.screen-content {
  width: min(100%, 39rem);
  max-height: 100%;
}

.eyebrow,
.quiz-kicker,
.mini-label,
#progress-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero > .eyebrow {
  width: fit-content;
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(16, 8, 34, 0.9), rgba(25, 11, 48, 0.86)) padding-box,
    linear-gradient(110deg, var(--cyan-soft), var(--pink-soft)) border-box;
  color: var(--cyan-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(4, 1, 15, 0.34),
    0 0 20px rgba(34, 211, 224, 0.12);
  text-shadow: 0 0 10px rgba(99, 245, 255, 0.45);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, min(13.5vw, 8.5svh), 3.6rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  text-shadow: 0 0 28px rgba(255, 30, 111, 0.24);
}

.hero-copy {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero .button {
  margin-top: 1.25rem;
}

.hero-meta {
  margin: 0.7rem 0 0;
  color: rgba(230, 222, 245, 0.72);
  font-size: 0.76rem;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button:disabled {
  cursor: default;
  opacity: 0.7;
}

.button-primary {
  background: linear-gradient(100deg, var(--pink), var(--pink-soft));
  color: white;
  box-shadow: 0 16px 36px rgba(255, 30, 111, 0.3);
}

.button-full {
  width: 100%;
}

.text-button {
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.text-button:focus-visible {
  border-radius: 0.5rem;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.quiz-panel {
  width: min(100%, 37.5rem);
}

.quiz-progress {
  margin: 0 0 0.75rem;
}

.quiz-progress-bar {
  height: 0.32rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

#progress-fill {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 260ms var(--slide-ease);
}

#progress-label {
  margin-top: 0.55rem;
  text-align: right;
}

.quiz-card,
.lead-card,
.result-card,
.offer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(48, 25, 89, 0.88), var(--panel-strong));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quiz-card {
  padding: 1rem;
  transform-origin: center;
}

.quiz-card h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.12;
  text-wrap: balance;
}

.answers {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.answer-button {
  display: flex;
  width: 100%;
  min-height: 3.15rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.answer-button:hover,
.answer-button:focus-visible {
  outline: none;
  transform: translateX(3px);
  border-color: rgba(99, 245, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
}

.answer-index {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #d8d1e9;
  font-size: 0.78rem;
  font-weight: 800;
}

.answer-button.is-selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 224, 0.16);
}

.answer-button.is-selected .answer-index {
  border-color: transparent;
  background: var(--cyan);
  color: #092126;
}

.answer-button.is-correct {
  border-color: rgba(99, 245, 255, 0.95);
  background: rgba(34, 211, 224, 0.2);
}

.answer-button.is-wrong {
  border-color: rgba(255, 79, 149, 0.9);
  background: rgba(255, 30, 111, 0.15);
}

.answer-button[disabled] {
  cursor: default;
}

.feedback {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 220ms ease,
    margin-top 220ms ease,
    opacity 180ms ease;
}

.feedback.is-visible {
  max-height: 9rem;
  margin-top: 0.7rem;
  opacity: 1;
}

.feedback-copy {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #efe9fb;
  font-size: 0.8rem;
  line-height: 1.4;
}

.feedback-copy strong {
  display: inline;
  margin-right: 0.2rem;
}

.quiz-card > .button {
  margin-top: 0.7rem;
}

.quiz-card.is-question-leaving {
  animation: question-leave 180ms ease-in both;
}

.quiz-card.is-question-entering {
  animation: question-enter 260ms var(--slide-ease) both;
}

.lead-card h2 {
  max-width: 12ch;
  margin: 0.45rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  line-height: 0.94;
  text-wrap: balance;
}

.lead-copy {
  max-width: 31rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lead-form-shell {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(99, 245, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(9, 5, 23, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lead-form-shell form {
  margin: 0;
}

.lead-form-shell input[type="email"] {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.lead-form-shell input[type="email"]::placeholder {
  color: rgba(224, 214, 240, 0.5);
}

.lead-form-shell input[type="email"]:focus {
  border-color: var(--cyan-soft);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(34, 211, 224, 0.14);
}

.lead-form-shell .ml-form-embedSubmit {
  margin-top: 0.7rem;
}

.lead-form-shell .loading {
  cursor: wait;
}

.lead-form-shell .ml-error input {
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(255, 30, 111, 0.12);
}

.lead-privacy,
.lead-status,
.row-success p {
  text-align: center;
}

.lead-privacy {
  margin: 0.65rem 0 0;
  color: rgba(230, 222, 245, 0.66);
  font-size: 0.7rem;
}

.lead-status {
  min-height: 1rem;
  margin: 0.45rem 0 0;
  color: var(--cyan-soft);
  font-size: 0.72rem;
}

.row-success p {
  margin: 0;
  color: var(--cyan-soft);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead-card,
.result-card,
.offer-card {
  width: min(100%, 37.5rem);
  padding: 1.1rem;
}

.result-card h2,
.offer-copy h2 {
  margin: 0.4rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.96;
  text-wrap: balance;
}

.result-bonus-note {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--cyan-soft);
  border-radius: 0.5rem;
  background: rgba(34, 211, 224, 0.08);
  color: rgba(239, 233, 251, 0.82);
  font-size: 0.75rem;
  line-height: 1.35;
}

.result-bonus-note strong {
  color: var(--cyan-soft);
}

.result-card h2 {
  font-size: clamp(2.35rem, 10vw, 3.2rem);
}

.result-score {
  margin: 0.75rem 0 0;
  color: var(--cyan-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.result-copy {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.result-points {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.result-pill {
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--pink);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.8rem;
  line-height: 1.35;
}

.result-actions {
  display: grid;
  justify-items: center;
  margin-top: 0.85rem;
}

.offer-copy h2 {
  font-size: clamp(2.5rem, 11vw, 3.5rem);
}

.offer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(28vw, 7rem);
  gap: 0.65rem;
  align-items: center;
}

.ebook-mockup {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(1.5deg);
  filter:
    drop-shadow(0 16px 18px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 12px rgba(255, 30, 111, 0.12));
}

.offer-copy > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.benefit-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.benefit-list p {
  position: relative;
  margin: 0;
  padding: 0.55rem 0.65rem 0.55rem 1.9rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  line-height: 1.3;
}

.benefit-list p::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 0.7rem;
  transform: translateY(-50%);
  color: var(--cyan-soft);
  font-weight: 900;
}

.price-card {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(99, 245, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(9, 5, 23, 0.48);
}

.price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price-anchor {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
  text-decoration: line-through;
}

.price-main {
  margin: 0.3rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 13vw, 4rem);
  line-height: 0.85;
}

.price-note,
.price-help {
  color: var(--muted);
}

.price-note {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.price-card .button {
  margin-top: 0.75rem;
}

.price-help {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  text-align: center;
}

@keyframes question-leave {
  to {
    transform: translateX(-2rem);
    opacity: 0;
  }
}

@keyframes question-enter {
  from {
    transform: translateX(2rem);
    opacity: 0;
  }
}

@media (max-height: 700px) {
  .slide {
    padding-top: max(0.55rem, env(safe-area-inset-top));
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.2rem);
  }

  .hero-copy {
    font-size: 0.9rem;
  }

  .hero .button {
    margin-top: 1rem;
  }

  .quiz-progress {
    margin-bottom: 0.45rem;
  }

  .quiz-card {
    padding: 0.75rem;
  }

  .quiz-card h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }

  .answers {
    gap: 0.4rem;
    margin-top: 0.7rem;
  }

  .answer-button {
    min-height: 2.7rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }

  .answer-index {
    width: 1.55rem;
    height: 1.55rem;
  }

  .feedback.is-visible {
    margin-top: 0.5rem;
  }

  .feedback-copy {
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
  }

  .quiz-card > .button {
    min-height: 2.85rem;
    margin-top: 0.5rem;
    padding-block: 0.65rem;
  }

  .result-card,
  .lead-card,
  .offer-card {
    padding: 0.85rem;
  }

  .lead-card h2 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .lead-copy {
    margin-top: 0.5rem;
    font-size: 0.78rem;
  }

  .lead-form-shell {
    margin-top: 0.7rem;
    padding: 0.7rem;
  }

  .lead-form-shell input[type="email"] {
    min-height: 2.9rem;
    padding-block: 0.65rem;
  }

  .lead-form-shell .button {
    min-height: 2.9rem;
    padding-block: 0.65rem;
  }

  .result-card h2 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  .result-copy {
    font-size: 0.78rem;
  }

  .result-points {
    gap: 0.35rem;
    margin-top: 0.55rem;
  }

  .result-pill {
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
  }

  .result-actions {
    margin-top: 0.55rem;
  }

  .result-actions .button {
    min-height: 2.9rem;
  }

  .offer-copy h2 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .offer-top {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    gap: 0.5rem;
  }

  .offer-copy > p:last-child {
    margin-top: 0.45rem;
    font-size: 0.76rem;
  }

  .benefit-list {
    gap: 0.3rem;
    margin-top: 0.55rem;
  }

  .benefit-list p {
    padding-block: 0.42rem;
    font-size: 0.7rem;
  }

  .price-card {
    margin-top: 0.55rem;
    padding: 0.65rem;
  }

  .price-main {
    font-size: 2.8rem;
  }

  .price-card .button {
    min-height: 2.9rem;
    margin-top: 0.55rem;
  }
}

@media (min-width: 700px) {
  .slide {
    padding: 2rem;
  }

  .screen-content {
    width: min(88vw, 43rem);
  }

  .sun {
    inset: 7svh auto auto 50%;
    width: min(28rem, 50vw);
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(4.5rem, 7vw, 6.2rem);
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .quiz-card,
  .lead-card,
  .result-card,
  .offer-card {
    padding: 1.4rem;
  }

  .answer-button {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides-track,
  #progress-fill,
  .feedback,
  .button,
  .answer-button {
    transition: none !important;
  }

  .quiz-card.is-question-leaving,
  .quiz-card.is-question-entering {
    animation: none !important;
  }
}
