/* =====================================================================
   inicio.css: a página inicial (propostas 1 a 4, aprovadas pelo Cristiano em
   14/11/2026; docs/design.md, 9.4). Carregado só nela, depois do site.css.
   Classes com o prefixo pi- (página inicial), para não esbarrar nas .inicio-*,
   que as páginas de erro e /financas/ ainda usam.
   As cores que mudam com o tema são variáveis aqui; o claro troca só elas.
   ===================================================================== */

.pi {
  --pi-vidro: rgba(17, 30, 54, .6);
  --pi-vidro-borda: rgba(240, 244, 248, .12);
  --pi-sombra: 0 30px 70px -24px rgba(0, 0, 0, .75);
  --pi-texto-2: #C3CFE0;
  --pi-fraco: #8D9DB5;
  --pi-brilho: rgba(0, 224, 250, .32);
  --pi-brilho-forte: rgba(0, 224, 250, .8);
  --pi-lanterna: rgba(0, 224, 250, .14);
  --pi-apagado: #5A6C88;
  --pi-celular: linear-gradient(160deg, #1C2E50, #08111F 45%, #13223D);
  --pi-anel: rgba(240, 244, 248, .14);
  --pi-faixa: #0E1A31;
  --pi-recurso: var(--bg);
  --pi-produto: linear-gradient(180deg, #13223F, #0C182E);
  --pi-feixe: rgba(255, 255, 255, .95);
  timeline-scope: --pi-s1, --pi-s2, --pi-s3, --pi-s4, --pi-s5, --pi-p1, --pi-p2, --pi-p3;
}
:root[data-theme="claro"] .pi {
  --pi-vidro: rgba(255, 255, 255, .78);
  --pi-vidro-borda: rgba(18, 32, 58, .1);
  --pi-sombra: 0 30px 60px -24px rgba(16, 24, 40, .3);
  --pi-texto-2: #2A3852;
  --pi-fraco: #55647A;
  --pi-brilho: rgba(0, 96, 192, .2);
  --pi-brilho-forte: rgba(0, 96, 192, .6);
  --pi-lanterna: rgba(0, 96, 192, .08);
  --pi-apagado: #7A879C;
  --pi-celular: linear-gradient(160deg, #26375A, #101B30 45%, #1F2F4E);
  --pi-anel: rgba(18, 32, 58, .25);
  --pi-faixa: #E8EEF6;
  --pi-recurso: var(--card);
  --pi-produto: var(--card);
}

.pi-largura { max-width: calc(1200px + 10vw); margin: 0 auto; padding: 0 5vw; box-sizing: border-box; }
.pi h2, .pi h3 { font-family: var(--font-head); }

/* ── RÓTULOS, CONTORNO E O QUE SE REPETE ─────────────────────────────── */
.pi-rotulo { margin: 0; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.pi-apagado { color: var(--pi-apagado); }
/* O contorno se enche: no carregamento (o título) ou ao entrar na tela (a rolagem). Sem animação, fica cheio. */
.pi-contorno {
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan);
  background-image: linear-gradient(90deg, var(--cyan) 50%, transparent 50%); background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
}
.pi-legenda { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-family: var(--font-mono); font-size: .72rem; color: var(--pi-fraco); }
.pi-legenda-esq { position: static; text-align: left; margin-top: 18px; }
.pi-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.pi-acoes-centro { justify-content: center; }

/* O botão principal com o feixe de luz que gira na borda e o brilho que passa no hover. */
@property --pi-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pi-feixe { position: relative; overflow: hidden; isolation: isolate; }
.pi-feixe::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.pi-feixe:hover::before { transform: translateX(120%); }
.pi-feixe::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--pi-ang), transparent 0 60%, var(--pi-feixe) 74%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ── ABERTURA ───────────────────────────────────────────────────────── */
.pi-abertura { position: relative; z-index: 1; min-height: min(820px, calc(100vh - 68px)); display: flex; align-items: center; padding: var(--abertura) 0 96px; }
.pi-abertura-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: center; width: 100%; }
.pi-selo {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--pi-brilho); font-family: var(--font-mono); font-size: .72rem; color: var(--white);
}
.pi-selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.pi-titulo { margin: 24px 0 0; font-size: clamp(2.7rem, 5.6vw, 5.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.pi-ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.pi-ln > span { display: inline-block; }
.pi-lead { margin-top: 24px; max-width: 46ch; font-size: 1.12rem; line-height: 1.65; color: var(--muted); }
.pi-fatos { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.pi-fatos li { display: inline-flex; align-items: center; gap: 8px; }
.pi-fatos svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pi-nota { margin-top: 10px; font-size: .8rem; }
.pi-nota a { color: var(--cyan); }

/* O celular com o vídeo: inclina com o mouse (inicio.js) e gira ao sair da tela (rolagem). */
.pi-palco { position: relative; height: min(680px, calc(100vh - 90px)); perspective: 1400px; display: flex; align-items: center; justify-content: center; }
.pi-inclina { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pi-celular {
  position: relative; z-index: 2; border-radius: 48px; padding: 10px; background: var(--pi-celular);
  box-shadow: 0 0 0 1px var(--pi-anel), var(--pi-sombra), 0 0 90px -20px var(--pi-brilho);
}
.pi-com-video { height: min(617px, calc(100vh - 150px)); aspect-ratio: 296 / 617; transform: rotateY(-16deg) rotateX(7deg) rotateZ(2deg); }
.pi-tela { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); }
.pi-tela::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, transparent 28%); }
/* A imagem do começo e o vídeo têm a mesma proporção da tela: o cover não corta nada. */
.pi-capa, .pi-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pi-video { opacity: 0; transition: opacity .4s; }
.pi-video.tocando { opacity: 1; }
.pi-pausa {
  position: absolute; z-index: 4; right: -62px; bottom: 24px; transform: translateZ(60px);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  background: var(--pi-vidro); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--pi-vidro-borda); transition: background .3s;
}
.pi-pausa[hidden] { display: none; }
.pi-pausa:hover { background: var(--pi-brilho); }
.pi-pausa:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pi-pausa svg { width: 18px; height: 18px; fill: currentColor; }
.pi-pausa .pi-ico-tocar, .pi-pausa.pausado .pi-ico-pausa { display: none; }
.pi-pausa.pausado .pi-ico-tocar { display: block; }

