/* ==========================================================================
   Wanderlust — folha de estilo
   Todos os números de layout são pixels do Figma num quadro de 1440 de largura,
   escritos em rem sobre uma raiz de 16px. A raiz escala com a viewport (grade
   adaptativa abaixo), então o desenho inteiro fica proporcional.
   Breakpoints: ≤1024 = tablet e abaixo · ≤640 = celular.
   ========================================================================== */

/* ── Fontes (auto-hospedadas em assets/fonts) ─────────────────────────────── */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* primitivos */
  --raw-color-white: #ffffff;
  --raw-color-neutral-100: #ededed;
  --raw-color-neutral-900: #171717;
  --raw-color-neutral-950: #0a0a0a;
  --raw-color-black: #000000;
  --raw-color-cream-100: #ffedc3;
  --raw-color-cream-100-alpha-40: rgb(255 237 195 / 0.4);
  --raw-color-cream-100-alpha-50: rgb(255 237 195 / 0.5);
  --raw-color-cream-100-alpha-80: rgb(255 237 195 / 0.8);
  --raw-color-black-alpha-50: rgb(0 0 0 / 0.5);
  --raw-color-black-alpha-40: rgb(0 0 0 / 0.4);
  --raw-color-black-alpha-15: rgb(0 0 0 / 0.15);
  --raw-color-signal-red: #ff3b30;
  --raw-color-ink-950: #0c0c0c;
  --raw-color-ink-950-alpha-10: rgb(12 12 12 / 0.1);

  --raw-duration-fast: 150ms;
  --raw-duration-normal: 250ms;
  --raw-radius-xs: 0.25rem;

  /* escala tipográfica — px @1440 ÷ 16 */
  --raw-text-display: 5.625rem;   /* 90px */
  --raw-text-wordmark: 1.5rem;    /* 24px */
  --raw-text-body: 0.875rem;      /* 14px */
  --raw-text-caption: 0.75rem;    /* 12px */

  /* entrelinhas ABSOLUTAS (multiplicador × tamanho) */
  --raw-leading-title: 4.5rem;
  --raw-leading-wordmark: 1.35rem;
  --raw-leading-body: 0.7rem;
  --raw-leading-caption: 0.6rem;

  --raw-spacing-page: 1.5rem;
  --raw-spacing-md: 0.75rem;
  --raw-spacing-sm: 0.625rem;
  --raw-spacing-xs: 0.375rem;

  /* papéis semânticos */
  --background: var(--raw-color-white);
  --foreground: var(--raw-color-neutral-900);
  --surface-cinema: var(--raw-color-black);
  --surface-glass: var(--raw-color-ink-950-alpha-10);
  --surface-gallery: var(--raw-color-ink-950);
  --foreground-accent: var(--raw-color-cream-100);
  --foreground-accent-muted: var(--raw-color-cream-100-alpha-40);
  --foreground-accent-soft: var(--raw-color-cream-100-alpha-50);
  --foreground-accent-strong: var(--raw-color-cream-100-alpha-80);
  --foreground-ink: var(--raw-color-black);
  --foreground-ink-muted: var(--raw-color-black-alpha-40);
  --foreground-signal: var(--raw-color-signal-red);
  --scrim-page: var(--raw-color-black-alpha-50);
  --scrim-media: var(--raw-color-black-alpha-40);
  --scrim-scene: var(--raw-color-black-alpha-40);
  --scrim-cta: var(--raw-color-black-alpha-15);
  --scrim-panel: var(--raw-color-black-alpha-50);
  --rounding-media: var(--raw-radius-xs);

  --typeface-display: "Instrument Serif", serif;
  --typeface-ui: "Inter Tight", sans-serif;
  --typeface-hand: "Caveat", cursive;

  --duration-fast: var(--raw-duration-fast);
  --duration-normal: var(--raw-duration-normal);
  --ease-entrance: cubic-bezier(0.2, 0, 0, 1);

  --page: var(--raw-spacing-page);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: var(--raw-color-neutral-950);
    --foreground: var(--raw-color-neutral-100);
  }
}

