/* Carga Boa — celular da home e faixa da demonstração (só index.html). Carregado depois de landing.css. */

/* 6. Celular com a tela real do fluxo (valores ilustrativos) ---------------- */
.hero-demo{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.phone{font-size:14px;position:relative;width:21.5em;max-width:100%;aspect-ratio:21.5/41.5;background:#1b1d1c;
  border-radius:2.2em;padding:.5em;box-shadow:0 34px 60px -24px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06)}
@media (min-width:960px) and (max-height:900px){.phone{font-size:13px}}
@media (max-width:959px){.phone{font-size:13px}}
@media (max-width:380px){.phone{font-size:12px}}
.ph-view{position:relative;width:100%;height:100%;border-radius:1.75em;overflow:hidden;background:#123B31;
  color:#262B29;font:600 1em/1.4 var(--f-body);font-variant-numeric:tabular-nums;text-align:left}
.ph-bar{position:absolute;inset:0 0 auto 0;height:3.1em;z-index:2;display:flex;align-items:center;
  justify-content:space-between;padding:0 1em;background:#123B31}
.ph-bar img{height:1.5em;width:auto}
.ph-bar span{display:flex;align-items:center;gap:.7em;color:#F3F5EF;font-size:.86em;font-weight:700}
.ph-bar i{font-style:normal;width:1.6em;height:1.6em;border:1.5px solid #F3F5EF;border-radius:50%;display:grid;
  place-items:center;font-size:.9em;font-weight:800}
.ph-body{position:absolute;inset:3.1em 0 0 0;display:flex;flex-direction:column;opacity:0;visibility:hidden;
  transition:opacity .4s ease,visibility 0s linear .4s}
.phone[data-step="1"] [data-screen="1"],.phone[data-step="2"] [data-screen="2"],
.phone[data-step="3"] [data-screen="3"],.phone[data-step="4"] [data-screen="4"]{opacity:1;visibility:visible;transition-delay:0s}
.ph-scene{flex:1 1 auto;min-height:0;overflow:hidden;background:#123B31;color:#F3F5EF;padding:1em 1em 0;
  display:flex;flex-direction:column;gap:.85em}
.ph-scene--center{justify-content:center;align-items:center;text-align:center;padding-bottom:1em}
.ph-h1{font-family:var(--f-display);font-weight:700;font-size:1.22em;line-height:1.25;letter-spacing:-.01em}
.ph-mut{font-size:.93em;color:rgba(243,245,239,.78)}
.ph-dock .ph-mut{color:#5A6A64}
.ph-row{display:flex;align-items:center;gap:.55em;flex-wrap:wrap}
.ph-chip{display:inline-flex;align-items:center;gap:.4em;border-radius:999px;padding:.2em .7em;font-size:.86em;
  font-weight:800;background:#F3F5EF;color:#123B31}
.ph-chip--dark{background:#123B31;color:#fff}
.ph-chip--wait{background:#FFF1CC;color:#6B4E00}
.ph-chip--line{background:transparent;border:1px solid rgba(243,245,239,.42);color:#F3F5EF;font-weight:700}
.ph-dot{width:.55em;height:.55em;border-radius:50%;background:#2FA866;display:inline-block}
.ph-link{color:#F3F5EF;font-weight:800;font-size:.93em;text-decoration:underline;text-underline-offset:3px;margin-left:auto}
.ph-tiles{display:grid;grid-template-columns:1fr 1fr;gap:.55em}
.ph-tile{background:rgba(255,255,255,.09);border:1px solid rgba(243,245,239,.24);border-radius:1em;padding:.7em .8em;
  display:flex;flex-direction:column;gap:.1em}
.ph-tile small{font-size:.86em;font-weight:700;color:rgba(243,245,239,.78)}
.ph-tile b{font-family:var(--f-display);font-size:1em;line-height:1.25;color:#F3F5EF}
.ph-tile b em{font:700 .72em var(--f-body);font-style:normal;margin-left:.15em;color:rgba(243,245,239,.78)}
.ph-tile span{font-size:.82em;color:rgba(243,245,239,.78)}
.ph-dock{flex:0 0 auto;background:#fff;color:#262B29;border-radius:1.4em 1.4em 0 0;padding:.55em 1em .9em;
  display:flex;flex-direction:column;gap:.7em;box-shadow:0 -6px 24px rgba(18,59,49,.16)}
.ph-grab{width:2.8em;height:.28em;border-radius:2px;background:#C9D3CE;margin:0 auto}
.ph-lbl{font-size:.86em;font-weight:800;color:#5A6A64;text-transform:uppercase;letter-spacing:.04em}
.ph-dock .ph-link{color:#123B31}
.ph-chips4{display:grid;grid-template-columns:repeat(4,1fr);gap:.4em}
.ph-chips4 span{border:1.5px solid #DCE3DC;border-radius:.7em;padding:.6em 0;text-align:center;font-weight:800;font-size:1em;background:#fff}
.ph-chips4 .on{border-color:#123B31;background:#E3EFE8;box-shadow:inset 0 0 0 1px #123B31}
.ph-method{display:flex;align-items:center;gap:.7em}
.ph-ico{width:2.5em;height:2.5em;border-radius:.7em;background:#E3EFE8;display:grid;place-items:center;
  font-weight:800;font-size:.86em;color:#123B31;flex:0 0 2.5em}
.ph-method .t{flex:1;min-width:0;line-height:1.25}
.ph-method .t b{display:block;font-size:1em}
.ph-method .t span{font-size:.86em;color:#5A6A64}
.ph-info{background:#EAF4FC;border:1.5px solid #8CC3EC;border-radius:.85em;padding:.55em .7em;font-size:.88em;line-height:1.35}
.ph-btn{display:block;background:#F6B40E;color:#123B31;font-weight:800;font-size:1.1em;text-align:center;
  border-radius:.85em;padding:.85em}
.ph-btn--danger{background:#B3261E;color:#fff}
.ph-note{font-size:.8em;color:#5A6A64;text-align:center}
.ph-qr{position:relative;width:10.2em;height:10.2em;border:.55em solid #fff;border-radius:.4em;
  background:conic-gradient(#262B29 25%,#fff 0 50%,#262B29 0 75%,#fff 0) 0 0/1.35em 1.35em}
.ph-qr i{position:absolute;width:2.7em;height:2.7em;background:#fff;border:.42em solid #262B29;
  box-shadow:inset 0 0 0 .28em #fff,inset 0 0 0 99px #262B29}
.ph-qr i:nth-child(1){left:.3em;top:.3em}
.ph-qr i:nth-child(2){right:.3em;top:.3em}
.ph-qr i:nth-child(3){left:.3em;bottom:.3em}
.ph-steps3{display:flex;flex-direction:column;gap:.4em;font-size:.88em}
.ph-steps3 div{display:flex;gap:.55em;align-items:flex-start}
.ph-steps3 em{font-style:normal;flex:0 0 1.35em;height:1.35em;border-radius:50%;background:#E3EFE8;color:#123B31;
  font-weight:800;font-size:.85em;display:grid;place-items:center}
.ph-mascot{width:6.6em;height:6.6em}
.ph-mascot svg{width:100%;height:100%;display:block}
.ph-big{display:flex;gap:1.6em;justify-content:center}
.ph-big div{text-align:center}
.ph-big b{display:block;font-family:var(--f-display);font-size:1.7em;line-height:1.15;color:#F3F5EF}
.ph-big small{font-size:.86em;font-weight:700;color:rgba(243,245,239,.78)}
.ph-live{display:flex;align-items:center;gap:.5em;font-size:.86em;color:rgba(243,245,239,.78);justify-content:center}
.ph-live i{width:.55em;height:.55em;border-radius:50%;background:#7CE0A0;animation:cbPulse 1.6s ease-out infinite}
.ph-bat{display:flex;flex-direction:column;gap:.35em}
.ph-bat .top{display:flex;justify-content:space-between;align-items:baseline;font-size:.93em}
.ph-bat .top span{font-family:var(--f-display);color:#123B31}
.ph-track{height:.95em;border-radius:.6em;background:#DCE3DC;overflow:hidden}
.ph-track i{display:block;position:relative;overflow:hidden;height:100%;width:64%;background:#123B31;border-radius:.6em}
.ph-track i::after{content:"";position:absolute;top:0;bottom:0;width:45%;left:-45%;
  background:linear-gradient(90deg,transparent,rgba(246,180,14,.95),transparent);animation:cbSweep 2s ease-in-out infinite}
.ph-left{background:#F3F5EF;border-radius:.85em;padding:.55em .8em;font-size:.88em;line-height:1.4}
.ph-left b{color:#123B31}
.ph-stats3{display:grid;grid-template-columns:repeat(3,1fr);gap:.5em;width:100%}
.ph-stats3 div{background:rgba(255,255,255,.09);border:1px solid rgba(243,245,239,.24);border-radius:.9em;
  padding:.55em .5em;text-align:center}
.ph-stats3 small{display:block;font-size:.76em;font-weight:700;color:rgba(243,245,239,.78);line-height:1.2}
.ph-stats3 b{font-family:var(--f-display);font-size:.98em;color:#F3F5EF}
.cb-loop-olho{transform-origin:61.5px 33.5px;animation:cbOlho 3s ease-in-out infinite}
.cb-loop-raio{transform-origin:61.5px 35.5px;transform:scale(0);animation:cbRaio 3s cubic-bezier(.3,1.6,.5,1) infinite}
.cb-tail{animation:cbTail 2.4s ease-in-out infinite}
@keyframes cbOlho{0%,30%{transform:scaleY(1)}35%,85%{transform:scaleY(0)}90%,100%{transform:scaleY(1)}}
@keyframes cbRaio{0%,35%{transform:scale(0)}48%{transform:scale(1.18)}55%,82%{transform:scale(1)}88%,100%{transform:scale(0)}}
@keyframes cbTail{0%{stroke-dashoffset:-64;opacity:0}12%{opacity:1}80%{stroke-dashoffset:-88;opacity:1}100%{stroke-dashoffset:-88;opacity:0}}
@keyframes cbPulse{0%{box-shadow:0 0 0 0 rgba(124,224,160,.7)}70%{box-shadow:0 0 0 .6em rgba(124,224,160,0)}100%{box-shadow:0 0 0 0 rgba(124,224,160,0)}}
@keyframes cbSweep{to{left:100%}}

@media (max-width:959px){
  /* celular: faixa clara que abre "Como funciona" (sai do verde do herói) */
  .hero-grid{padding-bottom:0}
  .hero-demo{margin-inline:calc(-1 * clamp(16px,5vw,32px));margin-top:6px;padding:30px clamp(16px,5vw,32px) 34px;
    background:var(--bg);color:var(--ink)}
  .hero-demo .phone{box-shadow:0 30px 50px -30px rgba(18,59,49,.55)}
  .hero-demo .demo-cap{color:var(--muted)}
  .hero-demo .demo-cap b{color:var(--ink)}
  .hero-demo .demo-steps button,.hero-demo .demo-toggle{border-color:var(--line);color:var(--ink)}
  .hero-demo .demo-steps button:hover,.hero-demo .demo-toggle:hover{border-color:var(--accent)}
  .hero-demo .demo-steps button[aria-current="step"]{background:var(--cerrado);border-color:var(--cerrado);color:#fff}
  .hero-demo :focus-visible{outline-color:var(--focus)}
}
.demo-cap{max-width:36ch;text-align:center;font-size:.86rem;color:var(--on-scene-2)}
.demo-cap b{color:var(--on-scene)}
.demo-ctl{display:flex;align-items:center;justify-content:center;gap:10px}
.demo-steps{list-style:none;display:flex;gap:6px;margin:0;padding:0}
.demo-steps button,.demo-toggle{width:44px;height:44px;padding:0;border-radius:50%;display:grid;place-items:center;
  border:1.5px solid var(--scene-line);background:transparent;color:var(--on-scene);font:800 .95rem var(--f-body);cursor:pointer}
.demo-steps button:hover,.demo-toggle:hover{border-color:var(--on-scene)}
.demo-steps button[aria-current="step"]{background:var(--cal);border-color:var(--cal);color:var(--cerrado)}
.demo-toggle .icon{width:20px;height:20px}
.demo-toggle .i-play{display:none;fill:currentColor;stroke:none}
.demo-toggle[aria-pressed="true"] .i-pause{display:none}
.demo-toggle[aria-pressed="true"] .i-play{display:block}
html:not(.demo-js) .demo-ctl{display:none}
