/* ============================================
   LotoIA - Estilos principais
   Paleta: Verde escuro #0a3d2a + Dourado #d4a017
   ============================================ */

:root {
  --green-dark: #0a3d2a;
  --green-darker: #07291c;
  --green-mid: #1a5a3e;
  --gold: #d4a017;
  --gold-light: #f4c542;
  --gold-dark: #b8860b;
  --cta-green: #22c55e;
  --cta-green-dark: #16a34a;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-light: #fafbfc;
  --text-dark: #0a3d2a;
  --text-body: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-soft: #f0f2f5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--bg);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 36px;
  width: auto;
}

/* ============ CONTAINER ============ */
.container {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
}

/* ============ PROGRESS BAR (topo) ============ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-soft);
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green-dark);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ HERO (landing) ============ */
.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 9 / 14;
  background: #000;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.65) 70%,
    rgba(0,0,0,0.92) 100%
  );
  pointer-events: none;
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 22px 26px;
  text-align: center;
  z-index: 2;
}

.hero-label {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-value {
  color: var(--gold);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow:
    0 4px 24px rgba(212, 160, 23, 0.6),
    0 2px 12px rgba(0,0,0,0.8);
}

.hero-sub {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-divider {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 14px;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
}

.hero-tag {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ============ CTA BUTTON ============ */
.cta-button {
  width: 100%;
  background: var(--cta-green);
  color: #fff;
  border: none;
  padding: 20px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.cta-button:hover {
  background: var(--cta-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.cta-button:active {
  transform: translateY(0);
}

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

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4), 0 0 0 8px rgba(34, 197, 94, 0.15);
  }
}

/* ============ TRUST ROW ============ */
.trust-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--cta-green);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

/* ============ QUIZ ============ */
.quiz-step {
  display: none;
  animation: fadeInUp 0.4s ease-out;
}

.quiz-step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  width: 100%;
  background: var(--bg-soft);
  border: 2px solid transparent;
  padding: 18px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
}

.option:hover {
  background: #eaf5ee;
  border-color: var(--green-mid);
  transform: translateY(-1px);
}

.option:active {
  transform: translateY(0);
}

.option.selected {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

.option-icon {
  justify-content: flex-start;
  padding: 14px 16px;
  text-align: left;
}

.option-icon .opt-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.option-icon span:last-child {
  flex: 1;
  text-align: center;
  padding-right: 40px;
}

/* ============ LOADING ============ */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.loading-steps {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.3;
  transition: opacity 0.4s ease;
  justify-content: center;
}

.loading-step.active,
.loading-step.done {
  opacity: 1;
}

.step-icon {
  font-size: 20px;
  display: inline-flex;
  animation: none;
}

.loading-step.active .step-icon {
  animation: spin 1s linear infinite;
}

.loading-step.done .step-icon::before {
  content: '✅';
}

.loading-step.done .step-icon {
  font-size: 0;
}

.loading-step.done .step-icon::before {
  font-size: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-image {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.loading-img-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

.progress-container {
  width: 100%;
  margin-top: 8px;
}

.progress-bar-large {
  width: 100%;
  height: 28px;
  background: #e8eaed;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-darker), var(--green-dark) 50%, #000);
  border-radius: 999px;
  transition: width 0.3s linear;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  position: relative;
  min-width: 38px;
}

.progress-text {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.loading-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 4px;
}

.loading-description {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 320px;
}

.loading-description strong {
  color: var(--green-dark);
  font-weight: 800;
  font-style: normal;
}

/* ============ VSL ============ */
.vsl-container {
  max-width: 560px;
}

.vsl-headline {
  text-align: center;
  margin-bottom: 20px;
}

.result-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.12);
  color: var(--cta-green-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.vsl-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.vsl-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.vsl-subtitle strong {
  color: var(--gold-dark);
  font-weight: 800;
}

.vsl-player {
  width: 100%;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  min-height: 200px;
}

.vsl-attention {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff8e1;
  border: 1px solid #fce7a8;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #7a5b00;
  margin-bottom: 24px;
}

.attention-icon {
  font-size: 18px;
}

.vsl-cta-wrapper {
  margin: 24px 0;
  animation: fadeInUp 0.5s ease-out;
}

.cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 600;
}

.vsl-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.trust-card {
  background: var(--bg-soft);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

.trust-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.trust-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.trust-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-soft);
  padding: 24px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

.footer p {
  margin-bottom: 8px;
}

.disclaimer {
  max-width: 480px;
  margin: 8px auto 0;
  font-size: 10px;
  line-height: 1.5;
  opacity: 0.85;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 4px;
}

.footer-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ============ RESPONSIVO ============ */
@media (min-width: 600px) {
  .vsl-trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-image {
    aspect-ratio: 9 / 12;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-value {
    font-size: 64px;
  }

  .hero-label {
    font-size: 24px;
  }

  .question {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 16px 16px 32px;
  }

  .hero-value {
    font-size: 46px;
  }

  .hero-label {
    font-size: 18px;
  }

  .hero-text {
    padding: 20px 18px 22px;
  }

  .question {
    font-size: 20px;
  }

  .cta-button {
    font-size: 14px;
    padding: 18px 20px;
  }

  .option {
    font-size: 14px;
    padding: 16px;
  }
}
