/* ══════════════════════════════════════════════════════════════════════
   OCA · Palco das 5 etapas com telas do dashboard reproduzidas em código
   Pedido do Sérgio (2026-10-13): "imagens do dashboard como se fosse uma
   apresentação já da entrega". Tudo em cqw: escala junto com a tela.
   ══════════════════════════════════════════════════════════════════════ */
.stage--dz{
  container-type:size;
  background:
    radial-gradient(80% 70% at 70% 20%,rgba(124,92,255,.16),transparent 60%),
    radial-gradient(60% 60% at 10% 90%,rgba(232,122,46,.10),transparent 60%),
    #0a0810;
}
.stage--dz::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:28px 28px;
}
.dz{display:flex;align-items:flex-start;justify-content:center;padding-top:5cqh;}
.dz-screen{
  --f:1.5cqw;
  container-type:inline-size;position:relative;
  height:80cqh;width:min(90cqw,calc(80cqh * 1.7));
  display:flex;flex-direction:column;gap:1.4cqw;padding:2.2cqw 2.4cqw 1.6cqw;
  background:linear-gradient(160deg,#16111f 0%,#0e0b15 60%,#120d1a 100%);
  border:1px solid rgba(255,255,255,.09);border-radius:1.6cqw;
  box-shadow:0 3cqw 8cqw -2cqw rgba(0,0,0,.7),0 0 0 1px rgba(124,92,255,.08);
  font-family:var(--font-body);font-size:var(--f);line-height:1.35;color:#ecebf2;overflow:hidden;
  transform:translateY(1.5cqw) scale(.985);opacity:.4;
  transition:transform .9s var(--ease-reveal),opacity .9s var(--ease-reveal);
}
.dz.is-on .dz-screen{transform:none;opacity:1;}

/* Entrada em cascata: só anima quando a etapa está no palco */
.dz-in{opacity:0;}
.dz.is-on .dz-in{animation:dzIn .7s var(--ease-reveal) both;animation-delay:calc(var(--d,0) * 110ms + 150ms);}
@keyframes dzIn{from{opacity:0;transform:translateY(1.2cqw);}to{opacity:1;transform:none;}}

/* Cabeçalho */
.dz-top{display:flex;align-items:center;gap:1.4cqw;}
.dz-top img{height:2.6cqw;width:auto;}
.dz-pill{
  border:1px solid rgba(232,122,46,.35);background:rgba(232,122,46,.08);color:#f3c9a6;
  border-radius:99px;padding:.45cqw 1.3cqw;font-size:.8em;letter-spacing:.12em;text-transform:uppercase;font-family:var(--font-mono);
}
.dz-status{
  margin-left:auto;display:flex;align-items:center;gap:.7cqw;font-size:.9em;color:#9ef0c0;
  border:1px solid rgba(34,197,94,.3);background:rgba(34,197,94,.08);border-radius:99px;padding:.45cqw 1.3cqw;
}
.dz-status i{width:.8cqw;height:.8cqw;border-radius:50%;background:#22c55e;box-shadow:0 0 1cqw #22c55e;}
.dz.is-on .dz-status i{animation:dzPulse 1.8s ease-in-out infinite;}
@keyframes dzPulse{50%{opacity:.35;}}

/* Blocos */
.dz-row{display:grid;gap:1.4cqw;}
.dz-col{display:flex;flex-direction:column;gap:1.4cqw;min-width:0;}
.dz-card{
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:1.2cqw;
  padding:1.4cqw 1.6cqw;min-width:0;
}
.dz-lb{display:flex;justify-content:space-between;gap:1cqw;font-size:.92em;font-weight:600;color:#f4f4f8;margin-bottom:1cqw;}
.dz-lb em{font-style:normal;font-weight:400;font-size:.82em;letter-spacing:.1em;text-transform:uppercase;color:#8d8a9b;font-family:var(--font-mono);}
.dz-foot{
  margin-top:auto;display:flex;justify-content:space-between;font-family:var(--font-mono);
  font-size:.72em;letter-spacing:.14em;text-transform:uppercase;color:#6f6c7d;
}
.dz-foot span:last-child{color:var(--accent);}

/* 01 · as 4 leituras */
.dz-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:1cqw;}
.dz-tab{
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:1cqw;
  padding:1cqw 1.2cqw;font-size:.9em;font-weight:600;line-height:1.25;
}
.dz-tab b{display:block;font-family:var(--font-mono);font-size:.8em;color:#f97316;margin-bottom:.3cqw;}
.dz-tab:nth-child(2) b{color:#a78bfa;}
.dz-tab:nth-child(3) b{color:#22d3ee;}
.dz-tab:nth-child(4) b{color:#22c55e;}
.dz-tab--on{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.07);}

/* 01 · potencial */
.dz-row--score{grid-template-columns:.9fr 1.1fr;flex:1;min-height:0;}
.dz-pot{display:flex;flex-direction:column;}
.dz-donut{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;}
.dz-donut svg{height:100%;max-height:22cqw;width:auto;aspect-ratio:1;transform:rotate(-90deg);overflow:visible;}
/* r=38 → circunferência 238,76; 5 arcos de 47,75 com 1,5 de folga */
.dz-seg{fill:none;stroke:var(--c);stroke-width:13;stroke-dasharray:46.25 192.51;stroke-dashoffset:calc(var(--o) * -47.75);opacity:0;}
.dz.is-on .dz-seg{animation:dzSeg .5s var(--ease-reveal) both;animation-delay:calc(var(--i) * 110ms + 500ms);}
@keyframes dzSeg{from{opacity:0;stroke-width:4;}to{opacity:1;stroke-width:13;}}
.dz-needle{stroke:#f4f4f8;stroke-width:3;stroke-linecap:round;transform-origin:50px 50px;transform:rotate(90deg);
  filter:drop-shadow(0 0 2px rgba(0,0,0,.8));}
.dz.is-on .dz-needle{animation:dzNeedle 1.8s var(--ease-reveal) both;animation-delay:1.1s;}
/* 0% fica no topo; 75% do giro = 270° a partir do topo */
@keyframes dzNeedle{from{transform:rotate(90deg);}to{transform:rotate(360deg);}}
.dz-donut__c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;}
.dz-donut__c b{font-family:var(--font-display);font-weight:900;font-size:3em;letter-spacing:-.03em;color:#22d3ee;line-height:1;}
.dz-donut__c span{font-size:.76em;color:#9c99aa;margin-top:.3cqw;}

.dz-sc{display:grid;grid-template-columns:10.5em 1fr 3.2em;align-items:center;gap:1cqw;margin-top:.95cqw;font-size:.88em;color:#c9c7d4;}
.dz-sc i,.dz-div i{height:.75cqw;border-radius:99px;background:rgba(255,255,255,.07);position:relative;overflow:hidden;}
.dz-sc i::after,.dz-div i::after{
  content:'';position:absolute;top:0;bottom:0;left:0;width:var(--w);border-radius:99px;
  background:linear-gradient(90deg,#f97316,#22d3ee);transform-origin:left;transform:scaleX(0);
}
.dz-sc i::after{background:linear-gradient(90deg,#7c5cff,#22d3ee);}
.dz.is-on .dz-sc i::after,.dz.is-on .dz-div i::after{animation:dzGrow 1.2s var(--ease-reveal) both;animation-delay:.9s;}
@keyframes dzGrow{to{transform:scaleX(1);}}
.dz-sc b{text-align:right;color:#22d3ee;font-variant-numeric:tabular-nums;}

.dz-kpis{grid-template-columns:repeat(3,1fr);}
.dz-kpi{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:1cqw;padding:1cqw 1.3cqw;}
.dz-kpi span{display:block;font-size:.76em;color:#8d8a9b;margin-bottom:.3cqw;}
.dz-kpi b{font-family:var(--font-display);font-size:1.4em;font-weight:800;color:#22d3ee;font-variant-numeric:tabular-nums;letter-spacing:-.02em;}

/* 02 · território */
.dz-row--terr{grid-template-columns:1.15fr .85fr;flex:1;min-height:0;}
.dz-mapcard{display:flex;flex-direction:column;}
.dz-map{flex:1;min-height:0;border-radius:.8cqw;overflow:hidden;}
.dz-map svg{width:100%;height:100%;display:block;}
.dz-road{fill:none;stroke:#e66a8a;stroke-width:3;opacity:.55;}
.dz-road--s{stroke:#3a4252;stroke-width:1.6;opacity:1;}
.dz-ring{fill:rgba(34,211,238,.06);stroke:rgba(34,211,238,.45);stroke-width:.6;stroke-dasharray:2 2;}
.dz-ring--2{fill:none;stroke:rgba(124,92,255,.4);}
.dz-pin{fill:#ef4444;stroke:#fff;stroke-width:1.2;}
.dz.is-on .dz-ring{animation:dzRing 2.6s ease-in-out infinite;transform-origin:98px 58px;}
@keyframes dzRing{50%{transform:scale(1.05);opacity:.6;}}
.dz-dot{opacity:0;transform-box:fill-box;transform-origin:center;}
.dz.is-on .dz-dot{animation:dzDot .45s var(--ease-reveal) both;animation-delay:calc(var(--i) * 26ms + 450ms);}
@keyframes dzDot{from{opacity:0;transform:scale(0);}to{opacity:1;transform:none;}}
.dz-legend{display:flex;flex-wrap:wrap;gap:.4cqw 1.2cqw;align-items:center;margin-top:.9cqw;font-size:.76em;color:#a19fae;}
.dz-legend i{width:.8cqw;height:.8cqw;border-radius:50%;background:var(--c);display:inline-block;margin-right:-.6cqw;}
.dz-note{margin-top:.6cqw;font-size:.74em;color:#8d8a9b;}
.dz-note b{color:#f4f4f8;}
.dz-div{display:grid;grid-template-columns:6.4em 1fr;align-items:center;gap:1cqw;margin-top:.8cqw;font-size:.86em;color:#c9c7d4;}
.dz-mt{display:grid;grid-template-columns:1fr 4.2em 4.2em;gap:1cqw;align-items:center;margin-top:.7cqw;font-size:.86em;color:#c9c7d4;}
.dz-mt b{text-align:right;color:#22d3ee;font-weight:700;}

/* 03 · envio */
.dz-share .dz-p{margin:0 0 1.2cqw;font-size:.9em;color:#a19fae;line-height:1.5;}
.dz-link{
  display:flex;justify-content:space-between;align-items:center;gap:1cqw;flex-wrap:wrap;
  border:1px dashed rgba(34,211,238,.4);background:rgba(34,211,238,.05);border-radius:1cqw;padding:1.1cqw 1.4cqw;
}
.dz-link__url{font-family:var(--font-mono);color:#22d3ee;font-size:.88em;}
.dz-link__code{font-size:.84em;color:#a19fae;}
.dz-link__code b{font-family:var(--font-mono);color:#f4f4f8;letter-spacing:.08em;margin-left:.4cqw;}
.dz-acc{
  display:grid;grid-template-columns:2.6cqw 1fr auto auto;gap:1.2cqw;align-items:center;
  padding:.9cqw 0;border-top:1px solid rgba(255,255,255,.06);font-size:.92em;
}
.dz-card > .dz-acc:nth-child(2){border-top:0;}
.dz-av{
  width:2.6cqw;height:2.6cqw;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:.8em;
  font-weight:700;background:rgba(124,92,255,.25);color:#d9ccff;
}
.dz-acc em{font-style:normal;color:#a19fae;font-size:.9em;}
.dz-ok,.dz-off{font-size:.76em;border-radius:99px;padding:.3cqw 1cqw;font-weight:600;}
.dz-ok{background:rgba(34,197,94,.12);color:#86efac;}
.dz-off{background:rgba(239,68,68,.12);color:#fca5a5;}
.dz-acc--rev span,.dz-acc--rev em{opacity:.55;text-decoration:line-through;text-decoration-color:rgba(239,68,68,.6);}

/* 04 · gestão */
.dz-row--gest{grid-template-columns:1fr 1fr;flex:1;min-height:0;}
.dz-chk{display:grid;grid-template-columns:2cqw 1fr auto;gap:1cqw;align-items:center;margin-top:.95cqw;font-size:.9em;color:#d6d4df;}
.dz-chk i{width:1.3cqw;height:1.3cqw;border-radius:50%;background:rgba(255,255,255,.12);}
.dz-chk em{font-style:normal;font-size:.8em;color:#8d8a9b;opacity:0;}
.dz.is-on .dz-chk i{animation:dzChk .35s ease both;animation-delay:calc(var(--d) * 260ms + 300ms);}
.dz.is-on .dz-chk em{animation:dzIn .4s ease both;animation-delay:calc(var(--d) * 260ms + 380ms);}
@keyframes dzChk{to{background:#22c55e;box-shadow:0 0 1cqw rgba(34,197,94,.7);}}
.dz-ter{
  display:grid;grid-template-columns:1fr auto;gap:.2cqw 1cqw;align-items:center;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:1cqw;padding:1cqw 1.3cqw;
}
.dz-ter b{font-size:.94em;}
.dz-ter span{grid-column:1;font-size:.8em;color:#8d8a9b;}
.dz-tag{
  grid-row:1 / 3;grid-column:2;font-style:normal;font-size:.76em;font-weight:600;border-radius:99px;padding:.35cqw 1cqw;
  background:rgba(255,255,255,.07);color:#c9c7d4;
}
.dz-tag--c{background:rgba(34,211,238,.12);color:#67e8f9;}
.dz-tag--p{background:rgba(124,92,255,.18);color:#c4b5fd;}
.dz-next{
  display:grid;grid-template-columns:1fr auto;align-items:center;gap:.3cqw 1.4cqw;
  background:linear-gradient(100deg,#f97316,#fb8a2e);border-radius:1.2cqw;padding:1.2cqw 1.6cqw;color:#1a0f05;
}
.dz-next__lb{font-size:.72em;letter-spacing:.14em;text-transform:uppercase;font-weight:700;font-family:var(--font-mono);}
.dz-next b{grid-column:1;font-size:1.12em;}
.dz-next__btn{grid-row:1 / 3;grid-column:2;background:#5b35b1;color:#fff;border-radius:.8cqw;padding:.9cqw 2cqw;font-size:.86em;font-weight:600;}

/* 05 · rede */
.dz-row--net{grid-template-columns:1.25fr .75fr;flex:1;min-height:0;}
.dz-net{position:relative;padding:.8cqw;}
.dz-net svg{width:100%;height:100%;display:block;}
.dz-links line{stroke:#22d3ee;stroke-width:1.2;stroke-dasharray:100;stroke-dashoffset:100;opacity:.8;}
.dz-links .dz-link--off{stroke:rgba(255,255,255,.14);stroke-dasharray:2 3;stroke-dashoffset:0;}
.dz.is-on .dz-links line:not(.dz-link--off){animation:dzLine .8s var(--ease-reveal) both;animation-delay:calc(var(--i) * 260ms + 700ms);}
@keyframes dzLine{to{stroke-dashoffset:0;}}
.dz-node{fill:#1d1a26;stroke:rgba(255,255,255,.18);stroke-width:1;}
.dz.is-on .dz-node--on{animation:dzNode .5s ease both;animation-delay:calc(var(--i) * 260ms + 1.3s);}
@keyframes dzNode{to{fill:#22d3ee;stroke:#a5f3fc;}}
.dz-hub{fill:#f97316;stroke:#fed7aa;stroke-width:1.4;transform-box:fill-box;transform-origin:center;}
.dz.is-on .dz-hub{animation:dzHub 2.4s ease-in-out infinite;}
@keyframes dzHub{50%{transform:scale(1.12);}}
.dz-hub__lb{
  position:absolute;left:50%;top:68%;transform:translateX(-50%);font-family:var(--font-mono);
  font-size:.72em;letter-spacing:.12em;text-transform:uppercase;color:#fdba74;white-space:nowrap;
}
.dz-rule{display:flex;flex-direction:column;gap:.2cqw;padding:.8cqw 0;border-top:1px solid rgba(255,255,255,.06);font-size:.9em;}
.dz-card > .dz-rule:nth-child(2){border-top:0;}
.dz-rule span{font-size:.82em;color:#8d8a9b;}
.dz-rule em{font-style:normal;color:#22d3ee;}
.dz-toggle{display:flex;align-items:center;gap:1cqw;margin-top:1cqw;font-size:.84em;color:#86efac;}
.dz-toggle i{width:3.6cqw;height:2cqw;border-radius:99px;background:rgba(255,255,255,.12);position:relative;flex:0 0 auto;}
.dz-toggle i::after{content:'';position:absolute;top:.3cqw;left:.3cqw;width:1.4cqw;height:1.4cqw;border-radius:50%;background:#fff;}
.dz.is-on .dz-toggle i{animation:dzTgBg .4s ease both;animation-delay:1.9s;}
.dz.is-on .dz-toggle i::after{animation:dzTg .4s ease both;animation-delay:1.9s;}
@keyframes dzTgBg{to{background:#22c55e;}}
@keyframes dzTg{to{transform:translateX(1.6cqw);}}

/* Tela estreita: some o secundário e a letra cresce */
@container (max-width:460px){
  .dz-screen{--f:2.15cqw;}
  .dz-opt{display:none !important;}
  .dz-tabs{grid-template-columns:1fr 1fr;}
  .dz-tab:nth-child(2),.dz-tab:nth-child(3){display:none;}
  .dz-sc{grid-template-columns:8.6em 1fr 3em;}
  .dz-legend,.dz-note{display:none;}
  .dz-donut__c b{font-size:1.9em;}
  .dz-donut__c span{display:none;}
}
@media (max-width:900px){.dz{padding-top:3cqh;} .dz-screen{height:78cqh;}}

@media (prefers-reduced-motion:reduce){
  .dz-in,.dz-dot,.dz-seg,.dz-chk em{opacity:1 !important;animation:none !important;}
  .dz-sc i::after,.dz-div i::after{transform:none !important;animation:none !important;}
  .dz-needle{transform:rotate(360deg) !important;animation:none !important;}
  .dz-links line{stroke-dashoffset:0 !important;}
  .dz-screen{opacity:1;transform:none;}
}
