/* =========================================================
   Serviços · uma cena animada por cartão (21/11)
   Usa o mesmo motor das cenas do processo (js/movimento.js):
   peça com data-s="n" ganha .on no passo n; data-ate="n" ganha
   .fora depois do passo n. Roda só com o cartão na tela.
   ========================================================= */

/* ---------- Painel ---------- */
.sv-cena {
  position: relative; order: 1; height: 150px; margin: .3rem 0 .5rem;
  border-radius: 16px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(199, 243, 107, .1), transparent 60%), #0e1829;
  border: 1px solid rgba(200, 214, 235, .1);
  color: #dfe7f3; font-size: .62rem; line-height: 1.3;
}
.v-estudio .sv > h3, .v-estudio .sv > p, .v-estudio .sv > .sv-sai { order: 2; }
.sv-cena .ic { flex: none; }
.sc-agente { height: 190px; }

/* Cartões largos (1 e 4): a cena vai para a coluna da direita */
@media (min-width: 1100px) {
  .v-estudio .sv:nth-child(1), .v-estudio .sv:nth-child(4) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 40%);
    grid-template-rows: auto auto auto 1fr; column-gap: 2rem; row-gap: .6rem; align-content: start;
  }
  .v-estudio .sv:nth-child(1) > :not(.sv-cena), .v-estudio .sv:nth-child(4) > :not(.sv-cena) { grid-column: 1; }
  .v-estudio .sv:nth-child(1) .sv-sai, .v-estudio .sv:nth-child(4) .sv-sai { align-self: end; }
  .v-estudio .sv:nth-child(1) .sv-cena, .v-estudio .sv:nth-child(4) .sv-cena { grid-column: 2; grid-row: 1 / -1; align-self: center; height: 250px; margin: 1.2rem 0 0; }
  .v-estudio .sv:nth-child(1) .sc-cards i { height: 42px; }
  .v-estudio .sv:nth-child(1) .sc-corpo { gap: 9px; padding: 12px; }
}

