@charset "UTF-8";

/* ==========================================================================
   1. RESET E VARIÁVEIS
   ========================================================================== */
:root {
  --color-bg: #2e0307;
  --color-text-main: #f3e7cf;
  --color-text-light: #d7c6a4;
  --color-primary: #d9b878;
  --color-primary-hover: #eccf93;
  --color-secondary: #c19a5b;
  --color-accent: #b3202f;
  --color-accent-dark: #6e0f18;
  --color-border: rgba(193, 154, 91, 0.45);
  --color-border-light: rgba(193, 154, 91, 0.22);
  --color-white: #f7edd9;

  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --bg-btn: linear-gradient(180deg, #f3e7cf, #e3d0a6);
  --color-btn-text: #530a11;
  --shadow-btn: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-btn-hover: 0 18px 36px -14px rgba(0, 0, 0, .7);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
}

::selection {
  background: var(--color-secondary);
  color: #3a0409;
}

input::placeholder {
  color: #8a7a5e;
}

* {
  box-sizing: border-box;
}

/* ==========================================================================
   2. ANIMAÇÕES
   ========================================================================== */
@keyframes fagoUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fagoFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fagoSwirl {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fagoPulse {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes fagoQIn {
  from {
    opacity: 0;
    filter: blur(9px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fagoQOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  to {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(-20px);
  }
}

@keyframes fagoOptIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-up {
  animation: fagoUp 1.08s cubic-bezier(.22, 1, .36, 1) both;
}

.anim-fade {
  animation: fagoFade 1.08s cubic-bezier(.22, 1, .36, 1) both;
}

.anim-q-in {
  animation: fagoQIn 0.72s cubic-bezier(.22, 1, .36, 1) both;
}

.anim-q-out {
  animation: fagoQOut 0.6s cubic-bezier(.4, 0, .2, 1) both;
}

.anim-opt-in {
  animation: fagoOptIn 0.72s cubic-bezier(.22, 1, .36, 1) both;
}

/* ==========================================================================
   3. LAYOUT GERAL E BACKGROUNDS
   ========================================================================== */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../assets/fundo-bg.jpg') center center/cover no-repeat;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% -10%, rgba(122, 20, 32, .62) 0%, rgba(83, 10, 17, .62) 42%, rgba(55, 4, 8, .84) 100%);
}

.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 22px 20px 48px;
}

.header {
  width: 100%;
  max-width: 85vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  opacity: .97;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--color-text-main);
  line-height: 1;
}

.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--color-accent), var(--color-accent-dark));
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(193, 154, 91, .35);
}

.logo-subtitle {
  font-size: 10px;
  letter-spacing: 7px;
  color: var(--color-secondary);
  font-weight: 400;
  padding-left: 4px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: border-color .35s ease, color .35s ease, transform .35s ease;
}

