/* ==========================================================================
   Bisalvo · landing, versão 2 · o desenho
   Rolagem para baixo. A página inteira na Noite, com luz de material: o tampo (horizonte, chão, reflexo, a faixa de
   luz que anda), o vidro do app e a interface refeita em close. Toda cor vem de tokens.css.
   Dois modos, decididos no <head>: html.vivo (o palco da história preso à rolagem) e, sem JS ou com
   "reduzir movimento", o documento comum (o palco some e cada passo mostra o seu quadro parado).
   ========================================================================== */

:root {
  --margem: clamp(20px, 6vw, 96px);
  --conteudo: 1280px;
  --lado: max(var(--margem), calc((100vw - var(--conteudo)) / 2));   /* margem até o conteúdo de 1280 */
  --secao-y: clamp(96px, 14vh, 180px);
  --menu-h: 60px;
  --t-marca: clamp(64px, min(12.5vw, 21vh), 176px);
  --t-secao: clamp(40px, 5.6vw, 84px);
  --t-passo: clamp(30px, 3.4vw, 54px);
  --t-numero: clamp(96px, 13vw, 208px);
  --t-abertura: clamp(20px, 1.5vw, 22px);
  --t-corpo-v2: clamp(17px, 1.25vw, 18px);
}

* { box-sizing: border-box; }
html { background: var(--noite); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--f-sans); font-weight: 400; font-stretch: 100%;
  font-size: var(--t-corpo-v2); line-height: 1.6;
  color: var(--nitido); background: var(--noite);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* o grão fino, fixo, da página inteira (o mesmo do vídeo) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: var(--grao-opacidade); mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
p, h1, h2, h3, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
code { font-family: var(--f-mono); }

.z { font-variant-numeric: proportional-nums; display: inline-block; width: .582em; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--nitido); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
.pular {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: var(--r-pequeno);
  background: var(--nitido); color: var(--noite); text-decoration: none; font-weight: 600;
}
.pular:focus { top: 12px; }

/* ---------- Tipos ---------- */
.rotulo {
  font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; color: var(--apoio);
}
.frase-marca {
  width: max-content; max-width: none;
  font-weight: 600; font-stretch: 112.5%; font-size: var(--t-marca); line-height: .92; letter-spacing: -0.03em;
}
.titulo-secao {
  font-weight: 600; font-stretch: 112.5%; font-size: var(--t-secao); line-height: 1; letter-spacing: -0.025em; text-wrap: balance;
}
.titulo-passo { font-weight: 600; font-size: var(--t-passo); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.l1, .l2-w, .l2 { display: block; }
.l2-w { position: relative; overflow: clip; padding: .04em .08em .14em 0; margin: -.04em -.08em -.14em 0; }
.apoio-tom { color: var(--apoio); }
.abertura-txt { font-size: var(--t-abertura); line-height: 1.5; color: var(--apoio); max-width: 34em; text-wrap: pretty; }
.apoio { font-size: var(--t-corpo-v2); line-height: 1.6; color: var(--apoio); max-width: 34em; text-wrap: pretty; }
.forte { color: var(--nitido); }
.icone { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botões ---------- */
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-botao);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s;
}
/* o laranja só no botão principal (um por tela), refletido no tampo: a "luz laranja por baixo" é reflexo, não mancha */
/* v8f: sem o reflexo espelhado (aparecia o texto de cabeça para baixo); fica só a luz laranja difusa no tampo, sem texto */
.btn-principal { position: relative; background: var(--laranja); color: var(--tinta-laranja); }
.btn-principal::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(100% + 6px); height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--laranja-brilho), transparent); opacity: .7; filter: blur(8px); pointer-events: none;
}
.btn-vidro {
  color: var(--nitido); background: var(--vidro-app);
  box-shadow: inset 0 0 0 1px var(--vidro-borda-alto);
}
.btn-vidro:hover { box-shadow: inset 0 0 0 1px var(--vidro-borda-hover); }
.linha-preco { font-size: 15px; line-height: 1.5; color: var(--apoio); }
.nota-celular { font-size: 14px; line-height: 1.5; color: var(--apoio); max-width: 32em; }
.so-celular { display: none !important; }

/* ---------- O vidro (o do app) ---------- */
.vidro, .azulejo, .plano, .arvore, .aviso, .degrau, .cm-disco {
  position: relative; border-radius: 20px; background: var(--vidro-app);
  box-shadow: var(--vidro-sombra);
}
.vidro::before, .azulejo::before, .plano::before, .arvore::before, .aviso::before, .degrau::before, .cm-disco::before {
  /* a borda de 1 px em degradê (26% no alto a 5% no pé) e o brilho de 7% no alto */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px; background: linear-gradient(to bottom, var(--vidro-borda-alto), var(--vidro-borda-pe));
  -webkit-mask: linear-gradient(var(--noite) 0 0) content-box, linear-gradient(var(--noite) 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.vidro::after, .azulejo::after, .plano::after, .arvore::after, .aviso::after, .degrau::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to bottom, var(--vidro-brilho), transparent 50%);
}
@media (hover: hover) and (pointer: fine) {
  .azulejo, .plano, .arvore, .degrau { transition: transform .2s, box-shadow .2s; }
  .azulejo:hover, .plano:hover, .arvore:hover { transform: translateY(-2px); }
}

/* ==========================================================================
   O TAMPO: a assinatura da página (horizonte, chão, reflexo e a faixa de luz que anda)
   ========================================================================== */
.tampo { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 150px; pointer-events: none; z-index: 0; }
.tampo-chao { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--chao), transparent 60%); }
.tampo-linha {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--fio-luz) 30%, var(--fio-luz) 70%, transparent);
}
.tampo-luz {
  position: absolute; top: -6px; left: 0; width: 30%; height: 12px; border-radius: 6px; filter: blur(8px);
  background: linear-gradient(to right, transparent, var(--faixa-luz), transparent);
  animation: faixa-luz 40s linear infinite alternate;
}
@keyframes faixa-luz { from { transform: translateX(-20%); } to { transform: translateX(253%); } }
.secao:not(.na-tela) .tampo-luz, .parado .tampo-luz, html:not(.js) .tampo-luz { animation-play-state: paused; }
/* o reflexo no tampo: a peça repetida de cabeça para baixo a 12%, sumindo em ~120 px */
.reflete { -webkit-box-reflect: below 0 linear-gradient(transparent calc(100% - 130px), var(--reflexo)); }

.poca { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, var(--luz-neutra), transparent 70%); }
.fio-luz {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--fio-luz) 50%, transparent);
}

/* ==========================================================================
   SEÇÕES (comum)
   ========================================================================== */
.secao { position: relative; padding: var(--secao-y) var(--lado); }
.secao > * { position: relative; z-index: 1; }
.secao > .poca, .secao > .fio-luz { position: absolute; z-index: 0; }
.secao-cabeca.centro { text-align: center; display: grid; justify-items: center; gap: 22px; }
.duas-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 6vw; align-items: center; }
.duas-col > div > * + * { margin-top: 24px; }

/* entradas: fade com 16 px de subida, 400 ms, uma vez (quando a seção entra) */
.vivo .entra, .vivo .so-fade, .vivo .uma { opacity: 0; transform: translateY(16px); }
/* v8f: com o foco do teclado dentro, a peça aparece inteira na hora (sem esperar o fade) */
html.vivo .entra:focus-within, html.vivo .so-fade:focus-within, html.vivo .uma:focus-within { opacity: 1; transform: none; transition: none; }
.vivo .visto .entra, .vivo .visto .so-fade, .vivo .visto .uma {
  opacity: 1; transform: none; transition: opacity .4s ease, transform .4s var(--ease-encaixe);
}
.vivo .visto .entra { transition-delay: .15s; }
.vivo .visto .uma { transition-delay: calc(.1s + var(--i, 0) * .12s); }
.vivo .encaixa .l1 { opacity: 0; }
.vivo .encaixa .l2 { opacity: 0; transform: translateY(-104%); }
.vivo .visto .encaixa .l1 { opacity: 1; transition: opacity var(--d-fade); }
.vivo .visto .encaixa .l2 { opacity: 1; transform: none; transition: opacity .16s .15s, transform var(--d-encaixe) var(--ease-encaixe) .15s; }
.l2-w::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 1px; background: var(--junta-clara); opacity: 0; }
.vivo .visto .encaixa .l2-w::before { animation: junta var(--d-junta) linear .75s; }
.uma:nth-child(1) { --i: 0; } .uma:nth-child(2) { --i: 1; } .uma:nth-child(3) { --i: 2; }
.uma:nth-child(4) { --i: 3; } .uma:nth-child(5) { --i: 4; }
@keyframes junta { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.vivo .ja, .vivo .ja * { transition: none !important; animation-delay: 0s !important; }

/* ==========================================================================
   MENU: a pílula de vidro solta no alto
   ========================================================================== */
/* o menu fica no alto da página e rola embora com ela (rodada v4): sem véu, sem fixo */
.menu { position: absolute; z-index: 95; top: 12px; left: 0; right: 0; padding: 0 var(--lado); pointer-events: none; }
.menu-pilula {
  pointer-events: auto; display: flex; align-items: center; gap: 20px;
  min-height: var(--menu-h); padding: 8px 10px 8px 20px; border-radius: 16px;
  background: var(--vidro-menu); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--branco-15), var(--vidro-sombra);
}
.marca-bloco { flex: none; min-width: 200px; display: grid; }
.marca { display: block; width: 124px; border-radius: 4px; }
.logo { display: block; width: 124px; height: auto; overflow: visible; }
.logo-bojo, .logo-pingo { fill: var(--laranja); }
.logo-palavra { fill: var(--aluminio); }
.logo-junta { fill: var(--junta-clara); opacity: 0; }
.descritor { margin: 3px 0 0 21.4px; font-size: 12.5px; line-height: 1.2; color: var(--apoio); white-space: nowrap; transition: opacity .25s, max-height .25s; max-height: 2em; }
.menu-links { margin-left: auto; display: flex; gap: 2px; }
.menu-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pequeno);
  font-size: 14.5px; text-decoration: none; color: var(--apoio); transition: color .2s;
}
.menu-links a:hover { color: var(--nitido); }
.btn-menu { min-height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 11px; -webkit-box-reflect: unset; }
.btn-menu::after { content: none; }
.vivo .logo-bojo-baixo { animation: logo-encaixa var(--d-encaixe) var(--ease-encaixe) .25s both; }
.vivo .logo-junta { animation: junta var(--d-junta) linear .95s; }
.vivo .logo-pingo { animation: aparece var(--d-fade) ease 1.1s both; }
@keyframes logo-encaixa { from { transform: translateY(-464.88px); } to { transform: none; } }

/* ==========================================================================
   1 · ABERTURA (v6): a cópia acontecendo num objeto só, e a frase como legenda. Preso à rolagem (o trilho).
   A peça é uma zona de 1600 x 560 unidades (a faixa do meio da foto da mesa); tudo nela vai em % dessa zona.
   ========================================================================== */
.abertura { padding: 0; }
.vivo .ab-trilho { height: calc(100svh + 250svh); }   /* v7c: +40% de rolagem para a cópia da abertura */
.ab-palco {
  --abw: min(70vw, calc((100svh - 470px) * 1600 / 560), 1180px);   /* a largura da peça: cabe com a frase e os botões */
  position: relative; min-height: max(100svh, 640px); overflow: clip; background: var(--noite);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--menu-h) + 12px + clamp(8px, 2.4vh, 32px)) var(--lado) clamp(20px, 3.4vh, 40px);
}
.vivo .ab-palco { position: sticky; top: 0; height: 100svh; min-height: 0; }
.poca-ab { width: 90vw; height: 70vh; left: 5vw; top: 18%; }
.ab-centro { position: relative; z-index: 2; display: grid; justify-items: center; width: 100%; }

/* o botão do app, ligado desde o começo: o raio e a chave em laranja */
.auto {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 7px; border-radius: 999px;
  background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-alto), var(--vidro-sombra);
}
.auto-raio { width: 22px; height: 22px; flex: none; overflow: visible; }
.raio-des { display: none; }
.raio-lig circle { fill: var(--laranja); }
.raio-lig path { fill: var(--tinta-laranja); }
.auto-nome { font-size: 13.5px; font-weight: 500; color: var(--branco-75); }
.auto-chave { position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--laranja); }
.auto-chave i { position: absolute; top: 3px; left: 17px; width: 16px; height: 16px; border-radius: 50%; background: var(--branco-solido); box-shadow: 0 1px 3px var(--preto-35); }

/* a frase, a legenda da peça: uma linha no computador, duas no celular; o verbo acende quando a etapa acontece */
.frase-linha { width: auto; max-width: 100%; margin-top: clamp(14px, 2.4vh, 26px); font-size: min(5.6vw, 10vh, 96px); line-height: 1; text-align: center; white-space: nowrap; }
.frase-linha .vb { transition: color .5s ease; }
.vivo .frase-linha .vb:not(.aceso) { color: var(--verbo-apagado); }
.ab-feito { margin-top: clamp(10px, 1.6vh, 16px); }

