/* =========================================================
   VARIÁVEIS DE MARCA
   ========================================================= */
:root {
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-brand: #7A00FF;
  --color-brand-dark: #6200D9;
  --color-brand-light: #9B4DFF;
  --color-soft: #C9C2F7;
  --color-secondary: #383A4F;
  --color-gold: #D9B968;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow-soft: 0 8px 30px rgba(56, 58, 79, 0.08);
  --shadow-card: 0 2px 10px rgba(56, 58, 79, 0.06);
  --shadow-premium: 0 20px 45px rgba(98, 0, 217, 0.14), 0 4px 14px rgba(56, 58, 79, 0.06);

  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-step: 350ms;
  --cta-height: 84px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(720px 420px at 50% -8%, rgba(122, 0, 255, 0.10), transparent 70%),
    radial-gradient(600px 500px at 100% 0%, rgba(155, 77, 255, 0.06), transparent 65%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: var(--font-body);
}

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   LAYOUT GERAL
   ========================================================= */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(201, 194, 247, 0.35);
  z-index: 50;
  opacity: 0;
  transition: opacity 300ms var(--ease-smooth);
}

.progress-track.is-visible {
  opacity: 1;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-brand);
  transition: width 450ms var(--ease-smooth);
}

.container {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* =========================================================
   SISTEMA DE TELAS (STEPS)
   ========================================================= */
.screen {
  display: none;
  width: 100%;
  min-width: 0;
}

.screen.is-active {
  display: block;
  animation: screen-in var(--dur-step) var(--ease-smooth) forwards;
}

.screen.is-leaving-back {
  animation: screen-out-to-right var(--dur-step) var(--ease-smooth) forwards;
}

.screen.is-leaving-forward {
  animation: screen-out-to-left var(--dur-step) var(--ease-smooth) forwards;
}

.screen.is-entering-back {
  animation: screen-in-from-left var(--dur-step) var(--ease-smooth) forwards;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes screen-in-from-left {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes screen-out-to-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-28px); }
}

@keyframes screen-out-to-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(28px); }
}

/* =========================================================
   FASE 1 — CAPA
   ========================================================= */
.screen--cover {
  display: none;
}

.screen--cover.is-active {
  display: block;
}

.logos-marquee {
  margin-bottom: 40px;
}

.logos-caption {
  text-align: center;
  font-size: 13px;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 250ms var(--ease-smooth), transform 250ms var(--ease-smooth);
}

.marquee:hover .marquee__track img {
  opacity: 1;
}

.marquee__track img:hover {
  transform: translateY(-2px) scale(1.06);
  opacity: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cover-photo {
  display: block;
  width: min(280px, 62%);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 18px 34px rgba(98, 0, 217, 0.22));
  -webkit-mask-image: radial-gradient(ellipse 76% 80% at 50% 40%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 76% 80% at 50% 40%, #000 60%, transparent 100%);
  animation: photo-float 5s var(--ease-smooth) infinite, fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 0s, 80ms;
}

@keyframes photo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cover-body {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 160ms;
}

.eyebrow--center {
  display: block;
}

.cover-headline {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 240ms;
}

.cover-subtext {
  font-size: 14.5px;
  color: var(--color-secondary);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 320ms;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-align: center;
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 400ms;
}

.bullets li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-brand-dark);
  font-weight: 600;
  background: linear-gradient(180deg, #FAF7FF 0%, #F1EBFF 100%);
  border: 1px solid #E4DCFB;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
}

.bullet-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand);
  position: relative;
}

.bullet-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.text-highlight {
  color: var(--color-brand);
}

.cta-spacer {
  height: var(--cta-height);
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  transition: transform 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth), background 180ms var(--ease-smooth), opacity 180ms var(--ease-smooth);
}

.btn--primary {
  background: var(--color-brand);
  color: #FFFFFF;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(122, 0, 255, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(122, 0, 255, 0.36);
  background: var(--color-brand-dark);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--large {
  font-size: 17px;
  min-height: 60px;
}

.btn-arrow {
  transition: transform 220ms var(--ease-smooth);
}

.btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn--whatsapp {
  margin-top: 0;
}

/* =========================================================
   CTA FLUTUANTE (fixo na base da tela, pulsante)
   ========================================================= */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 32%);
  pointer-events: none;
}

.floating-cta .btn {
  max-width: 520px;
  margin: 0 auto;
  pointer-events: auto;
}

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

