:root {
  --purple-1000: #0d0417;
  --purple-950: #130622;
  --purple-900: #1a0a2e;
  --purple-850: #24103c;
  --purple-800: #2d1257;
  --purple-700: #3d1a72;
  --purple-300: #bca6d2;
  --gold-500: #f5a623;
  --gold-400: #ffc34a;
  --white: #ffffff;
  --text: #fbf9fd;
  --muted: #c7b9d4;
  --line: rgba(255, 255, 255, 0.14);
  --danger: #ff9db0;
  --shadow: 0 22px 64px rgba(5, 1, 10, 0.42);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--purple-950); scrollbar-color: var(--gold-500) var(--purple-950); scrollbar-width: thin; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--purple-950);
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--gold-500);
}
body.is-landing {
  width: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { color: var(--purple-950); background: var(--gold-400); }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--purple-950); }
::-webkit-scrollbar-thumb { border: 2px solid var(--purple-950); border-radius: 10px; background: var(--gold-500); }

.app-shell { min-height: 100vh; min-height: 100dvh; }
.is-landing .app-shell { min-height: 100svh; overflow: visible; }
.screen { display: none; min-height: 100vh; min-height: 100dvh; }
.screen.is-active { display: flex; }
.landing.is-active { min-height: 100svh; }

.landing, .success {
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 42px 22px;
  isolation: isolate;
}
.landing::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(135deg, var(--purple-950), var(--purple-900) 58%, var(--purple-850));
}
.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(245, 166, 35, .24);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: 560px; height: 560px; top: -370px; right: -190px; }
.orbit-two { width: 390px; height: 390px; bottom: -275px; left: -130px; }

.landing-content, .success-content {
  width: min(100%, 760px);
  text-align: center;
  animation: enter .6s var(--ease) both;
}
@keyframes enter {
  from { opacity: .01; transform: translateY(16px); filter: blur(3px); }
}
.brand-logo {
  display: block;
  width: 252px;
  height: 84px;
  margin: 0 auto 42px;
  object-fit: cover;
  object-position: center;
}
h1, h2, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.landing h1 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.55rem, 6.5vw, 5.15rem);
  line-height: .99;
}
.landing h1 span { color: var(--gold-400); }
.landing-copy {
  max-width: 62ch;
  margin: 28px auto 8px;
  color: var(--muted);
  font-size: clamp(.98rem, 2vw, 1.12rem);
  line-height: 1.7;
}
.time-note { margin-bottom: 30px; color: #ab99ba; font-size: .84rem; }

.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 27px;
  border: 0;
  border-radius: 10px;
  color: var(--purple-1000);
  background: var(--gold-500);
  box-shadow: 0 12px 32px rgba(245, 166, 35, .22);
  font-weight: 750;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}
.primary-button svg, .back-button svg, .success-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary-button:not(:disabled):hover { transform: translateY(-2px); background: var(--gold-400); box-shadow: 0 15px 38px rgba(245, 166, 35, .3); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }

