/* ============================================================================
   bd-tour.css — overlay da demonstração interativa
   ============================================================================
   Arquivo próprio, fora do style.css: o style.css é compartilhado por todas as
   páginas do site, e nada aqui pode respingar em quem não abriu o tour.
   ============================================================================ */

.bdt-dialogo {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: #0b1020;
  color: #fff;
  overflow: hidden;
}
.bdt-dialogo::backdrop { background: rgba(8, 12, 26, .82); }

/* ------------------------------------------------------ progresso -- */
/* Quatro traços na borda de cima, e nada mais. A barra com marca e pílulas que
   existia aqui competia com o produto, que é o que a pessoa veio ver. */
.bdt-progresso {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 12;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  height: 3px;
  background: rgba(255, 255, 255, .10);
}
.bdt-progresso i { background: transparent; transition: background .35s ease; }
.bdt-progresso i.on { background: #726bc2; }

.bdt-fechar {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 12;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .18);
}
.bdt-fechar:hover { background: #f1f5f9; }

/* ------------------------------------------------------------ palco -- */
.bdt-palco { position: relative; height: 100vh; background: #f6f7fb; }
.bdt-quadro { width: 100%; height: 100%; border: 0; display: block; background: #f6f7fb; }

.bdt-carregando {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #f6f7fb;
  z-index: 2;
}
.bdt-spin {
  width: 18px; height: 18px;
  border: 2px solid #d7d9ea;
  border-top-color: #726bc2;
  border-radius: 50%;
  animation: bdtGira .8s linear infinite;
}
@keyframes bdtGira { to { transform: rotate(360deg); } }

/* Tablet: o app é dimensionado para desktop e telas densas como o inventário
   não colapsam bem no Bootstrap. Escalar preserva a leitura do tour. */
@media (max-width: 1279px) {
  .bdt-quadro {
    width: 1280px;
    max-width: none;   /* mesma razão do cartaz: a regra global clamparia isto */
    height: calc(100vh / 0.72);
    transform: scale(0.72);
    transform-origin: top left;
  }
  .bdt-palco { overflow: hidden; }
}

/* ------------------------------------------------------------- gate -- */
.bdt-gate {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(3px);
  z-index: 10;
}
.bdt-gate-cartao {
  width: min(440px, calc(100vw - 40px));
  background: #fff;
  color: #0f172a;
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(8, 12, 26, .45);
  text-align: center;
}
.bdt-gate-cartao h3 { margin: 0 0 10px; font: 800 20px/1.25 Inter, system-ui, sans-serif; }
.bdt-gate-cartao p { margin: 0 0 20px; font: 400 14px/1.55 Inter, system-ui, sans-serif; color: #475569; }
.bdt-gate-cartao form { display: flex; flex-direction: column; gap: 10px; }
.bdt-gate-cartao input {
  width: 100%;
  border: 1px solid #d9dceb;
  border-radius: 10px;
  padding: 12px 14px;
  font: 400 14px Inter, system-ui, sans-serif;
}
.bdt-gate-cartao input:focus { outline: 2px solid #726bc2; outline-offset: 1px; border-color: #726bc2; }
.bdt-bt-1 {
  display: inline-block;
  border: 0; border-radius: 10px;
  background: #726bc2; color: #fff;
  padding: 12px 18px;
  font: 700 14px Inter, system-ui, sans-serif;
  cursor: pointer; text-decoration: none;
}
.bdt-bt-1:hover { background: #5f58ad; color: #fff; }
.bdt-pular {
  margin-top: 12px;
  border: 0; background: none;
  color: #94a3b8;
  font: 600 13px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.bdt-pular:hover { color: #475569; }
.bdt-gate-acoes { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* --------------------------------------------- cartões do celular -- */
/* Sem iframe, sem overlay: quatro cartões que deslizam. */
.bd-tour-mobile { display: none; }
@media (max-width: 1023px) {
  .bd-tour-mobile { display: block; }
  .bd-tour-mobile-trilho {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px;
    margin: 0 -4px;
  }
  .bd-tour-mobile-trilho::-webkit-scrollbar { display: none; }
  .bd-tour-cartao {
    flex: 0 0 82%;
    scroll-snap-align: center;
    background: #fff;
    border: 1px solid #e6e8f2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
  }
  .bd-tour-cartao img { width: 100%; height: auto; display: block; background: #f6f7fb; }
  .bd-tour-cartao-txt { padding: 14px 16px 18px; }
  .bd-tour-cartao-n {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #726bc2; color: #fff;
    font: 800 11px Inter, system-ui, sans-serif;
    margin-bottom: 8px;
  }
  .bd-tour-cartao h4 { margin: 0 0 5px; font: 800 15px/1.3 Inter, system-ui, sans-serif; color: #0f172a; }
  .bd-tour-cartao p { margin: 0; font: 400 13px/1.5 Inter, system-ui, sans-serif; color: #64748b; }
}

/* Espaço dos cartões do celular dentro da seção de funcionalidades. */
.bd-tour-mobile { margin: 0 0 34px; }

/* ---------------------------------------------------- quadro do herói -- */
/* Respeita o ritmo do resto do site: o mesmo respiro que separa as seções,
   e não uma margem própria inventada aqui. */
.bd-tour-palco {
  position: relative;
  width: min(1024px, calc(100vw - 40px));
  margin: 56px auto 0;
}
.bd-tour-moldura {
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 0;
  box-shadow: 0 -2px 70px rgba(114, 107, 194, .25);
}
.bd-tour-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: #eceef6;
  border-bottom: 1px solid #dfe2ee;
}
.bd-tour-barra span { width: 9px; height: 9px; border-radius: 50%; background: #c9cddd; }

.bd-tour-tela { position: relative; height: 470px; overflow: hidden; background: #f6f7fb; }
/* 1280 x 0.8 = 1024, exatamente a largura do palco: sem sobra branca à direita. */
.bd-tour-tela iframe {
  width: 1280px;
  /* `max-width: none` porque a rede de segurança das páginas aplica
     `iframe { max-width: 100% }`. Sem isto, o cartaz nascia com a largura do
     contêiner em vez de 1280, e o `scale(0.8)` em cima disso deixava um vão
     vazio à direita dentro da moldura. */
  max-width: none;
  height: 720px;
  border: 0;
  display: block;
  transform: scale(0.8);
  transform-origin: top left;
  pointer-events: none;
}
/* A imagem termina desaparecendo no fundo do herói em vez de ser cortada a
   régua. É o corte que sugere que tem mais coisa embaixo. */
.bd-tour-moldura::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 190px;
  background: linear-gradient(to bottom, rgba(11, 12, 24, 0) 0%, rgba(11, 12, 24, .75) 55%, rgba(11, 12, 24, .97) 100%);
  pointer-events: none;
}

/* Centrado na horizontal, mas abaixo do meio na vertical: no centro exato ele
   caía em cima dos indicadores e tapava justamente o número que dá credibilidade
   ao cartaz. Aqui ele flutua sobre a faixa que o degradê já esmaeceu. */
.bd-tour-cta {
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #726bc2;
  color: #fff;
  padding: 15px 30px;
  font: 700 15.5px Inter, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(11, 12, 24, .5), 0 0 0 6px rgba(114, 107, 194, .18);
  transition: background .18s ease, box-shadow .18s ease;
}
.bd-tour-cta:hover {
  background: #6259b5;
  box-shadow: 0 14px 40px rgba(11, 12, 24, .55), 0 0 0 9px rgba(114, 107, 194, .22);
}
.bd-tour-cta-play {
  display: inline-grid; place-items: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  font-size: 10px; line-height: 1;
}

/* Entre 1024 e 1120 o palco encolhe junto com a janela, então a escala do
   iframe deixa de casar. Encolher a moldura mantém a proporção. */
@media (max-width: 1120px) {
  .bd-tour-tela { height: 420px; }
  .bd-tour-tela iframe { transform: scale(0.72); }
  .bd-tour-cta { padding: 13px 24px; font-size: 14px; }
}

@media (max-width: 1023px) {
  .bd-tour-palco { display: none; }
}