/* a peça */
.ab-peca {
  position: relative; z-index: 1; width: var(--abw); aspect-ratio: 1600 / 560; margin-top: clamp(14px, 3vh, 36px);
  container-type: inline-size; mix-blend-mode: lighten;
}
.abp-foto { position: absolute; inset: 0; overflow: hidden; }
.abp-foto img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--grafite) 30%, var(--grafite) 94%, transparent), linear-gradient(transparent, var(--grafite) 8%, var(--grafite) 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, var(--grafite) 30%, var(--grafite) 94%, transparent), linear-gradient(transparent, var(--grafite) 8%, var(--grafite) 92%, transparent);
  mask-composite: intersect;
}
.abp-fios { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.abp-ida path { fill: none; stroke: var(--linha-curva); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.abp-pontos circle { fill: var(--branco-85); }
.abp-volta path { fill: none; stroke: var(--verbo-luz); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .16 2; stroke-dashoffset: .16; }
/* parado (o quadro final): sem fios, sem pontos */
.abp-ida, .abp-pontos, .abp-volta { opacity: 0; }
.abp-fenda-luz {
  position: absolute; left: 40.44%; top: 33%; height: 34%; width: 2px; margin-left: -1px; border-radius: 2px; opacity: 0;
  background: var(--verbo-luz); box-shadow: 0 0 14px 3px var(--verbo-luz);
}
/* os LEDs da foto, na zona da abertura (1600 x 560 a partir de y 170): medidos na mesa-2400 */
.abp-led-leitor { left: 45.443%; top: 49.94%; }
.abp-led-d1 { left: 72.276%; top: 23.22%; }
.abp-led-d2 { left: 72.267%; top: 76.63%; }
/* o tamanho de cada LED da foto, um pouco maior: o do leitor tem 0,52% da largura da foto, os dos discos 0,34% */
.abp-led-leitor, #luz-leitor { width: max(6px, .58%); }
.abp-led-d1, .abp-led-d2, #luz-disco1, #luz-disco2 { width: max(5px, .4%); }
/* o que cada disco mostra, por cima do disco (no celular, numa lista embaixo) */
.abp-disco { text-align: left; color: var(--nitido); }
.ab-peca .abp-disco {
  position: absolute; left: 68.94%; width: 21.5%; height: 40.18%; padding: 1.5cqi 1.7cqi;
  display: flex; flex-direction: column;
}
.ab-peca .abp-d1 { top: 3.04%; }
.ab-peca .abp-d2 { top: 56.61%; }
.abp-nome { font-weight: 600; font-size: max(12px, 1.3cqi); line-height: 1.2; }
.abp-barra { display: block; height: max(3px, .32cqi); margin-top: .7cqi; border-radius: 2px; background: var(--barra-trilho-escuro); overflow: hidden; }
.abp-barra i { display: block; height: 100%; background: var(--andamento-escuro); transform-origin: 0 50%; }
.abp-selo {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  padding: .3em .7em .3em .45em; border-radius: 999px; background: var(--ok-cheio); color: var(--branco-solido);
  font-weight: 600; font-size: max(12px, 1.05cqi); line-height: 1.2; box-shadow: inset 0 0 0 1px var(--branco-25);
}
.abp-selo .icone { width: 1.25em; height: 1.25em; stroke-width: 2; }
.abp-lista { display: none; }
/* o cartão: a foto deitada (o contato para a direita), o "A2" à caneta por cima, cortado na fenda do leitor */
.abp-fenda { position: absolute; inset: 0; clip-path: inset(-40% 59.56% -40% -30%); }
.abp-cartao { position: absolute; left: 7.5%; top: 33.04%; width: 14.25%; height: 33.93%; will-change: transform; }
.abp-cartao picture { position: absolute; left: 50%; top: 50%; width: 83.33%; height: 120%; transform: translate(-50%, -50%) rotate(-90deg); }
.abp-cartao img {
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 84% 76% at 50% 48%, var(--grafite) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 84% 76% at 50% 48%, var(--grafite) 84%, transparent 100%);
}
.abp-caneta .caneta { stroke: var(--caneta); }
.abp-caneta { position: absolute; left: 50%; top: 50%; width: 44%; transform: translate(-46%, -50%); overflow: visible; }

/* o número, discreto, entre a peça e o texto */
.ab-conta { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: clamp(6px, 1.4vh, 16px); color: var(--apoio); }
.abc-n { font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--nitido); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }
.abc-r { font-size: 14px; }

.ab-baixo { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; margin-top: clamp(10px, 2.2vh, 26px); }
.ab-baixo .abertura-txt { max-width: 60em; font-size: clamp(17px, 1.3vw, 19px); }
.ab-baixo .botoes { justify-content: center; margin-top: 2px; }
.ab-baixo .btn-principal, .ab-depois .btn-principal { -webkit-box-reflect: unset; }
.ab-baixo .btn-principal::after, .ab-depois .btn-principal::after { content: none; }
.ab-rolar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 10px; transition: opacity .3s; }
html:not(.vivo) .ab-rolar { display: none; }
.ab-depois { display: none; }

/* ==========================================================================
   O CAMINHO (Caminho.tsx, quadros de estilo 10 e 15): 3072 × 760 em proporção; medidas em cqi do conjunto
   ========================================================================== */
.vista-caminho { container-type: inline-size; }
.caminho { position: relative; width: 100%; aspect-ratio: 3072 / 760; color: var(--nitido); }
.cm-curvas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cm-linha { fill: none; stroke: var(--linha-curva); stroke-width: 10.5; stroke-linecap: round; }
.cm-seta { fill: none; stroke: var(--pessoa-a-escuro); stroke-width: 8.75; stroke-linecap: round; stroke-linejoin: round; }
.cm-ponto { fill: var(--pessoa-a-escuro); }
.cm-bloco {
  position: absolute; left: 0; top: 20.4%; width: 22.1%; height: 59.2%;
  border-radius: 1.82cqi; padding: 1.43cqi 1.69cqi; color: var(--branco-solido);
  background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo));
  box-shadow: inset 0 0 0 .1cqi var(--branco-25), var(--sombra-peca);
  display: flex; flex-direction: column; overflow: hidden;
}
.cm-bloco::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to bottom, var(--branco-15), transparent 45%); pointer-events: none; }
.cm-l1 { position: relative; display: flex; align-items: center; justify-content: space-between; }
.cm-cod { font-family: var(--f-mono); font-weight: 600; font-size: 3.71cqi; line-height: 1.1; }
.cm-l1 .icone { width: 2.7cqi; height: 2.7cqi; opacity: .9; stroke-width: 1.75; }
.cm-nome { position: relative; font-weight: 700; font-size: max(12px, 2.21cqi); line-height: 1.2; }
.cm-eq { position: relative; font-weight: 500; font-size: max(12px, 1.76cqi); line-height: 1.2; color: var(--branco-85); }
.cm-selo {
  position: relative; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .4cqi;
  padding: .26cqi .91cqi .26cqi .72cqi; border-radius: 1.3cqi; background: var(--selo-claro); color: var(--andamento-claro);
  font-weight: 700; font-size: max(12px, 1.37cqi); line-height: 1.3; white-space: nowrap;
}
.cm-selo .icone { width: 1.63cqi; height: 1.63cqi; min-width: 12px; min-height: 12px; stroke-width: 2; }
.cm-pct { font-variant-numeric: tabular-nums; }
.cm-bloco-ok { background: var(--ok-cheio); box-shadow: var(--sombra-peca); justify-content: flex-end; gap: .3cqi; opacity: 0; }
.cm-ok-t { display: flex; align-items: center; gap: .5cqi; font-weight: 700; font-size: max(12px, 1.9cqi); line-height: 1.2; position: relative; }
.cm-ok-t .icone { width: 2.2cqi; height: 2.2cqi; stroke-width: 2; }
.cm-ok-s { font-size: max(12px, 1.37cqi); color: var(--branco-85); position: relative; }
.cm-discos { position: absolute; left: 46.9%; right: 0; top: 0; bottom: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 7.4%; }
.cm-disco { border-radius: 2.28cqi; padding: 1.5cqi 1.95cqi; display: flex; flex-direction: column; justify-content: space-between; background: var(--vidro-app); box-shadow: var(--sombra-peca); }
.cm-d1 { position: relative; display: flex; align-items: center; gap: 1.17cqi; }
.cm-d-icone { width: 3.65cqi; height: 3.65cqi; border-radius: 1cqi; background: var(--disco-icone); display: grid; place-items: center; flex: none; color: var(--branco-solido); }
.cm-d-icone .icone { width: 2.28cqi; height: 2.28cqi; stroke-width: 1.75; }
.cm-d-txt { display: grid; line-height: 1.15; }
.cm-d-txt b { font-weight: 600; font-size: max(12px, 2.02cqi); }
.cm-d-txt span { font-size: max(12px, 1.37cqi); color: var(--desligada-escuro); }
.cm-vel { margin-left: auto; font-weight: 300; font-size: max(12px, 1.55cqi); font-variant-numeric: tabular-nums; color: var(--desligada-escuro); }
.cm-barra { position: relative; display: block; height: .68cqi; min-height: 4px; border-radius: 1cqi; background: var(--barra-trilho-escuro); overflow: hidden; }
.cm-barra i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; transform-origin: 0 50%; }
.cm-barra .lido { background: var(--lido); transform: scaleX(calc(var(--p) + .02)); }
.cm-barra .conf { background: var(--ok-escuro); transform: scaleX(var(--p)); }
.cm-d2 { position: relative; display: flex; justify-content: space-between; gap: 8px; font-size: max(12px, 1.37cqi); color: var(--desligada-escuro); font-variant-numeric: tabular-nums; white-space: nowrap; }
.caminho.conferido .cm-linha, .caminho.conferido .cm-seta { stroke: var(--ok-escuro); }
.caminho.conferido .cm-pontos { opacity: 0; }
.caminho.conferido .cm-bloco-ok { opacity: 1; }
.caminho.conferido .cm-bloco:not(.cm-bloco-ok) { visibility: hidden; }   /* desenho aria-hidden: o índigo não aparece por baixo do verde */
.caminho.conferido .cm-vel { opacity: 0; }

/* a luz que gira na borda do bloco que copia (uma volta a cada 2,4 s, como no app) */
.luz-gira {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; padding: 2px;
  -webkit-mask: linear-gradient(var(--noite) 0 0) content-box, linear-gradient(var(--noite) 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.luz-gira i {
  position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(transparent 0 62%, var(--branco-25) 84%, var(--branco-solido) 97%, transparent 100%);
  animation: gira 2.4s linear infinite;
}
@keyframes gira { to { transform: rotate(1turn); } }
.secao:not(.na-tela) .luz-gira i, .parado .luz-gira i, html:not(.js) .luz-gira i { animation-play-state: paused; }
.caminho.conferido .luz-gira { opacity: 0; }

/* ==========================================================================
   2 · A HISTÓRIA: o palco parado à esquerda, as legendas descendo à direita
   ========================================================================== */
.historia { padding-left: 0; padding-right: 0; }
.hist-cabeca { padding: 0 var(--lado); display: grid; gap: 18px; }
.hist-hora { color: var(--apoio); }
.hist-grade { display: grid; grid-template-columns: 62vw minmax(0, 1fr); margin-top: clamp(32px, 6vh, 72px); }
.palco-col { position: relative; }
.palco, .passos { display: none; }
.passo-quadro { margin-bottom: 28px; }
.passo-quadro img { width: 100%; height: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--branco-15); }

.vivo .palco-col { position: sticky; top: 0; height: 100vh; height: 100svh; align-self: start; }
.vivo .palco { display: block; position: absolute; inset: 0; overflow: clip; background: var(--noite); }
.vivo .passo-quadro { display: none; }
/* a zona ocupa o palco: de 88 px da borda esquerda até 24 px da direita (781 px em 1440) */
.palco-col { --zw: min(calc(62vw - 112px), calc((100svh - 170px) * 16 / 9)); }
.palco-cena {
  position: absolute; z-index: 1; left: 88px; top: calc(50% + 24px); width: var(--zw); aspect-ratio: 16 / 9;
  transform: translateY(-50%); container-type: inline-size;
  background: var(--noite);   /* o fundo do "lighten" da mesa: a palco-cena é um grupo isolado (tem transform) */
}
/* o chão e a linha passam por cima da zona e somem nos últimos 35% da direita: nenhuma borda */
.palco > .tampo {
  position: absolute; z-index: 2; left: 0; width: 100%; margin: 0; top: calc(50% + 24px + var(--zw) * 9 / 32); height: auto; bottom: 0;
  -webkit-mask-image: linear-gradient(90deg, var(--grafite) 65%, transparent); mask-image: linear-gradient(90deg, var(--grafite) 65%, transparent);
}
.mesa, .tela { position: absolute; inset: 0; will-change: transform, opacity; }
/* a mesa se mistura ao palco por "lighten": o tampo da foto (um pouco abaixo da Noite) some por inteiro */
.mesa { mix-blend-mode: lighten; }
.mesa-selo { position: absolute; left: 4%; bottom: 3%; padding: 6px 12px; border-radius: 999px; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--branco-15); color: var(--nitido); opacity: 0; transition: opacity var(--d-fade); }
.mesa.no-leitor .mesa-selo { opacity: 1; }
/* a roda: as cenas giram para a esquerda (perspectiva; transform e opacity escritos por quadro em pagina.js) */
.palco-cena, .tela { perspective: 1800px; perspective-origin: 50% 45%; }
.tela { container-type: inline-size; display: grid; place-items: center; }
.vista { grid-area: 1 / 1; width: 100%; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.mesa { backface-visibility: hidden; }
.cm-ok-selo {
  display: none; margin-left: auto; align-items: center; gap: .35em; white-space: nowrap; padding: .25em .7em .25em .45em; border-radius: 999px;
  background: var(--ok-cheio); color: var(--branco-solido); font-weight: 600; font-size: max(12px, 1.9cqi); line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--branco-25);
}
.cm-ok-selo .icone { width: 1.2em; height: 1.2em; stroke-width: 2; }
.caminho.conferido .cm-ok-selo { display: inline-flex; }
#vista-pronto .cm-vel { display: none; }
.palco-selo { position: absolute; right: 0; top: -36px; color: var(--apoio); opacity: 0; transition: opacity var(--d-fade); }
.palco-selo.on { opacity: 1; }

