/* Celulares da seção "O que fazemos". Quatro telas com mídia real (manual da Zaya e sites já públicos da agência), sem número.
   Estado padrão = primeira mídia (aparelho parado). O cel.js só move transform e opacity, com a rolagem. */

/* ---------- tamanho: tudo em em; --fs é o corpo do aparelho ---------- */
.pecas{--fs:11px}
.cel-wrap{position:relative;height:calc(var(--fs)*19);margin:0 auto 12px;overflow:hidden;pointer-events:none;
  }
.cel{position:relative;width:13em;height:27em;margin:0 auto;font-size:var(--fs);line-height:1.2;font-weight:600;color:#141312;
  background:#141312;border-radius:3.2em;outline:.1em solid rgba(242,238,232,.3)}
.cel::before{content:"";position:absolute;left:-.22em;top:5.2em;width:.22em;height:2.6em;background:#141312;border-radius:.12em 0 0 .12em}
.cel::after{content:"";position:absolute;right:-.22em;top:7em;width:.22em;height:3.8em;background:#141312;border-radius:0 .12em .12em 0}

/* tela */
.cs{position:absolute;inset:.45em;border-radius:2.75em;overflow:hidden;background:#F2EEE8;padding:2.5em .95em 0;pointer-events:auto;touch-action:pan-y;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.cs::before{content:"";position:absolute;top:.6em;left:50%;width:3.4em;height:.95em;margin-left:-1.7em;background:#141312;border-radius:1em;z-index:3}
.cs i{display:block;font-style:normal}
.bar{height:.55em;border-radius:.3em;background:rgba(20,19,18,.14);transform-origin:left}
.cs [data-m=sx]{transform-origin:left}

/* ---------- peças comuns da interação ---------- */
/* anel de toque (automático e real) e anel de dica */
.cs .toque,.cs .tq{position:absolute;left:0;top:0;width:2.4em;height:2.4em;border:.13em solid #5B2333;border-radius:50%;opacity:0;pointer-events:none;z-index:6}
.cs .vela{position:absolute;left:0;right:0;top:1.8em;bottom:0;z-index:5;background:#F2EEE8;opacity:0;pointer-events:none}
.cs .dica{position:absolute;left:50%;top:50%;width:2.4em;height:2.4em;margin:-1.2em 0 0 -1.2em;border:.12em solid #5B2333;border-radius:50%;opacity:0;pointer-events:none;z-index:6}
.cel-on .pecas>li.on .cs:not(.tocou) .dica{animation:pulso 2s cubic-bezier(.16,1,.3,1) infinite}
@keyframes pulso{0%{transform:scale(.5);opacity:.8}70%,100%{transform:scale(1.5);opacity:0}}
.hb{position:relative;width:1em;height:1em;color:#5B2333;pointer-events:none}
.hb::before,.hb::after{content:"";position:absolute;top:.1em;width:.5em;height:.8em;background:currentColor;border-radius:.5em .5em 0 0}
.hb::before{left:.5em;transform:rotate(-45deg);transform-origin:0 100%}
.hb::after{left:0;transform:rotate(45deg);transform-origin:100% 100%}
.cs [data-c],.cs .id-ti,.cs .po,.cs .fd-fl,.cs .si-bt{cursor:pointer}
.s1,.s3 .ab,.s3 .vp{cursor:pointer}
.s4{cursor:crosshair}

/* barra de navegação do app (5 ícones em CSS) e traço de home */
.cs .nb,.cs .sb{position:absolute;left:0;right:0;bottom:0;height:4em;z-index:3;background:#F2EEE8;border-top:.07em solid rgba(20,19,18,.14)}
.cs .nb{display:flex;justify-content:space-between;align-items:flex-start;padding:.85em 1.3em 0}
.cs .nb::after,.cs .sb::after{content:"";position:absolute;left:50%;bottom:.55em;width:4.4em;height:.2em;margin-left:-2.2em;border-radius:.2em;background:#141312}
.nb i:not(.hb){position:relative;width:1.4em;height:1.4em}
.nb .hb{color:#141312;font-size:1.4em;margin-top:.02em}
.nb i::before,.nb i::after{content:"";position:absolute}
.nb .ic1::before{left:.2em;right:.2em;bottom:.1em;height:.75em;border:.12em solid #141312;border-top:0;border-radius:0 0 .15em .15em}
.nb .ic1::after{left:.28em;top:.2em;width:.84em;height:.84em;border-left:.12em solid #141312;border-top:.12em solid #141312;transform:rotate(45deg)}
.nb .ic2::before{left:0;top:0;width:.9em;height:.9em;border:.12em solid #141312;border-radius:50%}
.nb .ic2::after{left:.8em;top:1.05em;width:.6em;height:.13em;background:#141312;transform-origin:0 50%;transform:rotate(45deg)}
.nb .ic3{border:.12em solid #141312;border-radius:.4em}
.nb .ic3::before{left:.28em;right:.28em;top:50%;height:.12em;margin-top:-.06em;background:#141312}
.nb .ic3::after{top:.28em;bottom:.28em;left:50%;width:.12em;margin-left:-.06em;background:#141312}
.nb .ic5::before{left:.42em;top:0;width:.56em;height:.56em;border:.12em solid #141312;border-radius:50%}
.nb .ic5::after{left:.1em;right:.1em;bottom:0;height:.6em;border:.12em solid #141312;border-bottom:0;border-radius:.7em .7em 0 0}
/* 01 identidade: páginas reais do manual da Zaya, em tira vertical (cada página ocupa a tela toda) */
.s1 .mp{position:absolute;left:0;top:0;width:100%;height:700%}
.s1 .mp img{display:block;width:100%;height:14.2857%;object-fit:cover}
.s1.ctl .mp{transition:transform .6s cubic-bezier(.16,1,.3,1)}

/* 02 conteúdo e redes: perfil @zayaconect, grade de peças reais e post em tela cheia */
.s2 .fd-top{display:flex;align-items:center;gap:.6em;margin-bottom:.7em}
.s2 .fd-avw{position:relative;flex:none;width:2.9em;height:2.9em}
.s2 .fd-rg{position:absolute;inset:0;border-radius:50%;border:.16em solid #5B2333;border-color:#5B2333 #5B2333 transparent transparent}
.cel-on .pecas>li.on .fd-rg{animation:giro 5s linear infinite}
@keyframes giro{to{transform:rotate(360deg)}}
.s2 .fd-av{position:absolute;left:.42em;top:.42em;width:2.06em;height:2.06em;border-radius:50%;object-fit:cover}
.s2 .fd-nm{flex:1;display:grid;gap:.45em;min-width:0;justify-items:start}
.s2 .fd-nm>b{font-weight:600;font-size:.95em;color:#141312;white-space:nowrap}
.s2 .fd-fl{position:relative;width:5em;height:1.8em;line-height:1.8em;text-align:center;border-radius:.9em;background:#141312;color:#F2EEE8;font-size:.8em;transition:background-color .3s,color .3s,outline-color .3s;outline:.1em solid #141312;outline-offset:-.1em}
.s2 .fd-fl b{font-weight:600}
.s2 .fd-fl.on{background:#F2EEE8;color:#141312}
.s2 .fd-vp{position:absolute;left:.95em;right:.95em;top:6.1em;bottom:4em;overflow:hidden}
.s2 .fd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.28em}
.s2 .po{position:relative;aspect-ratio:4/5;border-radius:.2em;overflow:hidden;background:#C8BFB2}
.s2 .po img{display:block;width:100%;height:100%;object-fit:cover}
.s2 .pv{position:absolute;inset:0;z-index:4;background:#F2EEE8;padding-top:2.5em;opacity:0;pointer-events:none;transform:scale(.92)}
.s2 .pv.on{pointer-events:auto;cursor:pointer}
.s2 .pv-h{display:flex;align-items:center;gap:.6em;padding:0 .95em .7em}
.s2 .pv-a{width:1.8em;height:1.8em;border-radius:50%;object-fit:cover}
.s2 .pv-h b{font-weight:600;font-size:.9em;color:#141312}
.s2 .pv-i{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.s2.ctl .pv{transition:opacity .35s,transform .5s cubic-bezier(.16,1,.3,1)}

/* 03 site: sites reais da Zaya rolando, barra de endereço e conversa */
.s3 .ab{position:absolute;left:.7em;right:.7em;top:2.1em;height:1.9em;z-index:2;border-radius:1em;background:#E8E2D9;display:grid;place-items:center;cursor:pointer}
.s3 .ab span{font-size:.72em;font-weight:600;line-height:1;color:#141312;white-space:nowrap}
.s3 .vp{position:absolute;left:0;right:0;top:4.4em;bottom:0;overflow:hidden;background:#F2EEE8}
.s3 .sx{position:absolute;left:0;top:0;width:100%;height:auto;display:block;will-change:transform}
.s3 .sx:not(:first-child){opacity:0}
.s3.ctl .sx{transition:opacity .4s,transform .7s cubic-bezier(.16,1,.3,1)}
.s3 .ch{position:absolute;left:0;right:0;bottom:0;height:11.8em;z-index:4;padding:1em .95em 0;border-radius:1.4em 1.4em 0 0;background:#141312;color:#141312;transform:translate3d(0,105%,0);cursor:pointer}
.s3 .ch-h{display:flex;align-items:center;gap:.6em;margin-bottom:.8em}
.s3 .ch-av{flex:none;width:1.6em;height:1.6em;border-radius:50%;background:#C8BFB2}
.s3 .ch .bar{background:rgba(242,238,232,.3)}
.s3 .ch-b{display:grid;gap:.5em}
.s3 .bl{display:block;width:fit-content;max-width:90%;font-size:.9em;line-height:1.25;padding:.5em .75em;border-radius:.9em;opacity:0}
/* verde do WhatsApp: única exceção à paleta, texto e símbolo em Nanquim */
.s3 .me{margin-left:auto;background:#25D366;color:#141312;border-bottom-right-radius:.2em}
.s3 .yo{width:6.5em;display:grid;gap:.35em;background:rgba(242,238,232,.16);border-bottom-left-radius:.2em}
.s3 .ch-in{position:absolute;left:.95em;right:.95em;bottom:1.5em;height:1.7em;border-radius:1em;outline:.08em solid rgba(242,238,232,.28);outline-offset:-.08em}
.s3 .ch-in u{position:absolute;right:.3em;top:.3em;width:1.1em;height:1.1em;border-radius:50%;background:#25D366}
.s3 .ch-in u::after{content:"";position:absolute;left:.4em;top:.3em;border-left:.4em solid #141312;border-top:.25em solid transparent;border-bottom:.25em solid transparent}
.s3.ctl .ch{transition:transform .55s cubic-bezier(.16,1,.3,1)}
.s3.ctl .bl{transition:opacity .35s .2s,transform .5s cubic-bezier(.16,1,.3,1) .2s}

/* 04 anúncio da Zaya e mira */
.s4 .ad-top{display:flex;align-items:center;gap:.55em;margin-bottom:.6em}
.s4 .ad-av{flex:none;width:1.8em;height:1.8em;border-radius:50%;object-fit:cover}
.s4 .ad-nm{display:grid;gap:.15em}
.s4 .ad-nm b{font-weight:600;font-size:.85em;color:#141312}
.s4 .ad-nm em{font-style:normal;font-weight:500;font-size:.68em;color:rgba(20,19,18,.7)}
.s4 .ad-img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:.6em;margin-bottom:.6em}
.s4 .ad-tx{display:grid;gap:.4em;margin-bottom:.7em}
.s4 .ad-bt{display:block;height:1.9em;border-radius:.6em;background:#141312;margin-bottom:.8em}
.s4 .fld{position:absolute;left:.95em;right:.95em;top:4.4em;height:12.6em;opacity:0}
.s4 .pt{position:absolute;width:.6em;height:.6em;border-radius:50%;background:#C8BFB2;transition:transform .3s cubic-bezier(.16,1,.3,1),background-color .25s}
.s4 .pt.lit{background:#5B2333;transform:scale(1.7)}
.s4 .mira{position:absolute;left:0;top:0;width:4.6em;height:4.6em;border-radius:50%;border:.1em solid #141312;pointer-events:none;opacity:0;transform:translate3d(4.3em,2.9em,0)}
.s4.ctl .mira{transition:transform .18s cubic-bezier(.16,1,.3,1)}
.s4 .mira::before,.s4 .mira::after{content:"";position:absolute;left:50%;top:50%;background:#141312}
.s4 .mira::before{width:1.3em;height:.1em;margin:-.05em 0 0 -.65em}
.s4 .mira::after{width:.1em;height:1.3em;margin:-.65em 0 0 -.05em}
.s4 .mira .dica{width:5.4em;height:5.4em;margin:-2.7em 0 0 -2.7em}
.s4 .ad-ch{position:absolute;left:.95em;right:.95em;bottom:4.7em;display:flex;align-items:flex-end;gap:.35em;height:4em;border-bottom:.07em solid rgba(20,19,18,.2)}
.s4 .ad-ch i{flex:1;height:var(--h);border-radius:.15em .15em 0 0;background:#5B2333;transform-origin:bottom;transform:scaleY(0)}
.s4.ctl .ad-ch i{transition:transform .55s cubic-bezier(.16,1,.3,1)}

@media (prefers-reduced-motion:reduce){
  .cs *,.cs{transition:none!important;animation:none!important}
}

/* ---------- computador ---------- */
@media (min-width:980px){
  .pecas{--fs:clamp(7px,calc((100svh - 560px)/21),12.4px)}
  .cel-wrap{height:calc(var(--fs)*27.3)}
  .pecas>li{display:flex;flex-direction:column}
  .pecas>li>.cel-wrap{order:-1;width:100%;margin:0 0 12px}
  /* cabeçalho mais baixo para o aparelho caber na tela */
  #caminho .cam-pin{padding-top:clamp(66px,9svh,92px)}
  #caminho .t{font-size:clamp(1.8rem,min(3.4vw,6svh),3.6rem)}
  #caminho .cam-linha{margin:clamp(10px,1.8svh,18px) 0}
}
/* tela baixa de notebook (ex.: 1366x657): aparelho menor em vez de sumir */
@media (min-width:980px) and (max-height:719px){
  .pecas{--fs:clamp(5.4px,calc((100svh - 480px)/26),9px)}
}

/* ---------- celular preso: aparelho no lugar do título, acima do cartão ---------- */
@media (max-width:979px) and (min-height:600px){
  .js:not(.no-pin) .pecas>li{position:relative}
  .js:not(.no-pin) .cel-wrap{--fs:clamp(6.4px,calc(45svh/27),12.4px);position:absolute;left:0;right:0;bottom:calc(100% + 10px);z-index:3;
    height:calc(var(--fs)*27);margin:0;overflow:visible;-webkit-mask-image:none;mask-image:none}
}

/* Tela baixa (sem prender): o aparelho inteiro cabe, sem corte */
@media (max-width:979px) and (max-height:599px){
  .cel-wrap{height:calc(var(--fs)*27.4);overflow:visible}
}
/* Celular sem prender (movimento reduzido ou sem JS): aparelho inteiro, sem corte */
@media (max-width:979px){
  .no-pin .cel-wrap,html:not(.js) .cel-wrap{height:calc(var(--fs)*27.4);overflow:visible}
}
