/* playchat v5: acabamento e movimento. Carregado por último. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
::selection { background: rgba(107, 76, 255, .55); color: #fff; }

/* grão fino sobre a página: tira o aspecto de degradê chapado */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* tipografia e respiro */
h1, h2, .display { letter-spacing: -.028em; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 5.1vw, 4.4rem); line-height: 1.04; font-weight: 600; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section-head h2, .v4-split h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.1; font-weight: 600; }
.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.section-soft { position: relative; background: none; }
.section-soft::before, .v3-facts::before { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(167, 139, 255, .45), rgba(56, 220, 245, .3), transparent); }
.v3-facts { position: relative; }

/* entrada dos elementos */
.fx-on .reveal { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(7px); transition: opacity .95s cubic-bezier(.16, 1, .3, 1), transform .95s cubic-bezier(.16, 1, .3, 1), filter .95s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.fx-on .reveal.visible { opacity: 1; transform: none; filter: none; }

/* fundo vivo */
.v5-mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.v5-mesh.on { opacity: 1; }
.v5-mesh.on + .v4-aurora { opacity: 0; transition: opacity 1.6s ease; }
.v4-hero::after, .page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-bg .grid-lines { opacity: .32; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%); }
.v4-hero { min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; }
.v4-hero .container { z-index: 2; }
.page-hero .container { z-index: 2; }

/* título */
.fx-on .v3-hero-copy h1 .v5-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.fx-on .v3-hero-copy h1 .v5-w > span { display: inline-block; transform: translateY(112%); }
.fx-on .v3-hero-copy h1 .v5-rise { opacity: 0; transform: translateY(26px); }
.fx-on .v3-hero-copy h1.in .v5-w > span { transform: none; transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--n) * 58ms + 120ms); }
.fx-on .v3-hero-copy h1.in .v5-rise { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--n) * 58ms + 200ms); }
.fx-on .v3-hero-copy > :not(h1) { animation: v5-in 1s cubic-bezier(.16, 1, .3, 1) .62s both; }
.fx-on .v3-hero-copy > .hero-ctas { animation-delay: .76s; }
.fx-on .v3-hero-copy > .hero-checks { animation-delay: .9s; }
.fx-on .v3-demo { animation: v5-in 1.2s cubic-bezier(.16, 1, .3, 1) .5s both; }
@keyframes v5-in { from { opacity: 0; transform: translateY(26px); } }

/* cartão da demonstração */
.v3-demo.v4-glass::before { content: ""; position: absolute; z-index: -1; inset: 12% -10% -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(107, 76, 255, .5), transparent); animation: v5-breathe 7s ease-in-out infinite; }
@keyframes v5-breathe { 50% { opacity: .55; transform: scale(1.06); } }