/* ---------- Entrada padrão das peças ---------- */
.js .sv-cena [data-s] { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.js .sv-cena [data-s].on { opacity: 1; transform: none; }
.js .sv-cena [data-ate].fora { opacity: 0; transform: scale(.96); }
.js .sv-cena.zerando [data-s] { transition-duration: .3s; }

/* ---------- 01 · Sites: a página se monta e aparece no Google ---------- */
.sc-jan { position: absolute; left: 14px; top: 14px; bottom: 14px; width: 60%; border-radius: 10px; background: #13213a; border: 1px solid rgba(200, 214, 235, .12); overflow: hidden; }
.sc-barra { display: flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(200, 214, 235, .08); }
.sc-barra i { width: 5px; height: 5px; border-radius: 50%; background: rgba(200, 214, 235, .3); }
.sc-barra span { margin-left: 6px; font-family: var(--f-mono); font-size: .5rem; color: #9aaac2; white-space: nowrap; }
.sc-corpo { display: flex; flex-direction: column; gap: 6px; padding: 9px; }
.sc-nav { display: flex; align-items: center; gap: 5px; }
.sc-nav b { width: 20px; height: 6px; border-radius: 3px; background: #c7f36b; margin-right: auto; }
.sc-nav i { width: 12px; height: 4px; border-radius: 2px; background: rgba(200, 214, 235, .25); }
.sc-tit { width: 78%; height: 8px; border-radius: 4px; background: #e6edf7; }
.sc-sub { width: 55%; height: 5px; border-radius: 3px; background: rgba(200, 214, 235, .3); }
.sc-bt { width: 36px; height: 11px; border-radius: 6px; background: #c7f36b; }
.sc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sc-cards i { height: 22px; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(200, 214, 235, .08); }
.sc-busca, .sc-rank { position: absolute; right: 12px; display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.sc-busca { top: 26%; background: #1c2b45; border: 1px solid rgba(200, 214, 235, .16); color: #dfe7f3; font-weight: 600; }
.sc-busca .ic { width: 12px; height: 12px; color: #9aaac2; }
.sc-rank { top: 54%; background: #c7f36b; color: #101d32; box-shadow: 0 10px 24px -10px rgba(199, 243, 107, .7); }
.sc-rank .ic { width: 13px; height: 13px; }
.js .sc-site .sc-busca[data-s] { transform: translateX(12px); }
.js .sc-site .sc-rank[data-s] { transform: scale(.8); transition: opacity .3s var(--ease), transform .55s cubic-bezier(.3, 1.45, .55, 1); }
.js .sc-site [data-s].on { transform: none; }

/* ---------- 02 · Landing pages: rola, compra, Pix aprovado ---------- */
.sc-cel { position: absolute; left: 16px; top: 12px; bottom: -22px; width: 86px; border-radius: 16px; background: #13213a; border: 2px solid rgba(200, 214, 235, .2); }
.sc-cel-tela { position: absolute; inset: 6px 6px 0; border-radius: 10px 10px 0 0; overflow: hidden; }
.sc-rolo { display: flex; flex-direction: column; gap: 6px; transition: transform .8s var(--ease-io); }
.sc-hero { height: 36px; border-radius: 7px; background: linear-gradient(135deg, #c7f36b, #6a9e1a); }
.sc-video { display: grid; place-items: center; height: 32px; border-radius: 7px; background: #0b1220; color: #c7f36b; }
.sc-video .ic { width: 13px; height: 13px; }
.sc-estrelas { display: flex; gap: 1px; color: #c7f36b; }
.sc-estrelas .ic { width: 9px; height: 9px; }
.sc-linha { height: 4px; border-radius: 2px; background: rgba(200, 214, 235, .25); }
.sc-linha.curta { width: 60%; }
.sc-lp:has(.sc-gatilho[data-s="1"].on) .sc-rolo { transform: translateY(-30px); }
.sc-lp:has(.sc-gatilho[data-s="2"].on) .sc-rolo { transform: translateY(-62px); }
.sc-gatilho { display: none; }
.sc-comprar { position: absolute; left: 8px; right: 8px; bottom: 32px; padding: 5px 0; border-radius: 7px; background: #c7f36b; color: #101d32; font-weight: 800; font-size: .56rem; text-align: center; }
.js .sc-lp .sc-comprar.on { animation: scAperta .5s .55s var(--ease); }
@keyframes scAperta { 40% { transform: scale(.88); box-shadow: 0 0 0 5px rgba(199, 243, 107, .25); } }
.sc-toast { position: absolute; left: 118px; right: 12px; top: 26px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; background: #1c2b45; border: 1px solid rgba(200, 214, 235, .14); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.sc-toast-2 { top: 80px; }
.sc-toast .ic { width: 18px; height: 18px; color: #c7f36b; }
.sc-toast b { display: block; font-size: .64rem; color: #f7faff; }
.sc-toast small { display: block; font-size: .56rem; color: #9aaac2; }
.js .sc-lp .sc-toast[data-s] { transform: translateX(16px); }
.js .sc-lp .sc-toast[data-s].on { transform: none; }

/* ---------- 03 · Áreas de membros: login, cadeado abre, acesso liberado ---------- */
.sc-form { position: absolute; left: 14px; top: 12px; bottom: 12px; width: 46%; max-width: 170px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: #13213a; border: 1px solid rgba(200, 214, 235, .12); }
.sc-cadeado { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 2px; border-radius: 50%; background: rgba(199, 243, 107, .14); color: #c7f36b; }
.sc-cadeado .ic { grid-area: 1 / 1; width: 13px; height: 13px; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.45, .55, 1); }
.sc-aberto { opacity: 0; transform: scale(.7); }
.sc-login:has(.sc-liberado.on) .sc-fechado { opacity: 0; transform: scale(.7); }
.sc-login:has(.sc-liberado.on) .sc-aberto { opacity: 1; transform: none; }
.sc-campo { display: flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(200, 214, 235, .1); overflow: hidden; }
.sc-dig { font-style: normal; font-family: var(--f-mono); font-size: .54rem; color: #dfe7f3; white-space: nowrap; }
.sc-senha { letter-spacing: .08em; }
.js .sv-cena .sc-dig[data-s] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path .7s steps(15, end); }
.js .sv-cena .sc-dig[data-s].on { clip-path: inset(0); }
.sc-entrar { padding: 4px 0; border-radius: 6px; background: #c7f36b; color: #101d32; font-weight: 800; font-size: .56rem; text-align: center; }
.js .sc-login .sc-entrar.on { animation: scAperta .5s .5s var(--ease); }
.sc-liberado { position: absolute; right: 12px; top: 22%; display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #c7f36b; color: #101d32; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(199, 243, 107, .7); }
.sc-liberado .ic { width: 13px; height: 13px; }
.js .sc-login .sc-liberado[data-s] { transform: scale(.8); transition: opacity .3s var(--ease), transform .55s cubic-bezier(.3, 1.45, .55, 1); }
.js .sc-login .sc-liberado[data-s].on { transform: none; }
.sc-mods { position: absolute; right: 12px; top: 52%; display: flex; flex-direction: column; gap: 5px; }
.sc-mods span { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: #1c2b45; border: 1px solid rgba(200, 214, 235, .12); font-weight: 600; white-space: nowrap; }
.sc-mods i { width: 6px; height: 6px; border-radius: 50%; background: #c7f36b; box-shadow: 0 0 6px #c7f36b; }

/* ---------- 04 · Agentes de IA: pergunta, consulta, resposta, cota ---------- */
.sc-agente { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.sc-chat-topo { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; border-bottom: 1px solid rgba(200, 214, 235, .08); }
.sc-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(199, 243, 107, .14); color: #c7f36b; }
.sc-av .ic { width: 14px; height: 14px; }
.sc-chat-topo b { font-size: .64rem; color: #f7faff; }
.sc-chat-topo em { display: flex; align-items: center; gap: 4px; margin-left: auto; font-style: normal; font-size: .54rem; color: #9aaac2; }
.sc-chat-topo em i { width: 5px; height: 5px; border-radius: 50%; background: #3ddc84; }
.sc-msgs { position: relative; flex: 1; display: grid; grid-template-rows: auto 22px auto; align-content: center; gap: 6px; }
.sc-msg { max-width: 82%; padding: 6px 9px; border-radius: 10px; }
.sc-eu { justify-self: end; background: #c7f36b; color: #101d32; font-weight: 600; border-bottom-right-radius: 3px; }
.sc-ia { grid-row: 3; justify-self: start; background: #1c2b45; border: 1px solid rgba(200, 214, 235, .12); border-bottom-left-radius: 3px; }
.sc-digitando, .sc-doc { grid-row: 2; grid-column: 1; justify-self: start; align-self: center; }
.sc-digitando { display: flex; gap: 3px; padding: 7px 9px; border-radius: 10px; background: #1c2b45; }
.sc-digitando i { width: 4px; height: 4px; border-radius: 50%; background: #9aaac2; }
.sc-digitando.on i { animation: scPula 1s ease-in-out infinite; }
.sc-digitando i:nth-child(2) { animation-delay: .15s !important; }
.sc-digitando i:nth-child(3) { animation-delay: .3s !important; }
@keyframes scPula { 30% { transform: translateY(-3px); opacity: 1; } 0%, 60%, 100% { opacity: .5; } }
.sc-doc { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; border: 1px dashed rgba(199, 243, 107, .45); font-family: var(--f-mono); font-size: .54rem; color: #c7f36b; }
.sc-doc .ic { width: 11px; height: 11px; }
.sc-cota { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(200, 214, 235, .08); font-size: .54rem; color: #9aaac2; }
.sc-cota b { position: relative; flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sc-cota b i { position: absolute; left: 0; top: 0; bottom: 0; width: 13%; border-radius: 3px; background: #c7f36b; transform-origin: 0 50%; }
.js .sv-cena .sc-cota i[data-s] { opacity: 1; transform: scaleX(0); transition: transform .9s var(--ease-io); }
.js .sv-cena .sc-cota i[data-s].on { transform: scaleX(1); }
.sc-cota small { font-family: var(--f-mono); font-size: .54rem; color: #dfe7f3; }

/* ---------- 05 · Skills e prompts: o leque abre e um prompt é copiado ---------- */
.sc-leque { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; }
.js .sv-cena .sc-leque[data-s] { opacity: 1; transform: none; }
.sc-carta { position: absolute; left: calc(50% - 36px); top: calc(50% - 46px); width: 72px; height: 92px; display: flex; flex-direction: column; gap: 6px; padding: 9px 8px; border-radius: 10px; background: #1c2b45; border: 1px solid rgba(200, 214, 235, .16); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .8); transform-origin: 50% 120%; transition: transform .7s cubic-bezier(.3, 1.3, .55, 1), border-color .3s, background-color .3s; }
.sc-carta b { font-family: var(--f-mono); font-size: .52rem; color: #c7f36b; }
.sc-carta i { height: 4px; border-radius: 2px; background: rgba(200, 214, 235, .25); }
.sc-carta i + i { width: 65%; }
.sc-leque.on .c1 { transform: translateX(-30px) rotate(-14deg); }
.sc-leque.on .c3 { transform: translateX(30px) rotate(14deg); }
.sc-leque .c2 { z-index: 1; }
.sc-skills:has(.sc-brilho.on) .c2 { transform: translateY(-8px); border-color: #c7f36b; background: #22334f; }
.sc-brilho { position: absolute; left: calc(29% + 26px); top: 14px; z-index: 2; color: #c7f36b; }
.sc-brilho .ic { width: 18px; height: 18px; }
.js .sc-skills .sc-brilho[data-s] { transform: scale(.4) rotate(-40deg); transition: opacity .3s var(--ease), transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.js .sc-skills .sc-brilho[data-s].on { transform: none; }
.sc-copiar, .sc-copiado { position: absolute; right: 16px; top: calc(50% - 14px); display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.sc-copiar { background: #1c2b45; border: 1px solid rgba(200, 214, 235, .16); color: #dfe7f3; }
.sc-copiado { background: #c7f36b; color: #101d32; box-shadow: 0 10px 24px -10px rgba(199, 243, 107, .7); }
.sc-copiar .ic, .sc-copiado .ic { width: 13px; height: 13px; }
.js .sc-skills .sc-copiado[data-s] { transform: scale(.85); transition: opacity .25s var(--ease), transform .5s cubic-bezier(.3, 1.45, .55, 1); }
.js .sc-skills .sc-copiado[data-s].on { transform: none; }

/* ---------- 06 · Integrações: a venda acende os fios até cada app ---------- */
.sc-fios { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-fio { fill: none; stroke: rgba(200, 214, 235, .2); stroke-width: 2; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.sc-luz { stroke: #c7f36b; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(199, 243, 107, .7)); }
.js .sv-cena .sc-luz[data-s] { opacity: 1; transform: none; transition: stroke-dashoffset .75s var(--ease-io); }
.js .sv-cena .sc-luz[data-s].on { stroke-dashoffset: 0; }
.sc-no { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 11px; background: #1c2b45; border: 1px solid rgba(200, 214, 235, .18); color: #dfe7f3; transition: border-color .3s, box-shadow .3s, color .3s; }
.sc-no .ic { width: 16px; height: 16px; }
.sc-origem { left: 16.67%; top: 50%; }
.sc-hub { left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; }
.a1 { left: 83.33%; top: 18.33%; }
.a2 { left: 83.33%; top: 50%; }
.a3 { left: 83.33%; top: 81.67%; }
.sc-origem small { position: absolute; top: calc(100% + 5px); left: 50%; margin-left: -22px; width: 44px; padding: 2px 0; border-radius: 999px; background: #c7f36b; color: #101d32; font-size: .52rem; font-weight: 800; text-align: center; }
.sc-int:has(.sc-origem small.on) .sc-origem,
.sc-int:has(.sc-luz.on) .sc-hub { border-color: #c7f36b; color: #c7f36b; box-shadow: 0 0 0 5px rgba(199, 243, 107, .12); }
.sc-int:has(em.on) .sc-alvo { border-color: rgba(199, 243, 107, .6); }
.sc-alvo em { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #c7f36b; color: #101d32; }
.sc-alvo em .ic { width: 9px; height: 9px; }
.js .sc-int .sc-alvo em[data-s] { transform: scale(.3); transition: opacity .25s var(--ease), transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.js .sc-int .sc-alvo em[data-s].on { transform: none; }
.js .sc-int .a2 em[data-s] { transition-delay: .12s; }
.js .sc-int .a3 em[data-s] { transition-delay: .24s; }

/* ---------- Movimento reduzido: quadro final, parado ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .sv-cena [data-s], .js .sv-cena [data-ate] { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .js .sv-cena .sc-dig[data-s] { clip-path: none; }
  .sc-digitando, .sc-copiar { display: none !important; }
  .sc-lp .sc-rolo { transform: translateY(-62px); }
  .sc-login .sc-fechado { opacity: 0; }
  .sc-login .sc-aberto { opacity: 1; transform: none; }
  .sc-leque .c1 { transform: translateX(-30px) rotate(-14deg); }
  .sc-leque .c3 { transform: translateX(30px) rotate(14deg); }
  .sc-luz { stroke-dashoffset: 0 !important; }
}

/* Celular: leque de prompts menor para não encostar no "Copiado" */
@media (max-width: 520px) {
  .sc-leque, .js .sv-cena .sc-leque[data-s] { width: 56%; transform: scale(.82); transform-origin: 45% 50%; }
  .sc-brilho { left: calc(26% + 18px); }
  .sc-copiar, .sc-copiado { right: 12px; }
}