/* a mesa: a cena em código, repintada para a Noite (o mesmo gerador) */
.cena-zona { position: absolute; inset: 0; color: var(--cena-brilho); overflow: clip; }
.cena-quadros {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, var(--grafite) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, var(--grafite) 70%, transparent 100%);
}
.cena-camera { position: absolute; inset: 0; transform-origin: 80% 50%; transform: scale(1.15); will-change: transform; }
.mesa-foto { position: absolute; inset: 0; z-index: 0; }
.mesa-foto img {
  width: 100%; height: 100%; mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--grafite) 12%, var(--grafite) 88%, transparent), linear-gradient(transparent, var(--grafite) 12%, var(--grafite) 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, var(--grafite) 12%, var(--grafite) 88%, transparent), linear-gradient(transparent, var(--grafite) 12%, var(--grafite) 88%, transparent);
  mask-composite: intersect;
}
/* com a foto, o leitor e os discos desenhados ficam de reserva; as luzes são pontos em código, presos às âncoras */
.mesa-foto ~ .p-leitor, .mesa-foto ~ .p-disco { display: none; }
.corte-fenda { position: absolute; inset: 0; z-index: 1; }
.luz-ponto { position: absolute; z-index: 3; width: max(5px, .42%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: var(--luz-apagada); }
/* o verde é uma camada por cima do ponto: só ela pisca; embaixo fica o fundo escuro do LED (a foto nunca aparece do lado) */
.luz-ponto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok-escuro); box-shadow: 0 0 4px 1px var(--ok-brilho); opacity: 0; transition: opacity .3s; }
.luz-ponto.on, .luz-ponto.ok { background: var(--luz-base); }
.luz-ponto.on::after, .luz-ponto.ok::after { opacity: 1; }
.vivo .luz-ponto.on::after { animation: luz-pisca 1.2s ease-in-out infinite; }
@keyframes luz-pisca { 50% { opacity: .3; } }
/* a mesma luz nos blocos da estação e da demonstração, ao lado do código do cartão */
.luz-verde {
  display: inline-block; width: .3em; height: .3em; margin-left: .32em; vertical-align: .32em; border-radius: 50%;
  background: var(--branco-25);
}
.tv[data-estado="1"] .tvb-a .luz-verde, .tv[data-estado="2"] .tvb-a .luz-verde, .tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .tvb-b .luz-verde,
.meio-tile[data-estado="copiando"] .luz-verde { background: var(--ok-escuro); box-shadow: 0 0 0 1.5px var(--branco-85), 0 0 8px 1px var(--ok-brilho); }
.vivo .tv[data-estado="1"] .tvb-a .luz-verde, .vivo .tv[data-estado="2"] .tvb-a .luz-verde, .vivo .tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .tvb-b .luz-verde,
.vivo .meio-tile[data-estado="copiando"] .luz-verde { animation: luz-pisca 1.2s ease-in-out infinite; }
.tv[data-estado="3"] .tvb-a .luz-verde, .meio-tile[data-estado="pronto"] .luz-verde { background: var(--ok-escuro); box-shadow: 0 0 0 1.5px var(--branco-85), 0 0 8px 1px var(--ok-brilho); }
.peca { position: absolute; }
.peca svg { display: block; width: 100%; height: 100%; overflow: visible; }
.p-disco { z-index: 0; }
.p-cartao { z-index: 1; will-change: transform; }
.p-leitor { z-index: 2; }
.p-cartao.alto { z-index: 4; }
.p-cartao.alto .c-corpo { filter: url(#f-cartao-alto); }
.p-cartao.fora { visibility: hidden; }
.cena-linhas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; opacity: 0; }
.cena-linhas path { fill: none; stroke: var(--linha-curva); stroke-width: 4; }
.disco-info { display: none; }
.s-cena-aluminio-alto { stop-color: var(--cena-aluminio-alto); }
.s-cena-aluminio-baixo { stop-color: var(--cena-aluminio-baixo); }
.s-cena-tampa-1 { stop-color: var(--cena-tampa-1); }
.s-cena-tampa-2 { stop-color: var(--cena-tampa-2); }
.s-cena-tampa-3 { stop-color: var(--cena-tampa-3); }
.s-cena-grafite-alto { stop-color: var(--cena-grafite-alto); }
.s-cena-grafite-baixo { stop-color: var(--cena-grafite-baixo); }
.s-cena-disco-alto { stop-color: var(--cena-disco-alto); }
.s-cena-disco-baixo { stop-color: var(--cena-disco-baixo); }
.f-cena-fenda { fill: var(--cena-fenda); }
.f-cena-porta { fill: var(--cena-porta); }
.f-cena-trava { fill: var(--cena-trava); }
.f-luz-base { fill: var(--luz-base); }
.f-etiqueta { fill: var(--etiqueta); }
.f-etiqueta-faixa { fill: var(--etiqueta-faixa); }
.f-impresso { fill: var(--cena-impresso); }
.fl-sombra { flood-color: var(--preto-35); }
.tr-branco { color: var(--cena-brilho); }
.led { fill: var(--luz-apagada); transition: fill .25s; }
.peca.on .led { fill: var(--luz-acesa); }

/* a folha de vidro "De quem é este cartão?" (360 px), ao lado do leitor */
.ficha {
  position: absolute; z-index: 6; width: min(360px, 46%);
  display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 16px; border-radius: 20px;
  background: var(--vidro-app-aceso); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--vidro-borda-alto), var(--vidro-sombra);
  color: var(--nitido); font-size: clamp(13.5px, 1.05vw, 16px); line-height: 1.35; white-space: nowrap;
  opacity: 0; transition: opacity var(--d-fade);
}
.cena-zona.ficha-on .ficha { opacity: 1; }
.codigo {
  display: inline-flex; align-items: center; height: 2.3em; padding: 0 .6em;
  font-family: var(--f-mono); font-weight: 600; font-size: 1.15em; letter-spacing: .02em;
  border: 2px solid var(--pessoa-a-escuro); border-radius: .8em; color: var(--nitido);
}
.f-txt { display: grid; gap: 2px; min-width: 0; }
.f-linha { display: grid; }
.f-vazio, .f-valor { grid-area: 1 / 1; }
.f-nome { font-weight: 600; }
.f-conta { font-size: .9em; color: var(--apoio); }
.f-vazio { color: var(--apoio); font-weight: 400; }
.f-codigo .f-vazio { display: inline-flex; align-items: center; justify-content: center; width: 3em; height: 2.5em; border: 2px dashed var(--linha); border-radius: .8em; }
.f-valor { opacity: 0; }
.ficha.montada .f-valor { opacity: 1; transition: opacity 0s linear var(--d); }
.ficha.montada .f-vazio { opacity: 0; transition: opacity 0s linear var(--d); }

/* a tela: o número (Numero.tsx, quadro 12) e o mosaico (Mosaico.tsx, quadros 13 e 14) */
.vista-numero { padding: 0 3cqi; }
.nv-l1 { display: flex; align-items: baseline; gap: 2.4cqi; white-space: nowrap; }
.nv-n { font-weight: 300; font-size: 15.25cqi; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.nv-de { font-weight: 300; font-size: 5.08cqi; color: var(--apoio); line-height: 1; }
.barra2 { position: relative; display: block; margin-top: 4cqi; height: 1.7cqi; border-radius: 1cqi; background: var(--barra-trilho-escuro); overflow: hidden; }
.barra2 i { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; }
.barra2 .lido { background: var(--lido); transform: scaleX(.617); }
.barra2 .conf { background: var(--ok-escuro); transform: scaleX(.597); }
.nv-l2 { display: flex; justify-content: space-between; margin-top: 2.6cqi; font-size: max(12px, 3.05cqi); color: var(--apoio); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv-l2 b { color: var(--nitido); font-weight: 300; }
.mo-titulo { display: flex; align-items: baseline; gap: .9cqi; margin-bottom: 1.4cqi; white-space: nowrap; }
.mo-titulo b { font-weight: 600; font-size: max(12px, 1.95cqi); }
.mo-titulo span { font-size: max(12px, 1.5cqi); color: var(--apoio); }
.mosaico { --q: 3.1cqi; --v: .36cqi; display: grid; grid-template-columns: repeat(29, var(--q)); gap: var(--v); }
.mosaico i, .mo-leg .q { position: relative; display: block; width: var(--q); aspect-ratio: 1; border-radius: 18%; background: var(--fila); overflow: hidden; }
.mosaico i.ok, .mo-leg .q.ok { background: var(--ok-mosaico); }
.mosaico i.conferindo::after, .mo-leg .q.conferindo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--ok-meio); }
.mosaico i.gravando, .mo-leg .q.gravando { background: var(--lido); box-shadow: inset 0 0 0 max(1px, .37cqi) var(--andamento-escuro); }
.mo-pe { display: flex; align-items: center; gap: 1.2cqi; margin-top: 1.7cqi; color: var(--desligada-escuro); font-size: max(12px, 1.68cqi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mo-leg { display: flex; gap: 1.8cqi; }
.mo-leg > span { display: inline-flex; align-items: center; gap: .6cqi; }
.mo-leg .q { --q: 1.35cqi; min-width: 9px; }
.mo-ultimo { margin-left: auto; display: inline-flex; align-items: center; gap: .6cqi; }
.mo-ultimo .icone { color: var(--ok-escuro); width: 2cqi; height: 2cqi; }
.mo-ultimo code { color: var(--nitido); font-weight: 600; }

/* o trilho: os quatro verbos da promessa, em fila, em cima da zona. Cada um acende quando a etapa acontece e fica aceso;
   o da etapa atual ganha o fio de baixo. Inativo em --apoio (7,6:1), aceso em --nitido. */
.vivo .passos { display: block; position: absolute; z-index: 3; left: 88px; top: calc(50% + 24px - var(--zw) * 9 / 32 - 72px); }
.passos ol { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 1.4vw, 22px); }
.passos button {
  position: relative; min-height: 44px; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  font-family: var(--f-sans); font-weight: 600; font-stretch: 112.5%; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -0.015em;
  color: var(--apoio); transition: color .25s;
}
.passos button::after {
  content: ""; position: absolute; left: 0; right: .35em; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--d-encaixe) var(--ease-encaixe);
}
/* v8 (decisão do Pablo, acima da regra do manual): o verbo da etapa que está acontecendo fica no laranja da marca; os que
   já passaram, brancos; os que vêm, em --apoio. Sem o fio de baixo. */
.passos button::after { display: none; }
.passos li.feito button { color: var(--nitido); }
.passos li.ativo button { color: var(--laranja); }

/* 2d · a tela do app em unidades da zona (12, item 2): cresce junto com o palco. Só no computador. */
@media (min-width: 761px) and (orientation: landscape), (min-width: 1025px) {
  .vista-caminho .caminho { aspect-ratio: 100 / 33; }
  .vista-caminho .cm-bloco { left: 0; top: 6.5cqi; width: 30cqi; height: 20cqi; border-radius: 2.2cqi; padding: 1.8cqi 2.1cqi; }
  .vista-caminho .cm-cod { font-size: 5.6cqi; }
  .vista-caminho .cm-l1 .icone { width: 3.4cqi; height: 3.4cqi; }
  .vista-caminho .cm-nome { font-size: 3.4cqi; }
  .vista-caminho .cm-eq { font-size: max(12px, 2.3cqi); }
  .vista-caminho .cm-selo { font-size: max(12px, 2.1cqi); padding: .4cqi 1.2cqi .4cqi .9cqi; border-radius: 2cqi; gap: .6cqi; }
  .vista-caminho .cm-selo .icone { width: 2.4cqi; height: 2.4cqi; }
  .vista-caminho .cm-ok-t { font-size: max(12px, 2.4cqi); white-space: nowrap; gap: .7cqi; }
  .vista-caminho .cm-ok-t .icone { width: 2.8cqi; height: 2.8cqi; }
  .vista-caminho .cm-ok-s { font-size: max(12px, 2cqi); }
  .vista-caminho .cm-discos { left: 48cqi; right: auto; width: 52cqi; grid-template-rows: 15cqi 15cqi; gap: 2.6cqi; align-content: center; }
  .vista-caminho .cm-disco { border-radius: 2.2cqi; padding: 1.3cqi 1.8cqi; gap: .6cqi; }
  .vista-caminho .cm-d1 { gap: 1.4cqi; }
  .vista-caminho .cm-d-icone { width: 4.2cqi; height: 4.2cqi; border-radius: 1.1cqi; }
  .vista-caminho .cm-d-icone .icone { width: 2.6cqi; height: 2.6cqi; }
  .vista-caminho .cm-d-txt b { font-size: 2.8cqi; }
  .vista-caminho .cm-d-txt span, .vista-caminho .cm-vel { font-size: max(12px, 2cqi); }
  .vista-caminho .cm-barra { height: 1cqi; }
  .vista-caminho .cm-d2 { font-size: max(12px, 2cqi); flex-wrap: wrap; row-gap: 0; }
  .vista-caminho .cm-linha { stroke-width: 3.4; }
  .vista-caminho .cm-seta { stroke-width: 2.8; }
  .vista-numero { padding: 0; }
  .nv-n { font-size: 22cqi; }
  .nv-de { font-size: 4cqi; }
  .barra2 { height: 1.6cqi; margin-top: 3.4cqi; }
  .nv-l2 { font-size: max(12px, 2.6cqi); margin-top: 2.4cqi; }
  .mosaico { --q: 3cqi; --v: .45cqi; }
  .mo-titulo b, .mo-titulo span { font-size: max(12px, 2.6cqi); }
  .mo-titulo span { font-size: max(12px, 2.1cqi); }
  .mo-pe { font-size: max(12px, 2.1cqi); }
  .mo-leg .q { --q: 2cqi; }
  .mo-ultimo .icone { width: 2.4cqi; height: 2.4cqi; }
  .ficha { width: 38cqi; font-size: max(12px, 2.6cqi); padding: 1.8cqi 2cqi 1.8cqi 1.8cqi; gap: 1.6cqi; border-radius: 2.4cqi; }
  .ficha .codigo { font-size: 3.4cqi; }
  .ficha .f-conta { font-size: max(12px, 2cqi); }
}

/* sem JS ou com "reduzir movimento": um documento comum, cada passo com o seu quadro parado ao lado */
html:not(.vivo) .hist-grade { display: block; }
html:not(.vivo) .palco-col { display: none; }
html:not(.vivo) .legendas { padding: 0 var(--lado); }
html:not(.vivo) .legenda { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 5vw; align-items: center; }
html:not(.vivo) .legenda .passo-quadro { grid-column: 1; margin: 0; }
html:not(.vivo) .legenda .lg-corpo { grid-column: 2; }
html:not(.vivo) .legenda-espaco { display: none; }
.legenda + .legenda-espaco { border-top: 0; }

