/* =====================================================================
   Zello · landing page · vídeo de apresentação
   Teaser em autoplay mudo no hero (#teaser) e vídeo completo com fachada (#video-player).
   Só tokens de assets/tokens.css. Sem gradiente e sem glassmorphism.
   O comportamento está em assets/video.js.
   ===================================================================== */

/* ---------- Hero: teaser ---------- */
/* O contêiner (#teaser) mantém a classe .stage (landing.css) para herdar a "mesa" verde sob o produto.
   assets/video.js marca nele os estados .is-ready (primeiro quadro pronto) e .is-playing. */
.teaser-frame {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.teaser-frame img,
.teaser-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* O vídeo só cobre a capa depois do primeiro quadro: sem piscar preto e sem mudança de layout. */
.teaser-frame video { opacity: 0; }
.is-ready > .teaser-frame video { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .teaser-frame video { transition: opacity var(--t-med) var(--ease); }
}

.teaser-toggle {
  position: absolute; right: var(--s-3); bottom: var(--s-3);
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 44px; padding: 0 var(--s-4) 0 var(--s-3);
  border: 0; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: var(--fs-body); font-weight: 600; line-height: 1;
  transition: background var(--t-fast) var(--ease);
}
.teaser-toggle:hover { background: var(--green-900); }
.teaser-toggle:focus-visible,
.vplayer-facade:focus-visible .vplayer-cta { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 5px var(--info); }
.teaser-toggle:focus-visible { border-radius: var(--r-pill); }
.teaser-toggle .ic-pause,
.is-playing > .teaser-frame .ic-play { display: none; }
.is-playing > .teaser-frame .ic-pause { display: inline-block; }

/* ---------- Botão do hero: duração ---------- */
.btn .btn-dur { font-weight: 400; color: var(--muted); }
@media (max-width: 380px) { .hero-cta .btn { padding: 0 var(--s-3); } }

/* ---------- Seção #video: vídeo completo ---------- */
.vplayer {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--green-900); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.vplayer-facade { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.vplayer-facade:focus-visible { outline: none; }
.vplayer-facade img,
.vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplayer video { background: var(--ink); object-fit: contain; }

.vplayer-cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--s-3);
  height: 64px; padding: 0 var(--s-6) 0 var(--s-2);
  border-radius: var(--r-pill); background: var(--green-700); color: #fff;
  font-weight: 600; line-height: 1.25; white-space: nowrap; box-shadow: var(--shadow-pop);
  transition: background var(--t-fast) var(--ease);
}
.vplayer-facade:hover .vplayer-cta { background: var(--green-900); }
.vplayer-cta .ic { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); background: #fff; color: var(--green-900); }
.vplayer-cta .ic svg { fill: currentColor; }
.vplayer-cta small { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--green-200); }

/* Fim do vídeo: bloco liso de marca com as duas ações */
.vplayer-end {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-5);
  padding: var(--s-6); background: var(--green-900); color: #fff; text-align: center;
}
.vplayer-end p { margin: 0; max-width: 28ch; font-size: var(--fs-h2); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.vplayer-end-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.vplayer-end-acoes .btn { height: 44px; } /* alvo de toque: o .btn.sm tem 40 px */
.vplayer-end :focus-visible { outline-color: #fff; }
@media (max-width: 560px) {
  .vplayer-end { gap: var(--s-3); padding: var(--s-3); }
  .vplayer-end p { display: none; }
  .vplayer-end-acoes { gap: var(--s-2); }
}

/* Textos do vídeo (transcrição) */
.vtranscript { max-width: 960px; margin: var(--s-8) auto 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.vtranscript summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: var(--touch); padding: var(--s-4) var(--s-1); font-weight: 600; letter-spacing: -.01em;
}
.vtranscript summary::-webkit-details-marker { display: none; }
.vtranscript summary .pm { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--sunken); transition: transform var(--t-med) var(--ease); }
.vtranscript[open] summary .pm { transform: rotate(45deg); background: var(--green-50); color: var(--green-700); }
.vtranscript-body { padding: 0 var(--s-1) var(--s-6); color: var(--ink-2); max-width: 68ch; }
.vtranscript-body p { margin: 0 0 var(--s-3); }
.vtranscript-body ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s-2); }