.btn--pulse:hover {
  animation-play-state: paused;
}

@keyframes btn-pulse {
  0% {
    box-shadow: 0 6px 20px rgba(122, 0, 255, 0.28), 0 0 0 0 rgba(122, 0, 255, 0.45);
  }
  65% {
    box-shadow: 0 6px 20px rgba(122, 0, 255, 0.28), 0 0 0 16px rgba(122, 0, 255, 0);
  }
  100% {
    box-shadow: 0 6px 20px rgba(122, 0, 255, 0.28), 0 0 0 0 rgba(122, 0, 255, 0);
  }
}

.wa-icon {
  flex-shrink: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 8px 4px;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: color 180ms ease, opacity 180ms ease;
}

.btn-back:hover {
  color: var(--color-brand);
}

.btn-back[hidden] {
  display: none;
}

/* =========================================================
   FASE 2 — STEPS DE PERGUNTA
   ========================================================= */
.screen--step {
  padding-top: 4px;
}

.step-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.step-title {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-subtitle {
  font-size: 14.5px;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.step-title + .options,
.step-title + .text-field {
  margin-top: 24px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  width: 100%;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 2px solid #EDEBF9;
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color 200ms var(--ease-smooth), background 200ms var(--ease-smooth), transform 150ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth);
}

.option-card:hover {
  border-color: var(--color-soft);
  background: #FAF9FF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.option-card:active {
  transform: scale(0.98);
}

.option-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #DAD6F2;
  flex-shrink: 0;
  position: relative;
  transition: border-color 200ms var(--ease-smooth), background 200ms var(--ease-smooth);
}

.option-card.is-selected {
  border-color: var(--color-brand);
  background: var(--color-soft);
  box-shadow: 0 4px 16px rgba(122, 0, 255, 0.18);
}

.option-card.is-selected .option-check {
  border-color: var(--color-brand);
  background: var(--color-brand);
}

.option-card.is-selected .option-check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: translate(-50%, -65%) rotate(-45deg);
  animation: check-pop 260ms var(--ease-smooth);
}

@keyframes check-pop {
  from { opacity: 0; transform: translate(-50%, -65%) rotate(-45deg) scale(0.4); }
  to   { opacity: 1; transform: translate(-50%, -65%) rotate(-45deg) scale(1); }
}

.text-field {
  margin-bottom: 20px;
}

.text-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 16px;
  color: var(--color-text);
  background: #FFFFFF;
  border: 2px solid #EDEBF9;
  border-radius: var(--radius-md);
  transition: border-color 200ms var(--ease-smooth), background 200ms var(--ease-smooth);
}

.text-input::placeholder {
  color: #A9A6C4;
}

.text-input:focus {
  border-color: var(--color-brand);
  background: #FAF9FF;
  outline: none;
}

/* =========================================================
   FASE 3 — RESULTADO
   ========================================================= */
.screen--result {
  text-align: center;
}

.result-title {
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 120ms;
}

.summary-card {
  background: #FAF9FF;
  border: 1px solid #EDEBF9;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
  box-shadow: var(--shadow-premium);
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 200ms;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #EDEBF9;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 13.5px;
  color: var(--color-secondary);
  font-weight: 500;
}

.summary-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-align: right;
}

.offer-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #8A1AFF 0%, #6200D9 55%, #4B00A8 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(98, 0, 217, 0.32);
  animation: fade-slide-up 700ms var(--ease-smooth) both;
  animation-delay: 280ms;
}

.offer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%);
  background-size: 220% 220%;
  animation: offer-shine 4.5s ease-in-out infinite;
}

@keyframes offer-shine {
  0% { background-position: 120% 0%; }
  55%, 100% { background-position: -20% 0%; }
}

.offer-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 10px;
}

.offer-price {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.offer-currency {
  font-size: 20px;
  vertical-align: top;
  margin-right: 2px;
}

.offer-period {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 4px;
}

.offer-note {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 8px;
}

.disq-text {
  font-size: 15.5px;
  color: var(--color-secondary);
  max-width: 440px;
  margin: 0 auto;
}

/* =========================================================
   RESPONSIVE / MOBILE-FIRST TWEAKS
   ========================================================= */
@media (min-width: 640px) {
  .container {
    padding: 40px 32px 56px;
  }
}

/* =========================================================
   PREFERS-REDUCED-MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee__track {
    animation: none;
  }
}