/* as legendas */
.legendas { padding: 0 var(--lado) 0 4vw; }
.legenda { position: relative; padding: 9vh 0; }
.legenda + .legenda { border-top: 1px solid var(--linha); }
.vivo .legenda { min-height: calc(var(--min) * 1.4); display: flex; align-items: center; border-top: 0; padding: 0; opacity: .35; transition: opacity .35s; }
.vivo .legenda.ativa { opacity: 1; }
.lg-corpo { position: relative; width: 100%; }
.lg-corpo > * + * { margin-top: 18px; }
.lg-corpo > .rotulo + .titulo-passo, .lg-corpo > .rotulo + .rotulo { margin-top: 12px; }
.fantasma {
  position: absolute; z-index: -1; left: -.06em; top: 50%; transform: translateY(-58%);
  font-weight: 300; font-size: clamp(160px, 24vw, 360px); line-height: .8; letter-spacing: -0.05em; color: var(--branco-solido); opacity: .05;
  pointer-events: none; user-select: none;
}
.passo .rotulo-estado { color: var(--nitido); }
.fala-t { font-weight: 600; font-stretch: 112.5%; font-size: var(--t-passo); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.fala.voce .fala-t { font-size: clamp(32px, 3.4vw, 50px); }
.fala.maior .fala-t { font-size: clamp(36px, 3.9vw, 58px); }
.fala.nota .fala-t { font-stretch: 100%; }
.uma-por-linha .l1 { white-space: nowrap; }
@media (min-width: 761px) and (orientation: landscape), (min-width: 1025px) { .uma-por-linha { font-size: min(var(--t-passo), 3vw); } }
.estado { padding-top: 6px; }
.estado-t { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--ok-escuro); }
.estado-t .icone { width: 24px; height: 24px; }
.estado-d { font-size: 15px; color: var(--apoio); margin: 4px 0 0 34px; font-variant-numeric: tabular-nums; }
.estado-f { font-weight: 600; font-size: 19px; color: var(--ok-escuro); margin: 6px 0 0 34px; }

/* ==========================================================================
   3 · FECHO DA HISTÓRIA
   ========================================================================== */
.fecho { text-align: center; padding-bottom: 0; }
.fecho .frase-marca { display: inline-block; text-align: center; }
.frase-fecho { font-size: clamp(44px, min(7.4vw, 14vh), 120px); line-height: .95; color: var(--nitido); }
.poca-centro { width: 80vw; height: 60vw; left: 10vw; top: 10%; }
.fecho-acao { display: grid; justify-items: center; gap: 22px; margin-top: 44px; }
.fecho-acao .linha-preco { max-width: 34em; }
.fecho-icone { width: 260px; margin: 64px auto 0; -webkit-box-reflect: below -14px linear-gradient(transparent 62%, var(--reflexo)); }
.fecho-icone img { width: 260px; height: 260px; }

/* ==========================================================================
   4 · A ESTAÇÃO NA TV, fiel ao app (StationView.swift; estados-da-tv.md). 1 pt da TV de 1920 = 0,054cqi (k = 1,0378)
   ========================================================================== */
.tv-secao { padding-bottom: 0; }
/* a TV e os botões de plugar ao lado (no celular, embaixo) */
.tv-area { width: min(1180px, 92vw); margin: clamp(48px, 7vh, 80px) auto 0; }
.tv-area.com-controles { width: min(1420px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; }
.tv-area .tv { width: 100%; margin: 0; grid-column: 1; grid-row: 1; }
.tv-controles { position: relative; z-index: 2; display: grid; gap: 10px; grid-column: 2; grid-row: 1; }
/* "Experimente ao vivo": o convite da seção, com o ponto verde de estado (nunca o laranja) */
.tvc-titulo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 600; font-stretch: 112.5%; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.15; letter-spacing: -0.01em; color: var(--nitido); white-space: nowrap; }
.tvc-ponto { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok-escuro); }
.tvc-ponto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 var(--ok-brilho); }
.vivo .tvc-ponto::after { animation: ao-vivo 1.8s ease-out infinite; }
@keyframes ao-vivo { 0% { box-shadow: 0 0 0 0 var(--ok-brilho); } 100% { box-shadow: 0 0 0 10px transparent; } }
.tvc-plugar { flex-direction: column; align-items: flex-start; gap: 3px; min-height: 58px; padding: 0 18px; font-size: 15.5px; box-shadow: inset 0 0 0 1px var(--vidro-borda-hover); background: var(--vidro-app-aceso); }
.tvc-plugar:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--nitido); }
.tvc-plugar span { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .04em; color: var(--apoio); }
.tvc-plugar:disabled { opacity: .4; cursor: default; }
.tvc-recomecar { min-height: 44px; margin-top: 6px; font-size: 14.5px; color: var(--apoio); background: none; box-shadow: inset 0 0 0 1px var(--linha); }
.tvc-recomecar:hover { color: var(--nitido); }
/* a TV liga antes de entrar na tela: do preto para a estação, uma vez */
.tv-desliga { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: var(--noite); opacity: 0; pointer-events: none; }
/* a TV nunca aparece preta: ela entra já ligada e monta os dados por cima do fundo da estação */
.tv-tela { position: relative; }
.tv-cta { justify-content: center; margin-top: clamp(40px, 7vh, 72px); position: relative; z-index: 2; }
.tv-cta-nota { margin: 14px auto 0; text-align: center; position: relative; z-index: 2; }
.poca-larga { width: 110vw; height: 60vw; left: -5vw; top: 22%; }
.tv {
  width: min(1180px, 92vw); margin: clamp(48px, 7vh, 80px) auto 0; padding: 10px; border-radius: 22px;
  background: var(--tv-caixa); box-shadow: inset 0 0 0 1px var(--branco-15), var(--sombra-peca);
  -webkit-box-reflect: below 0 linear-gradient(transparent calc(100% - 140px), var(--reflexo));
}
.tv-tela {
  container-type: inline-size; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; color: var(--branco-solido);
  padding: 2.92cqi; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.23cqi;
  background:
    radial-gradient(circle 45cqi at 8% 12%, var(--tv-mancha-1), transparent),
    radial-gradient(circle 48cqi at 92% 4%, var(--tv-mancha-2), transparent),
    radial-gradient(circle 52cqi at 78% 96%, var(--tv-mancha-3), transparent),
    radial-gradient(circle 50cqi at 24% 92%, var(--tv-mancha-4), transparent),
    var(--tv-neutro);
}
.tv code { font-family: var(--f-mono); font-weight: 600; }
/* os quatro estados, secos como no app: data-estado na figura */
.tv .e2, .tv .v { display: none; }
.tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .e1 { display: none; }
.tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .e2 { display: inline; }
.tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) i.e2 { display: block; }
.tv i.e1 { display: block; }
.tv-cabeca { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqi; }
.tv-titulo { font-weight: 700; font-size: max(15px, 2.38cqi); line-height: 1.1; }
.tv-regra { font-size: max(12px, 1.3cqi); line-height: 1.3; color: var(--andamento-escuro); margin-top: .22cqi; }
.tv-relogio { text-align: right; flex: none; }
.tv-hora { font-weight: 700; font-size: max(20px, 3.24cqi); line-height: 1; font-variant-numeric: tabular-nums; }
.tv-dia { font-weight: 600; font-size: max(12px, 1.19cqi); color: var(--andamento-escuro); margin-top: .2cqi; }
.tv-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 26.4cqi; gap: 1.12cqi; min-height: 0; }
.tv-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.04cqi; min-height: 0; }
.tv[data-estado="4"] .tv-grade { grid-template-columns: minmax(0, 1fr); }
.tv[data-estado="4"] .tv-col-a { display: none; }
.tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .tv-col-b { order: -1; }
.tv-col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .65cqi; min-height: 0; }
/* o bloco do cartão (StationCardTile / TicketTile): raio 28k, margem 26k, borda branca a 25% */
.tv-bloco {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border-radius: 1.57cqi; padding: 1.46cqi; box-shadow: inset 0 0 0 1px var(--branco-25), 0 .45cqi 1cqi var(--preto-35);
}
.tvb-a { background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo)); }
.tvb-b { background: linear-gradient(135deg, var(--pessoa-b), var(--pessoa-b-fundo)); }
.tv[data-estado="2"] .tvb-a { background: var(--disco-icone); box-shadow: inset 0 0 0 1px var(--branco-30), 0 .45cqi 1cqi var(--preto-35); }
.tv[data-estado="3"] .tvb-a { background: var(--ok-cheio); box-shadow: inset 0 0 0 1px var(--branco-30), 0 0 .4cqi var(--ok-brilho-0); }
.vivo .tv[data-estado="3"] .tvb-a { animation: pulsa 1.1s ease-in-out infinite alternate; }
.secao:not(.na-tela) .tv .tvb-a { animation-play-state: paused; }
@keyframes pulsa { to { transform: scale(1.012); box-shadow: inset 0 0 0 1px var(--branco-30), 0 0 1cqi var(--ok-brilho); } }
.tv .luz-gira { display: none; }
.tv[data-estado="1"] .tvb-a .luz-gira, .tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .tvb-b .luz-gira { display: block; }
.tv[data-estado="1"] .tvb-a .v-copiando, .tv:is([data-estado="3"], [data-estado="4"]) .tvb-b .v-copiando { display: grid; }
.tv[data-estado="2"] .tvb-a .v-finalizando, .tv[data-estado="3"] .tvb-a .v-pronto,
.tv[data-estado="1"] .tvb-b .v-fila, .tv[data-estado="2"] .tvb-b .v-comecando { display: flex; }
.tv:is([data-estado="2"], [data-estado="3"]) .tvb-a .tvb-eq { display: none; }
.tvb-ultimos { display: none; }
.tv[data-estado="3"] .tvb-ultimos { display: grid; }
.tvb-l1 { position: relative; display: flex; justify-content: space-between; align-items: baseline; }
.tv .tvb-cod { font-family: var(--f-mono); font-weight: 700; font-size: max(20px, 2.92cqi); line-height: 1; }
.tv .tvb-eq { font-weight: 600; font-size: max(12px, 1.51cqi); color: var(--branco-85); }
.tv .tvb-nome { position: relative; font-weight: 700; font-size: max(15px, 2.59cqi); line-height: 1.15; margin-top: .76cqi; }
.tv .tvb-ultimos { position: relative; gap: .1cqi; margin-top: .6cqi; }
.tv .tvb-ultimos p { display: flex; align-items: center; gap: .3cqi; font-size: max(12px, 1.19cqi); white-space: nowrap; }
.tv .tvb-ultimos .icone, .tv .tv-eq-arq .icone { width: 1.05em; height: 1.05em; stroke-width: 1.75; }
.tvb-pe { position: relative; margin-top: auto; }
.tv .v-copiando { gap: .54cqi; }
.tv .tvb-estado { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqi; flex-wrap: wrap; }
.tv .tvb-estado b { font-weight: 700; font-size: max(15px, 2.16cqi); font-variant-numeric: tabular-nums; }
.tv .tvb-estado > span { font-weight: 600; font-size: max(12px, 1.4cqi); font-variant-numeric: tabular-nums; }
.tv .tvb-barra { display: block; height: max(4px, .65cqi); border-radius: 1cqi; background: var(--branco-25); overflow: hidden; }
.tvb-barra i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--branco-solido); border-radius: inherit; }
.tv .tvb-aviso { display: flex; align-items: center; gap: .5cqi; font-weight: 700; font-size: max(13px, 1.73cqi); }
.tvb-aviso .icone { width: 1.1em; height: 1.1em; stroke-width: 2; }
.tv .tvb-grande { align-items: flex-start; gap: .86cqi; }
.tv .tvb-grande > .icone { width: 2.81cqi; height: 2.81cqi; stroke-width: 2; margin-top: .2cqi; }
.tv .tvb-grande .tvb-t { font-weight: 800; font-size: max(15px, 2.38cqi); line-height: 1.1; }
.tv .tvb-grande .tvb-f { font-weight: 700; font-size: max(13px, 1.62cqi); line-height: 1.25; }
.tv .tvb-grande .tvb-d { font-size: max(12px, 1.19cqi); opacity: .92; }
.tv .tvb-medio { align-items: center; gap: .76cqi; }
.tv .tvb-medio > .icone { width: 2.16cqi; height: 2.16cqi; stroke-width: 2; }
.tv .tvb-medio .tvb-t { font-weight: 700; font-size: max(15px, 2.05cqi); line-height: 1.1; }
.tv .tvb-medio .tvb-d { font-size: max(12px, 1.3cqi); opacity: .9; }
/* o caminho pequeno embaixo do bloco que copia (StationCopyStrip): cartão → SSD e HD, com os 5 pontos */
.tv-strip {
  visibility: hidden; display: flex; align-items: center; gap: .5cqi; height: 5.27cqi; padding: .54cqi 1.08cqi .54cqi .86cqi;
  border-radius: 1.08cqi; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe);
}
.tv[data-estado="1"] .tv-col-a .tv-strip, .tv:is([data-estado="2"], [data-estado="3"], [data-estado="4"]) .tv-col-b .tv-strip { visibility: visible; }
.tvs-cartao { width: 1.84cqi; height: 1.84cqi; border-radius: 28%; display: grid; place-items: center; flex: none; color: var(--branco-solido); }
.tvs-cartao.pa { background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo)); }
.tvs-cartao.pb { background: linear-gradient(135deg, var(--pessoa-b), var(--pessoa-b-fundo)); }
.tvs-cartao .icone { width: 60%; height: 60%; stroke-width: 2; }
.tvs-curvas { height: 100%; aspect-ratio: 200 / 60; flex: none; overflow: visible; }
.tvs-curvas path { fill: none; stroke: var(--linha-curva); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tvs-pontos.pa circle { fill: var(--pessoa-a-escuro); }
.tvs-pontos.pb circle { fill: var(--pessoa-b-escuro); }
.tvs-discos { display: grid; gap: .32cqi; }
.tvs-discos > span { display: flex; align-items: center; gap: .5cqi; font-weight: 600; font-size: max(12px, 1.19cqi); line-height: 1; white-space: nowrap; }
.tvs-discos i { width: 1.84cqi; height: 1.84cqi; border-radius: 28%; display: grid; place-items: center; background: var(--disco-icone); }
.tvs-discos .icone { width: 62%; height: 62%; stroke-width: 2; }
/* a equipe (StationPeople) */
.tv-equipe { display: grid; align-content: start; gap: .43cqi; min-height: 0; }
.tv-eq-titulo { font-weight: 700; font-size: max(12px, 1.3cqi); color: var(--andamento-escuro); }
.tv-equipe ul { display: grid; gap: .43cqi; }
.tv-eq {
  position: relative; display: flex; align-items: flex-start; gap: .76cqi; padding: .7cqi .86cqi; border-radius: .86cqi;
  background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe);
}
.tv-eq-l { width: 2.38cqi; height: 2.38cqi; min-width: 20px; min-height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: max(12px, 1.3cqi); flex: none; }
.eq-a .tv-eq-l { background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo)); }
.eq-b .tv-eq-l { background: linear-gradient(135deg, var(--pessoa-b), var(--pessoa-b-fundo)); }
.eq-c .tv-eq-l { background: var(--pessoa-c-cheio); } .eq-d .tv-eq-l { background: var(--pessoa-d-cheio); }
.tv-eq-t { display: grid; line-height: 1.2; min-width: 0; }
.tv-eq-t b { font-weight: 700; font-size: max(13px, 1.62cqi); }
.tv-eq-tot { font-weight: 500; font-size: max(12px, 1.08cqi); color: var(--desligada-escuro); white-space: nowrap; }
.tv-eq-ult { font-weight: 600; font-size: max(12px, .97cqi); margin-top: .3cqi; }
.tv-eq-arq { display: flex; align-items: center; gap: .3cqi; font-size: max(12px, 1.19cqi); white-space: nowrap; }
.tv-eq-nada { font-size: max(12px, 1.19cqi); color: var(--desligada-escuro); }
.tv-eq > .icone { display: none; margin-left: auto; width: 1.1cqi; height: 1.1cqi; min-width: 12px; min-height: 12px; color: var(--acento-tv); stroke-width: 2; }
/* quem tem cartão no leitor: borda de 2 pt em #B3BCC6 a 70% e o ícone do cartão */
.tv:is([data-estado="1"], [data-estado="2"]) .eq-a, .tv:not([data-estado="js"]) .eq-b { box-shadow: inset 0 0 0 2px var(--borda-acesa-tv); }
.tv:is([data-estado="1"], [data-estado="2"]) .eq-a > .icone, .tv:not([data-estado="js"]) .eq-b > .icone { display: block; }
/* os discos (StationDisks) */
.tv-discos { display: grid; grid-template-columns: 1fr 1fr; gap: .86cqi; }
.tv-disco {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .9cqi; row-gap: .35cqi;
  padding: .76cqi 1.08cqi; border-radius: 1.08cqi; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe);
}
.tv-disco > .icone { color: var(--acento-tv); width: max(18px, 1.84cqi); height: max(18px, 1.84cqi); grid-row: 1 / 3; stroke-width: 1.75; }
.tv-disco p { display: flex; align-items: baseline; gap: .5cqi; font-size: max(12px, 1.4cqi); white-space: nowrap; }
.tv-disco b { font-weight: 700; }
.tv-papel { font-weight: 800; font-size: max(12px, .92cqi); letter-spacing: .03em; text-transform: uppercase; color: var(--desligada-escuro); }
.tv-livre { font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-ocup { grid-column: 2 / 4; display: block; height: max(4px, .56cqi); border-radius: 1cqi; background: var(--barra-trilho-escuro); overflow: hidden; }
.tv-ocup i { height: 100%; width: calc(var(--v) * 100%); background: var(--acento-tv); }
/* a estação interativa (pagina.js monta os blocos com estas classes; data-estado="js" desliga as regras do quadro parado) */
.tv[data-estado="js"] .tv-grade { grid-template-columns: minmax(0, 1fr); }
.tv[data-estado="js"] .tv-grade.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tv[data-estado="js"] .tv-grade.n3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.tv[data-estado="js"] .tv-grade.n3 > :first-child { grid-row: 1 / 3; }
.tv .vv { display: grid; }
.tv .vv.tvb-grande, .tv .vv.tvb-medio { display: flex; }
.tv .vv.v-copia { gap: .54cqi; }
.tv .tv-bloco.pa { background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo)); }
.tv .tv-bloco.pb { background: linear-gradient(135deg, var(--pessoa-b), var(--pessoa-b-fundo)); }
.tv .tv-bloco.pc { background: linear-gradient(135deg, var(--pessoa-c), var(--pessoa-c-cheio)); }
.tvs-cartao.pc { background: linear-gradient(135deg, var(--pessoa-c), var(--pessoa-c-cheio)); }
.tvs-pontos.pc circle { fill: var(--pessoa-c-escuro); }
.tv .tv-bloco.f-ler { background: var(--atencao-cheio); color: var(--sobre-atencao); box-shadow: 0 .45cqi 1cqi var(--preto-35); }
.tv .tv-bloco.f-grafite { background: var(--disco-icone); box-shadow: inset 0 0 0 1px var(--branco-30), 0 .45cqi 1cqi var(--preto-35); }
.tv .tv-bloco.f-ok { background: var(--ok-cheio); box-shadow: inset 0 0 0 1px var(--branco-30), 0 0 .4cqi var(--ok-brilho-0); }
.vivo .tv .tv-bloco.f-ok { animation: pulsa 1.1s ease-in-out infinite alternate; }
.tv .tv-bloco.f-ok .tvb-ultimos { display: grid; }
.tv .tv-bloco.copiando .luz-gira { display: block; }
.tv .tvb-vol { position: relative; font-weight: 600; font-size: max(12px, 1.3cqi); opacity: .9; margin-top: .3cqi; }
.tv .tv-col.com-strip .tv-strip { visibility: visible; }
.tv[data-estado="js"] .tv-col:not(.com-strip) .tv-strip { display: none; }
.tv .tv-bloco.copiando .luz-verde, .tv .tv-bloco.f-grafite .luz-verde { background: var(--ok-escuro); box-shadow: 0 0 0 1.5px var(--branco-85), 0 0 8px 1px var(--ok-brilho); }
.vivo .tv .tv-bloco.copiando .luz-verde, .vivo .tv .tv-bloco.f-grafite .luz-verde { animation: luz-pisca 1.2s ease-in-out infinite; }
.tv .tv-bloco.f-ok .luz-verde { background: var(--ok-escuro); box-shadow: 0 0 0 1.5px var(--branco-85), 0 0 8px 1px var(--ok-brilho); }
.vivo .tv .tv-col.nova { animation: tv-entra .45s var(--ease-encaixe) both; }
@keyframes tv-entra { from { opacity: 0; transform: translateY(1.2cqi) scale(.98); } to { opacity: 1; transform: none; } }
/* com três cartões, os dois da direita ficam compactos */
.tv .tv-col.compacto .tv-bloco { padding: 1.1cqi 1.3cqi; }
.tv .tv-col.compacto .tvb-cod { font-size: max(16px, 2.1cqi); }
.tv .tv-col.compacto .tvb-nome { font-size: max(13px, 1.8cqi); margin-top: .3cqi; }
.tv .tv-col.compacto .tvb-ultimos, .tv .tv-col.compacto .tvb-vol { display: none; }
.tv .tv-col.compacto .tvb-grande > .icone, .tv .tv-col.compacto .tvb-medio > .icone { width: 1.9cqi; height: 1.9cqi; }
.tv .tv-col.compacto .tvb-t { font-size: max(13px, 1.75cqi); }
.tv .tv-col.compacto .tvb-f { font-size: max(12px, 1.25cqi); }
.tv .tv-col.compacto .tvb-d { font-size: max(12px, 1.05cqi); }
/* a equipe: quem tem cartão no leitor (aceso) e quem já terminou (os números novos) */
.tv[data-estado="js"] .tv-eq.aceso { box-shadow: inset 0 0 0 2px var(--borda-acesa-tv); }
.tv[data-estado="js"] .tv-eq.aceso > .icone { display: block; }
.tv[data-estado="js"] .tv-eq.depois .e1 { display: none; }
.tv[data-estado="js"] .tv-eq.depois .e2 { display: inline; }
/* sem cartão: a lista larga da equipe, como o app */
.tv.vazio .tv-corpo { grid-template-columns: minmax(0, 1fr); }
.tv.vazio .tv-grade { display: none; }
.tv.vazio .tv-equipe ul { grid-template-columns: 1fr 1fr; gap: .8cqi; }
.tv.vazio .tv-eq { padding: 1.1cqi 1.3cqi; gap: 1.1cqi; }
.tv.vazio .tv-eq-l { width: 3cqi; height: 3cqi; font-size: max(13px, 1.6cqi); }
.tv.vazio .tv-eq-t b { font-size: max(15px, 2cqi); }
.tv.vazio .tv-eq-tot { font-size: max(12px, 1.3cqi); }
.tv.vazio .tv-eq-arq, .tv.vazio .tv-eq-nada { font-size: max(12px, 1.4cqi); }
.tv-legenda { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.tv-ao-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-escuro); }
.vivo .tv-ao-vivo { animation: pisca 2s ease-in-out infinite; }
.parado .tv-legenda, html:not(.js) .tv-legenda { display: none; }
@keyframes pisca { 50% { opacity: .25; } }
.tv-tela.troca { animation: aparece .45s ease; }