/* ── Grade adaptativa — sustenta todo o layout ────────────────────────────── */
html { font-size: 16px; }
@media (min-width: 1441px) { html { font-size: 1.111111vw; } } /* escala para cima, coef 1 */
@media (max-width: 1440px) { html { font-size: 1.111111vw; } } /* 16·100/1440 */
@media (max-width: 1024px) { html { font-size: 1.5625vw; } }   /* 16·100/1024 */
@media (max-width: 640px)  { html { font-size: 4.444444vw; } } /* 16·100/360  */

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  /* `clip`, NÃO `hidden` — hidden transforma o body num contêiner de rolagem e
     quebra o position:sticky do bloco fixado. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; }
button, input { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; }
button { cursor: pointer; text-transform: inherit; }
i { font-style: italic; }
.bloco { display: block; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Utilitários */
.text-trim { text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.min-h-viewport { min-height: 100vh; min-height: 100dvh; }
.so-compacto, .so-celular, .so-tablet { display: none; }

/* Texto revelado letra a letra / palavra a palavra */
.rv-palavra { display: inline-block; white-space: nowrap; }
.rv-letra { display: inline-block; }
.rv-pendente .rv-letra, .rv-pendente .rv-palavra-anim { opacity: 0; }

/* Anel de foco único: creme sobre fotografia precisa do afastamento */
.foco:focus-visible, .hero-ui a:focus-visible, .hero-ui button:focus-visible,
.dst button:focus-visible { outline: 2px solid var(--foreground-accent); outline-offset: 4px; }

/* Toque: estado pressionado em vez de hover */
@media (hover: none) {
  .toque { cursor: pointer; }
  .toque-press { transition: translate var(--duration-normal) var(--ease-entrance), scale var(--duration-normal) var(--ease-entrance); }
  .toque:active .toque-press { translate: 0 -6px; scale: 1.025; }
}
@media (prefers-reduced-motion: reduce) { .toque-press { transition: none !important; } }

/* Tipos compartilhados do hero */
.legenda {
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: var(--raw-text-caption); line-height: var(--raw-leading-caption);
  color: var(--foreground-accent);
  text-box-trim: trim-both; text-box-edge: cap alphabetic;
}
.corpo {
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: var(--raw-text-body); line-height: var(--raw-leading-body);
  color: var(--foreground-accent);
  text-box-trim: trim-both; text-box-edge: cap alphabetic;
}
@media (max-width: 1024px) {
  .legenda, .corpo { font-size: 14px; line-height: 11.2px; }
}

/* ── Aviso de mídia que não carregou ─────────────────────────────────────── */
.aviso-midia {
  position: fixed; left: 50%; bottom: 1rem; z-index: 100; translate: -50% 0;
  max-width: min(90vw, 40rem);
  padding: 12px 16px; border-radius: 6px;
  background: #1d1d1d; color: var(--foreground-accent);
  border: 1px solid var(--foreground-signal);
  font: 500 13px/1.4 var(--typeface-ui);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.5);
}
.aviso-midia strong { display: block; color: var(--foreground-signal); margin-bottom: 4px; }
.aviso-midia span { display: block; word-break: break-all; opacity: 0.8; }
.midia-falhou { outline: 1px dashed var(--foreground-signal); outline-offset: -1px; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.pre {
  position: fixed; inset: 0; z-index: 60; overflow: hidden;
  background: var(--surface-cinema);
  will-change: transform;
}
.pre-marca {
  position: absolute; top: var(--page); left: var(--page);
  font-family: var(--typeface-display);
  font-size: var(--raw-text-wordmark); line-height: var(--raw-leading-wordmark);
  color: var(--foreground-accent);
}
.pre-centro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pre-contador {
  font-family: var(--typeface-display);
  font-size: var(--raw-text-display); line-height: var(--raw-leading-title);
  color: var(--foreground-accent);
  font-variant-numeric: tabular-nums;
}
.pre-barra {
  position: absolute; bottom: var(--page); left: var(--page); right: var(--page);
  display: block; height: 1px; overflow: hidden;
  background: var(--foreground-accent-muted);
}
.pre-barra-cheia {
  position: absolute; inset: 0; display: block;
  background: var(--foreground-accent);
  transform-origin: left; transform: scaleX(0);
}
@media (max-width: 1024px) {
  .pre-marca { font-size: 20px; line-height: 18px; }
  .pre-contador { font-size: 72px; line-height: 57.6px; }
}
@media (max-width: 640px) {
  .pre-contador { font-size: 56px; line-height: 44.8px; }
}

/* ==========================================================================
   BLOCO 1 — HERO
   ========================================================================== */
.hero { position: relative; }
.hero-palco {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  background: var(--surface-cinema);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-still {
  pointer-events: none; position: absolute; inset: 0; opacity: 0;
  transition: opacity 520ms cubic-bezier(0.33, 1, 0.68, 1); /* easeOutCubic */
}
.hero-still.visivel { opacity: 1; }
.hero-still img { width: 100%; height: 100%; object-fit: cover; }
.hero-veu { pointer-events: none; position: absolute; inset: 0; background: var(--scrim-page); opacity: 0; }
.hero-vinheta {
  pointer-events: none; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, black 125%);
}
.hero-grao {
  pointer-events: none; position: absolute; inset: -6rem;
  mix-blend-mode: overlay; opacity: 0.3;
  background-image: url("../img/hero/grao.svg");
  background-size: 200px 200px;
  will-change: transform;
}

/* Miniaturas das bordas — sangram para fora do quadro */
.hero-mini {
  position: absolute; left: 37.9375rem; width: 14.1875rem; overflow: hidden;
  opacity: 0;
}
.hero-mini--topo { top: 0; height: 8.25rem; border-radius: 0 0 var(--rounding-media) var(--rounding-media); }
.hero-mini--base { bottom: 0; height: 8.3125rem; border-radius: var(--rounding-media) var(--rounding-media) 0 0; }
.hero-mini img { position: absolute; max-width: none; height: auto; }
.hero-mini--topo img { width: 444.3%; left: -191.52%; top: -152.58%; }
.hero-mini--base img { width: 313.54%; left: -213.75%; top: -36.8%; }
.hero-mini-veu { position: absolute; inset: 0; background: var(--scrim-media); }
@media (max-width: 1024px) {
  .hero-mini { left: 50%; margin-left: -7rem; width: 14rem; height: 8.1rem; }
}
@media (max-width: 640px) { .hero-mini { display: none; } }

.hero-ui { pointer-events: none; position: absolute; inset: 0; }
.hero-ui [data-grupo] { opacity: 0; }

/* A janela — buraco no véu: o filtro desfaz o véu de 50% e ainda gradua */
.hero-janela {
  --cw: 31.25rem;
  position: absolute; left: 29.375rem; top: calc(50% - 9.84375rem);
  width: 31.25rem; height: 19.6875rem;
  border-radius: var(--rounding-media);
  opacity: 0;
  -webkit-backdrop-filter: brightness(2.36) saturate(1.25);
  backdrop-filter: brightness(2.36) saturate(1.25);
  transform: scale(0.62);
}
.hero-mira {
  pointer-events: none; position: absolute; left: 50%; top: 50%;
  width: 1.5rem; height: 1.5rem; translate: -50% -50%; opacity: 0.4;
}
.hero-mira span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--foreground-accent); }
.hero-mira span:first-child { height: 1px; width: 100%; }
.hero-mira span:last-child { width: 1px; height: 100%; }
.hero-rec {
  pointer-events: none; position: absolute; left: 1rem; top: 1rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--foreground-signal); opacity: 0;
}

