/* Mais Ultra — componentes compartilhados entre as páginas (seções, painel ilustrado do UltraChat, linhas e profundidade).
   Variáveis de cena (--enter, --exit, --progress) vêm de assets/js/scenes.js; sem JS valem 1 / 0 / .5. */
[data-scene] { --enter: 1; --exit: 0; --progress: .5; }

.section { position: relative; padding-block: clamp(5rem, 9vw, 8.5rem); }
.section-head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head.centered { max-width: 840px; margin-inline: auto; text-align: center; }
.section h2 { margin-top: 1.1rem; font-size: clamp(2.05rem, 3.7vw, 3.3rem); line-height: 1.12; letter-spacing: -.04em; }
.section-head > p, .lead { margin-top: 1.2rem; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.uc-lockup { width: clamp(190px, 19vw, 250px); margin-bottom: 1.6rem; }

.check-list { display: grid; gap: .7rem; margin-top: 1.7rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; color: #e4e3f3; font-size: .975rem; line-height: 1.55; }
.check-list .icon { width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; color: #f4c6ff; background: linear-gradient(135deg, rgba(122, 60, 255, .5), rgba(255, 32, 208, .35)); stroke-width: 2.4; }

.grid-floor { position: absolute; left: -30%; right: -30%; bottom: 0; height: 46%; pointer-events: none; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(160, 120, 255, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 120, 255, .4) 1px, transparent 1px); background-size: 46px 46px; background-position: center bottom;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 30%, transparent 75%); }

/* Ilustração: painel do UltraChat no computador + celular na frente (estrutura real, conversas fictícias). */
.uc-visual { --uline: rgba(196, 192, 255, .11); position: relative; container-type: inline-size; height: clamp(460px, 44vw, 590px); }
.uc-visual::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 40%; border-radius: 50%; background: radial-gradient(ellipse, rgba(122, 60, 255, .45), rgba(176, 32, 255, .12) 50%, transparent 70%); filter: blur(30px); opacity: calc(.3 + var(--enter) * .7); }
.uc-visual .grid-floor { opacity: calc(.2 + var(--enter) * .8); }
.uc-app { position: absolute; z-index: 1; left: 3%; top: 5%; width: 88%; aspect-ratio: 16 / 10.8; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.1em;
  font-size: clamp(6px, 1.7cqw, 11.5px); line-height: 1.35; color: #f5f5ff; --glass-fill: rgba(7, 9, 24, .8);
  box-shadow: var(--glass-highlight), 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(122, 60, 255, .18);
  transform: perspective(1600px) rotateY(calc(-9deg + var(--enter) * 5deg)) rotateX(calc(5deg - var(--enter) * 3deg)); }