.social-btn:hover {
  border-color: #e3d0a6;
  color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.content-area {
  flex: 1;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   4. UTILITÁRIOS E BOTÕES
   ========================================================================== */
.screen:not(.active) {
  display: none !important;
}

.screen {
  width: 100%;
}

.text-center {
  text-align: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-md {
  gap: 20px;
}

.gap-lg {
  gap: 26px;
}

.font-playfair {
  font-family: var(--font-title);
}

.font-montserrat {
  font-family: var(--font-body);
}

.title-lg {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(36px, 8.4vw, 62px);
  line-height: 1.05;
  color: var(--color-white);
  margin: 0;
}

.subtitle-md {
  max-width: 430px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-light);
  font-weight: 300;
}

.btn-primary {
  cursor: pointer;
  border: none;
  background: var(--bg-btn);
  color: var(--color-btn-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: transform .35s ease, box-shadow .35s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-secondary {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 16px 26px;
  border-radius: 999px;
  transition: border-color .35s ease;
}

.btn-secondary:hover {
  border-color: rgba(193, 154, 91, .9);
}

.btn-outline {
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(193, 154, 91, .5);
  color: #e9d9b6;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: border-color .35s ease;
}

.btn-outline:hover {
  border-color: #e3d0a6;
}

.btn-text {
  cursor: pointer;
  background: transparent;
  border: none;
  color: #b8a67f;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 14px 12px;
  transition: color .35s ease;
}

.btn-text:hover {
  color: #e9d9b6;
}

/* ==========================================================================
   5. COMPONENTES ESPECÍFICOS (QUIZ, FORMS, RESULT)
   ========================================================================== */
.quiz-progress-bar {
  display: flex;
  gap: 6px;
}

.quiz-segment {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  transition: background .6s ease;
}

.quiz-option {
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: rgba(246, 236, 215, .05);
  border: 1px solid rgba(193, 154, 91, .28);
  color: #ede0c4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  padding: 18px 20px;
  border-radius: 14px;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.quiz-option:hover {
  background: rgba(246, 236, 215, .12);
  border-color: rgba(227, 208, 166, .85);
  transform: translateX(6px);
}

.quiz-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(193, 154, 91, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-style: normal;
  font-size: 17px;
  color: var(--color-primary);
}

.input-field {
  background: rgba(246, 236, 215, .06);
  border: 1px solid rgba(193, 154, 91, .3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 17px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text-main);
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease;
}

.input-field:focus {
  border-color: #e3d0a6;
}

.error-msg {
  font-size: 15px;
  color: #f0a9a9;
  text-align: center;
}

.result-card {
  width: 100%;
  max-width: 560px;
  background: rgba(246, 236, 215, .05);
  border: 1px solid var(--color-border-light);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.result-feature {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(193, 154, 91, .08);
  border: 1px solid rgba(193, 154, 91, .2);
  border-radius: 12px;
  padding: 11px 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.result-offer {
  width: 100%;
  max-width: 560px;
  text-align: center;
  background: linear-gradient(180deg, rgba(179, 32, 47, .16), rgba(83, 10, 17, .05));
  border: 1px solid rgba(193, 154, 91, .35);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.result-cross-sell {
  flex: 1;
  min-width: 180px;
  background: rgba(246, 236, 215, .04);
  border: 1px solid rgba(193, 154, 91, .18);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   5.1 CONVERSÃO — OFERTA E CTAs DA TELA DE RESULTADO
   ========================================================================== */

/* Bilhete de oferta: entra logo abaixo do nome do perfil, no momento em que a
   pessoa acabou de descobrir o resultado. */
.offer-ticket {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(217, 184, 120, .17), rgba(179, 32, 47, .13));
  border: 1px dashed rgba(227, 208, 166, .62);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--color-primary);
}

.offer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: fagoDot 2.1s ease-out infinite;
}

@keyframes fagoDot {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 184, 120, .75);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(217, 184, 120, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 184, 120, 0);
  }
}

.offer-value {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(38px, 9vw, 58px);
  line-height: 1;
  color: var(--color-white);
  margin: 0;
}

.offer-value em {
  font-style: normal;
  color: var(--color-primary);
}

.offer-sub {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 430px;
  margin: 0;
  text-wrap: pretty;
}

/* Botão de conversão: maior que o btn-primary e com um halo que respira. */
.btn-cta {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #fbf3e2, #e3d0a6 58%, #d9b878);
  color: var(--color-btn-text);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1.2px;
  padding: 19px 30px;
  border-radius: 999px;
  width: 100%;
  max-width: 400px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .75);
  animation: fagoCtaPulse 2.8s ease-in-out infinite;
  transition: transform .3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-cta .cta-arrow {
  display: inline-block;
  animation: fagoArrow 1.5s ease-in-out infinite;
}

@keyframes fagoCtaPulse {

  0%,
  100% {
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .75), 0 0 0 0 rgba(217, 184, 120, .55);
  }

  55% {
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .75), 0 0 0 15px rgba(217, 184, 120, 0);
  }
}

@keyframes fagoArrow {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

/* Micro-garantias que derrubam o medo de formulário longo. */
.offer-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.offer-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbb894;
  font-weight: 400;
}

.offer-perk svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.offer-legal {
  font-size: 12.5px;
  color: #8f7f5e;
  font-weight: 300;
  line-height: 1.6;
  max-width: 440px;
}

.offer-scroll-hint {
  cursor: pointer;
  background: transparent;
  border: none;
  color: #9d8b66;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .5px;
  padding: 6px 10px;
  transition: color .3s ease;
}

.offer-scroll-hint:hover {
  color: var(--color-primary);
}

/* Barra fixa: garante que o CTA nunca saia da tela enquanto a pessoa lê. */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(46, 3, 7, .82), rgba(46, 3, 7, .97));
  border-top: 1px solid rgba(193, 154, 91, .35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -14px 40px -18px rgba(0, 0, 0, .9);
}

.sticky-cta.show {
  display: flex;
  animation: fagoUp .5s cubic-bezier(.22, 1, .36, 1) both;
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: right;
}

.sticky-cta-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
}

.sticky-cta-sub {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 400;
}

.sticky-cta .btn-cta {
  width: auto;
  max-width: none;
  font-size: 15px;
  padding: 14px 26px;
  animation: none;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .8);
}

.share-card {
  width: 300px;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(130% 90% at 50% 0%, #7a1420, #530a11 55%, #360307);
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .8);
  border: 1px solid rgba(193, 154, 91, .3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 26px;
  text-align: center;
  margin: 0 auto;
}

/* ==========================================================================
   6. DECANT ANIMATION
   ========================================================================== */
.decant-loader {
  position: relative;
  width: 78px;
  height: 78px;
}

.decant-loader .circle-1 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(193, 154, 91, .25);
  border-top-color: var(--color-primary);
  animation: fagoSwirl 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
}

.decant-loader .circle-2 {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--color-accent), var(--color-accent-dark));
  animation: fagoPulse 1.8s ease-in-out infinite;
}

/* ==========================================================================
   7. PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  background-image: url('../assets/fundo-bg.jpg');
  /* Optional: same bg as body */
  background-size: cover;
  background-position: center;
  display: flex;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* overlay to make it dark like the main page */
.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% -10%, rgba(122, 20, 32, .62) 0%, rgba(83, 10, 17, .62) 42%, rgba(55, 4, 8, .84) 100%);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   8. RESPONSIVO (MOBILE)
   ========================================================================== */
@media (max-width: 600px) {
  /* Oculta os botões de redes sociais e centraliza o logo no header */
  .header {
    justify-content: center;
  }

  .header .social-links {
    display: none;
  }

  .header .logo-wrap {
    align-items: center;
  }
}

/* Em telas estreitas a barra fixa vira só o botão: o texto roubaria a largura
   que o CTA precisa para continuar legível. */
@media (max-width: 460px) {
  .sticky-cta-text {
    display: none;
  }

  .sticky-cta .btn-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-cta,
  .btn-cta .cta-arrow,
  .offer-dot,
  .sticky-cta.show {
    animation: none !important;
  }
}