/* Importando Google Fonts: Poppins (Regular, Medium, Semi-Bold, Bold) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset de estilos básicos */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-external: #09090e;
  --bg-container: #141424;
  --bg-card: #1d2633;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --color-accent: #e11d48; /* Vermelho */
  --color-accent-hover: #be123c;
  --color-gold: #fbbf24; /* Amarelo/Dourado */
  --border-light: rgba(255, 255, 255, 0.1);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --border-radius-main: 16px;
  --border-radius-card: 12px;
}

body {
  background-color: var(--bg-external);
  /* Grid de fundo discreto usando gradiente em CSS */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  font-family: var(--font-family);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container central (Mobile-first, max-width 420px) */
.container {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-container);
  min-height: 100vh;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Estilo do Topo (Label "EM ALTA NO BRASIL") */
.top-badge {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

/* Headline Principal */
.headline {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subheadline */
.subheadline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 8px;
  padding: 0 4px;
}

/* Nome Alternativo */
.alt-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}

/* Poster Card (Capa do Dorama) */
.poster-container {
  width: 100%;
  max-width: 220px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poster-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--border-radius-main);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
  background-color: #0b0b14;
}

.poster-card:hover {
  transform: scale(1.02);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Seção de Vídeo (VSL Vimeo Player) */
.video-section {
  width: 100%;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  padding: 0 10px;
}

.video-container {
  width: 100%;
  max-width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* Proporção 3:4 */
  border-radius: var(--border-radius-main);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-light);
  background-color: #0b0b14;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Leve desfoque antes do primeiro clique do usuário */
.video-wrapper.blurred iframe {
  filter: blur(4px) brightness(0.85);
}

/* Overlay de Interação por cima do vídeo */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  cursor: pointer;
}



/* Botão Play do Overlay (aparece quando pausado) */
.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: play-pulse 2s infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 22;
}

.play-overlay-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.play-overlay-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  margin-left: 4px;
}

@keyframes play-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(225, 29, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

/* Card da Oferta */
.offer-card {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-main);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

/* Tag Vermelha "O QUE VOCÊ VAI RECEBER" */
.offer-tag-container {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.offer-tag {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Lista de benefícios */
.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #e4e4e7;
}

/* Bolinha vermelha customizada */
.offer-item::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--color-accent);
}

/* Divisor sutil no card */
.offer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin: 8px 0 20px 0;
}

/* Preço destacado */
.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.price-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Botão de Compra Principal */
.cta-button {
  display: block;
  width: 100%;
  background-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--border-radius-card);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: cta-pulse 2.5s infinite;
}

.cta-button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
}

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

@keyframes cta-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 22px rgba(225, 29, 72, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  }
}

/* Texto de Confiança */
.trust-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 340px;
}

/* Rodapé */
.footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  width: 100%;
  margin-top: auto;
}

/* ========================================================
   POPUP DE UPSELL PREMIUM (UPGRADE)
   ======================================================== */
.upsell-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 11, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.30s ease, visibility 0.30s ease;
}

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

.upsell-card {
  width: 90%;
  max-width: 380px;
  background-color: #141424;
  border: 1px solid #fbbf24; /* Borda fina amarela/laranja */
  border-radius: var(--border-radius-main);
  padding: 32px 20px 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upsell-modal.active .upsell-card {
  transform: scale(1);
}

/* Botão Fechar */
.upsell-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.upsell-close:hover {
  color: #ffffff;
}

/* Badge Upgrade */
.upsell-badge {
  background-color: #fbbf24;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
}

/* Título */
.upsell-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-align: center;
}

/* Preço */
.upsell-price {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
  line-height: 1;
}

/* Subtítulo */
.upsell-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  margin-bottom: 24px;
}

/* Caixa de Recursos */
.upsell-features-box {
  width: 100%;
  background-color: #1d2633;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-card);
  padding: 16px 18px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.upsell-features-title {
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.upsell-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upsell-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #e4e4e7;
  line-height: 1.4;
}

/* Ícone de Checkmark */
.check-icon {
  width: 18px;
  height: 18px;
  background-color: #fbbf24;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Botões do Popup */
.upsell-btn-primary {
  display: block;
  width: 100%;
  background-color: #fbbf24;
  color: #000000;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.upsell-btn-primary:hover {
  background-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.upsell-btn-secondary {
  display: block;
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.upsell-btn-secondary:hover {
  background-color: #e4e4e7;
}


