/* ============================================================
   NIVELA LANDING — tour.css (página /tour)
   Rolagem livre: abertura (texto da hero da home + painel real), cenas com
   vídeos reais do app (css/video-real.css) e pausas curtas. Sem rolagem
   presa, sem passos numerados: cada cena é uma ideia.
   Animações só de opacidade/transform; "reduzir movimento" desliga tudo.
   ============================================================ */

.tr-page { background: var(--bg); color: var(--text); }
.tr { position: relative; overflow-x: clip; }

/* progresso discreto da leitura (topo da tela) */
.tr-progresso { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; pointer-events: none; }
.tr-progresso i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

/* ── ABERTURA ─────────────────────────────────────────────── */
.tr-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 0 72px;
}
.tr-hero::before {
  content: ''; position: absolute; inset: 10% -10% auto 30%; height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none; z-index: 0;
}
.tr-hero > * { position: relative; z-index: 1; }

/* ── CENAS ────────────────────────────────────────────────── */
.tr-cena {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(64px, 11vh, 128px) 0;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 9fr);
  gap: clamp(32px, 4.5vw, 76px);
  align-items: center;
}
.tr-cena--inv { grid-template-columns: minmax(0, 9fr) minmax(0, 4fr); }
.tr-cena--inv .tr-cena-texto { order: 2; }
.tr-cena--celular { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.tr-rotulo {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-3);
}
.tr-cena-texto h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.1vw, 2.7rem); font-weight: 750; line-height: 1.1; letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.tr-texto {
  margin-top: 16px; max-width: 30rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--text-2);
  text-wrap: pretty;
}
.tr-plano {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent-3); background: rgba(124,58,237,.10); border: 1px solid rgba(154,77,255,.32);
}
.tr-plano--todos { color: #86efac; background: rgba(16,185,129,.08); border-color: rgba(52,211,153,.32); }
.tr-link {
  display: flex; align-items: center; gap: 6px; width: fit-content; margin-top: 18px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--accent-3); text-decoration: none;
  border-bottom: 1px solid rgba(201,173,255,.35); padding-bottom: 2px;
}
.tr-link:hover { color: #fff; border-color: #fff; }

/* Recepção / TV da recepção (fila) */
.tr-vistas { display: flex; gap: 6px; margin-bottom: 14px; }
.tr-cena--inv .tr-vistas { justify-content: flex-end; }
.tr-vistas button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2);
  background: rgba(255,255,255,.03); color: var(--text-2); font: 600 13px var(--font); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tr-vistas button[aria-pressed="true"] { color: #fff; border-color: var(--accent-2); background: rgba(124,58,237,.24); }
.tr-vistas button:focus-visible, .tr-link:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }

.tr-tv { margin: 0; }
.tr-tv-tela {
  border: 12px solid #1d1726; border-radius: 12px; overflow: hidden; background: #0A0710;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 30px 110px -60px var(--accent-glow);
}
.tr-tv-tela img { display: block; width: 100%; height: auto; }
.tr-tv-pe {
  width: 130px; height: 26px; margin: 0 auto;
  background: linear-gradient(#1d1726, #120e18);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
}
.tr-tv figcaption { margin-top: 12px; text-align: center; font-size: var(--fs-xs); color: var(--text-3); }

/* ── PAUSAS (a parte mais humana da página) ───────────────── */
.tr-pausa { position: relative; padding: clamp(96px, 16vh, 170px) 24px; }
.tr-pausa::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(900px, 90vw); height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124,58,237,.14) 0%, transparent 65%);
  pointer-events: none;
}
.tr-pausa-in { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.tr-pausa-in::before {
  content: ''; display: block; width: 44px; height: 2px; margin: 0 auto 22px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}
.tr-pausa h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.tr-pausa-in > p:not(.tr-rotulo) {
  margin: 22px auto 0; max-width: 40rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--text-2); text-wrap: pretty;
}
.tr-pausa-in > p.tr-pausa-contato { font-size: var(--fs-sm); color: var(--text-3); }
.tr-pausa-contato a { color: var(--accent-3); text-decoration: none; border-bottom: 1px solid rgba(201,173,255,.35); }
.tr-pausa-contato a:hover { color: #fff; border-color: #fff; }

/* ── FECHO / RODAPÉ ───────────────────────────────────────── */
.tr-fim { text-align: center; padding: clamp(96px, 14vh, 150px) 24px 110px; border-top: 1px solid rgba(255,255,255,.05); }
.tr-fim-in { max-width: 760px; margin: 0 auto; }
.tr-fim h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.08; text-wrap: balance; }
.tr-fim-in > p:not(.hero-micro) { margin-top: 16px; color: var(--text-2); font-size: var(--fs-md); }
.tr-fim-ctas { justify-content: center; margin-top: 30px; }
.tr-fim .hero-micro { margin-top: 16px; }
.tr-nota { max-width: 560px; margin: 44px auto 0; font-size: var(--fs-xs); color: var(--text-3); }
.tr-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 28px 24px 110px; border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-xs); }
.tr-footer a { color: var(--text-2); text-decoration: none; }
.tr-footer a:hover { color: var(--text); }

/* ── ENTRADA SUAVE AO ROLAR (só com JS; sem JS tudo aparece) ─ */
.tr-js [data-revela] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.tr-js .tr-cena-media[data-revela] { transform: translate3d(0, 34px, 0) scale(.975); transition-delay: .06s; }
.tr-js [data-revela].is-in { opacity: 1; transform: none; }

/* ── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .tr-hero { grid-template-columns: 1fr; min-height: 0; gap: 44px; padding: calc(var(--nav-h) + 36px) 0 56px; }
  .tr-cena, .tr-cena--inv, .tr-cena--celular { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; }
  .tr-cena--inv .tr-cena-texto { order: 0; }
  .tr-cena--inv .tr-vistas { justify-content: flex-start; }
  .tr-texto { max-width: none; }
}
@media (max-width: 600px) {
  .tr-hero, .tr-cena { width: calc(100vw - 32px); }
  .tr-cena { padding: 52px 0; }
  .vr--celular .vr-frame { max-width: 286px; }
  .tr-tv-tela { border-width: 7px; }
  .tr-pausa { padding: 80px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-js [data-revela], .tr-js .tr-cena-media[data-revela] { opacity: 1; transform: none; transition: none; }
  .tr-progresso { display: none; }
}