/* botões: agora com translate próprio para o efeito magnético */
.btn { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, translate .34s cubic-bezier(.16, 1, .3, 1); font-weight: 600; letter-spacing: -.005em; }
.btn .arrow { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-lg { padding: .92rem 1.75rem; }

/* topo que sai da frente ao descer */
.site-header { transition: background .25s ease, border-color .25s ease, transform .42s cubic-bezier(.16, 1, .3, 1); }
.site-header.is-away { transform: translateY(-145%); } /* além da altura: o brilho do botão não fica aparecendo */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { border: 0; box-shadow: none; }

/* barra de assuntos: acompanha o topo e termina junto com os recursos */
.v4-subnav { transition: top .42s cubic-bezier(.16, 1, .3, 1); }
.site-header.is-away ~ main .v4-subnav { top: 0; }
html:has(.v4-subnav) { scroll-padding-top: calc(var(--nav-h) + 76px); }

/* luz que acompanha o mouse */
.v5-spot { position: fixed; left: 0; top: 0; z-index: 1; width: 680px; height: 680px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s ease; background: radial-gradient(closest-side, rgba(107, 76, 255, .13), transparent); will-change: transform; }
.v5-spot.on { opacity: 1; }

/* frase que acende */
.v5-say-wrap { padding-block: clamp(5rem, 13vw, 11rem); }
.v5-say { max-width: 1000px; margin: 0 auto; font: 500 clamp(1.7rem, 4.1vw, 3.4rem)/1.2 var(--font-display); letter-spacing: -.024em; text-align: center; text-wrap: balance; }
.v5-say span { color: rgba(255, 255, 255, .17); transition: color .45s ease; }
.v5-say span.lit { color: #fff; }

/* história com tela parada */
.v5-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.v5-chapters { display: grid; }
.v5-chapter { display: flex; flex-direction: column; justify-content: center; min-height: 74vh; opacity: .3; transition: opacity .5s ease; }
.v5-chapter.on { opacity: 1; }
.v5-chapter small { color: #BBA8FF; font-weight: 600; font-size: .9rem; }
.v5-chapter h3 { margin: .4rem 0 .6rem; font: 600 clamp(1.6rem, 2.7vw, 2.3rem)/1.14 var(--font-display); letter-spacing: -.02em; }
.v5-chapter p { margin: 0; max-width: 42ch; color: var(--text-soft); font-size: 1.06rem; }
.v5-chapter > img { display: none; }
.v5-stage { position: sticky; top: calc(50vh - 15.5vw - 20px); perspective: 1500px; }
.v5-screen { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; border: 1px solid var(--glass-line); border-radius: 18px; background: #14141c; box-shadow: 0 40px 100px rgba(0, 0, 0, .62), 0 0 90px rgba(107, 76, 255, .2); }
.v5-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.v5-screen img.on { opacity: 1; transform: none; }
.v5-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.1rem; }
.v5-dots i { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); transition: background .35s ease; }
.v5-dots i.on { background: var(--grad); }

/* órbita: mensagens viajando até o centro */
.v5-beam { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #38DCF5; box-shadow: 0 0 14px 3px rgba(56, 220, 245, .75); opacity: 0; animation: v5-beam 4.5s cubic-bezier(.5, 0, .75, 0) infinite; --a: 0deg; }
.v5-beam:nth-of-type(2) { --a: 130deg; animation-delay: -1.5s; background: #E46BFF; box-shadow: 0 0 14px 3px rgba(228, 107, 255, .75); }
.v5-beam:nth-of-type(3) { --a: 245deg; animation-delay: -3s; background: var(--lime); box-shadow: 0 0 14px 3px rgba(201, 251, 80, .6); }
@keyframes v5-beam { 0% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); } 15% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-52px); } }

/* cartões: borda que acende */
.feature-card, .v3-seg, .v4-cell, .v3-plan-mini a, .v4-sector { border-radius: 22px; }
.glow::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), #A78BFF, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glow:hover::after { opacity: 1; }
.v4-cell { transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .25s ease; }
.v4-cell:hover { transform: translateY(-5px); }
.cta-band { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem); border-radius: 30px; box-shadow: 0 40px 110px rgba(107, 76, 255, .34); }
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); letter-spacing: -.024em; }
.faq-item { border-radius: 16px; transition: border-color .25s ease, background .25s ease; }
.faq-item[open] { border-color: rgba(167, 139, 255, .45); }