.hero-legenda {
  position: absolute; left: 29.375rem; width: 31.25rem;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0;
}
.hero-legenda--topo { top: calc(50% - 11.15625rem); }
.hero-legenda--base { top: calc(50% + 10.59375rem); }

/* Títulos de exibição */
.hero-h1 { position: absolute; inset: 0; }
.hero-titulo {
  position: absolute; top: calc(50% - 4.3125rem); display: block;
  width: max-content;
  font-family: var(--typeface-display);
  font-size: var(--raw-text-display); line-height: var(--raw-leading-title);
  color: var(--foreground-accent);
  text-box-trim: trim-both; text-box-edge: cap alphabetic;
}
.hero-titulo--inicio { right: 62.125rem; text-align: right; }
.hero-titulo--fim { left: 62.125rem; }
.hero-linha { display: block; white-space: nowrap; }

.hero-marca {
  position: fixed; z-index: 50; left: var(--page); top: var(--page);
  font-family: var(--typeface-display);
  font-size: var(--raw-text-wordmark); line-height: var(--raw-leading-wordmark);
  color: var(--foreground-accent);
  pointer-events: none;
}

.hero-nav { position: fixed; z-index: 50; left: 62.125rem; top: var(--page); width: 5.75rem; pointer-events: none; }
.hero-menu { display: none; text-transform: uppercase; transition: color var(--duration-fast) var(--ease-entrance); }
.hero-menu[aria-expanded="true"] { color: var(--foreground-accent-muted); }
.hero-nav-lista { display: flex; flex-direction: column; gap: var(--raw-spacing-sm); }
.sublinha { position: relative; display: inline-block; white-space: nowrap; }
.sublinha > span {
  position: absolute; left: 0; bottom: -0.25rem; display: block; height: 1px; width: 100%;
  background: var(--foreground-accent);
  transform-origin: left; transform: scaleX(0);
  transition: transform var(--duration-fast) var(--ease-entrance);
}
.sublinha:hover > span, .sublinha:focus-visible > span { transform: scaleX(1); }

.hero-explorar { position: absolute; left: 77.1875rem; top: var(--page); width: 11.3125rem; }
@media (min-width: 1025px) { .hero-explorar { position: fixed; z-index: 50; } }
.hero-explorar-link {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--foreground-accent);
  padding-bottom: var(--raw-spacing-xs);
}
.hero-explorar-linha { display: flex; align-items: center; gap: var(--raw-spacing-md); }
.hero-explorar-linha .corpo { flex-shrink: 0; text-transform: uppercase; white-space: nowrap; }
.seta-janela { display: block; width: 0.75rem; height: 0.75rem; flex-shrink: 0; overflow: hidden; color: var(--foreground-accent); }
.seta-trilho { display: flex; width: 1.5rem; align-items: center; transform: translateX(-50%); }
.seta-trilho svg { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }

.hero-destinos { position: absolute; left: 62.125rem; bottom: var(--page); display: flex; flex-direction: column; gap: var(--raw-spacing-sm); }
.hero-destinos-rotulo { display: flex; align-items: center; gap: var(--raw-spacing-xs); }
.hero-destinos-rotulo svg { flex-shrink: 0; }
.hero-destinos-lista { display: flex; flex-direction: column; gap: var(--raw-spacing-sm); }
.hero-destinos-lista li { color: var(--foreground-accent-muted); text-transform: uppercase; }
.hero-destinos-lista a { transition: color var(--duration-fast) var(--ease-entrance); }
.hero-destinos-lista a:hover, .hero-destinos-lista a:focus-visible { color: var(--foreground-accent); }

.hero-modos { position: absolute; left: var(--page); bottom: var(--page); }
.hero-modos button { transition: color var(--duration-fast) var(--ease-entrance); }
.hero-modos button[aria-pressed="false"] { color: var(--foreground-accent-muted); }
.hero-modos button[aria-pressed="false"]:hover { color: var(--foreground-accent); }