/* ==========================================================================
   5 · SUAS PASTAS · 6 · SE ALGO NÃO BATE · 7 · NUNCA FAZ · 8 · POR QUE PAGAR
   ========================================================================== */
.arvores { display: flex; justify-content: center; align-items: stretch; gap: 0; }
.arvore {
  flex: 1 1 0; min-width: 0; max-width: 340px; padding: 22px 24px 24px;
  font-family: var(--f-mono); font-size: clamp(13px, 1.15vw, 16px); line-height: 1.9; white-space: nowrap;
}
.arvores-junta { flex: none; width: 48px; position: relative; }
/* a conexão entre os dois discos: um fio na altura do nome do projeto, com uma luz que passa a cada pasta nova */
.arvores-junta .fio {
  position: absolute; left: -6px; right: -6px; top: 92px; height: 1px; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--fio-luz), var(--vidro-borda-hover), var(--fio-luz));
}
.arvores-junta .fio::before, .arvores-junta .fio::after { content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--acento-tv); }
.arvores-junta .fio::before { left: 0; } .arvores-junta .fio::after { right: 0; }
.arvores-junta .pulso { position: absolute; left: 0; top: 88px; width: 9px; height: 9px; border-radius: 50%; background: var(--nitido); box-shadow: 0 0 10px 2px var(--verbo-luz); opacity: 0; }
.vivo .arvores-junta .pulso.vai { animation: pasta-pulso .6s var(--ease-encaixe); }
@keyframes pasta-pulso { 0% { opacity: 0; transform: translateX(-6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(42px); } }
@media (min-width: 761px) and (orientation: landscape), (min-width: 1025px) {
  .vivo .pastas-trilho { height: calc(100svh + 155svh); }
  .vivo .pastas-palco { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
  .vivo .pastas-palco > .duas-col { width: 100%; }
  .vivo .tv-trilho { height: calc(100svh + 60svh); }   /* v7d: o texto entra antes; o trecho preso é só convite, botões e TV */
  .vivo .tv-palco { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .vivo .tv-palco .secao-cabeca { gap: 12px; }
  .vivo .tv-palco .tv-area { margin-top: clamp(16px, 3vh, 36px); }
  .vivo .tv-palco .tv-area .tv { width: min(100%, calc((100svh - 290px) * 16 / 9 + 20px)); justify-self: center; }
}
.a-disco { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--linha); font-family: var(--f-sans); font-size: 15px; line-height: 1.3; }
.a-disco b { font-weight: 600; }
.a-disco span { color: var(--apoio); }
.a-disco .icone { width: 20px; height: 20px; color: var(--acento-tv); }
.nv { position: relative; padding-left: calc(var(--n) * 1.2em); overflow: hidden; text-overflow: ellipsis; }
.nv2 { color: var(--apoio); }


.erro-peca { position: relative; display: flex; flex-direction: column; max-width: 520px; }
.relatorio {
  order: 1; position: relative; z-index: 0; margin: -24px -10% 0 18%; padding: 42px 22px 18px; border-radius: 16px;
  background: var(--vidro-app-leve); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe);
  font-family: var(--f-mono); font-size: 13px; line-height: 1.75; color: var(--apoio);
}
.relatorio p:first-child { color: var(--nitido); font-weight: 500; }
.aviso { order: 0; padding: 26px 28px; max-width: 480px; background: var(--vidro-app-aceso); z-index: 1; }
.aviso > * { position: relative; }
.aviso-t { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 18px; line-height: 1.35; }
.aviso-t .icone { color: var(--erro-escuro); width: 24px; height: 24px; }
.aviso-d { margin: 10px 0 0 36px; font-size: 15px; line-height: 1.55; color: var(--apoio); }
.aviso-b { margin: 18px 0 0 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.b-app { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pequeno); box-shadow: inset 0 0 0 1px var(--vidro-borda-alto); }
.b-app-cheio { background: var(--nitido); color: var(--noite); box-shadow: none; }
.duas-col.invertida { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.nunca-lista { margin-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--linha); }
.nunca-lista li { padding: clamp(18px, 2.6vh, 28px) 0; border-bottom: 1px solid var(--linha); font-weight: 600; font-size: var(--t-passo); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.nunca-pe { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 24px 48px; font-size: 15px; line-height: 1.55; color: var(--apoio); }
.nunca-pe p:first-child { color: var(--nitido); }
.tecnico { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }

.porque .titulo-secao { margin-top: 16px; }
.escada { margin-top: clamp(40px, 6vh, 72px); display: grid; gap: 12px; }
.degrau { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 28px; padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2.4vw, 32px); border-radius: 18px; }
.degrau > * { position: relative; }
.d1 { width: 64%; background: var(--vidro-app-leve); box-shadow: none; }
.d1::before { opacity: .45; }
.d2 { width: 82%; background: var(--vidro-app); }
.d3 { width: 100%; background: var(--vidro-app-aceso); box-shadow: inset 0 0 0 1px var(--vidro-borda-alto), var(--vidro-sombra); }
.dg-quem { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.015em; min-width: 10em; }
.dg-faz { font-size: clamp(18px, 1.6vw, 24px); color: var(--apoio); }
.d1 .dg-quem, .d1 .dg-faz { color: var(--apoio); }
.d3 .dg-faz { color: var(--nitido); }
.dg-par { width: auto; height: 1em; fill: var(--laranja); }
.azulejos { margin-top: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.azulejo { padding: 22px 22px 24px; grid-column: span 2; display: grid; gap: 14px; align-content: start; }
.azulejo:nth-child(4), .azulejo:nth-child(5) { grid-column: span 3; }
.azulejo > * { position: relative; }
.azulejo .icone { width: 26px; height: 26px; color: var(--acento-tv); }
.azulejo p { font-size: 17px; line-height: 1.45; }
.porque-fim { margin-top: 40px; font-size: var(--t-abertura); color: var(--apoio); }

/* ==========================================================================
   9 · PLANOS
   ========================================================================== */
.planos { padding-bottom: var(--secao-y); }
/* "Planos" de segundo plano (v7c): grandona, da largura da tela, atrás dos cartões, desfocada e com pouco contraste.
   O desfoque é fixo (a palavra não se move; só a opacidade anda com a rolagem, num layer próprio). */
.pl-trilho, .pl-stage { position: relative; }
.planos-fundo {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 0 !important;
  font-weight: 700; font-stretch: 112.5%; font-size: 29vw; line-height: .8; letter-spacing: -0.05em;
  color: var(--linha); filter: blur(22px); pointer-events: none; user-select: none; white-space: nowrap;
}
.pl-stage > :not(.planos-fundo) { position: relative; z-index: 1; }
@media (min-width: 761px) and (orientation: landscape), (min-width: 1025px) {
  .vivo .pl-trilho::after { content: ""; display: block; height: 100svh; }   /* o trecho preso: espaço dentro do trilho (no padding o sticky não anda) */
  .vivo .pl-stage { position: sticky; top: var(--pl-topo, 0px); padding-top: clamp(28px, 5vh, 56px); }
}
.pl-cabeca { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 24px 6vw; }
.pl-cabeca .titulo-secao .l1, .pl-cabeca .titulo-secao .l2 { white-space: nowrap; }
.pl-palco { position: relative; }
.plano { will-change: transform, opacity; }
.planos-fundo { will-change: opacity; }
.pl-cabeca .abertura-txt { justify-self: end; max-width: 26em; }
.pl-cartoes { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; align-items: stretch; }
.plano {
  display: flex; flex-direction: column; padding: 28px 26px;
}
.plano > * { position: relative; }
@supports (grid-template-rows: subgrid) {
  .pl-cartoes { grid-template-rows: repeat(8, auto); }
  .plano { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; }
}
.plano-aceso { background: var(--vidro-app-aceso); box-shadow: inset 0 0 0 1px var(--laranja), var(--vidro-sombra); }
.plano-aceso::before { display: none; }
.plano-nome { font-size: 22px; font-weight: 600; line-height: 1.2; }
.plano-pessoas { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--apoio); margin-top: 4px; }
.plano-preco { margin-top: 18px; font-weight: 300; font-size: clamp(72px, 7vw, 112px); line-height: 1; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plano-preco .moeda { font-size: .3em; font-weight: 400; color: var(--apoio); letter-spacing: 0; vertical-align: .95em; margin-right: .1em; }
.plano-preco .ano { font-size: .2em; font-weight: 400; color: var(--apoio); letter-spacing: 0; margin-left: .12em; }
.plano-ancora { font-size: 15px; line-height: 1.45; margin-top: 12px; }
.plano-para { font-size: 15px; line-height: 1.45; color: var(--apoio); margin-top: 6px; }
.plano .btn { width: 100%; min-height: 50px; font-size: 15.5px; margin-top: 24px; }
.plano .btn-principal { -webkit-box-reflect: unset; }
.plano .btn-principal::after { content: none; }
.pl-termos { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-size: 13px; color: var(--apoio); }
.pl-termos a { color: var(--nitido); }
.plano-garantia { font-size: 13px; color: var(--apoio); text-align: center; margin-top: 10px; }
.plano-dica { font-size: 13.5px; line-height: 1.45; color: var(--apoio); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linha); }
.planos > .tampo { margin-top: 0; height: 140px; }
.pl-garantias { margin-top: -60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pl-garantias .azulejo { grid-column: auto; padding: 20px 22px; gap: 6px; }
.pl-garantias dt { font-weight: 600; font-size: 16px; position: relative; }
.pl-garantias dd { font-size: 14px; line-height: 1.5; color: var(--apoio); position: relative; }
.pl-pe { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.pl-nota { font-size: 13.5px; line-height: 1.5; color: var(--apoio); max-width: 40em; }
.pl-fecho { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 15px; }

/* ==========================================================================
   10 · DÚVIDAS · 11 · CHAMADA FINAL · 12 · RODAPÉ
   ========================================================================== */
.duvidas-grade { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 6vw; align-items: start; }
.duvidas-titulo { position: sticky; top: 48px; }
.duvidas-lista { border-top: 1px solid var(--linha); }
.duvida { border-bottom: 1px solid var(--linha); }
.duvida summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 44px; padding: 22px 0; font-weight: 600; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3;
}
.duvida summary::-webkit-details-marker { display: none; }
.icone-mais { width: 22px; height: 22px; color: var(--apoio); transition: transform .25s; }
.icone-mais .v { transition: opacity .25s; }
.duvida[open] .icone-mais .v { opacity: 0; }
.duvida-r { padding: 0 0 24px; }
.duvida-r p { font-size: 16.5px; line-height: 1.65; color: var(--apoio); max-width: 40em; padding: 18px 22px; border-radius: 16px; background: var(--vidro-app-leve); }
.duvida-r a { color: var(--nitido); }

.final { text-align: center; padding-bottom: 0; }
.final .frase-marca { display: inline-block; text-align: center; font-size: clamp(56px, min(10vw, 18vh), 150px); }
/* v8f: a marca em cima dos botões, grande, direto na Noite; a frase "Plugue o cartão e siga." e a placa saíram */
.final-marca { display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 18px); }
.fm-logo { display: block; width: min(1040px, 86vw); height: auto; overflow: visible; }
.fm-par path, .fm-pingo { fill: var(--laranja); }
.fm-palavra { fill: var(--aluminio); }
.fm-desc { margin-top: clamp(10px, 2vh, 22px); font-size: clamp(17px, 1.6vw, 22px); color: var(--nitido); }
.fm-url { font-family: var(--f-mono); font-size: clamp(13px, 1vw, 15px); letter-spacing: .04em; color: var(--apoio); }
/* o transform da animação fica num <g> próprio: no <path> ele apagaria o translate(-49 0) do desenho e o pingo sairia do lugar */
.fm-bojo-baixo, .fm-pingo, .fm-palavra { transform-box: fill-box; }
.fm-pingo { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .vivo .final-marca > * { opacity: 0; }
  .vivo .final-marca .fm-logo { opacity: 1; }
  .vivo .final-marca .fm-bojo-baixo, .vivo .final-marca .fm-palavra, .vivo .final-marca .fm-pingo { opacity: 0; }
  /* o Par encaixa (a cópia desce de trás do bojo de cima), a palavra sai de trás dele, o pingo cai por último */
  .vivo .final.visto .fm-bojo-cima { animation: ent-aparece .25s ease both; }
  .vivo .final.visto .fm-bojo-baixo { animation: ent-aparece .01s linear .15s both, fm-encaixa .5s var(--ease-encaixe) .15s both; }
  .vivo .final.visto .fm-palavra { animation: fm-palavra .6s var(--ease-encaixe) .55s both; }
  .vivo .final.visto .fm-pingo { animation: ent-pingo .42s var(--ease-encaixe) .95s both; }
  .vivo .final.visto .final-marca > p { animation: ent-sobe .5s var(--ease-encaixe) 1.05s both; }
  .vivo .final.visto .final-marca > .fm-url { animation-delay: 1.15s; }
  .vivo .final.ja .final-marca *, .vivo .final.ja .final-marca > * { animation-duration: .01s !important; animation-delay: 0s !important; }
}
@keyframes fm-encaixa { from { transform: translateY(-12.5px); } to { transform: none; } }
@keyframes fm-palavra { from { opacity: 0; transform: translateX(-120px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.final .botoes { justify-content: center; margin-top: clamp(40px, 6vh, 64px); }
.final .linha-preco { margin-top: 26px; }
/* v8f: a compra segura. Uma linha fina de ícones e texto curto, sem selo de terceiro: só o que é verdade. */
.compra-segura { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; width: min(1320px, 100%); margin: 28px auto 0; text-align: center; }
.cs-rotulo { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--apoio); }
.cs-itens { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; max-width: 900px; margin: 0; padding: 14px 26px; list-style: none; border-radius: 16px; background: var(--vidro-app-leve); box-shadow: inset 0 0 0 1px var(--linha); }
.cs-itens li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; line-height: 1.35; color: var(--nitido); }
.cs-itens .icone { width: 18px; height: 18px; color: var(--apoio); }
.cs-itens a { color: inherit; text-decoration: underline; text-decoration-color: var(--apoio); text-underline-offset: 3px; }
.cs-itens a:hover { text-decoration-color: currentColor; }
.cs-planos { margin-top: 20px; }
.final .compra-segura { margin-top: 30px; }
.final .nota-celular { margin: 12px auto 0; }
.placa {
  position: relative; width: min(720px, 88vw); height: 200px; margin: 72px auto 0; border-radius: 20px; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: 10px;
  background:
    linear-gradient(114deg, transparent 30%, var(--branco-85) 47%, transparent 64%) 0 0 / 100% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35 0.0025' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.16'/%3E%3C/svg%3E") 0 0 / 100% 100%,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='200'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1 0.012' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.07'/%3E%3C/svg%3E") 0 0 / 100% 100%,
    linear-gradient(to bottom, var(--aluminio), var(--aluminio-2));
  background-blend-mode: soft-light, multiply, multiply, normal;
  box-shadow: var(--sombra-peca);
  -webkit-box-reflect: below 0 linear-gradient(transparent 50%, var(--reflexo));
}
.placa img { width: min(300px, 60%); height: auto; }
.placa-desc { font-size: 15px; color: var(--apoio-claro); }
.placa-url { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--grafite); }

