/* ==========================================================================
   VSL INTERATIVA - DESIGN SYSTEM & ESTÉTICA ULTRA-PREMIUM (AGRO / LEGAL)
   ========================================================================== */

:root {
  --bg-dark: #070a08;
  --bg-card: rgba(14, 20, 16, 0.88);
  --bg-card-border: rgba(255, 255, 255, 0.14);
  
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --emerald-dark: #065f46;
  
  --gold-accent: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.4);
  --gold-light: #fbbf24;

  --whatsapp-green: #25d366;
  --whatsapp-glow: rgba(37, 211, 102, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --safe-top: env(safe-area-inset-top, 16px);
  --safe-bottom: env(safe-area-inset-bottom, 24px);
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Fundo com efeito de luz ambiente e blur dinâmico */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.15), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1), transparent 50%),
    #070a08;
  z-index: 1;
}

/* Layout Centralizado (Desktop: Moldura de Smartphone / Mobile: 100% da tela) */
.vsl-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px; /* Largura padrão de celular no desktop */
  max-height: 920px;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .phone-frame {
    height: 94vh;
    border-radius: 36px;
    border: 4px solid #1a221d;
  }
}

/* ==========================================================================
   DUAL VIDEO CONTAINER (Engine de Troca Instantânea)
   ========================================================================== */
.video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 2;
}

.video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  transform: translateZ(0);
  z-index: 2;
  will-change: opacity;
}

.video-element.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

/* Vinheta escura no topo e no rodapé para melhorar a legibilidade dos textos e botões */
.video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0) 22%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

/* ==========================================================================
   HEADER & PROGRESS BARS (Estilo Instagram Stories)
   ========================================================================== */
.vsl-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: calc(var(--safe-top) + 8px) 14px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-bar-container {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 3.5px;
}

.progress-segment {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transition: width 0.05s linear;
}

.progress-segment.completed .progress-fill {
  width: 100% !important;
  background: var(--emerald-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 20, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 100px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-primary);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 20, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   LEGENDAS DINÂMICAS EM TEMPO REAL
   ========================================================================== */
.subtitle-overlay {
  position: absolute;
  top: 75px;
  left: 16px;
  right: 16px;
  z-index: 6;
  text-align: center;
  pointer-events: none;
}

.subtitle-overlay p {
  display: inline-block;
  background: rgba(7, 10, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  line-height: 1.35;
}

/* ==========================================================================
   OVERLAYS INTERATIVOS (Telamento sobre o vídeo)
   ========================================================================== */
.overlay-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 16px calc(var(--safe-bottom) + 18px) 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.overlay-screen.active {
  opacity: 1;
  visibility: visible;
}

/* Card Interativo de Vidro (Glassmorphism) */
.interactive-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 100px;
}

.card-question {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.card-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
}

/* Grade de Botões de Opção */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

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

.option-btn.selected {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-primary);
  box-shadow: 0 0 16px var(--emerald-glow);
}

.option-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-content strong {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.option-content small {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.25;
}

.option-check {
  font-size: 14px;
  color: var(--emerald-primary);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.option-btn.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

/* Destaque para a faixa mais alta */
.option-btn.highlight-tier {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.option-btn.highlight-tier:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 0 16px var(--gold-glow);
}

/* ==========================================================================
   TELA INICIAL DE SPLASH / PLAY
   ========================================================================== */
#splashScreen {
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.splash-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 28px;
  padding: 30px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.splash-icon-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
  box-shadow: 0 0 25px var(--emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 18px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.play-arrow {
  font-size: 24px;
  color: #fff;
  margin-left: 4px;
}

.splash-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.splash-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.splash-security {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

/* ==========================================================================
   BOTÃO PRIMÁRIO & PULSE GLOW
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--emerald-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.6);
}

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

.pulse-glow {
  animation: pulse-button 2.2s infinite;
}

@keyframes pulse-button {
  0%, 100% { box-shadow: 0 8px 24px var(--emerald-glow); }
  50% { box-shadow: 0 12px 35px rgba(16, 185, 129, 0.75); }
}

.btn-arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

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

/* ==========================================================================
   FORMULÁRIO DE LEAD FINAL (Vídeo 08)
   ========================================================================== */
.lead-card {
  gap: 14px;
}

.lead-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lead-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-primary);
  padding: 3px 10px;
  border-radius: 100px;
}

.lead-header h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.lead-header p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.answers-summary {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2px 0 6px 0;
}

.summary-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.7;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 14px 13px 38px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
}

.input-wrapper input:focus {
  border-color: var(--emerald-primary);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 10px 25px var(--whatsapp-glow);
  margin-top: 4px;
}

.btn-whatsapp:hover {
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-logo {
  font-size: 18px;
}

.security-disclaimer {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.35;
}

/* ==========================================================================
   MODAL DE CONFIGURAÇÃO DE WHATSAPP
   ========================================================================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111813;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #fff;
}

.modal-content p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-buttons {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */
.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
