/* ==========================================================
   UPSELL PAGE — STYLESHEET
   Estrutura:
   1. Variáveis de tema
   2. Reset / base
   3. Seção de alerta (vermelha)
   4. Seção do vídeo (branca)
   5. Footer
   6. Animações
   7. Responsividade
========================================================== */

/* ----------------------------------------------------------
   1. VARIÁVEIS DE TEMA
---------------------------------------------------------- */
:root {
  --color-danger:        #c40000;
  --color-danger-dark:   #9a0000;
  --color-danger-light:  #ff4d4d;
  --color-white:         #ffffff;
  --color-text:          #14161a;
  --color-text-muted:    #6b7280;
  --color-footer-bg:     #14161a;
  --color-footer-text:   #9ca3af;

  --font-base: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;

  --container-width: 640px;
  --radius: 12px;
}

/* ----------------------------------------------------------
   2. RESET / BASE
---------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------------------------------
   3. SEÇÃO DE ALERTA (VERMELHA)
---------------------------------------------------------- */
.alert-bar {
  background: linear-gradient(
    160deg,
    var(--color-danger) 0%,
    var(--color-danger-dark) 100%
  );
  color: var(--color-white);
  text-align: center;
  padding: 28px 0 26px;
  box-shadow: 0 4px 18px rgba(196, 0, 0, 0.35);
}

.alert-bar__title {
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.alert-bar__text {
  font-size: clamp(1rem, 4vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto;
}

.alert-bar__text strong {
  font-weight: 700;
}

/* Barra de progresso (verde, ~90%) */
.alert-bar__progress {
  width: 100%;
  max-width: 360px;
  height: 22px;
  margin: 20px auto 0;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.alert-bar__progress-fill {
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
  animation: progress-grow 1.1s ease-out both;
}

.alert-bar__progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------
   4. SEÇÃO DO VÍDEO (BRANCA)
---------------------------------------------------------- */
.video-section {
  background-color: var(--color-white);
  text-align: center;
  padding: 44px 0 64px;
}

.video-section__title {
  font-size: clamp(1.15rem, 4.8vw, 1.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--color-text);
  max-width: 560px;
  margin: 0 auto;
}

.video-section__emoji {
  display: block;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  margin: 12px auto 26px;
  animation: bounce 1.4s ease-in-out infinite;
}

.video-section__player {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Contador de vagas
   Oculto por padrão — exibido pelo cta-delay.js aos 7:38 da VSL */
.video-section__spots {
  display: none;
  max-width: 400px;
  margin: 28px auto 0;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  color: var(--color-text);
}

.video-section__spots strong {
  color: var(--color-danger);
  font-weight: 800;
}

.video-section__spots.is-visible {
  display: block;
  animation: fade-in-up 0.6s ease-out both;
}

/* Botão / checkout da Hotmart
   Oculto por padrão — exibido pelo cta-delay.js aos 8:20 da VSL */
.video-section__cta {
  max-width: 400px;
  margin: 28px auto 0;
  display: none;
}

.video-section__cta.is-visible {
  display: block;
  animation: fade-in-up 0.6s ease-out both;
}

/* ----------------------------------------------------------
   5. FOOTER
---------------------------------------------------------- */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 28px 0;
}

.footer__copy {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer__disclaimer {
  font-size: 0.72rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.75;
}

/* ----------------------------------------------------------
   6. ANIMAÇÕES
---------------------------------------------------------- */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

@keyframes progress-grow {
  from { width: 0; }
  to   { width: 90%; }
}

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

@media (prefers-reduced-motion: reduce) {
  .video-section__emoji,
  .alert-bar__progress-fill {
    animation: none;
  }
}

/* ----------------------------------------------------------
   7. RESPONSIVIDADE
---------------------------------------------------------- */
@media (max-width: 480px) {
  .alert-bar {
    padding: 22px 0 20px;
  }

  .video-section {
    padding: 34px 0 48px;
  }

  .container {
    padding: 0 16px;
  }
}
