:root {
  --bg: #070b12;
  --surface: #0f1622;
  --surface-2: #151f2f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(245, 196, 81, 0.55);
  --text: #eef2f8;
  --muted: #8e9bb0;
  --gold: #f5c451;
  --gold-2: #d9961c;
  --green: #22c55e;
  --danger: #f87171;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(245, 196, 81, 0.14), transparent 60%),
    radial-gradient(40rem 25rem at 100% 100%, rgba(34, 197, 94, 0.08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
}

.container {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.screen {
  animation: enter 0.35s ease both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  background: rgba(245, 196, 81, 0.08);
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 7.5vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hl {
  background: linear-gradient(90deg, var(--gold), #ffe7a3, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1204;
  box-shadow: 0 10px 30px -10px rgba(245, 196, 81, 0.6);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(245, 196, 81, 0.75);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(245, 196, 81, 0), 0 10px 30px -10px rgba(245, 196, 81, 0.6);
  }
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 196, 81, 0.45), 0 10px 30px -10px rgba(245, 196, 81, 0.6);
  }
}

.intro,
.result {
  text-align: center;
}

.is-centered .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-height: 740px) {
  .is-centered .container {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .intro .dollar-hero {
    padding: 16px 0 28px;
  }

  .intro .dollar-bill {
    width: 150px;
  }

  .intro h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .intro .tagline,
  .intro .benefits {
    margin-bottom: 20px;
  }

  .intro .benefits {
    gap: 8px;
    padding: 14px;
  }
}

.intro h1,
.result h1 {
  margin-top: 0;
}

.eyebrow-below {
  margin-top: 16px;
}

.dollar-hero {
  display: flex;
  justify-content: center;
  padding: 24px 0 44px;
  perspective: 600px;
}

.dollar-bill {
  width: 190px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(34, 197, 94, 0.35));
  transform-origin: 50% 50%;
  animation: bill-float 3.2s ease-in-out infinite;
}

@keyframes bill-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg) rotateY(-12deg);
  }
  25% {
    transform: translateY(-8px) rotate(-2deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(5deg) rotateY(12deg);
  }
  75% {
    transform: translateY(-6px) rotate(1deg) rotateY(0deg);
  }
}

.dollar-shine {
  animation: bill-shine 3.2s ease-in-out infinite;
}

@keyframes bill-shine {
  0%,
  40% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(340px);
  }
}

.tagline {
  margin: 0 0 28px;
  font-size: clamp(16px, 4.4vw, 19px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hl-green {
  color: var(--green);
}

.benefits {
  text-align: left;
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.benefits svg {
  flex: none;
  margin-top: 2px;
  color: var(--green);
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width 0.4s ease;
}

.progress-label {
  min-width: 40px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.question {
  margin: 0 0 8px;
  font-size: clamp(23px, 5.8vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.option:hover {
  border-color: rgba(245, 196, 81, 0.35);
  background: var(--surface-2);
}

.option:active {
  transform: scale(0.99);
}

.option.selected {
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.1);
}

.option-key {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.option.selected .option-key {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1204;
}

.option-text {
  display: grid;
  gap: 2px;
}

.option-text strong {
  font-weight: 600;
}

.option-text small {
  color: var(--muted);
  font-size: 14px;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: #566278;
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.15);
}

.error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.secure {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.result-text {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
}

.result-text strong {
  color: var(--text);
}

.result-cta-label {
  margin: 0 0 14px;
  font-weight: 700;
}

.result .error {
  margin-top: 12px;
}

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