/* Página da VSL do lançamento do Donu (donuapp.com/vsl/)
   Identidade: docs/kit-de-marca.md (Azul Donu #1A56DB, Inter).
   Player travado: a pessoa assiste, não navega. Sem barra de progresso,
   sem arrastar, sem tela cheia, sem atalho de teclado.

   O botão é verde WhatsApp de propósito: ele não vende o aplicativo, ele
   abre a conversa que leva ao grupo. A cor conta para onde a pessoa vai. */

:root {
  --azul-500: #1a56db;
  --azul-700: #0f3a8a;
  --azul-800: #0c2d6b;
  --azul-950: #040f26;
  --verde-zap: #25d366;
  --verde-zap-esc: #128c7e;
  --papel: #fafafa;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%; width: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  user-select: none; -webkit-user-select: none;
}

.palco { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }

/* pointer-events none no vídeo: ninguém arrasta a linha do tempo */
video {
  width: 100%; height: 100%;
  object-fit: contain; background: #000;
  display: block; outline: none; pointer-events: none;
}
video::-webkit-media-controls,
video::-webkit-media-controls-panel { display: none !important; }

/* ---------------- capa ---------------- */
.capa {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  /* O véu tem um degradê mais fechado em cima e embaixo porque a legibilidade
     do texto não pode depender de qual quadro do vídeo está por baixo. Com véu
     chapado, um quadro claro apaga o texto branco. */
  background:
    linear-gradient(180deg, rgba(4, 15, 38, .88) 0%, rgba(4, 15, 38, .40) 30%,
                            rgba(4, 15, 38, .40) 66%, rgba(4, 15, 38, .90) 100%),
    rgba(4, 15, 38, .5);
  transition: opacity .35s ease;
}
.capa.oculta { opacity: 0; pointer-events: none; }
.capa .marca { position: absolute; top: 26px; height: 30px; opacity: .95; }
.tocar {
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--verde-zap);
  display: flex; align-items: center; justify-content: center;
  animation: pulsa 2.2s infinite;
}
.tocar::before {
  content: ''; width: 0; height: 0;
  border-left: 30px solid #fff;
  border-top: 18px solid transparent; border-bottom: 18px solid transparent;
  margin-left: 7px;
}
@keyframes pulsa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); }
}
.capa .aviso {
  margin-top: 26px; padding: 0 22px; text-align: center;
  color: #fff; font-size: 17px; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}
/* padding e max-width: sem eles a frase estoura a largura no celular e
   aparece cortada pela metade */
.capa .assinatura {
  position: absolute; bottom: 22px; left: 0; right: 0;
  padding: 0 26px; max-width: 34ch; margin: 0 auto; text-align: center;
  color: rgba(255, 255, 255, .8); font-size: 12.5px; line-height: 1.5;
  letter-spacing: .3px; text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
}

/* ---------------- som e clique ---------------- */
.som {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(4, 15, 38, .6); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; backdrop-filter: blur(6px);
}
.som:hover { background: rgba(4, 15, 38, .9); }

.toque { position: absolute; inset: 0; z-index: 4; cursor: pointer; background: transparent; }
.toque.oculta { display: none; }

/* ---------------- botão que abre a conversa ---------------- */
.chamada {
  position: absolute; left: 50%; bottom: 26px; z-index: 12;
  transform: translate(-50%, 150%); opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease;
}
.chamada.aparece { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  background: var(--verde-zap); color: #fff;
  font-family: inherit; font-weight: 700; font-size: clamp(15px, 2.1vw, 18px);
  letter-spacing: .2px; padding: 17px 30px;
  border: 0; border-radius: 60px; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 30px rgba(37, 211, 102, .38);
  white-space: nowrap;
  animation: respira 2.6s ease-in-out infinite;
}
.botao:hover { filter: brightness(1.06); }
.botao:active { transform: scale(.98); }
.botao svg { width: 22px; height: 22px; flex: none; }
@keyframes respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* ---------------- tela final ---------------- */
.fim {
  position: absolute; inset: 0; z-index: 20;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px; text-align: center;
  background: linear-gradient(165deg, rgba(4, 15, 38, .96) 0%, rgba(12, 45, 107, .95) 100%);
  backdrop-filter: blur(10px);
}
.fim.aparece { display: flex; animation: surge .5s ease; }
@keyframes surge { from { opacity: 0; } to { opacity: 1; } }
.fim .marca { height: 32px; margin-bottom: 26px; opacity: .95; }
.fim h1 {
  color: #fff; font-size: clamp(23px, 4.4vw, 40px); font-weight: 800;
  line-height: 1.26; max-width: 18ch; margin-bottom: 14px;
}
.fim h1 em { color: #93c5fd; font-style: normal; }
.fim p {
  color: rgba(255, 255, 255, .8); font-size: clamp(14px, 2.1vw, 18px); font-weight: 400;
  max-width: 36ch; line-height: 1.6; margin-bottom: 30px;
}
.fim .denovo {
  margin-top: 26px; background: none; border: 0;
  color: rgba(255, 255, 255, .6); font-size: 13px; font-family: inherit;
  cursor: pointer; text-decoration: underline;
}
.fim .denovo:hover { color: #fff; }
.fim .rodape { margin-top: 30px; color: rgba(255, 255, 255, .45); font-size: 11.5px; line-height: 1.7; }
.fim .rodape a { color: rgba(255, 255, 255, .58); }

/* ---------------- vídeo ainda não publicado ----------------
   Enquanto o playback id não estiver preenchido, a página avisa em vez de
   mostrar um retângulo preto que parece defeito. */
.pendente {
  position: absolute; inset: 0; z-index: 30;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px; text-align: center;
  background: linear-gradient(165deg, var(--azul-950) 0%, var(--azul-800) 100%);
  color: #fff;
}
.pendente.aparece { display: flex; }
.pendente .marca { height: 34px; margin-bottom: 24px; }
.pendente h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.pendente p { font-size: 14.5px; color: rgba(255, 255, 255, .75); max-width: 34ch; line-height: 1.6; }

@media (max-width: 768px) {
  .chamada { bottom: 20px; width: calc(100% - 34px); }
  .chamada .botao { width: 100%; padding: 16px 20px; }
}