.rodape { position: relative; padding: 56px var(--lado) 48px; font-size: 14px; line-height: 1.6; color: var(--apoio); }
.rodape-grade { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.rodape p + p { margin-top: 6px; }
.rodape a { color: var(--nitido); text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.rodape-desc { color: var(--nitido); }
.rodape-bis { font-family: var(--f-mono); font-size: 13px; }
.rodape-fim { text-align: right; }

/* ==========================================================================
   4c · AGILIDADE (números que contam e o dia de 8 h) · 4d · O FILME · o atalho da abertura · a lista do Windows
   ========================================================================== */
.agilidade { padding-bottom: calc(var(--secao-y) * .7); }
.ag-trilho, .ag-stage { position: relative; }
.ag-stage > :not(.poca) { position: relative; z-index: 1; }
.ag-painel { width: min(1080px, 100%); margin: clamp(28px, 4.5vh, 52px) auto 0; padding: clamp(22px, 2.6vw, 36px); border-radius: 24px; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe), var(--vidro-sombra); }
.ag-topo { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.ag-valor { flex: none; display: flex; align-items: baseline; gap: .1em; font-weight: 300; font-size: clamp(76px, 8.4vw, 132px); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
/* v8e: o número conta só em inteiros (0, 1, 2) e cada troca sobe um pouco, sem vírgula nem decimal */
.ag-n { display: inline-block; }
.vivo .ag-n.conta { animation: ag-conta .22s var(--ease-encaixe); }
@keyframes ag-conta { from { transform: translateY(.14em); opacity: .35; } }
.ag-un { font-weight: 300; font-size: .46em; letter-spacing: -0.02em; color: var(--apoio); }
.ag-forte { font-weight: 600; font-size: clamp(19px, 1.65vw, 24px); line-height: 1.3; text-wrap: balance; }
.ag-apoio { margin-top: 8px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--apoio); text-wrap: pretty; }
/* o gráfico: régua de 0 a 8 h e duas trilhas; cada bloco vai de --ini a --fim (em horas) */
.ag-dia { --rot: 148px; margin-top: clamp(22px, 3vh, 34px); }
.ag-regua, .ag-trilha { position: relative; margin-left: var(--rot); }
.ag-regua { height: 20px; border-bottom: 1px solid var(--linha); }
.ag-regua span { position: absolute; left: calc(var(--h) / 8 * 100%); bottom: 6px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; color: var(--apoio); white-space: nowrap; }
.ag-regua span:first-child { transform: none; } .ag-regua span:last-child { transform: translateX(-100%); }
.ag-regua span::after { content: ""; position: absolute; left: 50%; top: calc(100% + 6px); width: 1px; height: 6px; background: var(--linha); }
.ag-linha { position: relative; display: flex; align-items: center; margin-top: 16px; }
.ag-rot { position: absolute; left: 0; width: calc(var(--rot) - 16px); font-size: 14.5px; font-weight: 600; color: var(--nitido); }
.ag-sem .ag-rot { color: var(--apoio); }
.ag-trilha { flex: 1; height: 46px; border-radius: 10px; background: var(--barra-trilho-escuro); }
.ag-b {
  position: absolute; top: 0; bottom: 0; left: calc(var(--ini) / 8 * 100%); width: calc((var(--fim) - var(--ini)) / 8 * 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; transform-origin: 0 50%;
}
.ag-b.ed { background: linear-gradient(180deg, var(--vidro-app-aceso), var(--vidro-app)); box-shadow: inset 0 0 0 1px var(--vidro-borda-hover); color: var(--nitido); }
.ag-b.cp b { font-weight: inherit; }
.ag-b.cp { background: repeating-linear-gradient(135deg, var(--fila), var(--fila) 5px, transparent 5px, transparent 10px); box-shadow: inset 0 0 0 1px var(--linha); color: var(--apoio); font-weight: 500; }
.ag-b.volta { background: var(--nitido); color: var(--noite); box-shadow: 0 0 24px 2px var(--verbo-luz); font-weight: 700; }
/* a cópia automática: uma faixa fina, verde, rodando sozinha por baixo da edição */
.ag-auto { position: absolute; left: 0; right: 0; bottom: -9px; height: 4px; border-radius: 2px; background: var(--ok-brilho-0); overflow: hidden; transform-origin: 0 50%; box-shadow: inset 0 0 0 1px var(--ok-brilho); }
.ag-auto i { position: absolute; top: 0; bottom: 0; left: 0; width: 14%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--ok-escuro), transparent); }
.vivo .ag-auto i { animation: ag-roda 2.6s linear infinite; }
.secao:not(.na-tela) .ag-auto i { animation-play-state: paused; }
@keyframes ag-roda { from { transform: translateX(-100%); } to { transform: translateX(720%); } }
.ag-legenda { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0 var(--rot); font-size: 13px; color: var(--apoio); }
.ag-legenda span { display: inline-flex; align-items: center; gap: 8px; }
.ag-legenda i { width: 16px; height: 10px; border-radius: 3px; }
.ag-legenda i.ed { background: var(--vidro-app-aceso); box-shadow: inset 0 0 0 1px var(--vidro-borda-hover); }
.ag-legenda i.cp { background: repeating-linear-gradient(135deg, var(--fila), var(--fila) 3px, transparent 3px, transparent 6px); box-shadow: inset 0 0 0 1px var(--linha); }
.ag-legenda i.auto { height: 4px; background: var(--ok-escuro); }
.ag-legenda i.volta { background: var(--nitido); }
.ag-nota { margin: 18px 0 0; font-size: 13px; color: var(--apoio); }
/* o último passo da seção: a frase sobe da máscara depois que o número chega a 2 */
/* v8d: a frase em foco, no tamanho dos títulos de seção; o laranja da marca passa palavra por palavra e, no fim, o raio
   do Automático cai com uma descarga curta (decisão do Pablo). Sem JS ou com "reduzir movimento": toda laranja, raio aceso. */
.ag-fecho { margin-top: clamp(36px, 6vh, 72px); padding-bottom: clamp(8px, 2vh, 24px); text-align: center; font-size: var(--t-secao); line-height: 1.02; text-wrap: balance; }
.ag-fecho .l2-w { overflow: visible; }   /* sem máscara aqui: o clarão do raio passa da linha */
.agf-p { color: var(--laranja); }
.vivo .agf-p { color: var(--nitido); transition: color .45s ease; }
.vivo .agf-p.laranja { color: var(--laranja); }
/* v8e: o raio da altura das letras (o viewBox recortado no desenho) e mais grosso (contorno da mesma cor) */
.agf-raio { position: relative; display: inline-block; height: .76em; width: .49em; margin-left: .08em; vertical-align: -.02em; }
.agf-raio svg { display: block; width: 100%; height: 100%; fill: var(--laranja); stroke: var(--laranja); stroke-width: 1.4; stroke-linejoin: round; overflow: visible; }
.agf-raio::after { content: ""; position: absolute; inset: -70% -110%; border-radius: 50%; background: radial-gradient(closest-side, var(--laranja-brilho), transparent 70%); opacity: 0; pointer-events: none; }
.vivo .agf-raio { opacity: 0; transform: translateY(-.35em) scale(.6); transition: opacity .2s ease, transform .2s ease; }
.vivo .agf-raio.aceso { opacity: 1; transform: none; transition: opacity .12s ease, transform .32s var(--ease-encaixe); }
.vivo .agf-raio.aceso::after { animation: agf-clarao .55s ease-out; }
@keyframes agf-clarao { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
/* a descarga: a frase pisca uma vez mais clara e um traço de energia corre por baixo até o raio */
.vivo .ag-fecho .l2.descarga { animation: agf-pisca .55s ease; }
@keyframes agf-pisca { 35% { filter: brightness(1.45); } 100% { filter: none; } }
.ag-fecho .l2 { position: relative; }
.ag-fecho .l2::after { content: ""; position: absolute; left: 0; right: .5em; bottom: .02em; height: 2px; border-radius: 1px; background: linear-gradient(90deg, transparent, var(--laranja)); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; pointer-events: none; }
.vivo .ag-fecho .l2.descarga::after { animation: agf-traco .45s ease-out; }
@keyframes agf-traco { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.ag-painel, .ag-stage > .secao-cabeca { transition: opacity .4s ease; }
/* v8e: "real time" em laranja no título da estação (decisão do Pablo; 6,3:1 na Noite) */
.tv-rt { color: var(--laranja); }
@media (min-width: 761px) and (orientation: landscape), (min-width: 1025px) {
  .vivo .ag-trilho::after { content: ""; display: block; height: 260svh; }   /* v8e: + a frase subindo ao meio da tela, o laranja e o raio */
  .vivo .ag-stage { padding-top: clamp(16px, 3vh, 36px); }
}
/* v8e: no celular o palco também prende no fim, para a frase subir ao meio da tela. O gráfico anda com a rolagem antes. */
.vivo .ag-stage { position: sticky; top: var(--ag-topo, 0px); }
.vivo .ag-trilho::after { content: ""; display: block; height: 150svh; }
@media (min-width: 761px) and (orientation: landscape), (min-width: 1025px) { .vivo .ag-trilho::after { height: 260svh; } }

.filme-quadro { position: relative; container-type: inline-size; width: min(1180px, 100%); margin: clamp(36px, 5vh, 56px) auto 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--tv-caixa); box-shadow: inset 0 0 0 1px var(--branco-15), var(--sombra-peca); }
.filme-quadro picture, .filme-quadro img { display: block; width: 100%; height: 100%; object-fit: cover; }
.filme-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.filme-play {
  position: absolute; left: clamp(16px, 3cqi, 36px); bottom: clamp(16px, 3cqi, 36px); display: inline-flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 0 26px 0 10px; border: 0; border-radius: 999px; color: var(--nitido); cursor: pointer;
  background: var(--vidro-menu); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--vidro-borda-alto), var(--vidro-sombra);
  font: 600 17px/1 var(--f-sans); transition: transform .25s var(--ease-encaixe), box-shadow .2s;
}
.filme-play:hover { transform: scale(1.04); box-shadow: inset 0 0 0 1px var(--vidro-borda-hover), var(--vidro-sombra); }
.filme-play:focus-visible { outline: 2px solid var(--nitido); outline-offset: 4px; }
.fp-icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--nitido); color: var(--noite); }
.fp-icone svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.fp-txt span { color: var(--apoio); font-weight: 500; }
.filme-aviso { position: absolute; right: clamp(16px, 3cqi, 36px); bottom: clamp(30px, 4cqi, 52px); padding: 8px 14px; border-radius: 999px; background: var(--vidro-menu); font-size: 15px; color: var(--nitido); }
.filme-aviso:empty { display: none; }
.ab-filme { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--apoio); text-decoration: none; transition: color .2s; }
.ab-filme:hover { color: var(--nitido); }
.ab-filme .icone { width: 22px; height: 22px; }
.pq-col li a, .sf-item a { color: var(--nitido); }
.nunca-item { will-change: transform, opacity; }