/* ── SEÇÕES ─────────────────────────────────────────────────────────── */
.pi-secao { position: relative; z-index: 1; padding: 140px 0; }
.pi-cab { max-width: 760px; }
.pi-cab h2 { margin: 16px 0 0; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.pi-cab p:not(.pi-rotulo) { margin-top: 20px; font-size: 1.12rem; line-height: 1.65; color: var(--muted); }

/* Os passos: no computador, o celular fica parado e troca de tela ao rolar (abaixo, no movimento). */
.pi-historia-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 40px; }
.pi-passo { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-left: 40px; border-left: 1px solid var(--border); }
.pi-passo::before { content: ""; position: absolute; left: -1px; top: 30%; width: 2px; height: 40%; background: var(--cyan); box-shadow: 0 0 16px var(--pi-brilho-forte); opacity: .25; }
.pi-num {
  align-self: flex-start; font-family: var(--font-head); font-weight: 800; font-size: 7.5rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan);
  background-image: linear-gradient(90deg, var(--cyan) 50%, transparent 50%); background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
}
.pi-passo h3 { margin: 0; font-size: 2.3rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.pi-passo p { margin: 0; max-width: 440px; font-size: 1.12rem; line-height: 1.7; color: var(--muted); }
.pi-passo-img { max-width: 340px; margin-top: 12px; }
.pi-passo-img img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--pi-vidro-borda), var(--pi-sombra); }
.pi-lado { display: none; position: sticky; top: 24px; height: min(700px, calc(100vh - 48px)); align-items: center; justify-content: center; }
.pi-luz { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--pi-brilho) 0%, transparent 62%); filter: blur(30px); }
/* O celular cabe na altura da janela, com ou sem tela cheia (o recorte não passa do fim da janela). */
.pi-lado .pi-celular { height: min(654px, calc(100vh - 100px)); aspect-ratio: 316 / 654; border-radius: min(48px, 6vh); }
.pi-lado .pi-tela { border-radius: min(38px, 5vh); }
.pi-lado .pi-tela::before { content: ""; position: absolute; z-index: 3; top: 12px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #03070F; }
.pi-cena { position: absolute; left: 0; right: 0; top: min(40px, 6%); }
.pi-cena img { display: block; width: 100%; height: auto; }
.pi-cena .pi-cena-extra { margin-top: 10px; }

/* O que o app faz: a tela larga que se endireita ao entrar e as seis funções com a lanterna. */
.pi-vitrine { position: relative; margin-top: 72px; perspective: 1600px; }
.pi-janela { border-radius: 14px; overflow: hidden; background: var(--card); transform-origin: 50% 100%;
  box-shadow: 0 0 0 1px var(--pi-vidro-borda), var(--pi-sombra), 0 0 120px -40px var(--pi-brilho); }
.pi-janela img { display: block; width: 100%; height: auto; }
.pi-janela-barra { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.pi-janela-barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.pi-janela-barra span { margin-left: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--pi-fraco); }
.pi-flutua { position: absolute; z-index: 2; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--pi-vidro-borda), var(--pi-sombra); }
.pi-flutua img { display: block; width: 100%; height: auto; }
.pi-f-saldo { width: 44%; right: -18px; bottom: -56px; }
.pi-recursos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 150px; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--border); background: var(--border); }
.pi-recurso { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 30px 38px; background: var(--pi-recurso); }
.pi-recurso > * { position: relative; z-index: 1; }
.pi-recurso h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.pi-recurso p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.pi-recurso small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pi-fraco); }
.pi-ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--pi-brilho); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.pi-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pi-recurso:hover .pi-ic { transform: translateY(-4px) rotate(-6deg); }
/* A lanterna: o brilho e a borda seguem o mouse (inicio.js escreve o --mx e o --my). Sem script, um brilho fixo no hover. */
.pi-recurso::before, .pi-produto::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 30%) var(--my, 0%), var(--pi-lanterna), transparent 60%);
}
.pi-recurso::after, .pi-produto::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px; opacity: 0; pointer-events: none; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), var(--pi-brilho-forte), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.pi-recurso:hover::before, .pi-recurso:hover::after, .pi-produto:hover::before, .pi-produto:hover::after { opacity: 1; }

