/* ==========================================================================
   WhatsDoc — "Deck cinematográfico"
   Cada slide da apresentação é exibido INTEIRO (sem cortes), como uma tela
   de projetor sobre um palco escuro. Camada interativa (nav, CTAs, lightbox)
   fica por cima. Complementa style.css (que cobre login/ferramenta).
   ========================================================================== */

body.deck {
  background: #060f24;
  color: #e7eefc;
}

/* Palco de fundo contínuo (cinema) */
body.deck::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 80% 8%, rgba(26, 115, 232, 0.22), transparent 60%),
    radial-gradient(60% 50% at 10% 92%, rgba(0, 166, 108, 0.16), transparent 60%),
    linear-gradient(160deg, #0a1836 0%, #060f24 55%, #050b1c 100%);
}
/* leve granulado/vinheta cinematográfica */
body.deck::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 60%, rgba(0,0,0,0.55) 100%);
}

/* ---- Header sobre o deck ---- */
.deck header#header nav a { color: #cfe0ff; }
.deck header#header:not(.solid) .brand b { color: #fff; }
.deck header#header.solid {
  background: rgba(8, 18, 40, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.deck header#header.solid .brand b { color: #fff; }
.deck header#header.solid nav a { color: #cfe0ff; }

/* ---- Navegação por pontos (lateral) ---- */
.dots {
  position: fixed; right: clamp(12px, 2vw, 26px); top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
}
.dots a {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform .25s ease, background .25s ease;
  position: relative;
}
.dots a:hover { background: rgba(255, 255, 255, 0.6); transform: scale(1.25); }
.dots a.active { background: var(--wa); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18); }
.dots a span {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-size: .74rem; font-weight: 700; color: #dbe7ff;
  background: rgba(8, 18, 40, 0.9); padding: 4px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.dots a:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---- Cena / palco de cada slide ---- */
.deck-scene {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(96px, 12vh, 130px) clamp(16px, 4vw, 56px) clamp(50px, 8vh, 90px);
  scroll-margin-top: 80px;
}

.scene-index {
  position: absolute; top: clamp(70px, 11vh, 120px); left: clamp(16px, 4vw, 56px);
  font-size: clamp(3.4rem, 8vw, 6.5rem); font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, 0.05); z-index: 0; user-select: none; letter-spacing: -0.04em;
}
.scene-kicker {
  position: relative; z-index: 2;
  margin-bottom: 20px; text-align: center;
  font-size: .82rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: #7fb3ff; display: inline-flex; align-items: center; gap: 12px;
}
.scene-kicker::before, .scene-kicker::after {
  content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--wa)); border-radius: 2px;
}
.scene-kicker::before { background: linear-gradient(90deg, var(--wa), transparent); }

/* A "tela" — slide inteiro, nunca cortado */
.screen {
  position: relative; z-index: 2;
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.4vw, 20px);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow:
    0 40px 120px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #0a1020;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
  will-change: transform;
}
.screen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.25);
  border-radius: inherit;
}
.screen:hover { transform: translateY(-6px) scale(1.006); box-shadow: 0 55px 140px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(127, 179, 255, 0.25); }
/* brilho do "projetor" atrás da tela */
.screen-halo {
  position: absolute; z-index: 1; width: min(1280px, 92%); aspect-ratio: 16/9;
  border-radius: 40px; filter: blur(60px); opacity: .5;
  background: radial-gradient(closest-side, rgba(26,115,232,.5), transparent 70%);
}
.deck-scene.is-dark .screen-halo { background: radial-gradient(closest-side, rgba(55, 232, 163, .35), transparent 70%); }

.zoom-hint {
  position: relative; z-index: 2; margin-top: 16px; font-size: .8rem; color: #7f92b8;
  display: inline-flex; align-items: center; gap: 7px;
}

/* ---- Barra de CTA (para slides de ação: hero, planos, conclusão) ---- */
.cta-bar {
  position: relative; z-index: 2;
  margin-top: clamp(22px, 3vh, 34px);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center;
}
.cta-bar .price-cta { display: flex; align-items: center; gap: 8px; }
.cta-note { width: 100%; text-align: center; color: #8ea3c9; font-size: .85rem; margin-top: 4px; }

/* Botão fantasma claro para o deck escuro */
.btn-outline {
  background: rgba(255,255,255,0.04); color: #eaf1ff; border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--wa); color: #fff; transform: translateY(-3px); }

/* ---- Lightbox (ampliar slide) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(3, 8, 20, 0.94); backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2rem; cursor: pointer;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.08); transition: background .2s;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,0.18); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.2rem; cursor: pointer;
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.08); transition: background .2s; user-select: none;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cdd9f2; font-size: .85rem; font-weight: 700; letter-spacing: .1em; }

/* ---- Rodapé do deck ---- */
.deck footer { position: relative; z-index: 1; background: rgba(4, 10, 24, 0.6); border-top: 1px solid rgba(255,255,255,0.06); }

/* ---- Responsivo ---- */
@media (max-width: 900px) {
  .dots { display: none; }
  .scene-index { top: 78px; }
}
@media (max-width: 640px) {
  .zoom-hint { font-size: .75rem; }
  .cta-bar .btn { width: 100%; max-width: 320px; }
}