.app-chrome { display: flex; align-items: center; gap: .45em; flex: none; height: 2.5em; padding: 0 .9em; border-bottom: 1px solid var(--uline); background: rgba(13, 16, 38, .75); }
.app-chrome i { width: .7em; height: .7em; border-radius: 50%; background: #ffffff26; }
.app-chrome i:first-child { background: #ff5f8a; } .app-chrome i:nth-child(2) { background: #ffc35a; } .app-chrome i:nth-child(3) { background: #46e08a; }
.app-url { display: inline-flex; align-items: center; gap: .45em; margin-inline: auto; padding: .25em 1em; border-radius: 999px; background: #ffffff0a; color: #b5b5d1; font-size: .9em; }
.app-url img { width: 1.2em; }
.app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 4.8em 17.5em minmax(0, 1fr); }
.app-rail { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .8em .3em; border-right: 1px solid var(--uline); background: rgba(5, 7, 20, .6); }
.rail-i { position: relative; display: grid; justify-items: center; gap: .15em; width: 100%; padding: .45em 0; border-radius: .7em; color: #8f90ad; }
.rail-i .icon { width: 1.5em; height: 1.5em; stroke-width: 1.8; }
.rail-i b { font-size: .66em; font-weight: 600; }
.rail-i.is-on { color: #f5f5ff; background: rgba(122, 60, 255, .2); }
.rail-i.is-on .icon { color: #b29cff; }
.rail-i em { position: absolute; top: .15em; right: .45em; display: grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 999px; background: #ff3d71; color: #fff; font-size: .62em; font-style: normal; font-weight: 800; }
.app-list { display: flex; flex-direction: column; gap: .6em; min-width: 0; padding: .9em .8em 0; border-right: 1px solid var(--uline); background: rgba(7, 9, 24, .55); }
.app-list-head { display: flex; align-items: center; justify-content: space-between; }
.app-list-head strong { font-family: var(--display); font-size: 1.25em; font-weight: 600; }
.app-pill { padding: .2em .8em; border-radius: 999px; border: 1px solid rgba(196, 192, 255, .26); background: #0d1026; font-size: .78em; font-weight: 700; }
.app-search { display: flex; align-items: center; gap: .5em; height: 2.5em; padding: 0 .7em; overflow: hidden; border-radius: .7em; border: 1px solid var(--uline); background: rgba(4, 7, 20, .6); color: #8f90ad; font-size: .84em; white-space: nowrap; }
.app-search .icon { width: 1.15em; height: 1.15em; }
.app-tabs { display: flex; gap: .2em; padding: .22em; border-radius: 999px; border: 1px solid var(--uline); background: rgba(13, 16, 38, .7); }
.app-tabs span { flex: 1 1 auto; padding: .35em .4em; border-radius: 999px; color: #b5b5d1; font-size: .7em; font-weight: 700; text-align: center; white-space: nowrap; }
.app-tabs .on { background: linear-gradient(108deg, #126acb, #7a3cff 52%, #b723b7); color: #fff; }
.app-tabs b { margin-left: .15em; font-weight: 500; opacity: .8; }
.app-convs { margin: 0 -.8em; }
.app-convs li { position: relative; display: flex; gap: .6em; padding: .7em .8em; border-bottom: 1px solid var(--uline); }
.app-convs li.on { background: rgba(122, 60, 255, .1); }
.app-convs li.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(#7a3cff, #b020ff); }
.av { display: grid; place-items: center; flex: 0 0 2.5em; width: 2.5em; height: 2.5em; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; font-size: .82em; font-weight: 800; }
.cv { display: grid; gap: .22em; flex: 1; min-width: 0; }
.cv-top { display: flex; justify-content: space-between; gap: .4em; }
.cv-top strong { overflow: hidden; font-family: var(--display); font-size: .95em; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.cv-top time { color: #8f90ad; font-size: .72em; }
.cv-msg { overflow: hidden; color: #b5b5d1; font-size: .8em; white-space: nowrap; text-overflow: ellipsis; padding-right: 1.6em; }
.cv-tags { display: flex; gap: .3em; }
.ch, .team { padding: .05em .55em; border: 1px solid; border-radius: 999px; font-size: .64em; font-style: normal; font-weight: 700; }
.ch.ch-wa { color: #2ee6a6; border-color: rgba(46, 230, 166, .45); background: rgba(46, 230, 166, .1); }
.ch.ch-ig { color: #b29cff; border-color: rgba(122, 60, 255, .55); background: rgba(122, 60, 255, .15); }
.ch.ch-fb { color: #5b9dff; border-color: rgba(31, 125, 255, .5); background: rgba(31, 125, 255, .1); }
.ch.ch-tg { color: #22ccff; border-color: rgba(34, 204, 255, .45); background: rgba(34, 204, 255, .1); }
.team { color: #ffb84d; border-color: rgba(255, 184, 77, .4); }
.ub { position: absolute; right: .8em; bottom: .8em; display: grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 999px; background: #ff3d71; font-size: .66em; font-weight: 800; box-shadow: 0 0 10px rgba(255, 61, 113, .6); }
.app-chat { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(ellipse at 100% 0, rgba(176, 32, 255, .08), transparent 60%); }
.chat-head { display: flex; align-items: center; gap: .6em; padding: .7em 1em; border-bottom: 1px solid var(--uline); }
.chat-who { display: grid; gap: .12em; min-width: 0; }
.chat-who strong { font-family: var(--display); font-size: .98em; font-weight: 600; }
.chat-who small { display: flex; align-items: center; gap: .4em; color: #8f90ad; font-size: .74em; }
.chat-who small .ch { font-size: .88em; }
.app-btn { margin-left: auto; padding: .35em .95em; border-radius: 999px; background: linear-gradient(108deg, #126acb, #7a3cff 52%, #b723b7); font-size: .74em; font-weight: 700; }
.uc-visual .msgs { flex: 1; display: flex; flex-direction: column; gap: .55em; min-height: 0; padding: .9em 1em; overflow: hidden; }
.uc-visual .msgs li { position: relative; max-width: 80%; padding: .55em .85em 1.25em; border: 1px solid var(--uline); border-radius: 1em; background: #0d1026; color: #e8e7f7; font-size: .82em; line-height: 1.4; }
.uc-visual .msgs .in { align-self: flex-start; border-bottom-left-radius: .25em; }
.uc-visual .msgs .out { align-self: flex-end; border-color: rgba(122, 60, 255, .35); border-bottom-right-radius: .25em; background: linear-gradient(135deg, #0f2149, #22165a); }
.uc-visual .msgs .bot { background: linear-gradient(135deg, #12183d, #1f1450); }
.uc-visual .msgs time { position: absolute; right: .85em; bottom: .35em; color: #8f90ad; font-size: .68em; }
.uc-visual .tag { display: block; margin-bottom: .2em; color: #b29cff; font-size: .74em; font-weight: 700; }
.uc-visual .bot .tag { color: #22ccff; }
.uc-visual .msgs .typing { display: flex; align-self: flex-start; gap: .28em; padding: .65em .85em; }
.typing span { width: .42em; height: .42em; border-radius: 50%; background: #d8ccff; animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { display: flex; align-items: center; justify-content: space-between; flex: none; height: 2.7em; margin: 0 1em 1em; padding: 0 .4em 0 .9em; border: 1px solid var(--uline); border-radius: .8em; background: rgba(4, 7, 20, .6); color: #8f90ad; font-size: .82em; }
.composer i { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(108deg, #126acb, #7a3cff 52%, #b723b7); }

.phone { position: absolute; z-index: 3; right: 0; bottom: 0; width: 31%; aspect-ratio: 9 / 18.6; padding: .5em; border-radius: 2.3em; font-size: clamp(6px, 1.5cqw, 10px); line-height: 1.35; color: #f5f5ff;
  background: linear-gradient(150deg, #2b2a52, #0d0c22 40%, #1d1340); border: 1px solid rgba(210, 200, 255, .22);
  box-shadow: inset 0 1px 0 #ffffff30, 0 40px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(122, 60, 255, .25);
  transform: translateY(calc((1 - var(--enter)) * 140px)); opacity: calc(.15 + var(--enter) * .85); }
.phone-screen { display: flex; flex-direction: column; gap: .7em; height: 100%; padding: 1em .75em; overflow: hidden; border-radius: 1.9em; border: 1px solid #ffffff10;
  background: radial-gradient(ellipse at 50% 0, rgba(122, 60, 255, .22), transparent 60%), linear-gradient(#0b0a24, #060515); }
.phone-head { display: flex; align-items: center; gap: .5em; }
.phone-head img { width: 1.9em; }
.phone-head strong { font-family: var(--display); font-size: 1.1em; font-weight: 600; }
.online-dot { width: .55em; height: .55em; margin-left: auto; border-radius: 50%; background: #3ee48a; box-shadow: 0 0 8px #3ee48a; }
.phone-conv { display: flex; align-items: center; gap: .55em; padding-bottom: .7em; border-bottom: 1px solid var(--uline); }
.phone .msgs { padding: 0; gap: .5em; }
.phone .msgs li { max-width: 90%; font-size: .86em; }
.phone .composer { margin: 0; }

.channel { position: absolute; z-index: 4; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; --glass-fill: rgba(10, 10, 32, .65); animation: float 6s ease-in-out infinite; }
.channel .icon { width: 1.5rem; height: 1.5rem; }
.channel.ch-wa { left: -1%; top: 46%; color: #47e07f; }
.channel.ch-ig { left: 16%; top: -1%; color: #ff6fae; animation-delay: -1.5s; }
.channel.ch-fb { right: 4%; top: 1%; color: #5b9dff; animation-delay: -3s; }
.channel.ch-tg { left: 9%; bottom: 3%; color: #46b8f2; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .36rem .8rem; border-radius: 999px; border: 1px solid rgba(var(--accent), .35); background: rgba(var(--accent), .08); color: rgb(var(--accent)); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.chip .icon { width: .95rem; height: .95rem; }

html[data-effects="paused"] .fx-loop, html[data-effects="paused"] .fx-loop * { animation-play-state: paused !important; }

/* Desenhos que se revelam: [data-draw] recebe --draw (0 a 1) de scenes.js; sem JS vale 1. */
[data-draw] { --draw: 1; }
.reveal-x { clip-path: inset(-40px calc((1 - var(--draw)) * (100% + 40px) - 40px) -40px -40px); }
.reveal-y { clip-path: inset(-40px -40px calc((1 - var(--draw)) * (100% + 40px) - 40px) -40px); }
.reveal-r { clip-path: circle(calc(var(--draw) * 75%) at 50% 50%); }
.scenes-on [data-depth] { translate: 0 calc((var(--progress) - .5) * var(--depth, 0) * 1px); }

@media (prefers-reduced-motion: reduce) { .typing span { display: none; } }

/* Painel de LED ilustrativo (canvas animado por assets/js/led-matrix.js), usado na home e na página de publicidade. */
.led-stage { position: relative; }
.led-panel { position: relative; aspect-ratio: 32 / 9; padding: clamp(6px, 1vw, 12px); border-radius: 16px; background: linear-gradient(#1b1a33, #09081a); border: 1px solid #ffffff1c;
  box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 #ffffff1c, 0 30px 80px rgba(122, 60, 255, .28), 0 0 140px rgba(0, 200, 255, .12); }
.led-canvas { display: block; width: 100%; height: 100%; border-radius: 8px; background-color: #05040c;
  background-image: radial-gradient(circle, rgba(120, 110, 190, .2) 0 1.6px, transparent 2.2px); background-size: 10px 10px; }
.led-stand { display: flex; justify-content: space-between; width: 46%; height: clamp(40px, 6vw, 70px); margin-inline: auto; }
.led-stand span { width: clamp(8px, 1vw, 12px); background: linear-gradient(90deg, #1a1830, #3a3760 50%, #13122a); border-radius: 0 0 3px 3px; }
.led-floor { position: absolute; left: 5%; right: 5%; bottom: -24px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(122, 60, 255, .5), rgba(0, 200, 255, .12) 50%, transparent 70%); filter: blur(22px); pointer-events: none; }
.led-outline { position: absolute; z-index: 2; left: -5px; top: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; pointer-events: none; }
.led-outline rect { fill: none; stroke: rgba(120, 205, 255, .8); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(0, 200, 255, .7)); }
.led-stage { --local: 1; }
.led-canvas { opacity: clamp(.12, calc((var(--local) - .5) * 3), 1); }
@media (max-width: 640px) {
  .led-panel { aspect-ratio: 8 / 3; }
}

/* Perguntas frequentes (details/summary), texto de fechamento e botão grande. */
.closing { max-width: 46rem; margin: 2.25rem auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; text-align: center; }
.closing strong { color: #fff; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 3rem; }
.faq-wrap .section-head { position: sticky; top: 7.5rem; }
.faq-list { display: grid; gap: .75rem; }
.faq { border-radius: 1.1rem; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; font-family: var(--display); font-size: 1.05rem; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: #b29cff; transition: transform .3s var(--ease); }
.faq[open] { border-color: rgba(178, 156, 255, .35); }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq p { padding: 0 1.35rem 1.25rem; color: #d6d6e8; line-height: 1.75; }
.button-large { min-height: 3.75rem; padding: 1rem 2rem; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1080px) { .faq-wrap .section-head { position: static; } }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 640px) { .button-large { width: 100%; padding-inline: 1rem; font-size: .9rem; } }