.trust-list {
  display: grid;
  width: fit-content;
  gap: 9px;
  margin: 34px auto 0;
  color: #b8a7c6;
  font-size: .76rem;
  text-align: left;
}
.trust-list p { display: flex; gap: 9px; align-items: center; margin: 0; }
.trust-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz { flex-direction: column; padding: 0 18px; background: var(--purple-950); }
.quiz-header {
  position: sticky;
  z-index: 5;
  top: 0;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px 0 12px;
  background: rgba(19, 6, 34, .94);
  backdrop-filter: blur(12px);
}
.header-line {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.header-line img { width: 146px; height: 42px; object-fit: cover; object-position: center; justify-self: start; }
.header-line small { color: #b8a7c6; font-size: .72rem; font-variant-numeric: tabular-nums; }
.back-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--purple-850);
  transition: border-color .2s ease, background .2s ease;
}
.back-button:hover { border-color: rgba(245, 166, 35, .55); background: var(--purple-800); }
.progress-track { height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.progress-track span { display: block; width: 11.111%; height: 100%; background: var(--gold-500); transform-origin: left; transition: width .4s var(--ease); }

.quiz-stage {
  display: grid;
  flex: 1;
  width: min(100%, 940px);
  margin: 0 auto;
  place-items: center;
  padding: 34px 0 44px;
}
#leadForm { width: 100%; }
.question-panel { display: none; width: min(100%, 660px); margin: 0 auto; }
.question-panel.goal-panel { width: min(100%, 940px); }
.question-panel.is-current { display: block; animation: question-in .34s var(--ease) both; }
@keyframes question-in { from { opacity: .01; transform: translateX(16px); filter: blur(2px); } }
.question-surface {
  width: 100%;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--purple-900);
  box-shadow: var(--shadow);
}
.question-surface h2 {
  margin-bottom: 26px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.16;
}
.question-hint { margin: -16px 0 24px; color: var(--muted); font-size: .9rem; }
.field-label { display: block; margin-bottom: 8px; color: #e8dff0; font-size: .82rem; font-weight: 650; }
.question-surface input[type="text"],
.question-surface input[type="tel"],
.question-surface input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--white);
  caret-color: var(--gold-400);
  background: var(--purple-850);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.question-surface input::placeholder { color: #9f8eae; opacity: 1; }
.question-surface input:hover { border-color: rgba(255, 255, 255, .25); }
.question-surface input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(245, 166, 35, .12); background: #291344; }
.question-surface input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 20px; margin: 7px 0 0; color: var(--danger); font-size: .78rem; }
.continue-button { width: 100%; margin-top: 22px; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.answer-list { display: grid; gap: 10px; }
.answer-grid { grid-template-columns: 1fr 1fr; }
.answer-list label { position: relative; cursor: pointer; }
.answer-list input, .goal-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer-list span {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #eee8f3;
  background: var(--purple-850);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.answer-list span::before {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1.5px solid #a895b7;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px var(--purple-850);
  content: "";
}
.answer-list label:hover span { transform: translateX(3px); border-color: rgba(245, 166, 35, .5); }
.answer-list input:checked + span { border-color: var(--gold-500); background: #30164d; }
.answer-list input:checked + span::before { border-color: var(--gold-400); background: var(--gold-400); }
.answer-list input:focus-visible + span, .goal-option input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 3px; }

.goal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.goal-option { --x: 0%; --y: 0%; position: relative; min-width: 0; cursor: pointer; }
.goal-option > span {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: flex-end;
  overflow: hidden;
  padding: 13px;
  border: 2px solid transparent;
  border-radius: 13px;
  color: var(--white);
  background-image: linear-gradient(to top, rgba(12, 3, 21, .94), rgba(12, 3, 21, .08) 72%), url("assets/objetivos-financeiros-sprite.png");
  background-position: center, var(--x) var(--y);
  background-size: 100% 100%, 500% 200%;
  box-shadow: 0 10px 26px rgba(4, 1, 8, .28);
  transition: border-color .2s ease, transform .2s ease, filter .2s ease;
}
.goal-option:hover > span { transform: translateY(-3px); filter: brightness(1.08); }
.goal-option b { position: relative; z-index: 1; font-size: .78rem; line-height: 1.3; text-wrap: balance; text-shadow: 0 2px 8px #000; }
.goal-option > span > svg { position: absolute; z-index: 1; top: 9px; right: 9px; display: grid; width: 25px; height: 25px; padding: 4px; place-items: center; border-radius: 50%; color: var(--purple-950); background: var(--gold-400); fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.75); transition: opacity .2s ease, transform .2s ease; }
.goal-option input:checked + span { border-color: var(--gold-400); }
.goal-option input:checked + span > svg { opacity: 1; transform: scale(1); }
.goal-1 { --x: 0%; --y: 0%; }.goal-2 { --x: 25%; --y: 0%; }.goal-3 { --x: 50%; --y: 0%; }.goal-4 { --x: 75%; --y: 0%; }.goal-5 { --x: 100%; --y: 0%; }
.goal-6 { --x: 0%; --y: 100%; }.goal-7 { --x: 25%; --y: 100%; }.goal-8 { --x: 50%; --y: 100%; }.goal-9 { --x: 75%; --y: 100%; }.goal-10 { --x: 100%; --y: 100%; }
.other-goal { margin-top: 18px; }

.consent-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  margin-top: 22px;
  color: #d8cde1;
  font-size: .84rem;
  cursor: pointer;
}
.consent-option input { width: 20px; height: 20px; margin: 2px 0 0; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.feedback { min-height: 22px; margin-top: 12px; color: var(--danger); font-size: .82rem; font-weight: 650; }
.confidentiality { width: min(100%, 760px); margin: -22px auto 24px; color: #9e8bac; font-size: .72rem; text-align: center; }

.success { background: var(--purple-950); }
.success-content { width: min(100%, 660px); }
.success-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 24px; place-items: center; border-radius: 50%; color: var(--purple-950); background: var(--gold-500); box-shadow: 0 14px 36px rgba(245, 166, 35, .25); }
.success-icon svg { width: 34px; height: 34px; stroke-width: 2.3; }
.success h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; }
.success p { margin: 18px 0 22px; color: var(--muted); font-size: 1.05rem; }
.success small { color: #9e8bac; }
.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; }

@media (max-width: 900px) {
  .goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 621px) and (max-height: 900px) {
  .landing { padding-block: 24px; }
  .brand-logo { width: 220px; height: 74px; margin-bottom: 22px; }
  .landing h1 { max-width: 16ch; font-size: clamp(3rem, 5vw, 4rem); line-height: 1; }
  .landing-copy { margin-top: 18px; font-size: 1rem; line-height: 1.5; }
  .time-note { margin-bottom: 16px; }
  .trust-list { gap: 6px; margin-top: 20px; font-size: .72rem; }
}
@media (min-width: 621px) and (max-height: 720px) {
  .landing { padding-block: 16px; }
  .brand-logo { width: 190px; height: 64px; margin-bottom: 12px; }
  .landing h1 { max-width: 17ch; font-size: clamp(2.65rem, 4.2vw, 3.25rem); }
  .landing-copy { max-width: 58ch; margin-top: 12px; font-size: .9rem; line-height: 1.4; }
  .time-note { margin-bottom: 10px; font-size: .76rem; }
  .primary-button { min-height: 50px; }
  .trust-list { gap: 4px; margin-top: 12px; font-size: .68rem; }
}
@media (max-width: 620px) {
  .landing { padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .success { padding: 28px 20px; }
  .brand-logo { width: 174px; height: 58px; margin-bottom: 18px; }
  .landing h1 { max-width: 14ch; font-size: clamp(2.05rem, 10.5vw, 2.8rem); line-height: 1; }
  .landing-copy { max-width: 42ch; margin-top: 16px; font-size: .86rem; line-height: 1.45; }
  .time-note { margin-bottom: 14px; }
  .start-button { width: 100%; }
  .trust-list { gap: 6px; margin-top: 18px; font-size: .7rem; }
  .quiz { padding-inline: 14px; }
  .quiz-header { padding-top: 10px; }
  .header-line { grid-template-columns: 42px 1fr auto; }
  .header-line img { width: 112px; height: 38px; }
  .quiz-stage { place-items: start center; padding: 24px 0 36px; }
  .question-surface { padding: 26px 20px; }
  .question-surface h2 { font-size: clamp(1.72rem, 8vw, 2.2rem); }
  .answer-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .goal-option > span { min-height: 148px; }
  .goal-option b { font-size: .78rem; }
  .confidentiality { margin-top: -14px; padding-inline: 14px; }
}
@media (max-width: 620px) and (max-height: 700px) {
  .landing { padding-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom)); }
  .brand-logo { width: 150px; height: 50px; margin-bottom: 10px; }
  .landing h1 { max-width: 15ch; font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .landing-copy { max-width: 42ch; margin-top: 10px; font-size: .78rem; line-height: 1.36; }
  .time-note { margin-bottom: 10px; font-size: .72rem; }
  .primary-button { min-height: 48px; }
  .trust-list { gap: 4px; margin-top: 12px; font-size: .66rem; }
  .trust-list svg { width: 14px; height: 14px; flex-basis: 14px; }
}
@media (max-width: 370px) {
  .landing h1 { font-size: clamp(1.72rem, 9vw, 2rem); }
  .header-line img { width: 96px; }
  .header-line small { font-size: .66rem; }
  .question-surface { padding-inline: 16px; }
  .goal-option > span { min-height: 132px; }
  .goal-option b { font-size: .7rem; }
}
@media (max-width: 620px) and (max-height: 540px) {
  .landing { padding-block: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom)); }
  .brand-logo { width: 132px; height: 44px; margin-bottom: 6px; }
  .landing h1 { font-size: clamp(1.5rem, 8vw, 1.85rem); }
  .landing-copy { margin-top: 7px; font-size: .75rem; line-height: 1.3; }
  .time-note { margin-bottom: 7px; font-size: .7rem; }
  .primary-button { min-height: 44px; font-size: .9rem; }
  .trust-list { gap: 2px; margin-top: 8px; font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
