/* ==========================================================================
   Formulário: topo com a Linha Acesa, telas (abertura, seção, envio, fim)
   ========================================================================== */
:root{--topo:74px}

/* Topo fixo: logo + contador, e embaixo o fio com um nó por seção */
.topo{position:fixed;inset:0 0 auto;z-index:50;height:var(--topo);background:var(--bg);border-bottom:1px solid var(--line)}
.topo-linha{display:flex;align-items:center;justify-content:space-between;gap:16px;height:52px}
.topo-logo{height:18px;width:auto}
.topo-info{display:flex;align-items:baseline;gap:14px;font-family:var(--ft);font-weight:700;font-size:.69rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.topo-cont{color:var(--white);font-variant-numeric:tabular-nums}
.topo-nome{display:none;max-width:42ch;overflow:hidden;text-overflow:ellipsis}
@media (min-width:600px){.topo-nome{display:inline}}

.trilha{display:flex;align-items:center;height:20px}
.trilha li{position:relative;flex:1 1 0;height:20px}
.trilha li:last-child{flex:0 0 11px}
.trilha li::before{content:'';position:absolute;z-index:1;left:1px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;
  border:1px solid rgba(255,255,255,.32);background:var(--bg);transition:background-color 240ms ease,border-color 240ms ease,box-shadow 240ms ease}
.trilha li::after{content:'';position:absolute;left:10px;right:0;top:50%;height:1px;background:var(--wire);transition:background-color 240ms ease}
.trilha li:last-child::after{display:none}
.trilha .is-passed::before{background:var(--accent);border-color:var(--accent)}
.trilha .is-passed::after{background:var(--accent)}
.trilha .is-current::before{left:0;width:11px;height:11px;margin-top:-5.5px;background:var(--white);border:2px solid var(--accent);box-shadow:0 0 16px 4px var(--accent-dim)}

/* Telas */
main{outline:none}
.tela{padding-top:28px;padding-bottom:96px}
.tela-form{padding-top:calc(var(--topo) + 40px)}
#tela-envio{padding-top:calc(var(--topo) + 40px)}
.logo{width:auto;height:24px}
.tela-corpo{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding-top:clamp(48px,11vh,120px)}
.tela-corpo > .btn{margin-top:12px}
.titulo-xl{font-size:clamp(1.9rem,.9rem + 5.6vw,4.2rem);line-height:1.02;letter-spacing:.005em;overflow-wrap:anywhere}
h1:focus,h2:focus{outline:none}
.intro-nota{max-width:56ch;font-size:.95rem;color:var(--muted)}
.servicos{align-self:stretch;margin-top:12px}
.trilho-lista{margin:14px 0 0 3px;border-left:1px solid var(--wire)}
.trilho-lista li{position:relative;padding:7px 0 7px 24px;color:var(--ice)}
.trilho-lista li::before{content:'';position:absolute;left:-4px;top:1.05em;width:7px;height:7px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:var(--bg)}

/* Seção */
.secao-cab{margin-bottom:40px}
.secao-titulo{font-size:clamp(1.6rem,1rem + 3vw,2.8rem);line-height:1.06;letter-spacing:.012em;overflow-wrap:anywhere}
.secao-intro{max-width:56ch;margin-top:14px;font-size:clamp(1.02rem,.97rem + .25vw,1.15rem);color:var(--muted)}
.aviso:empty{display:none}
.aviso{display:flex;align-items:center;gap:12px;margin-bottom:28px;font-size:.88rem;color:var(--muted)}
.aviso::before{content:'';flex:none;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px 2px var(--accent-dim)}
.entra{animation:entra 260ms var(--ease) both}
@keyframes entra{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.acoes{display:flex;flex-direction:column-reverse;gap:12px;margin-top:48px;padding-top:32px;border-top:1px solid var(--line)}
.acoes .btn,.acoes .btn-sec{width:100%}
@media (min-width:480px){
  .acoes{flex-direction:row;justify-content:space-between}
  .acoes .btn,.acoes .btn-sec{width:auto;min-width:140px}
}
.acoes--envio{align-self:stretch;margin-top:8px}

/* Enviando: o ponto de luz percorre o fio */
.envio-trilho{container-type:inline-size;position:relative;align-self:stretch;height:1px;margin:12px 0 4px;background:var(--wire)}
.envio-trilho .luz{position:absolute;left:0;top:-3px;animation:corre 2.4s var(--ease) infinite}
@keyframes corre{0%{transform:translateX(0);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateX(calc(100cqw - 7px));opacity:0}}

#tela-carregando .envio-trilho{max-width:240px;margin:0}

/* Fim */
.luz-grande{width:11px;height:11px;animation:pulsa 2.8s ease-in-out infinite}
@keyframes pulsa{50%{box-shadow:0 0 0 2px var(--accent),0 0 26px 8px var(--accent-dim)}}

.carregando{padding:40px var(--pad);color:var(--muted)}