/* Hero — tablet e abaixo: marca à esquerda, MENU à direita, títulos empilhados */
@media (max-width: 1024px) {
  .hero-janela, .hero-legenda { --cw: min(100vw - 3rem, 78vw, (100vh - 36rem) / 0.63); }
  .hero-janela {
    left: 0; right: 0; margin-inline: auto;
    width: var(--cw); height: calc(var(--cw) * 0.63);
    top: calc(50% - var(--cw) * 0.315);
  }
  .hero-rec { left: 12px; top: 12px; width: 7px; height: 7px; }
  .hero-mira { width: 20px; height: 20px; }
  .hero-legenda { left: 0; right: 0; margin-inline: auto; width: var(--cw); }
  .hero-legenda--topo { top: calc(50% - var(--cw) * 0.315 - 23.2px); }
  .hero-legenda--base { top: calc(50% + var(--cw) * 0.315 + 12px); }

  .hero-titulo { font-size: 56px; line-height: 44.8px; width: auto; left: var(--page); right: var(--page); text-align: center; }
  .hero-linha { display: inline; }
  .hero-titulo .so-compacto { display: inline; }
  .hero-titulo--inicio { top: calc(50% - var(--cw) * 0.315 - 9.5rem); }
  .hero-titulo--fim { top: calc(50% + var(--cw) * 0.315 + 5.75rem); }
  .hero-titulo--inicio, .hero-titulo--fim { --cw: min(100vw - 3rem, 78vw, (100vh - 36rem) / 0.63); }

  .hero-nav { left: auto; right: var(--page); width: auto; text-align: right; }
  .hero-menu { display: block; margin-left: auto; }
  .hero-nav-lista { margin-top: 21px; align-items: flex-end; gap: 10.8px; }
  .hero-nav:not(.aberto) .hero-nav-lista { display: none; }

  .hero-explorar { left: auto; right: var(--page); top: auto; bottom: var(--page); width: fit-content; }
  .hero-destinos { left: var(--page); }
  .hero-destinos-lista { display: none; }
  .hero-modos { left: 0; right: 0; bottom: auto; top: var(--page); margin-inline: auto; width: fit-content; }
}
@media (max-width: 640px) {
  .hero-janela, .hero-legenda, .hero-titulo--inicio, .hero-titulo--fim { --cw: min(100vw - 3rem, (100vh - 30rem) / 0.63); }
  .hero-titulo { font-size: 42px; line-height: 33.6px; }
  .hero-titulo--inicio { top: calc(50% - var(--cw) * 0.315 - 87px); }
  .hero-titulo--fim { top: calc(50% + var(--cw) * 0.315 + 69px); }
  .hero-marca { font-size: 18px; line-height: 16.2px; }
  .hero-explorar { left: 0; right: 0; margin-inline: auto; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hero-explorar-link { padding-top: 29px; }
  .hero-destinos, .hero-modos { display: none; }
}

/* ==========================================================================
   BLOCO 2 — DESTINOS (cena em container queries: tudo em cqw do quadro 1440)
   ========================================================================== */
.dst {
  position: relative; z-index: 10;
  display: grid; place-items: center;
  min-height: 100dvh; width: 100%;
  overflow-x: clip;
  padding: 40px 0;
  background: var(--surface-gallery);
}
.dst-cena {
  position: relative;
  width: min(100%, calc((100dvh - 80px) * 1440 / 687));
  aspect-ratio: 1440 / 687;
  overflow: hidden;
  container-type: size;
}
.dst-titulo {
  position: absolute; left: 30.4167cqw; top: 6.9444cqw; width: 39.1667cqw;
  text-align: center;
  font-family: var(--typeface-display);
  font-size: 4.4444cqw; line-height: 3.5556cqw;
  color: var(--foreground-accent);
}
.dst-cartoes { position: absolute; inset: 0; }

.dst-cartao { position: absolute; translate: -50% -50%; }
.dst-cartao-voo, .dst-cartao-giro { position: relative; width: 100%; height: 100%; }
.dst-cartao img, .dst-adesivo img, .dst-pilha img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dst-adesivo { position: absolute; translate: -50% -50%; pointer-events: none; }

.dst-linha { display: contents; }
.dst-pilha { position: relative; margin-inline: auto; display: none; }
.dst-pilha-camada { position: absolute; inset: 0; }
.dst-pilha-item { position: absolute; translate: -50% -50%; }
.dst-pilha-item > div { position: relative; width: 100%; height: 100%; }
.dst-listas { display: contents; }

.dst-lista {
  position: absolute; top: 22.0139cqw; width: 10.2083cqw;
  display: flex; flex-direction: column; gap: 0.9868cqw;
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.1111cqw; line-height: 0.8889cqw;
}
.dst-lista--esq { left: 1.6667cqw; align-items: flex-start; }
.dst-lista--dir { left: 88.125cqw; align-items: flex-end; text-align: right; }
.dst-lista button {
  display: flex; align-items: flex-start; gap: 0.4167cqw;
  color: var(--foreground-accent-muted);
  transition: color var(--duration-fast) var(--ease-entrance);
  text-box-trim: trim-both; text-box-edge: cap alphabetic;
}
.dst-lista--dir button { text-align: right; }
.dst-lista button:hover, .dst-lista button[aria-pressed="true"] { color: var(--foreground-accent); }
.dst-num { display: block; width: 1.7361cqw; flex-shrink: 0; }
.dst-nome { display: block; min-width: 8.0556cqw; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dst-lista button { transition: none; } }

@media (max-width: 1024px) {
  .dst { padding-top: 46px; }
  .dst-cena {
    aspect-ratio: auto; width: 100%; overflow: visible; container-type: normal;
    display: flex; flex-direction: column; align-items: center; gap: 88px;
    padding-inline: var(--page);
  }
  .dst-titulo { position: static; width: 100%; font-size: 48px; line-height: 38.4px; }
  .dst-cartoes { display: none; }
  .dst-linha {
    display: grid; width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch; gap: 24px;
  }
  .dst-pilha--tablet { display: block; order: 2; align-self: start; margin-top: -44px; aspect-ratio: 4 / 3; width: 100%; }
  .dst-lista { position: static; width: auto; flex-shrink: 0; gap: 15.8px; font-size: 14px; line-height: 11.2px; }
  .dst-lista--esq { order: 1; }
  .dst-lista--dir { order: 3; }
  .dst-lista button { gap: 6px; padding: 16.4px 0; margin: -16.4px 0; }
  .dst-num { width: 22px; }
  .dst-nome { min-width: 102px; }
}
@media (min-width: 641px) and (max-width: 1024px) { .dst { padding-bottom: 46px; } }
@media (max-width: 640px) {
  .dst { padding-top: 88px; }
  .dst-cena { gap: 34px; }
  .dst-titulo { font-size: 36px; line-height: 28.8px; }
  .dst-linha { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .dst-pilha--tablet { display: none; }
  .dst-pilha--celular { display: block; order: 1; aspect-ratio: 8 / 7; width: min(100%, 320px); }
  .dst-listas { order: 2; display: flex; width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   BLOCO 3 — FILOSOFIA (fixado; o bloco 2 desliza por cima e o revela)
   ========================================================================== */
.flo { position: relative; z-index: 0; height: 460vh; margin-top: -100dvh; }
.flo.estatico { height: auto; margin-top: 0; }
.flo-fixo {
  position: sticky; top: 0;
  display: grid; place-items: center;
  height: 100dvh; width: 100%; overflow: hidden;
  background: var(--surface-gallery);
}
.flo-fundo { position: absolute; left: 0; right: 0; top: 0; height: 200%; will-change: transform; }
.flo-fundo img { width: 100%; height: 100%; object-fit: cover; }
.flo-veu { pointer-events: none; position: absolute; inset: 0; background: var(--scrim-scene); }
.flo-cena {
  position: relative;
  width: min(100%, calc(100dvh * 1440 / 800));
  aspect-ratio: 1440 / 800;
  container-type: size; overflow: hidden;
}
.flo-titulo {
  --b3-travel: 17.4306cqw;
  position: absolute; left: 50%; top: 6.9444cqw; width: 30.9722cqw; translate: -50% 0;
  text-align: center;
  font-family: var(--typeface-display);
  font-size: 4.4444cqw; line-height: 3.5556cqw;
  color: var(--foreground-accent);
}
.flo-colagem {
  --b3-travel: 1.3889cqw;
  position: absolute; left: 50%; top: 17.4306cqw;
  height: 28.0556cqw; width: 26.1111cqw; translate: -50% 0;
  opacity: 0;
}
.flo-colagem-hover { position: relative; width: 100%; height: 100%; }
.flo-colagem-hover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.flo-lado {
  --b3-travel: 1.3889cqw;
  position: absolute; top: 29.2014cqw;
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.25cqw; line-height: 1.5cqw;
  text-transform: uppercase;
  color: var(--foreground-accent-soft);
}
.flo-lado--esq { left: 16.25cqw; width: 17.9167cqw; text-align: right; }
.flo-lado--dir { left: 65.8333cqw; width: 20.625cqw; text-align: left; }
.flo-assinatura {
  --b3-travel: 1.3889cqw;
  position: absolute; left: 50%; top: 49.1667cqw; width: 100%; translate: -50% 0;
  text-align: center;
  font-family: var(--typeface-hand); font-weight: 400;
  font-size: 1.3889cqw; line-height: 1.3889cqw;
  color: var(--foreground-accent);
  opacity: 0;
}

@media (max-width: 1024px) {
  .flo-cena {
    aspect-ratio: auto; height: 100%; width: 100%; container-type: normal;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 46px; padding-inline: var(--page);
  }
  .flo-titulo { position: static; order: 1; width: 100%; translate: none; font-size: 48px; line-height: 38.4px; --b3-travel: 46px; }
  .flo-colagem { position: static; order: 3; aspect-ratio: 376 / 404; height: min(404px, 40dvh); width: auto; translate: none; --b3-travel: 20px; }
  .flo-lado { position: static; width: 100%; max-width: 60%; text-align: center; font-size: 16px; line-height: 19.2px; --b3-travel: 20px; }
  .flo-lado--esq { order: 2; width: 100%; text-align: center; }
  .flo-lado--dir { order: 4; width: 100%; text-align: center; }
  .flo-assinatura { top: auto; bottom: calc(var(--page) + 7px); font-size: 24px; line-height: 24px; --b3-travel: 20px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .flo-cena { justify-content: flex-start; padding-top: min(100px, 10dvh); }
  .flo-titulo { margin-bottom: auto; }
  .flo-lado--dir { margin-bottom: auto; }
  .flo-assinatura { bottom: 39px; }
  .so-tablet { display: inline; }
}
@media (max-width: 640px) {
  .flo-cena { gap: 34px; }
  .flo-titulo { margin-bottom: 12px; font-size: 36px; line-height: 28.8px; }
  .flo-colagem { height: min(404px, 36dvh); }
  .flo-lado { max-width: 42ch; font-size: 14px; line-height: 16.8px; }
  .flo-assinatura { bottom: calc(29px + env(safe-area-inset-bottom)); font-size: 16px; line-height: 16px; }
  .so-celular { display: inline; }
}

/* ==========================================================================
   BLOCO 4 — COMO VIAJAMOS
   ========================================================================== */
.vgm {
  position: relative; z-index: 10; isolation: isolate;
  height: 100dvh; width: 100%; overflow: hidden;
  margin-top: -100dvh;
  background: var(--surface-gallery);
}
.vgm-faixa { position: absolute; inset: 0; display: flex; }
.vgm-pilha { display: none; }

.vgm-painel {
  --b4-share: 25;
  position: relative; isolation: isolate; overflow: hidden;
  flex: var(--b4-share) 1 0; align-self: stretch; min-width: 0;
  cursor: pointer; outline: none;
}
.vgm-painel::after {
  content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 3;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow var(--duration-normal) var(--ease-entrance);
}
.vgm-painel:focus-visible::after { box-shadow: inset 0 0 0 2px var(--foreground-accent); }
.vgm-repouso { position: absolute; inset: 0; z-index: 0; opacity: 0.15; }
.vgm-midia { position: absolute; inset: 0; z-index: 1; will-change: transform; transform: translateY(101%); }
.vgm-repouso img, .vgm-midia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vgm-veu-topo {
  pointer-events: none; position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(to bottom, var(--scrim-panel), transparent);
}
.vgm-veu-pe {
  pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; height: 65.125%;
  mix-blend-mode: multiply;
  background: linear-gradient(to top, var(--scrim-panel), transparent);
}

.vgm-cabeca {
  pointer-events: none; position: absolute; left: 50%; top: 6.25rem; z-index: 5;
  translate: -50% 0; width: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  text-align: center;
}
.vgm-titulo {
  font-family: var(--typeface-display);
  font-size: 4rem; line-height: 3.2rem; white-space: nowrap;
  color: var(--foreground-accent);
}
.vgm-subtitulo {
  font-family: var(--typeface-hand);
  font-size: 1.5rem; line-height: 1.5rem;
  color: var(--foreground-accent-muted);
}

.vgm-pe {
  --b4-open: 0; --b4-copy-height: 0px; --b4-heading-gap: 2rem;
  position: absolute; left: var(--page); right: var(--page); bottom: var(--page); z-index: 2;
  text-align: center;
}
.vgm-nome {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  white-space: nowrap;
  font-family: var(--typeface-display);
  font-size: 1.75rem; line-height: 1.4rem;
  color: var(--foreground-accent-muted);
  transition: color var(--duration-normal) var(--ease-entrance);
  transform: translate3d(0, calc((var(--b4-copy-height) + var(--b4-heading-gap)) * -1 * var(--b4-open)), 0);
}
.vgm-painel[aria-selected="true"] .vgm-nome { color: var(--foreground-accent); }
.vgm-recorte {
  position: absolute; left: 0; right: 0; bottom: 0; isolation: isolate; overflow: hidden;
  height: calc(var(--b4-copy-height) + 1rem);
}
.vgm-texto {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
  transform: translate3d(0, calc((100% + 1rem) * (1 - var(--b4-open))), 0);
}
.vgm-corpo {
  margin-inline: auto; width: var(--b4-copy);
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1rem; line-height: 1.2rem;
  text-transform: uppercase;
  color: var(--foreground-accent-soft);
}
.vgm-assinatura {
  font-family: var(--typeface-hand);
  font-size: 1.125rem; line-height: 1.125rem; white-space: nowrap;
  color: var(--foreground-accent);
}
@media (prefers-reduced-motion: reduce) {
  .vgm-nome, .vgm-painel::after { transition: none; }
}

/* Até 1024px — pilha de cartões de tela cheia */
@media (max-width: 1024px) {
  .vgm { height: auto; overflow: visible; }
  .vgm-faixa { display: none; }
  .vgm-cabeca {
    position: static; translate: none; width: auto;
    padding: 104px var(--page) 48px; gap: 24px;
  }
  .vgm-titulo { white-space: normal; font-size: 48px; line-height: 38.4px; }
  .vgm-subtitulo { font-size: 24px; line-height: 24px; }
  .vgm-pilha { display: flex; flex-direction: column; }
  .vgm-cartao { position: relative; isolation: isolate; height: 62dvh; min-height: 26rem; overflow: hidden; }
  .vgm-cartao-foto { position: absolute; left: 0; right: 0; top: -10%; height: 120%; will-change: transform; }
  .vgm-cartao-foto img { width: 100%; height: 100%; object-fit: cover; }
  .vgm-cartao .vgm-veu-pe { height: max(65.125%, 300px); }
  .vgm-cartao-pe {
    position: absolute; left: var(--page); right: var(--page); top: 0; bottom: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
    text-align: center;
  }
  .vgm-cartao-nome {
    font-family: var(--typeface-display);
    font-size: 28px; line-height: 22.4px;
    color: var(--foreground-accent);
  }
  .vgm-corpo { color: var(--foreground-accent-strong); width: auto; font-size: 16px; line-height: 19.2px; }
  .vgm-assinatura { font-size: 20px; line-height: 20px; }
}
@media (max-width: 640px) {
  .vgm-cabeca { padding-top: 88px; }
  .vgm-titulo { font-size: 36px; line-height: 28.8px; }
  .vgm-cartao { height: 56dvh; min-height: 22rem; }
  .vgm-cartao-pe { gap: 24px; }
  .vgm-cartao-nome { font-size: 24px; line-height: 19.2px; }
  .vgm-corpo { font-size: 14px; line-height: 16.8px; }
  .vgm-assinatura { font-size: 16px; line-height: 16px; }
}

/* ==========================================================================
   BLOCO 5 — PLANEJE UMA JORNADA + RODAPÉ
   ========================================================================== */
.pln {
  position: relative;
  display: grid; place-items: center;
  height: 100dvh; width: 100%; overflow: hidden;
  background: var(--surface-gallery);
}
.pln-filtro { position: absolute; width: 0; height: 0; }
.pln-quadro {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: max(100%, calc(100dvh * 1440 / 1077));
  aspect-ratio: 1440 / 1077;
  container-type: size;
  background: var(--scrim-page);
}
.pln-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pln-fundo { position: absolute; inset: 0; }
.pln-longe { position: absolute; left: -7.0139cqw; top: -1.5278cqw; height: 76.3194cqw; width: 114.0278cqw; will-change: transform; }
.pln-vapor { position: absolute; left: 0; top: 0; height: 66.9444cqw; width: 100%; mix-blend-mode: screen; will-change: transform; }
.pln-vapor-mov { position: relative; width: 100%; height: 100%; will-change: transform; opacity: 0.4; }
.pln-vapor-mov img { filter: url(#b5-steam-wisps); }
.pln-frente { position: absolute; left: 0; top: 7.8472cqw; height: 66.9444cqw; width: 100%; will-change: transform; }
.pln-lavagem { pointer-events: none; position: absolute; inset: 0; background: var(--scrim-cta); }

.pln-cena {
  position: relative; z-index: 1;
  width: min(100%, calc(100dvh * 1440 / 1077));
  aspect-ratio: 1440 / 1077;
  container-type: size;
}
.pln-titulo {
  position: absolute; left: 28.9583cqw; top: 6.9444cqw; width: 42.0833cqw;
  text-align: center;
  font-family: var(--typeface-display);
  font-size: 4.4444cqw; line-height: 3.5556cqw;
  color: var(--foreground-ink);
}
.pln-bilhete {
  position: absolute; left: 38.125cqw; top: 13.6111cqw; height: 25.4861cqw; width: 23.75cqw;
  container-type: size;
  transform-origin: 51% 10%;
}
.pln-papel { position: absolute; inset: 0; }
.pln-papel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pln-promessa {
  position: absolute; left: 10.2339cqw; top: 50cqw; width: 79.8246cqw;
  text-align: center;
  font-family: var(--typeface-hand); font-weight: 700;
  font-size: 7.0175cqw; line-height: 8.4211cqw;
  text-transform: uppercase;
  color: var(--foreground-ink);
}
.pln-linha { display: block; white-space: nowrap; }
.pln-enfase { position: relative; display: inline-block; }
.pln-sub { pointer-events: none; position: absolute; left: -2%; width: 104%; display: block; }
.pln-sub img { position: absolute; display: block; max-width: none; width: 100%; height: 100%; }
.pln-sub--1 { top: 80%; height: 1.279cqw; }
.pln-sub--2 { top: 82%; height: 0.75cqw; }
.pln-aparte {
  position: absolute; left: 25cqw; top: 98.2456cqw; width: 50cqw;
  text-align: center;
  font-family: var(--typeface-hand); font-weight: 400;
  font-size: 5.2632cqw; line-height: 5.2632cqw;
  color: var(--foreground-ink-muted);
}

.pln-acao { position: absolute; left: 44.1667cqw; top: 41.875cqw; display: block; height: 2.6389cqw; width: 11.6667cqw; }
.pln-pilula {
  display: flex; height: 100%; width: 100%; align-items: center; justify-content: center;
  gap: 0.5556cqw; border-radius: 6.9444cqw;
  border: 1px solid var(--foreground-accent);
}
.pln-seta-janela { display: block; width: 0.8333cqw; height: 0.8333cqw; flex-shrink: 0; overflow: hidden; }
.pln-seta-trilho { display: flex; width: 1.6667cqw; align-items: center; transform: translateX(-50%); }
.pln-seta-trilho img { display: block; width: 0.8333cqw; height: 0.8333cqw; flex-shrink: 0; }
.seta-janela--cheia { width: 100%; height: 100%; }
.seta-janela--cheia .pln-seta-trilho { width: 200%; }
.seta-janela--cheia .pln-seta-trilho img { width: 50%; height: auto; }
.pln-acao-rotulo {
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 0.9722cqw; line-height: 0.7778cqw;
  text-transform: uppercase; white-space: nowrap;
  color: var(--foreground-accent);
}

/* Rodapé — painel fosco: primeiro o desfoque, depois o preenchimento */
.rod {
  position: absolute; left: var(--page); right: var(--page); bottom: var(--page); z-index: 2;
  aspect-ratio: 1392 / 262;
  container-type: inline-size;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.rod-marca {
  position: absolute; left: 1.7241cqw; top: 1.7241cqw;
  font-family: var(--typeface-display);
  font-size: 1.7241cqw; line-height: 1.5517cqw;
  color: var(--foreground-accent);
}
.rod-colunas { position: absolute; left: 25.3592cqw; top: 1.7241cqw; display: flex; gap: 4.5977cqw; align-items: flex-start; }
.rod-coluna { display: flex; flex-direction: column; gap: 1.4368cqw; align-items: flex-start; width: var(--b5-col); }
.rod-coluna-titulo {
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.1494cqw; line-height: 1.1494cqw;
  color: var(--foreground-accent); white-space: nowrap;
}
.rod-coluna-lista { display: flex; flex-direction: column; gap: 0.7184cqw; align-items: flex-start; }
.rod-link {
  display: block; white-space: nowrap;
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.0057cqw; line-height: 1.0057cqw;
  text-transform: uppercase;
  color: var(--foreground-accent-muted);
  transition: color var(--duration-fast) var(--ease-entrance);
}
.rod-link:hover { color: var(--foreground-accent); }
@media (hover: none) { .rod-link:active { color: var(--foreground-accent); } }
.rod-lado { position: absolute; left: 76.0776cqw; top: 1.7241cqw; width: 22.2086cqw; display: flex; flex-direction: column; gap: 3.4483cqw; }
.rod-lado-texto {
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.1494cqw; line-height: 1.3793cqw;
  text-transform: uppercase;
  color: var(--foreground-accent);
}
.rod-email {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--foreground-accent);
  padding-bottom: 0.7184cqw;
  opacity: 0.4;
  transition: opacity var(--duration-fast) var(--ease-entrance);
}
.rod-email:hover, .rod-email:focus-within { opacity: 1; }
@media (hover: none) { .rod-email:active { opacity: 1; } }
.rod-email-campo {
  min-width: 0; flex: 1;
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.0057cqw; line-height: 0.8046cqw;
  text-transform: uppercase; outline: none;
  color: var(--foreground-accent);
}
.rod-email-campo::placeholder { color: var(--foreground-accent); opacity: 1; }
.rod-email-seta { display: block; width: 0.8621cqw; height: 0.8621cqw; flex-shrink: 0; overflow: hidden; }
.rod-social { position: absolute; left: 76.0776cqw; top: 15.3736cqw; display: flex; align-items: center; gap: 0.8621cqw; }
.rod-social-icone { position: relative; display: block; width: 1.7241cqw; height: 1.7241cqw; }
.rod-social-icone img { width: 100%; height: 100%; }
.rod-divisor { position: absolute; left: 1.7241cqw; top: 13.6494cqw; width: 96.5517cqw; border-top: 1px solid var(--foreground-accent-muted); }
.rod-copy {
  position: absolute; left: 1.7241cqw; top: 16.3793cqw;
  font-family: var(--typeface-ui); font-weight: 500;
  font-size: 1.0057cqw; line-height: 1.0057cqw;
  color: var(--foreground-accent);
}
@media (prefers-reduced-motion: reduce) { .rod-link, .rod-email { transition: none; } }

@media (max-width: 1024px) {
  .pln { height: auto; min-height: 100dvh; }
  .pln-quadro { inset: 0; left: 0; top: 0; height: 100%; width: 100%; translate: none; aspect-ratio: auto; container-type: normal; }
  .pln-longe { inset: 0; height: 100%; width: 100%; }
  .pln-vapor { height: 55%; }
  .pln-frente { top: auto; bottom: 0; height: 64%; }
  .pln-cena {
    aspect-ratio: auto; width: 100%; container-type: normal;
    display: flex; flex-direction: column; align-items: center;
    gap: 46px; padding: 46px var(--page) var(--page);
  }
  .pln-titulo { position: static; width: 100%; font-size: 48px; line-height: 38.4px; }
  .pln-bilhete { position: relative; left: auto; top: auto; height: auto; width: min(342px, 100%); aspect-ratio: 342 / 367; }
  .pln-acao { position: relative; left: auto; top: auto; height: 38px; width: 168px; }
  .pln-pilula { gap: 8px; border-radius: 100px; }
  .pln-seta-janela, .pln-seta-trilho img { width: 12px; height: 12px; }
  .pln-seta-trilho { width: 24px; }
  .pln-acao-rotulo { font-size: 14px; line-height: 11.2px; }

  .rod {
    position: static; aspect-ratio: auto; container-type: normal;
    height: auto; width: 100%; padding: 24px;
  }
  .rod > * { position: static !important; }
  .rod-marca { font-size: 24px; line-height: 21.6px; }
  .rod-coluna { gap: 20px; width: auto; }
  .rod-coluna-titulo { font-size: 14px; line-height: 14px; }
  .rod-coluna-lista { gap: 10px; }
  .rod-link { font-size: 14px; line-height: 14px; }
  .rod-lado { width: 100%; gap: 24px; }
  .rod-lado-texto { font-size: 14px; line-height: 16.8px; }
  .rod-email { padding-bottom: 10px; }
  .rod-email-campo { font-size: 14px; line-height: 11.2px; }
  .rod-email-seta { width: 12px; height: 12px; }
  .rod-social { gap: 12px; }
  .rod-social-icone { width: 24px; height: 24px; }
  .rod-divisor { width: 100%; }
  .rod-copy { font-size: 14px; line-height: 14px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .pln-cena { min-height: 100dvh; justify-content: center; }
  .pln-bilhete { width: auto; min-height: 240px; max-height: 367px; flex: 1; translate: 0 -40px; }
  .pln-acao { flex-shrink: 0; translate: 0 -40px; }
  .rod { flex-shrink: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 46px; padding: 46px; }
  .rod-marca { grid-row: 1; grid-column: span 4; }
  .rod-colunas { grid-row: 2; grid-column: span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .rod-coluna { gap: 24px; }
  .rod-link { font-size: 13px; line-height: 13px; }
  .rod-lado { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(21.19px, auto) auto; grid-row: 2; grid-column: 4; row-gap: 13px; }
  .rod-lado-texto { font-size: 13px; line-height: 15.6px; align-self: start; }
  .rod-email { align-self: end; }
  .rod-social { grid-row: 4; grid-column: 4; justify-self: end; align-self: center; margin-top: -24px; }
  .rod-divisor { grid-row: 3; grid-column: span 4; margin-top: -12px; align-self: start; }
  .rod-copy { grid-row: 4; grid-column: 1 / span 2; align-self: center; margin-top: -24px; font-size: 13px; line-height: 13px; }
}
@media (max-width: 640px) {
  .pln-cena { gap: 34px; padding-top: 24px; }
  .pln-titulo { font-size: 36px; line-height: 28.8px; }
  .pln-bilhete { margin-top: -24px; }
  .pln-acao { margin-bottom: 46px; }
  .rod { display: flex; flex-direction: column; gap: 34px; }
  .rod-colunas { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 34px; }
}