/* ==========================================================================
   5b · O QUE COPIAR (a folha do cartão, com as caixas)
   ========================================================================== */
.oq-texto > * + * { margin-top: 24px; }
.oq-experimente { font-size: 15px; color: var(--apoio); }
.oq-ficha {
  position: relative; width: 100%; max-width: 480px; justify-self: center; padding: 22px 22px 20px; border-radius: 20px;
  background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-alto), var(--sombra-peca);
}
.oq-cab { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--linha); font-size: 15px; color: var(--apoio); }
.oq-cod { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-family: var(--f-mono); font-weight: 700; font-size: 16px; color: var(--branco-solido); background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo)); }
.oq-ficha fieldset { margin: 16px 0 0; padding: 0; border: 0; display: grid; gap: 2px; }
.oq-ficha legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--nitido); }
.oq-ficha legend span { font-weight: 400; font-size: 13.5px; color: var(--apoio); margin-left: 6px; }
.oq-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; cursor: pointer; transition: background-color .2s; }
.oq-item:hover { background: var(--vidro-app-leve); }
.oq-item input { position: absolute; left: 10px; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }   /* a caixa desenhada mostra o estado e o foco */
.oq-caixa { flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--apoio); display: grid; place-items: center; transition: background-color .2s, box-shadow .2s; }
.oq-caixa::after { content: ""; width: 10px; height: 6px; margin-top: -3px; border-left: 2px solid var(--noite); border-bottom: 2px solid var(--noite); transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease-encaixe); }
.oq-item input:checked + .oq-caixa { background: var(--nitido); box-shadow: none; }
.oq-item input:checked + .oq-caixa::after { transform: rotate(-45deg) scale(1); }
.oq-item input:focus-visible + .oq-caixa { outline: 2px solid var(--nitido); outline-offset: 3px; }
.oq-item .icone { width: 22px; height: 22px; color: var(--acento-tv); }
.oq-nome { font-size: 16px; font-weight: 500; }
.oq-qtd { margin-left: auto; font-size: 14px; color: var(--apoio); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oq-item input:not(:checked) ~ .oq-nome, .oq-item input:not(:checked) ~ .oq-qtd, .oq-item input:not(:checked) ~ .icone { opacity: .45; }
.oq-aviso { margin: 8px 10px 0; font-size: 13.5px; color: var(--atencao-escuro); }
.oq-apoio:disabled .oq-item { opacity: .4; cursor: default; }
.oq-apoio:disabled .oq-item:hover { background: none; }
.oq-apoio-nota { margin: 8px 10px 0; font-size: 13.5px; color: var(--apoio); }
.oq-total { display: grid; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linha); }
.oq-total b { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.oq-total span { font-size: 13.5px; color: var(--apoio); }

/* ==========================================================================
   6b · TIRARAM O CARTÃO NO MEIO (a demonstração) · 8b · PARA QUEM É e onde roda
   ========================================================================== */
.meio .duas-col { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.meio-demo { width: 100%; max-width: 480px; justify-self: center; }
.meio-tile {
  position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 24px; border-radius: 26px; overflow: hidden;
  color: var(--branco-solido); background: linear-gradient(135deg, var(--pessoa-a), var(--pessoa-a-fundo));
  box-shadow: inset 0 0 0 1px var(--branco-25), var(--sombra-peca);
  transition: background-color .3s;
}
.meio-tile .v, .meio-tile .luz-gira { display: none; }
.meio-tile[data-estado="copiando"] .v-copiando { display: grid; gap: 9px; }
.meio-tile[data-estado="copiando"] .luz-gira { display: block; }
.meio-tile[data-estado="saiu"] { background: var(--erro-cheio); box-shadow: inset 0 0 0 1px var(--branco-30), var(--sombra-peca); }
.meio-tile[data-estado="saiu"] .v-saiu, .meio-tile[data-estado="pronto"] .v-pronto { display: flex; }
.meio-tile[data-estado="saiu"] .tvb-eq, .meio-tile[data-estado="pronto"] .tvb-eq { display: none; }
.meio-tile[data-estado="pronto"] { background: var(--ok-cheio); box-shadow: inset 0 0 0 1px var(--branco-30), 0 0 6px var(--ok-brilho-0), var(--sombra-peca); }
.vivo .meio-tile[data-estado="pronto"] { animation: pulsa-meio 1.1s ease-in-out infinite alternate; }
@keyframes pulsa-meio { to { transform: scale(1.012); box-shadow: inset 0 0 0 1px var(--branco-30), 0 0 18px var(--ok-brilho), var(--sombra-peca); } }
.meio-tile .tvb-cod { font-family: var(--f-mono); font-weight: 700; font-size: 32px; line-height: 1; }
.meio-tile .tvb-eq { font-weight: 600; font-size: 16px; color: var(--branco-85); }
.meio-tile .tvb-nome { position: relative; font-weight: 700; font-size: 28px; line-height: 1.15; margin-top: 10px; }
.meio-tile .tvb-estado { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.meio-tile .tvb-estado b { font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.meio-tile .tvb-estado > span { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.meio-tile .tvb-barra { display: block; height: 8px; border-radius: 4px; background: var(--branco-25); overflow: hidden; }
.meio-tile .tvb-barra i { transition: width .25s linear; }
.parado .meio-tile .tvb-barra i { transition: none; }
.meio-tile .tvb-aviso { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.meio-tile .tvb-grande { align-items: flex-start; gap: 14px; }
.meio-tile .tvb-grande > .icone { width: 34px; height: 34px; stroke-width: 2; }
.meio-tile .tvb-t { font-weight: 800; font-size: 25px; line-height: 1.1; }
.meio-tile .tvb-f { font-weight: 700; font-size: 17px; line-height: 1.3; margin-top: 2px; }
.meio-tile .tvb-d { font-size: 14.5px; line-height: 1.4; opacity: .92; margin-top: 4px; }
.meio-acoes { display: flex; justify-content: center; margin-top: 22px; }
.meio-acoes .btn { min-width: 240px; }
.meio-nota { margin-top: 14px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--apoio); }
.meio-experimente { font-size: 15px; color: var(--apoio); }

.para-quem .secao-cabeca { display: grid; gap: 18px; }
.pq-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 5vh, 56px); }
.pq-col { position: relative; padding: 28px 30px 30px; border-radius: 20px; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe), var(--vidro-sombra); }
.pq-titulo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
.pq-titulo .icone { width: 24px; height: 24px; stroke-width: 2; }
.pq-sim .pq-titulo .icone { color: var(--ok-escuro); }
.pq-nao .pq-titulo .icone { color: var(--apoio); }
.pq-col ul { margin-top: 16px; }
.pq-col li { padding: 14px 0; border-top: 1px solid var(--linha); font-size: 16.5px; line-height: 1.55; color: var(--apoio); text-wrap: pretty; }
.pq-col li:last-child { padding-bottom: 0; }
.sistemas-faixa { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; scroll-margin-top: 32px; }
.sf-item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 20px; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe); }
.sf-item > .icone { width: 30px; height: 30px; color: var(--nitido); }
.sf-item p { display: grid; line-height: 1.35; flex: 1; min-width: 0; }
.sf-item b { font-weight: 600; font-size: 18px; }
.sf-item p span { font-size: 14.5px; color: var(--apoio); }
.sf-selo {
  margin-left: auto; flex: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok-escuro); box-shadow: inset 0 0 0 1px var(--ok-escuro);
}
.sf-breve > .icone, .sf-breve b { color: var(--apoio); }
.sf-breve .sf-selo { color: var(--apoio); box-shadow: inset 0 0 0 1px var(--linha); }
.requisitos { font-size: 14px; line-height: 1.5; color: var(--apoio); }
.final .sistemas-faixa { width: min(940px, 100%); margin: 40px auto 0; text-align: left; }
.final .sistemas-faixa + .linha-preco { margin-top: 18px; }

/* ==========================================================================
   COMPUTADOR BAIXO E TABLET
   ========================================================================== */
