/* Animações guiadas (17/10/2026): o texto lista os passos e, ao lado, a tela do produto executa os passos com um
   cursor; embaixo, a trilha acumula o resultado. Toca uma vez ao entrar na tela e para no resultado (sem loop).
   Telas do Softphone e do BLF são as reais do app (iframe com o HTML e o CSS capturados do softphone-win). */
.gd { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.gd.gd-larga { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
@media (max-width: 900px) { .gd, .gd.gd-larga { grid-template-columns: 1fr; gap: 26px; } .gd .gd-palco-col { order: -1; } }
.gd-passos { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 2px; }
.gd-passo { position: relative; padding: 11px 0 11px 18px; cursor: pointer; color: var(--muted); }
.gd-passo::before, .gd-passo::after { content: ""; position: absolute; left: 0; top: 11px; width: 2px; border-radius: 2px; }
.gd-passo::before { bottom: 11px; background: var(--line); }
.gd-passo::after { height: 0; background: var(--accent); }
.gd-passo.ativo { color: var(--ink); }
.gd-passo.ativo::after { height: calc(100% - 22px); transition: height var(--gd-dur, 3s) linear; }
.gd-passo b { display: block; font-weight: 500; font-size: 15.5px; }
.gd-det { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.23, 1, .32, 1); }
.gd-passo.ativo .gd-det { grid-template-rows: 1fr; }
.gd-det > span { overflow: hidden; font-size: 14.5px; color: var(--muted); }
.gd-passo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.gd-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-palco-col { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.gd-palco { position: relative; width: 100%; max-width: 600px; height: 540px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #eaf3ff, #f7faff 55%, #fff); }
.gd-palco.alto { height: 680px; max-width: 720px; }
.gd-trilha { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 30px; }
.gd-chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); animation: gd-chip .45s cubic-bezier(.23, 1, .32, 1) both; }
.gd-chip.ok { background: #e3f9ef; color: #0b7a4b; border-color: #a8ddc4; }
@keyframes gd-chip { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
.gd-mouse { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; opacity: 0; transition: transform .85s cubic-bezier(.23, 1, .32, 1), opacity .3s; }
.gd-mouse.on { opacity: 1; }
.gd-mouse.clica::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); animation: gd-clique .45s cubic-bezier(.23, 1, .32, 1) forwards; }
@keyframes gd-clique { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.7); } }

/* janelas reais do app */
.gd-win { position: absolute; width: 327px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 34px 70px -30px rgba(11, 40, 90, .45), 0 0 0 1px rgba(11, 40, 90, .1); }
.gd-win-barra { height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 12px; background: #eef2f6; color: #5b6575; font-size: 13px; }
.gd-win-ic { width: 16px; height: 16px; border-radius: 4px; background: #2172ff; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.gd-win-ctl { margin-left: auto; display: flex; } .gd-win-ctl i { font-style: normal; width: 40px; text-align: center; color: #7a8496; font-size: 12px; }
.gd-if { display: block; width: 380px; height: 672px; border: 0; zoom: .86; }
.gd-blf { position: absolute; width: 290px; height: 590px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 34px 70px -34px rgba(11, 40, 90, .4), 0 0 0 1px rgba(11, 40, 90, .08); }
.gd-blf .gd-if { width: 337px; height: 686px; }
@media (max-width: 640px) {
  .gd-palco.alto { height: 650px; }
  .gd-blf { display: none; }
  .gd-win { left: 50% !important; right: auto !important; translate: -50% 0; }
}

/* cenas desenhadas (agente, número) na identidade do console */
.gd-cena { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .45s cubic-bezier(.23, 1, .32, 1), transform .55s cubic-bezier(.23, 1, .32, 1); pointer-events: none; }
.gd-cena.on { opacity: 1; transform: none; }
.gd-cartao { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 26px 54px -30px rgba(11, 40, 90, .38); }
.gd-tit { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gd-cur { display: inline-block; width: 1.5px; height: 16px; background: var(--accent); vertical-align: middle; margin-left: 1px; animation: gd-pisca 1s steps(1) infinite; }
@keyframes gd-pisca { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gd *, .gd *::before, .gd *::after { transition: none !important; animation: none !important; } }

/* peças do console usadas nas cenas desenhadas */
.gd-lista { display: grid; gap: 8px; margin-top: 12px; }
.gd-agente { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, background .3s, box-shadow .3s; }
.gd-agente img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.gd-agente b { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.gd-agente small { color: var(--muted); font-size: 12.5px; }
.gd-agente.esc { border-color: var(--accent); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(11, 95, 217, .12); }
.gd-tag { font-size: 11px; font-weight: 500; color: var(--accent-texto, #0b5fd9); background: var(--accent-soft, #e8f1fe); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.gd-campo { margin-top: 8px; height: 38px; border: 1px solid #b9c5d4; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gd-campo small { color: var(--muted); font-size: 12px; }
.gd-vozes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.gd-voz { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--ink); transition: border-color .3s, background .3s; }
.gd-voz.esc { border-color: var(--accent); background: var(--accent-soft, #e8f1fe); }
.gd-onda { display: flex; gap: 3px; align-items: center; height: 20px; margin-top: 6px; }
.gd-onda i { width: 3px; border-radius: 2px; height: 30%; background: linear-gradient(#4a9bff, #0b5fd9); transition: height .2s; }
.gd-ok { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: #0b7a4b; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .4s; }
.gd-ok.on { opacity: 1; }
.gd-bolhas { display: grid; gap: 8px; margin-top: 14px; min-height: 140px; align-content: start; }
.gd-bolha { max-width: 84%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .4s cubic-bezier(.23, 1, .32, 1); }
.gd-bolha.on { opacity: 1; transform: none; }
.gd-bolha.eu { justify-self: end; background: var(--accent-soft, #e8f1fe); color: var(--ink); }
.gd-bolha.ag { background: var(--surface-2); color: var(--ink); }
.gd-bolha small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gd-ia { color: #7657e8; display: inline-flex; vertical-align: -3px; }
.gd-botao { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 500; transition: transform .2s; }
.gd-botao.aperta { transform: scale(.95); }
.gd-linha { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.gd-linha span { color: var(--muted); font-size: 12.5px; }
.gd-band { display: inline-block; width: 20px; height: 14px; border-radius: 2px; background: url(/assets/guiada/flags/br.svg) center/cover; flex: none; }

/* BLF encostado no Softphone (founder, 18/10): cerca de 1 cm entre as duas janelas, o par centralizado no palco */
.gd-par { position: absolute; left: 50%; top: 18px; translate: -50% 0; display: flex; align-items: flex-start; gap: 22px; }
.gd-par .gd-blf, .gd-par .gd-win { position: relative; left: auto; right: auto; top: auto; }
.gd-par .gd-blf { margin-top: 22px; }
img.gd-win-ic { width: 22px; height: 22px; background: none; border-radius: 0; object-fit: contain; }
@media (max-width: 640px) { .gd-par { gap: 0; } .gd-par .gd-win { translate: none; left: auto !important; } }