@media (max-width: 960px) {
  .v5-story { grid-template-columns: minmax(0, 1fr); }
  .v5-stage { display: none; }
  .v5-chapter { min-height: 0; margin-bottom: 3rem; opacity: 1; }
  .v5-chapter > img { display: block; width: 100%; height: auto; margin-top: 1.2rem; border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: 0 22px 54px rgba(0, 0, 0, .5); }
  .v4-hero { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .fx-on .reveal { opacity: 1; transform: none; filter: none; }
  .v5-say span { color: #fff; }
  .v5-beam { display: none; }
}

/* conversa de exemplo: como o cliente vê no WhatsApp */
.v3-phone { border-color: rgba(255, 255, 255, .1); background: #0b141a; }
.v3-phone-top { padding: .6rem .8rem; background: #1f2c34; border-bottom: 0; }
.v3-phone-top small { display: block; margin-top: 1px; color: #8fa2ad; font-size: .72rem; transition: color .2s ease; }
.v3-phone-top small.on { color: #4fd1a5; }
.v3-phone-body {
  gap: .32rem; height: 392px; padding: .7rem .7rem .5rem; scroll-behavior: auto;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1.4px);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px;
}
.v3-phone-body > :first-child { margin-top: auto; }
.w-day { align-self: center; margin-bottom: .25rem; padding: .18rem .6rem; border-radius: 7px; background: #1d2a32; color: #a9b8c1; font-size: .7rem; font-weight: 500; }
.w-msg { position: relative; max-width: 84%; padding: .38rem .55rem .3rem .6rem; border-radius: 9px; color: #e9edef; font-size: .86rem; line-height: 1.36; animation: w-in .26s cubic-bezier(.16, 1, .3, 1) both; }
.w-msg.me { align-self: flex-end; margin-top: .2rem; background: #005c4b; border-top-right-radius: 2px; transform-origin: 100% 0; }
.w-msg.co { align-self: flex-start; margin-top: .2rem; background: #202c33; border-top-left-radius: 2px; transform-origin: 0 0; }
.w-msg.me::before, .w-msg.co::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; }
.w-msg.me::before { right: -7px; background: #005c4b; clip-path: polygon(0 0, 100% 0, 0 100%); }
.w-msg.co::before { left: -7px; background: #202c33; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.w-who { display: block; margin-bottom: 1px; color: #4fd1a5; font-size: .76rem; font-weight: 600; }
.w-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: .32rem 0 -.05rem .7rem; color: rgba(233, 237, 239, .62); font-size: .64rem; line-height: 1; white-space: nowrap; }
.w-check { display: inline-flex; color: #53bdeb; }
.w-step { display: flex; align-items: flex-start; gap: .36rem; align-self: center; max-width: 90%; margin: .18rem 0; padding: .24rem .6rem; border: 1px solid rgba(56, 220, 245, .24); border-radius: 9px; background: rgba(9, 34, 44, .86); color: #8fe6f6; font-size: .71rem; line-height: 1.32; animation: w-in .26s cubic-bezier(.16, 1, .3, 1) both; }
.w-step svg { flex: none; margin-top: 1px; }
.w-sys { align-self: center; margin: .15rem 0; padding: .2rem .6rem; border-radius: 7px; background: #1d2a32; color: #a9b8c1; font-size: .71rem; }
.w-card { width: 84%; padding-bottom: 0; }
.w-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.w-card-top b { white-space: nowrap; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.w-btns { clear: both; display: grid; margin: .34rem -.55rem 0 -.6rem; }
.w-btns span { display: flex; align-items: center; justify-content: center; gap: .36rem; padding: .46rem .4rem; border-top: 1px solid rgba(255, 255, 255, .09); color: #53bdeb; font-size: .8rem; font-weight: 500; }
.w-typing { display: flex; gap: 4px; padding: .58rem .7rem; }
.w-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fa2ad; animation: v3-dot 1s infinite; }
.w-typing i:nth-child(2) { animation-delay: .15s; }
.w-typing i:nth-child(3) { animation-delay: .3s; }
.w-input { display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem .55rem; background: #0b141a; }
.w-input span { flex: 1; padding: .48rem .85rem; border-radius: 999px; background: #1f2c34; color: #8fa2ad; font-size: .84rem; }
.w-input i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #00a884; color: #0b141a; }
.v3-demo-foot { margin: .65rem .2rem 0; line-height: 1.4; }
.v3-demo-foot em { color: #8fe6f6; font-style: normal; }
@keyframes w-in { from { opacity: 0; transform: scale(.94) translateY(6px); } }
@media (max-width: 720px) { .v3-phone-body { height: 360px; } }
@media (prefers-reduced-motion: reduce) { .w-msg, .w-step, .w-typing i { animation: none; } }

/* barra do topo em cápsula de vidro, sempre visível */
.site-header, .site-header.is-scrolled { position: fixed; left: 0; right: 0; top: max(12px, env(safe-area-inset-top)); height: auto; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.site-header.is-away { transform: none; }
.site-header .nav.container { pointer-events: auto; box-sizing: border-box; width: min(1180px, calc(100% - 24px)); max-width: none; height: 62px; margin-inline: auto; padding: 0 9px 0 24px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(14, 9, 34, .56); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 40px rgba(0, 0, 0, .34); }
.site-header .nav .logo img { height: 30px; }
.site-header .nav-links { margin-left: auto; gap: 1.5rem; }
.site-header .nav-actions { margin-left: 1rem; }
.site-header .nav-actions .btn { min-height: 44px; }
.mobile-menu { pointer-events: auto; }
.v4-hero { padding-top: calc(var(--nav-h) + 2.2rem); min-height: 100svh; }
.page-hero { padding-top: calc(var(--nav-h) + 4.5rem); }
.site-header.is-away ~ main .v4-subnav, .v4-subnav { top: 84px; }

/* universo: conteúdo empilhado sem script ou com movimento reduzido */
.v5-voo { position: relative; }
.v5-palco { position: relative; padding-block: 4rem; }
.v5-abre, .v5-fecha { width: min(760px, calc(100% - 32px)); margin: 0 auto 2.5rem; text-align: center; }
.v5-abre h2, .v5-fecha h2 { margin: 0; font: 600 clamp(2rem, 4.4vw, 3.5rem)/1.08 var(--font-display); letter-spacing: -.028em; text-wrap: balance; }
.v5-abre p, .v5-fecha p { margin: .7rem 0 0; color: var(--text-soft); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.v5-fecha .btn { margin-top: 1.5rem; }
.v5-desce { display: none; }
.v5-hub { display: none; }
.v5-quadro { box-sizing: border-box; width: min(760px, calc(100% - 32px)); margin: 0 auto 1.25rem; padding: 1.5rem; border: 1px solid var(--glass-line); border-radius: 22px; background: rgba(14, 12, 28, .62); }
.v5-quadro small { color: #BBA8FF; font-size: .9rem; font-weight: 600; }
.v5-quadro h3 { margin: .3rem 0 .55rem; font: 600 clamp(1.5rem, 2.5vw, 2.15rem)/1.14 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.v5-quadro p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.v5-quadro .v5-nota { margin-top: .6rem; color: var(--text-mute); font-size: .84rem; }
.v5-quadro ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.v5-quadro li { padding: .3rem .65rem; border: 1px solid var(--glass-line); border-radius: 999px; font-size: .84rem; }

/* universo acompanhando a rolagem */
html.voando .v5-voo { height: 640vh; }
html.voando .v5-palco { position: sticky; top: 0; height: 100vh; height: 100lvh; padding: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, rgba(107, 76, 255, .13), transparent 62%); }
html.voando .v5-galaxy { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html.voando .v5-cena { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.v5-chip { position: absolute; left: 0; top: 0; visibility: hidden; padding: .4rem .78rem; border: 1px solid rgba(255, 255, 255, .17); border-radius: 999px; background: rgba(14, 13, 26, .74); color: #fff; font: 600 .82rem/1.2 var(--font-body); white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); will-change: transform, opacity; }
html.voando .v5-hub { position: absolute; left: 0; top: 0; z-index: 4; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: radial-gradient(circle at 32% 24%, #2a2348, #0f0c22 58%); box-shadow: 0 0 34px rgba(167, 139, 255, .6), 0 0 90px rgba(107, 76, 255, .4); will-change: transform; }
html.voando .v5-hub img { width: 74%; height: auto; filter: brightness(1.45) drop-shadow(0 0 8px rgba(167, 139, 255, .55)); }
html.voando .v5-abre { position: absolute; left: 50%; top: 15%; z-index: 5; margin: 0 0 0 calc(min(760px, 100% - 32px) / -2); }
html.voando .v5-desce { display: inline-block; margin-top: .9rem; color: #BBA8FF; font-size: .86rem; font-weight: 600; animation: v5-desce 2.2s ease-in-out infinite; }
@keyframes v5-desce { 50% { transform: translateY(6px); opacity: .6; } }
html.voando .v5-fecha { position: absolute; left: 50%; bottom: 8%; z-index: 5; margin: 0 0 0 calc(min(760px, 100% - 32px) / -2); visibility: hidden; opacity: 0; }
html.voando .v5-quadro { position: absolute; left: max(32px, calc(50% - 590px)); top: 50%; z-index: 5; width: min(430px, 38%); margin: -11rem 0 0; visibility: hidden; opacity: 0; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .4); }
html.voando .v5-quadro ul { display: none; }

@media (max-width: 899px) {
  html.voando .v5-voo { height: 600vh; }
  html.voando .v5-quadro { left: 12px; right: 12px; top: auto; bottom: max(14px, env(safe-area-inset-bottom)); width: auto; margin: 0; padding: 1rem 1.1rem; }
  html.voando .v5-quadro h3 { font-size: 1.32rem; }
  html.voando .v5-quadro p { font-size: .92rem; line-height: 1.45; }
  html.voando .v5-quadro .v5-nota { display: none; }
  html.voando .v5-abre { top: 13%; }
  .v5-chip { padding: .3rem .58rem; font-size: .72rem; }
  .site-header .nav.container { height: 58px; padding: 0 7px 0 16px; gap: .5rem; }
  .site-header .nav-actions { margin-left: auto; gap: .35rem; }
  .site-header .nav .logo img { height: 25px; }
  .mobile-menu { inset: calc(max(12px, env(safe-area-inset-top)) + 66px) 12px auto 12px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 20px; background: rgba(14, 9, 34, .94); }
  .v4-subnav { top: 78px; }
}
@media (max-width: 340px) {
  .v5-chip { padding: .24rem .46rem; font-size: .66rem; }
  .site-header .btn-accent { padding-inline: .7rem; font-size: .78rem; }
}