@media (min-width: 761px) and (max-width: 1100px) {
  .menu-links a { padding: 0 8px; font-size: 13.5px; }
  .duas-col, .duas-col.invertida { grid-template-columns: 1fr; }
  .nunca-pe { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .ab-baixo { gap: 10px; }
  .ab-baixo .abertura-txt { font-size: 17px; }
  .ab-rolar { display: none; }
}

/* ==========================================================================
   CELULAR (até 760 px; e o tablet em pé até 1024 px)
   ========================================================================== */
@media (max-width: 760px), (max-width: 1024px) and (orientation: portrait) {
  :root { --menu-h: 52px; --t-marca: min(19vw, 96px); --t-secao: clamp(34px, 9vw, 48px); --t-passo: clamp(26px, 7vw, 34px); }
  .so-computador { display: none !important; }
  .so-celular { display: inline-flex !important; }
  .menu { top: 8px; padding: 0 10px; }
  .menu-pilula { padding: 6px 6px 6px 14px; gap: 10px; }
  .marca-bloco { min-width: 0; }
  .marca, .logo { width: 104px; }
  .descritor { margin-left: 18px; font-size: 11.5px; }
  .menu-links { display: none; }
  .btn-menu { margin-left: auto; }
  .rotulo { font-size: 11.5px; }

  /* a abertura no celular: a frase em duas linhas, a peça na largura toda, os discos numa lista; texto e botões depois */
  .vivo .ab-trilho { height: calc(100svh + 170svh); }
  .ab-palco { --abw: calc(100vw - 24px); padding: calc(var(--menu-h) + 8px + 12px) 12px 28px; min-height: 0; }
  html:not(.vivo) .ab-palco { padding-bottom: 8px; }
  .frase-linha { font-size: min(12.4vw, 56px); line-height: 1.02; }
  .frase-linha .fl { display: block; }
  .ab-peca { margin-top: 18px; }
  .ab-peca .abp-disco { display: none; }
  .abp-lista { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
  .abp-lista .abp-disco { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: var(--vidro-app); box-shadow: inset 0 0 0 1px var(--vidro-borda-pe); }
  .abp-lista .abp-nome { font-size: 13px; }
  .abp-lista .abp-barra { height: 3px; margin-top: 0; }
  .abp-lista .abp-selo { margin-top: 2px; font-size: 12px; }
  .ab-conta { margin-top: 14px; }
  .abc-n { font-size: 30px; }
  .abc-r { font-size: 13px; }
  .ab-palco .ab-baixo { display: none; }
  .ab-depois { display: grid; justify-items: center; gap: 14px; padding: 16px 16px 56px; text-align: center; }
  .ab-depois .abertura-txt { font-size: 17px; }
  .ab-depois .botoes { width: 100%; margin-top: 4px; }
  .ab-depois .btn { width: 100%; }
  .ab-rolar { bottom: 6px; }
  .frase-fecho { font-size: min(11vw, 52px); }

  /* o caminho em versão estreita: o bloco em cima, os dois discos embaixo */
  .caminho { aspect-ratio: auto; display: grid; gap: 10px; }
  .cm-curvas { display: none; }
  .cm-bloco { position: relative; left: auto; top: auto; width: 100%; height: auto; min-height: 112px; border-radius: 16px; padding: 14px 16px; }
  .cm-bloco-ok { position: absolute; inset: 0 0 auto 0; height: 112px; }
  .cm-cod { font-size: 26px; }
  .cm-l1 .icone { width: 22px; height: 22px; }
  .cm-nome { font-size: 16px; } .cm-eq { font-size: 13px; }
  .cm-selo { font-size: 12px; padding: 3px 10px 3px 8px; border-radius: 12px; gap: 5px; margin-top: 8px; }
  .cm-selo .icone { width: 14px; height: 14px; }
  .cm-ok-t { font-size: 16px; } .cm-ok-t .icone { width: 20px; height: 20px; } .cm-ok-s { font-size: 13px; }
  .cm-discos { position: relative; left: auto; gap: 10px; }
  .cm-disco { border-radius: 16px; padding: 12px 14px; gap: 8px; }
  .cm-d-icone { width: 30px; height: 30px; border-radius: 8px; }
  .cm-d-icone .icone { width: 18px; height: 18px; }
  .cm-d-txt b { font-size: 15px; } .cm-d-txt span, .cm-d2, .cm-vel { font-size: 12px; }
  .cm-barra { height: 5px; }

  /* a história: o palco gruda no alto (46svh) e as legendas descem embaixo */
  .hist-grade { display: block; }
  .vivo .palco-col { position: sticky; top: 0; height: 50svh; z-index: 3; background: var(--noite); }
  .vivo .palco-col::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; background: linear-gradient(var(--noite), transparent); }
  .palco-cena { --zw: calc(100vw - 24px); left: 50%; top: 24px; transform: translateX(-50%); }
  .palco > .tampo { top: calc(24px + (100vw - 24px) * 9 / 16); -webkit-mask-image: none; mask-image: none; }
  .palco-selo { top: auto; bottom: -24px; right: 4px; }
  .vivo .passos { left: 0; right: 0; top: auto; bottom: 2px; }
  .passos ol { justify-content: center; gap: 0 12px; }
  .passos button { font-size: 16px; padding: 0 2px; }
  .passos button::after { bottom: 8px; }
  .legendas { padding: 0 16px; }
  html:not(.vivo) .legendas { padding: 0 16px; }
  html:not(.vivo) .legenda { grid-template-columns: 1fr; }
  html:not(.vivo) .legenda .passo-quadro { margin-bottom: 24px; }
  html:not(.vivo) .legenda .lg-corpo { grid-column: 1; }
  .vivo .legenda.passo { min-height: 73svh; }
  .vivo .legenda.fala { min-height: 56svh; }
  .legenda { padding: 48px 0; }
  .fantasma { font-size: 44vw; }
  .ficha { width: auto; max-width: 74%; padding: 8px 10px 8px 8px; gap: 8px; font-size: 12.5px; border-radius: 12px; }
  .mesa-selo { font-size: 11px; padding: 4px 9px; }
  .nv-l1 { flex-wrap: wrap; row-gap: 4px; }
  .nv-de { font-size: max(13px, 4.2cqi); flex-basis: 100%; }
  .nv-n { font-size: 22cqi; }
  .palco-selo { display: none; }
  .tela { place-items: start center; }
  /* o caminho do palco, compacto, para caber nos 16:9 de lado a lado */
  .vista-caminho .caminho { gap: 8px; }
  .vista-caminho .cm-bloco { min-height: 80px; padding: 10px 12px; }
  .vista-caminho .cm-bloco-ok { height: 80px; }
  .vista-caminho .cm-nome { font-size: 14px; } .vista-caminho .cm-eq { display: none; }
  .vista-caminho .cm-selo { margin-top: 4px; }
  .vista-caminho .cm-discos { gap: 8px; }
  .vista-caminho .cm-disco { padding: 8px 12px; gap: 6px; }
  .vista-caminho .cm-d2, .vista-caminho .cm-vel, .vista-caminho .cm-d-txt span { display: none; }
  .nv-l2 { font-size: 12px; }
  .vista-numero { padding: 0 2cqi; }
  .mo-titulo b, .mo-titulo span, .mo-pe { font-size: 11px; }
  .mo-leg { gap: 8px; } .mo-leg .q { --q: 9px; }
  .mosaico { --q: 2.95cqi; --v: .45cqi; }
  .mo-pe { flex-wrap: wrap; gap: 4px 8px; } .mo-ultimo { margin-left: 0; }

  .fecho-icone { width: 180px; } .fecho-icone img { width: 180px; height: 180px; }
  .fecho-acao .btn { width: 100%; }

  .tv { width: 100%; padding: 8px; border-radius: 18px; }
  .tv-tela { aspect-ratio: auto; padding: 16px; gap: 14px; }
  .tv-regra, .tv-equipe, .tv-strip, .tv-dia { display: none; }
  .tv-corpo { grid-template-columns: 1fr; }
  .tv-grade, .tv[data-estado="4"] .tv-grade { grid-template-columns: 1fr; gap: 10px; }
  .tv-col { display: block; }
  .tv-bloco { min-height: 168px; padding: 16px; border-radius: 18px; }
  .tv .tvb-cod { font-size: 24px; } .tv .tvb-eq { font-size: 13px; } .tv .tvb-nome { font-size: 20px; margin-top: 4px; }
  .tv .tvb-pe { margin-top: 14px; }
  .tv .tvb-estado b { font-size: 17px; } .tv .tvb-estado > span { font-size: 12.5px; } .tv .tvb-aviso { font-size: 14px; }
  .tv .tvb-grande > .icone, .tv .tvb-medio > .icone { width: 26px; height: 26px; }
  .tv .tvb-grande .tvb-t, .tv .tvb-medio .tvb-t { font-size: 19px; } .tv .tvb-grande .tvb-f { font-size: 14px; } .tv .tvb-d { font-size: 12.5px; }
  .tv .tvb-ultimos p { font-size: 12px; }
  .tv-discos { grid-template-columns: 1fr; gap: 8px; }
  .tv-disco { padding: 10px 12px; border-radius: 12px; }
  .tv-disco p { font-size: 13px; } .tv-papel { display: none; }
  .tv-titulo { font-size: 16px; } .tv-hora { font-size: 24px; }
  .meio .duas-col { grid-template-columns: 1fr; }
  .tv-cta .btn { width: 100%; }
  .tv-area.com-controles { width: 100%; grid-template-columns: 1fr; gap: 18px; }
  .tv-controles { grid-template-columns: 1fr 1fr; grid-column: 1; grid-row: auto; }
  .tv-area .tv { grid-column: 1; grid-row: auto; }
  .tvc-titulo, .tvc-recomecar { grid-column: 1 / -1; }
  .arvores-junta { width: 22px; } .arvores-junta .fio { top: 70px; } .arvores-junta .pulso { top: 66px; }
  @keyframes pasta-pulso { 0% { opacity: 0; transform: translateX(-6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(18px); } }
  .tv[data-estado="js"] .tv-grade.n2, .tv[data-estado="js"] .tv-grade.n3 { grid-template-columns: 1fr; grid-template-rows: none; }
  .tv[data-estado="js"] .tv-grade.n3 > :first-child { grid-row: auto; }
  .tv .tv-col.compacto .tvb-cod { font-size: 20px; } .tv .tv-col.compacto .tvb-nome { font-size: 17px; }
  .tv .tv-col.compacto .tvb-t { font-size: 17px; } .tv .tv-col.compacto .tvb-d, .tv .tv-col.compacto .tvb-f { font-size: 12.5px; }
  .tv .tvb-vol { font-size: 12.5px; }
  .tv .tv-col.compacto .tvb-grande > .icone, .tv .tv-col.compacto .tvb-medio > .icone { width: 22px; height: 22px; }
  .tv.vazio .tv-equipe { display: grid; }
  .tv.vazio .tv-equipe ul { grid-template-columns: 1fr; }
  .tv.vazio .tv-eq-l { width: 28px; height: 28px; font-size: 13px; }
  .tv.vazio .tv-eq-t b { font-size: 15px; } .tv.vazio .tv-eq-tot, .tv.vazio .tv-eq-arq, .tv.vazio .tv-eq-nada { font-size: 12px; }
  .tv.vazio .tv-eq-ult { font-size: 12px; }
  .oq-ficha { padding: 18px 14px 16px; }
  .meio-tile { min-height: 250px; padding: 20px; }
  .meio-acoes .btn { width: 100%; }
  .pq-grade, .sistemas-faixa { grid-template-columns: 1fr; }
  .ag-topo { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ag-dia { --rot: 0px; }
  .ag-rot { position: static; width: auto; margin-bottom: 8px; font-size: 13.5px; }
  .ag-linha { display: block; margin-top: 18px; }
  .ag-trilha { height: 38px; }
  .ag-b { font-size: 11px; }
  .ag-b.cp b { display: none; }
  .ag-regua span { font-size: 11px; }
  .ag-regua span:nth-child(even) { visibility: hidden; }
  .ag-legenda { margin-left: 0; gap: 6px 14px; font-size: 12px; }
  .filme-play { min-height: 56px; font-size: 15px; } .fp-icone { width: 40px; height: 40px; }
  .pq-col { padding: 22px 20px 24px; }
  .sf-item { padding: 16px 16px; gap: 12px; align-items: flex-start; }
  .sf-item > .icone { width: 24px; height: 24px; margin-top: 2px; }

  .duas-col, .duas-col.invertida { grid-template-columns: 1fr; gap: 36px; }
  .arvore { padding: 14px 12px 16px; font-size: 12px; font-stretch: 88%; }
  .a-disco { font-size: 13px; gap: 6px; } .a-disco span { display: none; } .a-disco .icone { width: 16px; height: 16px; }

  .erro-peca { max-width: none; }
  .aviso { padding: 18px; } .aviso-t { font-size: 16px; } .aviso-d, .aviso-b { margin-left: 0; font-size: 14px; }
  .relatorio { font-size: 11.5px; margin: -24px 0 0 8%; }
  .nunca-pe { grid-template-columns: 1fr; }
  .d1, .d2, .d3 { width: 100%; }
  .degrau { flex-direction: column; gap: 4px; }
  .dg-quem { min-width: 0; }
  .azulejos { grid-template-columns: 1fr; }
  .azulejo, .azulejo:nth-child(4), .azulejo:nth-child(5) { grid-column: auto; }

  /* planos: os cartões passam de lado com o dedo (encaixe só nesta fileira), começando no Individual */
  .pl-cabeca { grid-template-columns: 1fr; }
  .pl-cabeca .abertura-txt { justify-self: start; }
  .pl-cartoes {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 8vw 4px; margin-inline: calc(-1 * var(--lado));
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .pl-cartoes::-webkit-scrollbar { display: none; }
  .plano { flex: 0 0 84vw; scroll-snap-align: center; display: flex; flex-direction: column; -webkit-box-reflect: unset; }
  .planos-fundo { font-size: 40vw; top: 62%; filter: blur(16px); }
  .pl-garantias { grid-template-columns: 1fr; margin-top: -70px; }
  .cs-itens { display: grid; justify-content: stretch; gap: 12px; padding: 16px 18px; text-align: left; }
  .cs-itens li { display: flex; align-items: flex-start; }
  .pl-pe { flex-direction: column; align-items: stretch; }
  .pl-fecho .btn { width: 100%; }

  .duvidas-grade { grid-template-columns: 1fr; }
  .duvidas-titulo { position: static; }
  .final .frase-marca { font-size: min(11vw, 52px); }
  .final .btn { width: 100%; }
  .placa { height: 150px; }
  .rodape { padding: 40px 16px 32px; }
  .rodape-grade { grid-template-columns: 1fr; gap: 20px; }
  .rodape-links a { display: inline-block; padding: 12px 0; }
  .rodape-fim { text-align: left; }
}

/* Só para conferir (?dev): o contorno da zona do vídeo */
.dev .cena-zona { outline: 2px dashed var(--dev-contorno); outline-offset: -1px; }
.dev-rotulo {
  position: absolute; left: 6px; top: 6px; z-index: 9; padding: 3px 6px; border-radius: 4px;
  background: var(--dev-contorno); color: var(--branco); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
}