/* Os dois produtos, num azul-marinho mais claro (no claro, um cinza-azulado), com a luz atrás dos cartões. */
.pi-produtos-secao { background: radial-gradient(ellipse 55% 60% at 50% 68%, var(--pi-brilho), transparent 70%), var(--pi-faixa);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pi-produtos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.pi-produto {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 460px; padding: 40px; overflow: hidden;
  border-radius: 14px; text-decoration: none; color: var(--white); background: var(--pi-produto);
  box-shadow: 0 0 0 1px var(--border), var(--pi-sombra); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.pi-produto:hover { color: var(--white); transform: translateY(-6px); }
.pi-produto > :is(.pi-rotulo, h3, p, .pi-ir) { position: relative; z-index: 1; }
.pi-produto h3 { margin: 0; max-width: 380px; font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.pi-produto p { margin: 0; max-width: 360px; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.pi-ir { margin-top: auto; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: .9rem; }
.pi-ir b { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .45s, border-color .45s, color .45s; }
.pi-produto:hover .pi-ir b { transform: rotate(-45deg); background: var(--marca-ciano); border-color: var(--marca-ciano); color: var(--marca-noite); }
.pi-espia { position: absolute; right: -40px; bottom: -130px; width: 250px; height: auto; border-radius: 20px;
  box-shadow: 0 0 0 1px var(--pi-vidro-borda), var(--pi-sombra); transform: rotate(-8deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pi-produto:hover .pi-espia { transform: rotate(-5deg) translateY(-14px); }
.pi-barras { position: absolute; right: 36px; bottom: 36px; display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.pi-barras i { display: block; width: 22px; border-radius: 6px 6px 2px 2px; transform-origin: bottom;
  background: linear-gradient(180deg, var(--cyan), color-mix(in srgb, var(--cyan) 15%, transparent)); }
.pi-barras i:nth-child(1) { height: 40%; } .pi-barras i:nth-child(2) { height: 65%; } .pi-barras i:nth-child(3) { height: 50%; }
.pi-barras i:nth-child(4) { height: 85%; } .pi-barras i:nth-child(5) { height: 70%; } .pi-barras i:nth-child(6) { height: 100%; }
.pi-quem { margin: 40px 0 0; }

/* A chamada final, num cartão de vidro sobre a luz. */
.pi-final { position: relative; z-index: 1; padding: 150px 0; text-align: center; overflow: hidden; }
.pi-final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  pointer-events: none; background: radial-gradient(circle, var(--pi-brilho) 0%, transparent 62%); filter: blur(30px); }
.pi-cartao-final { position: relative; max-width: 760px; margin: 0 auto; padding: 64px 48px; border-radius: 14px;
  background: var(--pi-vidro); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px var(--pi-vidro-borda), var(--pi-sombra); }
.pi-cartao-final h2 { margin: 16px 0 0; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.pi-cartao-final > p:not(.pi-rotulo) { margin: 22px auto 0; max-width: 520px; font-size: 1.12rem; line-height: 1.65; color: var(--muted); }

/* Onde a pessoa está na página, na lateral: só em tela larga e com o navegador que entende a rolagem (abaixo). */
.pi-indice { display: none; }
.pi-indice-itens { position: relative; width: 120px; height: 44px; }
.pi-ii { position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; text-align: right; white-space: nowrap;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pi-ii b { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--cyan); }
.pi-indice-trilho { width: 1px; height: 150px; overflow: hidden; background: var(--border); }
.pi-indice-trilho i { display: block; height: 100%; background: var(--cyan); transform-origin: top; transform: scaleY(0); }
.pi-abertura { view-timeline-name: --pi-s1; }
.pi-historia { view-timeline-name: --pi-s2; }
.pi-faz { view-timeline-name: --pi-s3; }
.pi-produtos-secao { view-timeline-name: --pi-s4; }
.pi-final { view-timeline-name: --pi-s5; }
.pi-p1 { view-timeline-name: --pi-p1; } .pi-p2 { view-timeline-name: --pi-p2; } .pi-p3 { view-timeline-name: --pi-p3; }

/* ── JANELA BAIXA (notebook sem tela cheia): a abertura aperta para o celular caber inteiro ── */
@media (max-height: 780px) and (min-width: 901px) {
  .pi-abertura { padding: 20px 0 56px; }
  .pi-titulo { font-size: clamp(2.4rem, 4.4vw, 4.3rem); margin-top: 16px; }
  .pi-lead { margin-top: 16px; font-size: 1rem; }
  .pi-acoes { margin-top: 22px; }
  .pi-fatos { margin-top: 14px; }
}

/* ── CELULAR ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pi-largura { padding: 0 1.25rem; }
  .pi-abertura { min-height: 0; padding: 40px 0 72px; }
  .pi-abertura-in { grid-template-columns: minmax(0, 1fr); }
  .pi-palco { height: 660px; transform: scale(.86); transform-origin: top center; margin-bottom: -80px; }
  .pi-pausa { right: 12px; bottom: 96px; }
  .pi-legenda { bottom: -22px; }
  .pi-historia-grade, .pi-recursos, .pi-produtos { grid-template-columns: minmax(0, 1fr); }
  .pi-passo { min-height: 0; padding: 40px 0 40px 24px; }
  .pi-num { font-size: 5rem; }
  .pi-f-saldo { position: relative; width: 86%; right: auto; bottom: auto; margin: -40px 0 0 auto; }
  .pi-secao { padding: 100px 0; }
  .pi-produto { padding: 32px 24px; }
  .pi-cartao-final { padding: 48px 24px; }
}

/* ── MOVIMENTO: só para quem não pediu menos movimento ao aparelho ──
   O que surge ao rolar está preso à posição da rolagem (animation-timeline), não ao tempo: rolar rápido não
   deixa espaço vazio, que era o defeito do .reveal de antes (docs/design.md, 9.12). Sem suporte, tudo à vista. */
@media (prefers-reduced-motion: no-preference) {
  .pi-selo i { animation: pi-pulsa 2.4s infinite; }
  .pi-ln > span { animation: pi-sobe 1.1s cubic-bezier(.2, .75, .15, 1) both; }
  .pi-ln:nth-child(2) > span { animation-delay: .12s; }
  .pi-ln:nth-child(3) > span { animation-delay: .24s; }
  .pi-titulo .pi-contorno { animation: pi-enche 1.2s cubic-bezier(.65, 0, .35, 1) 1.05s both; }
  .pi-texto > :not(.pi-titulo):not(.pi-selo) { animation: pi-aparece 1s cubic-bezier(.2, .75, .15, 1) .45s both; }
  .pi-selo { animation: pi-aparece 1s cubic-bezier(.2, .75, .15, 1) both; }
  .pi-palco { animation: pi-aparece-palco 1.6s cubic-bezier(.2, .75, .15, 1) .2s both; }
  .pi-feixe::after { opacity: 1; animation: pi-feixe 3.2s linear infinite; }
  .pi-barras i { animation: pi-barra 3.2s cubic-bezier(.2, .75, .15, 1) infinite alternate; }
  .pi-barras i:nth-child(2) { animation-delay: .2s; } .pi-barras i:nth-child(3) { animation-delay: .4s; }
  .pi-barras i:nth-child(4) { animation-delay: .6s; } .pi-barras i:nth-child(5) { animation-delay: .8s; } .pi-barras i:nth-child(6) { animation-delay: 1s; }

  @supports (animation-timeline: view()) {
    .pi-surge { animation: pi-revela linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .pi-abertura-in { animation: pi-sai linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .pi-com-video { animation: pi-gira-sai linear both; animation-timeline: view(); animation-range: exit -10% exit 90%; }
    .pi-janela { animation: pi-endireita linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .pi-f-saldo { animation: pi-sobe-mais linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .pi-recurso { animation: pi-revela linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    .pi-cab .pi-contorno, .pi-cartao-final .pi-contorno { animation: pi-enche linear both; animation-timeline: view(); animation-range: entry 60% cover 42%; }
    .pi-num { animation: pi-numero linear both; animation-timeline: view(); animation-range: cover 10% cover 90%; }
    .pi-passo h3, .pi-passo p { animation: pi-foco linear both; animation-timeline: view(); animation-range: cover 10% cover 90%; }
    .pi-passo::before { animation: pi-acende linear both; animation-timeline: view(); animation-range: cover 15% cover 85%; }
    .pi-cartao-final { animation: pi-revela-grande linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @media (min-width: 1360px) {
      .pi-indice { display: flex; position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 40; align-items: center; gap: 14px; }
      .pi-indice-trilho i { animation: pi-enche-trilho linear both; animation-timeline: scroll(root); }
      .pi-ii { animation: pi-ind linear both; animation-range: cover 0% cover 100%; }
      .pi-i1 { animation-name: pi-ind-primeiro; animation-timeline: --pi-s1; }
      .pi-i2 { animation-timeline: --pi-s2; } .pi-i3 { animation-timeline: --pi-s3; } .pi-i4 { animation-timeline: --pi-s4; }
      .pi-i5 { animation-name: pi-ind-ultimo; animation-timeline: --pi-s5; }
    }
  }
  @supports (timeline-scope: --x) {
    @media (min-width: 901px) {
      .pi-lado { display: flex; }
      .pi-passo-img { display: none; }
      .pi-cena { animation: pi-cena-meio linear both; animation-range: cover 0% cover 100%; }
      .pi-c1 { animation-name: pi-cena-primeira; animation-timeline: --pi-p1; }
      .pi-c2 { animation-timeline: --pi-p2; }
      .pi-c3 { animation-name: pi-cena-ultima; animation-timeline: --pi-p3; }
    }
  }
}

@keyframes pi-pulsa { 0% { box-shadow: 0 0 0 0 var(--pi-brilho-forte); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes pi-sobe { from { transform: translateY(105%); } to { transform: none; } }
@keyframes pi-aparece { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pi-aparece-palco { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pi-feixe { to { --pi-ang: 360deg; } }
@keyframes pi-barra { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes pi-enche { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes pi-revela { from { opacity: 0; transform: translateY(56px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pi-revela-grande { from { opacity: 0; transform: translateY(80px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pi-sai { to { opacity: .15; transform: translateY(-60px); } }
@keyframes pi-gira-sai { to { transform: rotateY(-34deg) rotateX(14deg) rotateZ(6deg) translateY(-40px) scale(.9); } }
@keyframes pi-endireita { from { transform: rotateX(30deg) scale(.86) translateY(40px); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes pi-sobe-mais { from { transform: translateY(160px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pi-numero { 0% { background-position: 100% 0; opacity: .4; } 35%, 65% { background-position: 0 0; opacity: 1; } 100% { background-position: 100% 0; opacity: .4; } }
@keyframes pi-foco { 0% { opacity: .25; } 30%, 70% { opacity: 1; } 100% { opacity: .25; } }
@keyframes pi-acende { 0% { opacity: .15; transform: scaleY(.3); } 35%, 65% { opacity: 1; transform: scaleY(1); } 100% { opacity: .15; transform: scaleY(.3); } }
@keyframes pi-cena-primeira { 0%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-40px) scale(.95); } }
@keyframes pi-cena-meio { 0%, 28% { opacity: 0; transform: translateY(40px) scale(.95); } 42%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-40px) scale(.95); } }
@keyframes pi-cena-ultima { 0%, 28% { opacity: 0; transform: translateY(40px) scale(.95); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes pi-enche-trilho { to { transform: scaleY(1); } }
@keyframes pi-ind { 0%, 24% { opacity: 0; transform: translateY(calc(-50% + 10px)); } 34%, 66% { opacity: 1; transform: translateY(-50%); } 76%, 100% { opacity: 0; transform: translateY(calc(-50% - 10px)); } }
@keyframes pi-ind-primeiro { 0%, 66% { opacity: 1; transform: translateY(-50%); } 76%, 100% { opacity: 0; transform: translateY(calc(-50% - 10px)); } }
@keyframes pi-ind-ultimo { 0%, 24% { opacity: 0; transform: translateY(calc(-50% + 10px)); } 34%, 100% { opacity: 1; transform: translateY(-50%); } }
.pi-ir b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
