/* Vinheta da marca ADV STATION em HTML/CSS, a MESMA dos tutoriais (tools/tutoriais/vinheta.mjs,
   função vinheta(); docs/design/tutoriais-em-video.md §2-3): fundo creme radial, a plataforma
   dourada desliza, o A sobe com mola, bolha e faíscas douradas, "ADV STATION" letra a letra e,
   quando há título (.asvv-com-titulo), a marca sobe e o título Georgia entra com o selo do produto.
   Mesmas formas, cores, tempos e easings do original; só as medidas viram múltiplos de --asvv-u
   (1 px no 1080p do vídeo, menor em telas menores) para caber do celular ao desktop.

   UM arquivo, DUAS cópias idênticas (o site estático não passa pelo build do app):
     apps/web/src/boas-vindas/vinheta-marca.css  (importado pela Vinheta do app)
     apps/web/public/advstation-vinheta.css      (link no advfy.html, usado por advfy-intro.js)
   Mude as duas juntas; apps/web/test/site-hero-e-intro-browser.mjs confere que são iguais.
   O HTML (letras com atraso 1,15 s + i x 0,05 s; 14 faíscas) é montado por quem usa. */
.asvv {
  --asvv-marinho: hsl(221 54% 19%);
  --asvv-dourado: hsl(42 53% 50%);
  --asvv-u: min(1px, calc(100vw / 820), calc(100vh / 1000));
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #fffaf0 0%, #f7f1e3 55%, #eadfca 100%);
  color: var(--asvv-marinho);
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.asvv *, .asvv *::before, .asvv *::after { box-sizing: border-box; margin: 0; }
.asvv-bolha {
  position: absolute; border-radius: 50%; background: var(--asvv-dourado); opacity: 0;
  width: calc(900 * var(--asvv-u)); height: calc(900 * var(--asvv-u));
  left: calc(50% - 450 * var(--asvv-u)); top: calc(50% - 510 * var(--asvv-u));
  animation: asvv-bolha 1.6s ease-out 1.05s forwards;
}
@keyframes asvv-bolha { 0% { transform: scale(0); opacity: .55; } 100% { transform: scale(1); opacity: 0; } }
.asvv-faisca {
  position: absolute; width: calc(14 * var(--asvv-u)); height: calc(14 * var(--asvv-u)); border-radius: calc(3 * var(--asvv-u));
  left: calc(50% - 7 * var(--asvv-u)); top: calc(50% - 60 * var(--asvv-u));
  background: var(--asvv-dourado); opacity: 0;
  animation: asvv-faisca .9s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes asvv-faisca {
  0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * var(--asvv-u)), calc(var(--dy) * var(--asvv-u))) rotate(220deg) scale(1); opacity: 0; }
}
.asvv-marca { position: relative; display: flex; flex-direction: column; align-items: center; }
.asvv-com-titulo .asvv-marca { animation: asvv-sobe .7s cubic-bezier(.6, 0, .2, 1) 2.55s forwards; }
@keyframes asvv-sobe { to { transform: translateY(calc(-215 * var(--asvv-u))) scale(.5); } }
.asvv-logo { width: calc(380 * var(--asvv-u)); height: calc(380 * var(--asvv-u)); overflow: visible; display: block; }
.asvv-plataforma { fill: var(--asvv-dourado); transform-origin: 50% 50%; transform: scaleX(0); animation: asvv-plataforma .55s cubic-bezier(.2, .9, .2, 1) .15s forwards; }
@keyframes asvv-plataforma { to { transform: scaleX(1); } }
.asvv-letra-a { fill: var(--asvv-marinho); transform-origin: 50% 87%; transform: scaleY(0); animation: asvv-letra-a .75s cubic-bezier(.3, 1.6, .5, 1) .55s forwards; }
@keyframes asvv-letra-a { to { transform: scaleY(1); } }
.asvv-nome { margin-top: calc(30 * var(--asvv-u)); font-size: calc(64 * var(--asvv-u)); font-weight: 800; letter-spacing: .32em; line-height: 1.2; display: flex; white-space: nowrap; }
.asvv-nome span { display: inline-block; opacity: 0; transform: translateY(calc(24 * var(--asvv-u))); animation: asvv-letra .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes asvv-letra { to { opacity: 1; transform: none; } }
.asvv-titulo {
  position: absolute; top: 58%; left: 0; right: 0; padding: 0 20px; text-align: center;
  opacity: 0; transform: translateY(calc(40 * var(--asvv-u)));
  animation: asvv-titulo .6s cubic-bezier(.3, 1.3, .5, 1) 2.85s forwards;
}
@keyframes asvv-titulo { to { opacity: 1; transform: none; } }
.asvv-titulo-h { font-family: Georgia, 'Times New Roman', serif; font-size: max(30px, min(calc(96 * var(--asvv-u)), 5.6vw)); font-weight: 600; line-height: 1.05; text-wrap: balance; color: var(--asvv-marinho); }
.asvv-titulo-p { margin-top: calc(16 * var(--asvv-u)); font-size: max(15px, calc(30 * var(--asvv-u))); color: #4b5563; }
.asvv-selo {
  display: inline-flex; align-items: center; gap: calc(12 * var(--asvv-u));
  margin-bottom: calc(22 * var(--asvv-u)); padding: calc(10 * var(--asvv-u)) calc(22 * var(--asvv-u)) calc(10 * var(--asvv-u)) calc(12 * var(--asvv-u));
  border-radius: 999px; background: var(--asvv-marinho); color: #fff; font-size: max(13px, calc(24 * var(--asvv-u))); font-weight: 600;
}
.asvv-selo i { display: flex; width: max(24px, calc(40 * var(--asvv-u))); height: max(24px, calc(40 * var(--asvv-u))); border-radius: calc(10 * var(--asvv-u)); background: var(--asvv-dourado); align-items: center; justify-content: center; }
.asvv-selo svg { width: 60%; height: 60%; stroke: var(--asvv-marinho); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Estática: a marca já composta, sem movimento (prefers-reduced-motion no app). */
.asvv-estatica *, .asvv-estatica { animation: none !important; }
.asvv-estatica .asvv-bolha, .asvv-estatica .asvv-faisca { display: none; }
.asvv-estatica .asvv-plataforma, .asvv-estatica .asvv-letra-a, .asvv-estatica .asvv-nome span, .asvv-estatica .asvv-titulo { opacity: 1; transform: none; }
.asvv-estatica.asvv-com-titulo .asvv-marca { transform: translateY(calc(-215 * var(--asvv-u))) scale(.5); }
