/* Passo a passo da demonstração (tour.js). Fica por cima de tudo, inclusive das janelas abertas. */
[data-tour] {
  display: none !important;
}
.com-tour [data-tour] {
  display: inline-flex !important;
}
.tour-novo .demo-faixa [data-tour] {
  box-shadow: 0 0 0 3px rgba(91, 26, 51, 0.18);
}
.demo-botoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tour {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.tour-veu {
  position: fixed;
  inset: 0;
  background: transparent;
}
.tour.sem-alvo .tour-veu {
  background: rgba(30, 10, 18, 0.62);
}
.tour-luz {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 200vmax rgba(30, 10, 18, 0.62);
  outline: 2px solid var(--ouro-claro);
  outline-offset: 2px;
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.tour-cartao {
  position: fixed;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--tinta);
  border-radius: 16px;
  border-top: 4px solid var(--marca);
  padding: 16px 18px 14px;
  box-shadow: 0 24px 60px rgba(20, 6, 12, 0.35);
  outline: none;
}
.tour-cartao.largo {
  width: 430px;
}
.tour-cartao.final {
  width: 440px;
  text-align: left;
}
.tour-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.tour-conta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ouro);
  text-transform: uppercase;
}
.tour-pular {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cinza);
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 36px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-barra {
  height: 3px;
  background: var(--linha);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tour-barra i {
  display: block;
  height: 100%;
  background: var(--marca);
  transition: width 0.25s ease;
}
.tour-cartao h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--marca);
  margin: 0 0 8px;
}
.tour-texto p {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.5;
}
.tour-nota {
  font-size: 13.5px !important;
  color: var(--cinza);
  margin: 6px 0 0 !important;
}
.tour-nota a {
  color: var(--marca-2);
  font-weight: 600;
}
.tour-extra:empty {
  display: none;
}
.tour-extra {
  margin-top: 10px;
}
.tour-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
  /* Em tela baixa o cartão rola, mas os botões ficam sempre à vista. */
  position: sticky;
  bottom: -14px;
  background: #fff;
  padding: 8px 0 2px;
}
.tour-nav .btn {
  min-height: 44px;
  white-space: normal;
  line-height: 1.2;
}
.tour-cartao .btn:focus-visible,
.tour-cartao button:focus-visible,
.tour-cartao a:focus-visible {
  outline: 3px solid var(--ouro-claro);
  outline-offset: 2px;
}
.tour-cartao .btn:focus:not(:focus-visible) {
  outline: none;
}
.tour-nav [data-t='proximo'] {
  flex: 0 1 auto;
  min-width: 128px;
}
.tour-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: 0;
}

/* conversa no WhatsApp (visto do celular do cliente) */
.tz {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e3dcd4;
  background: #efe7de;
}
.tz-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  color: #fff;
  padding: 9px 12px;
}
.tz-topo b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.tz-topo small {
  color: #cfe9e4;
  font-size: 12px;
}
.tz-foto {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--marca);
  color: var(--ouro-claro);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  flex: none;
}
.tz-conversa {
  padding: 12px 12px 14px;
}
.tz-bolha {
  background: #fff;
  border-radius: 4px 12px 12px 12px;
  padding: 8px 10px 6px;
  max-width: 92%;
  font-size: 14.5px;
  line-height: 1.45;
  color: #1f2a24;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  overflow-wrap: anywhere;
}
.tz-bolha a {
  color: #027eb5;
}
.tz-bolha small {
  display: block;
  text-align: right;
  font-size: 11.5px;
  color: #7a8580;
  margin-top: 2px;
}
.tour-abas {
  display: inline-flex;
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 10px;
  gap: 3px;
}
.tour-abas button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  background: none;
  color: var(--cinza);
  padding: 7px 12px;
  border-radius: 7px;
  min-height: 36px;
  cursor: pointer;
}
.tour-abas button[aria-pressed='true'] {
  background: var(--marca);
  color: #fff;
}

/* carnê de verdade, dentro de um "celular" */
.tour-carne {
  border-radius: 18px;
  border: 6px solid #1c0b12;
  overflow: hidden;
  background: var(--fundo);
  height: min(430px, 48dvh);
}
.tour-carne iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tour-exemplo {
  margin: 0;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--fundo);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 9px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tour-cta {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.tour-cta .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* celular: o cartão fica embaixo, o alvo em cima */
@media (max-width: 720px) {
  .tour-cartao.embaixo {
    left: 10px !important;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    top: auto !important;
    width: auto;
    max-width: none;
    max-height: 56dvh;
    padding: 14px 15px 12px;
  }
  .tour-cartao.embaixo .tour-nav {
    bottom: -12px;
  }
  .tour-cartao.embaixo.largo,
  .tour-cartao.embaixo.final {
    max-height: calc(100dvh - 24px);
  }
  .tour.sem-alvo .tour-cartao.embaixo.final {
    bottom: auto;
    top: 50% !important;
    transform: translateY(-50%);
  }
  .tour-cartao h2 {
    font-size: 19px;
  }
  .tour-texto p {
    font-size: 15px;
  }
  .tour-carne {
    height: min(400px, 46dvh);
  }
  .tour-nav .btn {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-luz,
  .tour-barra i {
    transition: none;
  }
}
