/* Doug — tour guiado ("o site se apresenta sozinho").
 * Progressive enhancement: sem este CSS/JS a landing continua identica.
 * Paleta herdada da marca: #0F1F2A (fundo), #F4F1EA (texto), acento por piloto.
 */

.dtour,
.dtour * {
  box-sizing: border-box;
}

.dtour {
  --dt-ink: #f4f1ea;
  --dt-deep: #0b1720;
  --dt-accent: #c7a45a;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------------- seletor */

.dtour-picker {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  background: var(--dt-deep);
  color: var(--dt-ink);
  transition: background-color 0.55s ease;
}

.dtour-picker[hidden] {
  display: none;
}

.dtour-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 18px;
}

.dtour-headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(24px, 5vh, 54px);
  text-align: center;
  font-weight: 600;
}

.dtour-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 230px;
  justify-content: center;
}

.dtour-avatar {
  width: clamp(112px, 18vw, 168px);
  height: clamp(112px, 18vw, 168px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.1), transparent 68%);
  border: 2px solid var(--dt-accent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--dt-accent) 12%, transparent);
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s ease;
}

.dtour-avatar img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.dtour-name {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 6px 0 0;
  font-weight: 600;
}

.dtour-tagline {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.72;
  margin: 0;
  text-align: center;
}

.dtour-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(28px, 6vh, 62px);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(244, 241, 234, 0.12);
  flex-wrap: wrap;
  justify-content: center;
}

.dtour-chip {
  --chip: var(--dt-accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--chip) 45%, transparent);
  background: rgba(244, 241, 234, 0.08);
  display: grid;
  place-items: center;
  padding: 0;
  color: inherit;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.dtour-chip img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.dtour-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--chip) 30%, transparent);
  border-color: var(--chip);
  transform: scale(1.14);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--chip) 16%, transparent);
}

.dtour-chip[aria-pressed="true"] img,
.dtour-chip:hover img {
  opacity: 1;
}

.dtour-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.22);
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
}

.dtour-go {
  margin-left: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--dt-accent);
  color: var(--dt-deep);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color 0.45s ease;
}

.dtour-skip {
  margin-top: 22px;
  background: none;
  border: 0;
  color: inherit;
  opacity: 0.6;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.dtour-hint {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* ------------------------------------------------------------------- HUD */

.dtour-mascot {
  position: fixed;
  z-index: 9300;
  width: 84px;
  height: 84px;
  left: 50%;
  top: 62%;
  margin-left: -42px;
  pointer-events: none;
  transition:
    top 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  animation: dtour-float 4.5s ease-in-out infinite;
}

.dtour-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45));
}

@keyframes dtour-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.dtour-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(78vw, 300px);
  padding: 11px 15px;
  border-radius: 14px;
  background: #14232e;
  color: #f4f1ea;
  border: 1px solid color-mix(in srgb, var(--dt-accent) 45%, transparent);
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.dtour-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #14232e;
}

.dtour-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
}

.dtour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(128, 128, 128, 0.45);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.dtour-dot[aria-current="true"] {
  background: var(--dt-accent);
  transform: scale(1.75);
}

.dtour-bar {
  position: fixed;
  z-index: 9300;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: rgba(11, 23, 32, 0.9);
  border: 1px solid color-mix(in srgb, var(--dt-accent) 35%, transparent);
  backdrop-filter: blur(8px);
  color: #f4f1ea;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dtour-bar button {
  border: 1px solid rgba(244, 241, 234, 0.22);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 13px;
  font: inherit;
}

.dtour-bar button.dtour-primary {
  background: var(--dt-accent);
  color: var(--dt-deep);
  border-color: transparent;
  font-weight: 700;
}

.dtour-clock {
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------- botao de start */

.dtour-launch {
  position: fixed;
  z-index: 9200;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--dt-accent) 40%, transparent);
  background: rgba(11, 23, 32, 0.88);
  backdrop-filter: blur(8px);
  color: #f4f1ea;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.dtour-launch img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Convite da primeira visita: fica acima do botao, some sozinho e nunca
   cobre o conteudo — nada de overlay em cima da primeira dobra. */
.dtour-launch-hint {
  position: fixed;
  z-index: 9200;
  left: 18px;
  bottom: 68px;
  margin: 0;
  max-width: min(72vw, 250px);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #14232e;
  color: #f4f1ea;
  border: 1px solid color-mix(in srgb, var(--dt-accent) 45%, transparent);
  font-size: 0.84rem;
  line-height: 1.4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.dtour-launch-hint[hidden],
.dtour-launch[hidden],
.dtour-mascot[hidden],
.dtour-dots[hidden],
.dtour-bar[hidden] {
  display: none;
}

.dtour button:focus-visible,
.dtour-launch:focus-visible {
  outline: 2px solid var(--dt-accent);
  outline-offset: 3px;
}

/* No celular o canto direito e dos botoes de contato. O tour fica todo no canto
   esquerdo e o botao vira circulo, do mesmo tamanho dos outros — nada se cobre. */
@media (max-width: 640px) {
  .dtour-rail {
    gap: 4px;
    padding: 6px;
  }

  .dtour-chip {
    width: 34px;
    height: 34px;
  }

  .dtour-go {
    margin: 8px 0 0;
    width: 100%;
  }

  .dtour-hint {
    display: none;
  }

  .dtour-dots {
    right: 6px;
  }

  .dtour-launch {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    gap: 0;
    left: 0.85rem;
    bottom: 0.85rem;
  }

  .dtour-launch span {
    display: none; /* o aria-label continua descrevendo o botao */
  }

  .dtour-launch img {
    width: 30px;
    height: 30px;
  }

  .dtour-launch-hint {
    left: 0.85rem;
    bottom: 74px;
    max-width: min(62vw, 210px);
    font-size: 0.78rem;
  }

  /* Barra do tour: cabe entre os dois cantos ocupados e nao encosta neles. */
  .dtour-bar {
    left: 0.85rem;
    right: 72px; /* termina antes da coluna Telegram/WhatsApp */
    transform: none;
    bottom: 20px;
    justify-content: center;
    padding: 6px 6px 6px 12px;
    font-size: 0.62rem;
    gap: 7px;
  }

  .dtour-bar button {
    padding: 6px 10px;
  }
}

/* Movimento reduzido: nada de flutuar, nada de auto-scroll suave.
 * O tour continua funcionando, mas so avanca quando a pessoa pede. */
@media (prefers-reduced-motion: reduce) {
  .dtour-mascot {
    animation: none;
    transition: opacity 0.2s ease;
  }

  .dtour-picker,
  .dtour-avatar,
  .dtour-chip,
  .dtour-go {
    transition: none;
  }
}

/* -------------------------------------------------- o aviao que apresenta */

/* A arte e roxa; cada piloto tinge o mesmo aviao com o proprio acento em vez
   de precisar de cinco desenhos. Rotacao leve dá a sensação de voo. */
.dtour-plane {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.dtour-avatar .dtour-plane {
  transform: rotate(-8deg);
}

.dtour-chip[aria-pressed="true"] .dtour-plane {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--chip) 70%, transparent));
}

/* No balão do tour o avião voa apontando para a próxima parada, abaixo. */
.dtour-mascot .dtour-plane {
  transform: rotate(28deg);
}

.dtour-launch .dtour-plane {
  transform: rotate(-14deg);
}

@media (prefers-reduced-motion: reduce) {
  .dtour-avatar .dtour-plane,
  .dtour-mascot .dtour-plane,
  .dtour-launch .dtour-plane {
    transform: none;
  }
}
