/* CONTRATAR_MOV (Michel 25/11/2026): movimento com motivo na cotação e na contratação. Só enfeita: o fluxo é o do site.js.
   Tudo dentro de prefers-reduced-motion: no-preference; com economia de dados ou movimento reduzido, nada se move. */
@media (prefers-reduced-motion: no-preference) {
  /* 1) etapa nova entra no sentido do avanço (ou do retorno) */
  html:not(.mov-calmo) #etapa.mov-avanca > * { animation: mov-avanca .42s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--mov-i, 0) * 45ms); }
  html:not(.mov-calmo) #etapa.mov-volta > * { animation: mov-volta .36s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--mov-i, 0) * 35ms); }
  @keyframes mov-avanca { from { opacity: 0; transform: translate3d(18px, 6px, 0); } to { opacity: 1; transform: none; } }
  @keyframes mov-volta { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }

  /* 2) trilha: o fio dourado corre até a etapa atual; o ponto atual chega com um toque e o concluído confirma */
  html:not(.mov-calmo) #trilha .tr .feito { transition: stroke-dashoffset .7s cubic-bezier(.3,.7,.2,1); }
  html:not(.mov-calmo) #trilha .pt.agora { animation: mov-pt-chega .55s cubic-bezier(.3,1.5,.5,1) both .25s; }
  html:not(.mov-calmo) #trilha .pt.ok { animation: mov-pt-ok .35s ease-out both; }
  @keyframes mov-pt-chega { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
  @keyframes mov-pt-ok { from { filter: brightness(1.6); } to { filter: none; } }
  html:not(.mov-calmo) #trilha li.agora { animation: mov-rotulo .4s ease-out both .2s; }
  @keyframes mov-rotulo { from { opacity: .35; } to { opacity: 1; } }

  /* 3) o preço aparece: valor sobe nítido com um traço dourado embaixo */
  html:not(.mov-calmo) .mov-preco { display: inline-block; position: relative; animation: mov-preco .6s cubic-bezier(.2,.7,.2,1) both; }
  html:not(.mov-calmo) .mov-preco::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
    background: var(--ouro, #c9a24a); transform-origin: left; animation: mov-traco .8s cubic-bezier(.3,.7,.2,1) both .25s; }
  @keyframes mov-preco { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes mov-traco { from { transform: scaleX(0); opacity: 1; } 70% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
  /* valor que muda no resumo (pessoa incluída, plano trocado): brilho curto para mostrar o que mudou */
  html:not(.mov-calmo) .mov-mudou { animation: mov-mudou 1.1s ease-out both; border-radius: 6px; }
  @keyframes mov-mudou { 0% { background-color: rgba(201,162,74,.32); } 100% { background-color: rgba(201,162,74,0); } }

  /* 4) resultado da cotação: os blocos chegam em sequência */
  html:not(.mov-calmo) #m-res.mov-chegou > * { animation: mov-avanca .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--mov-i, 0) * 70ms); }

  /* 5) pagamento confirmado: o visto se desenha */
  html:not(.mov-calmo) .mov-visto circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: mov-traca .6s ease-out forwards .1s; }
  html:not(.mov-calmo) .mov-visto path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: mov-traca .45s ease-out forwards .6s; }
  @keyframes mov-traca { to { stroke-dashoffset: 0; } }

  /* botões principais respondem ao toque */
  html:not(.mov-calmo) #v-contratar .bt:not(:disabled), html:not(.mov-calmo) #montador .bt:not(:disabled) { transition: transform .12s ease, box-shadow .2s ease; }
  html:not(.mov-calmo) #v-contratar .bt:not(:disabled):active, html:not(.mov-calmo) #montador .bt:not(:disabled):active { transform: scale(.97); }
}
.mov-visto { display: block; width: 56px; height: 56px; margin: 4px 0 10px; color: var(--ouro, #c9a24a); }
.mov-visto circle, .mov-visto path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
