/* =====================================================================
   RODAR — demonstração guiada (/demo)
   ===================================================================== */
.pg-demo { background: var(--fundo-alt); }
.pg-demo .topo { background: color-mix(in srgb, var(--fundo) 92%, transparent); }
.demo-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acento-forte); background: var(--acento-bg); padding: 5px 10px; border-radius: 99px; }
.demo { padding: 28px 0 64px; }

/* etapas */
.demo-passos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.demo-passos::-webkit-scrollbar { display: none; }
.demo-passo { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--borda); background: var(--superficie); color: var(--texto-2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.demo-passo span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--fundo-alt); color: var(--texto-3); }
.demo-passo:hover { color: var(--texto); border-color: var(--texto-3); }
.demo-passo.feito span { background: var(--acento-bg); color: var(--acento-forte); }
.demo-passo.ativo { background: var(--btn-pri-bg); color: var(--btn-pri-txt); border-color: transparent; }
.demo-passo.ativo span { background: var(--acento); color: #06201F; }
.demo-barra { height: 4px; border-radius: 99px; background: var(--borda); margin: 14px 0 32px; overflow: hidden; }
.demo-barra span { display: block; height: 100%; width: 0; background: var(--acento); border-radius: inherit; transition: width .35s ease-out; }

/* palco */
.demo-palco { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: start; }
.demo-palco[hidden] { display: none; }
.demo-txt { position: sticky; top: 96px; }
.demo-txt h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.demo-txt > p { color: var(--texto-2); font-size: 16.5px; margin-top: 14px; }
.demo-pontos { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 8px; }
.demo-pontos li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--superficie); font-size: 14.5px; color: var(--texto-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.demo-pontos li b { display: block; color: var(--texto); font-size: 15px; }
.demo-pontos li.ativo { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); }
.demo-pontos .n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #06201F; font-weight: 800; font-size: 13px; }
.demo-pontos li.extra { border-style: dashed; cursor: default; }
.demo-pontos li.extra a { display: inline-flex; align-items: center; gap: 8px; color: var(--acento-forte); font-weight: 700; text-decoration: none; }
.demo-pontos li.extra a:hover { text-decoration: underline; }
.demo-nav { display: flex; gap: 10px; }
.demo-nav .btn { height: 48px; }
.demo-nav .btn-pri { flex: 1; }
.demo-nav .btn:disabled { opacity: .45; cursor: default; transform: none; }
.vira .ic, .vira svg { transform: rotate(180deg); }
.demo-dica { margin-top: 14px; font-size: 13px; color: var(--texto-3); }

/* tela */
.demo-tela { margin: 0; border-radius: 14px; background: var(--superficie); box-shadow: var(--sombra-tela); }
.demo-tela .tela-barra { border-radius: 14px 14px 0 0; }
.demo-img { position: relative; }
.demo-img img { width: 100%; border-radius: 0 0 14px 14px; }
.demo-img img.entra { animation: demo-entra .35s ease-out; }
@keyframes demo-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-tela.cel { max-width: 340px; margin: 0 auto; border-radius: 34px; border: 8px solid #050A12; background: #050A12; }
.demo-tela.cel .tela-barra { display: none; }
.demo-tela.cel .demo-img img { border-radius: 26px; }

/* pontos clicáveis */
.demo-hot { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; font: inherit; }
.demo-hot > span { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #06201F; font-weight: 800; font-size: 14px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 6px 16px rgba(17, 28, 45, .35); }
.demo-hot > span::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--acento); animation: demo-pulso 1.8s ease-out infinite; }
@keyframes demo-pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.demo-hot em { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(4px); width: 220px; padding: 12px 14px; border-radius: 12px;
  background: var(--marinho); color: #B6C2D4; font-style: normal; font-size: 13.5px; line-height: 1.45; text-align: left; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.demo-hot em b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.demo-hot.ativo { z-index: 3; }
.demo-hot.ativo em { opacity: 1; transform: translateX(-50%); }
.demo-hot.ativo > span { background: #fff; color: var(--marinho); box-shadow: 0 0 0 4px var(--acento), 0 6px 16px rgba(17, 28, 45, .35); }
/* tooltip não sai pela borda (classes postas pelo demo.js) */
.demo-hot.dir em { left: auto; right: -10px; transform: translateY(4px); }
.demo-hot.esq em { left: -10px; transform: translateY(4px); }
.demo-hot.ativo.dir em, .demo-hot.ativo.esq em { transform: none; }
.demo-hot.baixo em { bottom: auto; top: calc(100% + 12px); }

/* final */
.demo-fim { max-width: 720px; margin: 24px auto 0; text-align: center; padding: 56px 40px; border-radius: 24px; background: var(--superficie); border: 1px solid var(--borda); box-shadow: var(--sombra); }
.demo-fim[hidden] { display: none; }
.demo-fim-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--acento-bg); color: var(--acento-forte); }
.demo-fim h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.demo-fim > p { color: var(--texto-2); font-size: 17px; margin: 14px auto 28px; max-width: 34em; }
.demo-fim .hero-cta, .demo-fim .hero-pontos { justify-content: center; }
.demo-fim-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--borda); }
.demo-fim-links a, .link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2); font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.demo-fim-links a:hover, .link-btn:hover { color: var(--acento-forte); }

@media (prefers-reduced-motion: reduce) {
  .demo-hot > span::before, .demo-img img.entra { animation: none; }
}
@media (max-width: 1000px) {
  .demo-palco { grid-template-columns: 1fr; gap: 24px; }
  .demo-txt { position: static; order: 2; }
  .demo-tela { order: 1; }
  .demo-dica { display: none; }
}
@media (max-width: 860px) {
  .pg-demo { padding-bottom: 80px; }
  .pg-demo .barra-cel .btn-sec { width: 54px; padding: 0; }
}
@media (max-width: 560px) {
  .demo-tag { display: none; }
  .demo { padding-top: 16px; }
  .demo-barra { margin-bottom: 20px; }
  .demo-hot > span { width: 26px; height: 26px; font-size: 13px; }
  .demo-hot em { display: none; } /* no celular a explicação fica na lista abaixo */
  .demo-tela.cel { max-width: 270px; }
  .demo-fim { padding: 36px 20px; }
}
