/* SERVIÇOS: demos (dono: dev-3d-motion-web). Estrutura/sticky dos capítulos vem de home.css. */
[data-demo] { perspective: 1200px; }
/* rótulo A/B/C numa só linha (a coluna do texto tem ~.8fr; "C — CONTEÚDO" tem 12 caracteres mono) */
@media (min-width: 901px) { .svc-text .num { font-size: clamp(2rem, 2.4vw, 3rem); white-space: nowrap; } }
.d-stage { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; }
.ex { position: absolute; top: -26px; right: 0; z-index: 4; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); border: 1px dashed rgba(255,255,255,.28); border-radius: 999px; padding: .4em .9em; }
.svc-text h3 .hw { padding-bottom: .12em; margin-bottom: -.12em; }
.svc-text h3 .hwi { will-change: transform; }

/* demo 1: navegador */
.d-browser::before, .d-phone::before { content: ""; position: absolute; inset: 10% 6%; background: radial-gradient(closest-side, rgba(10,92,255,.26), transparent); z-index: 0; pointer-events: none; }
.b-top { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid var(--card-line); border-bottom: 0; border-radius: 16px 16px 0 0; background: rgba(255,255,255,.05); z-index: 1; }
.b-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.b-top span { margin-left: 14px; flex: 1; max-width: 300px; font-size: .7rem; color: rgba(255,255,255,.5); background: rgba(0,0,0,.3); border-radius: 999px; padding: .45em 1em; }
.d-browser .b-body { position: absolute; top: 40px; bottom: 0; left: 0; right: 0; border: 1px solid var(--card-line); border-radius: 0 0 16px 16px; background: rgba(9,13,24,.94); overflow: hidden; box-shadow: 0 40px 80px -36px rgba(10,92,255,.5); z-index: 1; }
.pg { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pg s, .pg b, .pg u { display: block; text-decoration: none; }
.pg-nav { display: flex; align-items: center; gap: 12px; height: 26px; flex: none; }
.pg-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); margin-right: auto; }
.pg-nav span { width: 38px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.pg-nav u { width: 62px; height: 22px; border-radius: 999px; background: var(--blue-dark); }
.pg-hero { flex: 1.3 1 0; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 14px; align-items: center; }
.pg-hero > div { display: grid; gap: 10px; }
.pg-hero s { height: 14px; border-radius: 4px; background: rgba(255,255,255,.85); }
.pg-hero s.short { width: 55%; background: rgba(255,255,255,.3); height: 8px; }
.pg-hero u { width: 90px; height: 26px; border-radius: 999px; background: var(--blue); }
.pg-hero img { width: 100%; height: 100%; min-height: 0; max-height: 100%; align-self: stretch; object-fit: cover; object-position: center 25%; border-radius: 12px; border: 1px solid var(--card-line); }
.pg-cards { flex: .7 1 0; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-cards > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.04); display: grid; align-content: start; gap: 8px; }
.pg-cards b { width: 22px; height: 22px; border-radius: 6px; background: rgba(45,140,255,.5); }
.pg-cards s { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.pg-cta { flex: none; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(45,140,255,.5); border-radius: 12px; padding: 12px 14px; background: rgba(10,92,255,.14); }
.pg-cta s { width: 40%; height: 10px; border-radius: 4px; background: rgba(255,255,255,.7); }
.pg-cta u { width: 70px; height: 24px; border-radius: 999px; background: var(--blue); }
.crm { position: absolute; inset: 0; padding: 18px; background: #0a0f1c; display: flex; flex-direction: column; gap: 8px; visibility: hidden; }
.crm-h { font-size: .72rem; letter-spacing: .18em; color: var(--blue-dark); margin: 0 0 8px; }
.crm .row { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 10px; align-items: center; font-size: clamp(.7rem, .95vw, .85rem); padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.crm .row:not(.head) { flex: 1 1 0; min-height: 0; max-height: 68px; }
.crm-foot { margin-top: auto; flex: none; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.crm-foot b { font-family: var(--f-title); font-size: 1.5rem; letter-spacing: 0; color: #fff; margin-right: .3em; font-weight: 500; }
.crm-foot .ghost { margin-left: auto; opacity: .6; }
.crm .row.head { border: 0; background: none; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); padding-block: .2em; }
.crm .row em { font-style: normal; font-size: .72em; padding: .35em .8em; border-radius: 999px; justify-self: start; white-space: nowrap; }
.s1 { background: rgba(45,140,255,.2); color: #8fc2ff; } .s2 { background: rgba(255,255,255,.1); color: #fff; } .s3 { background: var(--blue); color: #fff; }

/* demo 2: celular com atendimento */
.phone { position: relative; z-index: 1; height: 100%; aspect-ratio: 9/18; max-width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 36px; background: #090d18; padding: 12px; display: flex; flex-direction: column; box-shadow: 0 40px 80px -36px rgba(10,92,255,.55), inset 0 0 0 5px #0f1424; }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 12px 6px 14px; border-bottom: 1px solid var(--line); }
.ph-top b { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--f-title); }
.ph-top strong { display: block; font-size: .9rem; line-height: 1.1; } .ph-top small { font-size: .6rem; letter-spacing: .14em; color: var(--blue-dark); text-transform: uppercase; }
.chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(8px, 1.5vh, 14px); padding: 16px 4px 4px; } /* conversa cresce de cima para baixo: a metade de cima do celular nunca fica vazia */
.m { position: relative; margin: 0; max-width: 86%; padding: .65em .9em; border-radius: 16px; font-size: clamp(.78rem, 1.05vw, 1rem); line-height: 1.4; }
.m.in { align-self: flex-start; background: rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.m.out { align-self: flex-end; background: var(--blue); border-bottom-right-radius: 4px; }
.dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .4; animation: dots 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { opacity: 1; } }
.note { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(45,140,255,.55); background: rgba(10,92,255,.14); border-radius: 12px; padding: .7em .9em; font-size: clamp(.62rem, .75vw, .74rem); letter-spacing: .1em; text-transform: uppercase; }
.note i { width: 8px; height: 8px; border-radius: 50%; background: #5cffb0; box-shadow: 0 0 10px #5cffb0; flex: none; }

/* demo 3: celular 9:16 com publicações da ezAI + linha do tempo + leque de slides */
.d-edit { flex-direction: column; gap: 14px; align-items: stretch; justify-content: flex-start; }
.ed-main { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 3vw, 40px); align-items: center; }
.phone9 { position: relative; height: 100%; max-height: 100%; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 40px 80px -36px rgba(10,92,255,.55), inset 0 0 0 4px #0f1424; background: #0f1424; }
.phone9 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.phone9 img.on { opacity: 1; }
.fan { position: relative; height: 100%; min-width: 0; }
.fan img { position: absolute; top: 50%; left: 50%; width: min(44%, 200px); height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; border: 1px solid var(--card-line); box-shadow: 0 24px 50px -18px rgba(0,0,0,.8); translate: -50% -50%; transform-origin: 50% 110%; }
.fan img:nth-child(1) { rotate: -9deg; margin-left: -27%; }
.fan img:nth-child(2) { z-index: 2; }
.fan img:nth-child(3) { rotate: 9deg; margin-left: 27%; }
.tl { position: relative; flex: none; height: 92px; border: 1px solid var(--card-line); border-radius: 12px; background: rgba(255,255,255,.04); padding: 10px; display: grid; gap: 8px; }
.tl-track { display: flex; gap: 4px; height: 30px; }
.tl-track.v b { flex: 1; display: flex; align-items: center; padding-left: .8em; border-radius: 6px; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; background: rgba(10,92,255,.28); border: 1px solid rgba(45,140,255,.4); color: rgba(255,255,255,.7); overflow: hidden; white-space: nowrap; transition: background .3s, color .3s; }
.tl-track.v b.on { background: var(--blue); color: #fff; }
.tl-track.a { border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 6px); opacity: .45; }
.playhead { position: absolute; top: 4px; bottom: 4px; left: 10px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; border-radius: 1px; will-change: transform; }

@media (max-width: 900px) { .phone { aspect-ratio: auto; width: min(100%, 270px); } .m { font-size: .74rem; padding: .5em .75em; line-height: 1.35; } .chat { gap: 6px; padding-top: 10px; } .ph-top { padding: 8px 6px 10px; } .note { padding: .5em .7em; font-size: .58rem; } .ex { top: -22px; } .tl { height: 76px; } .tl-track { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .dots { display: none; } }
/* mobile: o demo cabe na tela junto do texto (100svh do sticky) */
@media (max-width: 900px) { .chap-in [data-demo] { height: min(46svh, 440px); min-height: 270px; margin-top: 30px; } }
@media (max-width: 900px) and (max-height: 640px) { .chap-in [data-demo] { height: 42svh; min-height: 220px; } }
/* demo 01 no mobile: sem a coluna Origem, linhas compactas, rodapé pequeno */
@media (max-width: 900px) {
  .crm { padding: 12px; gap: 5px; }
  .crm-h { margin-bottom: 2px; }
  .crm .row:not(.head) { padding: .3em .7em; }
  .crm-foot { padding-top: 8px; gap: 4px 16px; font-size: .58rem; } .crm-foot b { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .crm .row { grid-template-columns: 1fr auto; } .crm .row > span:nth-child(2) { display: none; }
}

/* demo D: SEO e GEO (navegador com busca estilizada, sem logo de terceiros): busca com resposta em Modo IA -> auditoria SEO x GEO -> plano de ação */
.sq, .sa, .sp { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sa, .sp { background: #0a0f1c; visibility: hidden; }
.sa { flex-direction: row; gap: 14px; }
.sa-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sa-col .crm-h { margin: 0; flex: none; }
.sq-bar { flex: none; display: flex; align-items: center; gap: 10px; border: 1px solid var(--card-line); border-radius: 999px; padding: .5em 1em; background: rgba(255,255,255,.05); font-size: .78rem; color: rgba(255,255,255,.75); }
.sq-bar b { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue-dark); flex: none; }
.ai-wrap { flex: none; display: grid; grid-template-rows: 0fr; }
.ai-in { min-height: 0; overflow: hidden; }
.ai { flex: none; display: grid; gap: 7px; border: 1px solid rgba(45,140,255,.5); border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, rgba(10,92,255,.2), rgba(255,255,255,.04)); }
.ai-badge { justify-self: start; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: .3em .8em; border-radius: 999px; background: var(--blue); color: #fff; }
.ai p { margin: 0; max-width: none; font-size: clamp(.74rem, .95vw, .88rem); line-height: 1.45; color: rgba(255,255,255,.85); }
.ai small { font-size: .56rem; letter-spacing: .06em; color: var(--gray); text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-hit { flex: none; display: grid; gap: 3px; min-width: 0; opacity: .85; }
.sq-hit small { font-size: .6rem; letter-spacing: .06em; color: var(--gray); text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-hit strong { font: 500 clamp(.9rem, 1.25vw, 1.15rem)/1.25 var(--f-title); color: #8fc2ff; }
.sq-hit p { margin: 0; font-size: clamp(.7rem, .9vw, .82rem); line-height: 1.4; color: rgba(255,255,255,.6); max-width: none; }
.sq-note { flex: none; align-self: flex-start; margin: 0; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #ffc861; border: 1px dashed rgba(255,200,97,.45); border-radius: 999px; padding: .4em 1em; }
.sq-list { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.sq-list li, .pl { flex: 1 1 0; min-height: 0; max-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .8em; background: rgba(255,255,255,.03); font-size: clamp(.68rem, .9vw, .82rem); line-height: 1.25; }
.sq-list li span, .pl span { min-width: 0; }
.sq-list em, .pl em { font-style: normal; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; white-space: nowrap; flex: none; }
.sk-ok { background: rgba(92,255,176,.16); color: #5cffb0; } .sk-w { background: rgba(255,200,97,.16); color: #ffc861; } .sk-b { background: rgba(255,110,110,.16); color: #ff8f8f; }
.pl { flex-direction: row-reverse; justify-content: flex-end; gap: 14px; max-height: 100px; font-size: clamp(.8rem, 1.1vw, 1rem); }
.sp { gap: 14px; } .sp .crm-h { margin-bottom: 0; } .sp .crm-foot { margin-top: auto; }
.d-seo.is-static .b-body { display: flex; flex-direction: column; overflow: auto; }
.d-seo.is-static .sq, .d-seo.is-static .sa, .d-seo.is-static .sp { position: static; visibility: visible; flex: none; }
.d-seo.is-static .sq-bar { display: none; }
.d-seo.is-static .ai-wrap { grid-template-rows: 1fr; }
@media (max-width: 900px) {
  .sq, .sa, .sp { padding: 10px 12px; gap: 6px; }
  .sa { gap: 8px; }
  .sq-bar { font-size: .66rem; padding: .3em .9em; }
  .ai { padding: 8px 10px; gap: 4px; } .ai p { font-size: .66rem; line-height: 1.35; } .ai small { font-size: .5rem; }
  .sq-hit p { display: none; } .sq-hit strong { font-size: .78rem; }
  .sq-list { gap: 4px; }
  .sq-list li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; font-size: .62rem; padding: 0 .6em; }
  .pl { font-size: .68rem; } .sq-list em, .pl em { font-size: .52rem; padding: .25em .6em; }
}

/* demo C: o leque de miniaturas ficou minusculo ao lado do quadro 4:5 (28x33 px); some, e o quadro fica centralizado */
.ed-main { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.fan { display: none; }
