/* LANDING-CAPITULOS — a landing em capítulos (Prólogo, I, II, III, Fim).
   Fase 1: estrutura estática. Tudo vive sob #tb-landing; fora dele só o
   fundo e a margem do documento. Sem 100vh em lugar nenhum (só svh; quem não
   conhece svh fica sem altura mínima, e tudo bem) e sem overflow:hidden em html/body: o recorte lateral é
   overflow-x:clip no próprio #tb-landing, que não cria contêiner de rolagem
   e não quebra position:sticky (causa medida na Fase 0).
   Animações (fases 2 e 3) só com transform e opacity. */

html { background: #070708; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #070708; }

#tb-landing {
  --tb-bg: #070708; --tb-surface: #0F0F11; --tb-surface-2: #16161A; --tb-line: #2A2722;
  --tb-gold: #D4AF61; --tb-gold-light: #E3C47E; --tb-text: #F2EEE6; --tb-muted: #A8A196; --tb-dim: #6B655C;
  --tb-gold-a12: rgba(212, 175, 97, .12); --tb-gold-a30: rgba(212, 175, 97, .3);
  --tb-display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --tb-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tb-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --tbl-gutter: clamp(16px, 5vw, 64px);
  --tbl-nav-h: 64px;
  color-scheme: dark;
  position: relative;
  overflow-x: clip;
  background: var(--tb-bg);
  color: var(--tb-text);
  font-family: var(--tb-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#tb-landing *, #tb-landing *::before, #tb-landing *::after { box-sizing: border-box; }
#tb-landing img { max-width: 100%; display: block; }
#tb-landing svg { display: block; }
#tb-landing a { color: var(--tb-gold-light); }
#tb-landing a:focus-visible { outline: 2px solid var(--tb-gold); outline-offset: 3px; border-radius: 4px; }
#tb-landing h1, #tb-landing h2, #tb-landing h3, #tb-landing h4, #tb-landing p, #tb-landing ol, #tb-landing ul, #tb-landing figure { margin: 0; }
#tb-landing ol, #tb-landing ul { padding: 0; list-style: none; }
#tb-landing .tbl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#tb-landing .tbl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#tb-landing .tbl-pular { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--tb-gold); color: var(--tb-bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
#tb-landing .tbl-pular:focus { left: 16px; }

/* ── tipografia ─────────────────────────────────────────────────────────── */
#tb-landing .tbl-eyebrow { font-family: var(--tb-mono); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-gold); }
#tb-landing .tbl-titulo { font-family: var(--tb-display); font-weight: 500; font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; margin-top: .9rem; }
#tb-landing .tbl-titulo em { display: block; font-style: italic; color: var(--tb-gold-light); }
#tb-landing .tbl-titulo-m { font-size: clamp(2rem, 4.4vw, 3.6rem); }
#tb-landing .tbl-texto { margin-top: 1.25rem; max-width: 38ch; color: var(--tb-muted); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.65; }
#tb-landing .tbl-pro { display: inline-block; vertical-align: .18em; margin-left: .4em; padding: .1em .45em; border: 1px solid var(--tb-gold-a30); border-radius: 3px;
  font-family: var(--tb-mono); font-size: .6em; font-weight: 500; letter-spacing: .14em; line-height: 1.4; color: var(--tb-gold); }

/* ── navegação fixa ─────────────────────────────────────────────────────── */
#tb-landing .tbl-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--tbl-nav-h); padding: env(safe-area-inset-top, 0px) var(--tbl-gutter) 0;
  background: var(--tb-bg); }
/* fundo sólido (o texto que passa por baixo não vaza) e um esfumado curto abaixo */
#tb-landing .tbl-nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; background: linear-gradient(180deg, var(--tb-bg), rgba(7, 7, 8, 0)); }
#tb-landing .tbl-marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--tb-text); font-family: var(--tb-display); font-size: 1.3rem; font-weight: 500; letter-spacing: .01em; }
#tb-landing .tbl-marca img { width: 30px; height: 30px; }
#tb-landing .tbl-nav-conta { display: flex; align-items: center; gap: 6px; }
#tb-landing .tbl-nav-entrar { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--tb-text); text-decoration: none; font-size: .9rem; font-weight: 500; }
#tb-landing .tbl-pilula { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--tb-gold); color: var(--tb-bg); text-decoration: none; font-size: .9rem; font-weight: 600; }
#tb-landing .tbl-pilula:hover { background: var(--tb-gold-light); }

/* ── trilho de capítulos (desktop) ──────────────────────────────────────── */
#tb-landing .tbl-trilho { display: none; }
@media (min-width: 1024px) {
  #tb-landing .tbl-trilho { display: block; position: fixed; right: clamp(12px, 2vw, 32px); top: 50%; transform: translateY(-50%); z-index: 40; }
  #tb-landing .tbl-trilho ol { display: grid; gap: 2px; }
  #tb-landing .tbl-trilho a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px;
    text-decoration: none; color: var(--tb-dim); font-family: var(--tb-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
  #tb-landing .tbl-trilho-rot { order: 1; }
  #tb-landing .tbl-trilho-traco { order: 2; width: 14px; height: 1px; background: currentColor; transition: width .3s; }
  #tb-landing .tbl-trilho a:hover, #tb-landing .tbl-trilho a.is-ativo { color: var(--tb-gold); }
  #tb-landing .tbl-trilho a.is-ativo .tbl-trilho-traco { width: 32px; }
}

/* ── layout comum ───────────────────────────────────────────────────────── */
#tb-landing main { display: block; }
#tb-landing .tbl-quadro,
#tb-landing .tbl-abertura,
#tb-landing .tbl-explodida,
#tb-landing .tbl-detalhe,
#tb-landing .tbl-final { position: relative; padding: clamp(4.5rem, 10vw, 8rem) var(--tbl-gutter); }

@media (min-width: 1024px) {
  #tb-landing .tbl-quadro,
  #tb-landing .tbl-abertura { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 6rem);
    padding-right: calc(var(--tbl-gutter) + 72px); }
  /* só a abertura da página ocupa a tela; o resto é página longa normal */
  #tb-landing .tbl-quadro-1 { min-height: 100svh; }
}

/* ── PRÓLOGO ────────────────────────────────────────────────────────────── */
#tb-landing .tbl-quadro-1 { padding-top: calc(var(--tbl-nav-h) + clamp(2.5rem, 8vw, 5rem)); }
#tb-landing .tbl-quadro-1 .tbl-titulo { font-style: italic; }
#tb-landing .tbl-quadro-1 .tbl-titulo em { display: inline; color: var(--tb-text); }
#tb-landing .tbl-quadro-fig { position: relative; display: grid; place-items: center; margin-top: 3rem; padding-block: 1rem; }
@media (min-width: 1024px) { #tb-landing .tbl-quadro-fig { margin-top: 0; } }
#tb-landing .tbl-brilho { position: absolute; inset: -10% -10%; z-index: 0; pointer-events: none; }
#tb-landing .tbl-brilho-frio { background: radial-gradient(closest-side, rgba(86, 128, 196, .26), rgba(86, 128, 196, 0) 70%); }
#tb-landing .tbl-brilho-ouro { background: radial-gradient(closest-side, rgba(212, 175, 97, .22), rgba(212, 175, 97, 0) 70%); }
#tb-landing .tbl-rolar { display: flex; align-items: center; gap: 12px; margin-top: 2.5rem; font-family: var(--tb-mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tb-dim); }
#tb-landing .tbl-rolar span { width: 1px; height: 36px; background: linear-gradient(var(--tb-gold), transparent); }

#tb-landing .tbl-marcos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; counter-reset: marco; }
#tb-landing .tbl-marcos li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--tb-gold-a30); border-radius: 999px;
  font-family: var(--tb-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-gold); }
#tb-landing .tbl-marcos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tb-gold); }

#tb-landing .tbl-frentes-palco { position: relative; z-index: 1; width: min(100%, 560px); }
#tb-landing .tbl-frentes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 3vw, 2rem); }
#tb-landing .tbl-frentes-linha { position: absolute; left: 16%; right: 16%; top: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--tb-gold), transparent); }
#tb-landing .tbl-frentes a { position: relative; display: grid; justify-items: center; gap: .4rem; min-height: 44px; padding: .5rem 0; text-decoration: none; text-align: center; }
#tb-landing .tbl-frentes svg { width: 92px; height: 92px; padding: 18px; color: var(--tb-gold); background: var(--tb-bg); border: 1px solid var(--tb-gold-a30); border-radius: 50%; }
#tb-landing .tbl-frente-num { margin-top: .6rem; font-family: var(--tb-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-gold); }
#tb-landing .tbl-frente-nome { font-family: var(--tb-display); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--tb-text); }

/* ── aparelhos: celular ─────────────────────────────────────────────────── */
#tb-landing .tbl-fone { position: relative; z-index: 1; width: clamp(210px, 24vw, 290px); aspect-ratio: 9 / 19; padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, #1d1c20, #0c0c0e); border: 1px solid #2f2d29; box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .03);
  container-type: inline-size; }
#tb-landing .tbl-fone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 26%; height: 5.5%; max-height: 22px; transform: translateX(-50%); border-radius: 999px; background: #050506; z-index: 3; }
#tb-landing .tbl-fone-tela { position: relative; height: 100%; overflow: hidden; border-radius: 29px; background: var(--tb-surface); }
#tb-landing .tbl-fone-inclinado { transform: rotate(-7deg); }

/* feed abstrato: blocos cinza, nada real */
#tb-landing .tbl-feed { padding: 22cqi 7cqi 0; background: #0b0b0d; }
#tb-landing .tbl-feed-rolo { display: flex; flex-direction: column; gap: 4.5cqi; }
#tb-landing .tbl-feed-barra { height: 7cqi; border-radius: 3cqi; background: #1b1b1f; }
#tb-landing .tbl-feed-bloco { height: 38cqi; flex: none; border-radius: 4cqi; background: linear-gradient(135deg, #24242a, #17171b); }
#tb-landing .tbl-feed-alto { height: 58cqi; }
#tb-landing .tbl-feed-linha { height: 3.4cqi; width: 86%; border-radius: 2cqi; background: #1f1f24; }
#tb-landing .tbl-feed-linha.tbl-curta { width: 54%; }
#tb-landing .tbl-feed-coberto .tbl-feed-rolo { filter: blur(6px); opacity: .45; }

/* tela de bloqueio do Android (textos reais do app) */
#tb-landing .tbl-acolhe { position: absolute; inset: 10px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4.2cqi; padding: 24cqi 9cqi 9cqi;
  border-radius: 29px; background: linear-gradient(180deg, rgba(15, 15, 17, .97), rgba(10, 10, 11, .99)); text-align: center; }
#tb-landing .tbl-acolhe img { width: 20cqi; height: 20cqi; }
#tb-landing .tbl-acolhe-frase { font-family: var(--tb-display); font-size: 8.6cqi; line-height: 1.15; color: var(--tb-text); }
#tb-landing .tbl-acolhe-vers { width: 100%; margin-top: 2cqi; padding: 5cqi; border: 1px solid var(--tb-line); border-radius: 4cqi; background: var(--tb-surface-2); }
#tb-landing .tbl-acolhe-vers p { font-family: var(--tb-display); font-style: italic; font-size: 5.6cqi; line-height: 1.3; color: var(--tb-gold-light); }
#tb-landing .tbl-acolhe-vers span { display: block; margin-top: 2cqi; font-family: var(--tb-mono); font-size: 3.4cqi; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-dim); }
#tb-landing .tbl-acolhe-btn { width: 100%; margin-top: auto; margin-bottom: 6cqi; padding: 4.2cqi; border-radius: 999px; background: var(--tb-gold); color: var(--tb-bg); font-size: 4.6cqi; font-weight: 600; }

/* ── aparelhos: notebook ────────────────────────────────────────────────── */
#tb-landing .tbl-note { position: relative; z-index: 1; width: min(89%, 600px); container-type: inline-size; }
#tb-landing .tbl-note-tela { aspect-ratio: 16 / 10; padding: 2.2cqi; border-radius: 2.4cqi 2.4cqi 0 0; background: linear-gradient(160deg, #1d1c20, #0d0d0f); border: 1px solid #2f2d29; border-bottom: none;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
#tb-landing .tbl-note-tela > * { height: 100%; border-radius: 1cqi; }
#tb-landing .tbl-note-base { position: relative; height: 3.2cqi; margin: 0 -6%; border-radius: 0 0 2.4cqi 2.4cqi; background: linear-gradient(180deg, #2a2926, #121214); border: 1px solid #2f2d29; }
#tb-landing .tbl-note-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 40%; transform: translateX(-50%); border-radius: 0 0 1cqi 1cqi; background: #0c0c0e; }

/* ── interfaces desenhadas (app do PC e do celular) ─────────────────────── */
#tb-landing .tbl-app { display: flex; flex-direction: column; gap: 2cqi; padding: 4.5cqi 5cqi; background: var(--tb-surface); font-size: 2.5cqi; color: var(--tb-text); }
#tb-landing .tbl-app-topo { display: flex; align-items: center; gap: 1.6cqi; padding-bottom: 2.4cqi; margin-bottom: .6cqi; border-bottom: 1px solid var(--tb-line);
  font-family: var(--tb-display); font-size: 4.2cqi; }
#tb-landing .tbl-app-topo svg { width: 4.6cqi; height: 4.6cqi; color: var(--tb-gold); }
#tb-landing .tbl-app-linha { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 2.2cqi 2.6cqi; border-radius: 1.2cqi; background: var(--tb-surface-2); border: 1px solid var(--tb-line); }
#tb-landing .tbl-app-linha > span:first-child { display: inline-flex; align-items: center; gap: 1.4cqi; }
#tb-landing .tbl-app-linha svg { width: 3.4cqi; height: 3.4cqi; color: var(--tb-gold); }
#tb-landing .tbl-app-linha small { display: block; font-size: .8em; color: var(--tb-gold); }
#tb-landing .tbl-app-geral > span:first-child { flex-direction: column; align-items: flex-start; gap: 0; }
#tb-landing .tbl-chave { position: relative; flex: none; width: 6.4cqi; height: 3.6cqi; border-radius: 999px; background: #2a2a30; }
#tb-landing .tbl-chave::after { content: ""; position: absolute; top: .5cqi; left: .5cqi; width: 2.6cqi; height: 2.6cqi; border-radius: 50%; background: #8d877d; }
#tb-landing .tbl-chave.tbl-on { background: var(--tb-gold); }
#tb-landing .tbl-chave.tbl-on::after { left: auto; right: .5cqi; background: var(--tb-bg); }
#tb-landing .tbl-chave-viva::after { content: none; }
#tb-landing .tbl-chave-viva i { position: absolute; top: .5cqi; left: .5cqi; width: 2.6cqi; height: 2.6cqi; border-radius: 50%; background: var(--tb-bg); transform: translateX(2.8cqi); }
#tb-landing .tbl-status { font-family: var(--tb-mono); font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-gold); }
#tb-landing .tbl-status.tbl-neutro { color: var(--tb-muted); }
#tb-landing .tbl-app-sobre { margin-top: 1cqi; font-family: var(--tb-mono); font-size: .8em; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-dim); }
#tb-landing .tbl-app-sync { font-size: .85em; color: var(--tb-muted); }
#tb-landing .tbl-app-item { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 2cqi 2.6cqi; border-radius: 1.2cqi; background: var(--tb-surface-2); border: 1px solid var(--tb-line);
  font-family: var(--tb-mono); font-size: .9em; color: var(--tb-muted); }
#tb-landing .tbl-app-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tb-landing .tbl-app-item.tbl-novo { border-color: var(--tb-gold); color: var(--tb-text); background: var(--tb-gold-a12); }
#tb-landing .tbl-app-item .tbl-chave { margin-left: 1.6cqi; }
#tb-landing .tbl-app-item em { flex: none; margin-left: auto; font-style: normal; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-gold); }
/* no celular, a mesma interface em unidades do celular */
#tb-landing .tbl-app-fone { gap: 3.4cqi; padding: 24cqi 6cqi 6cqi; font-size: 4.6cqi; }
#tb-landing .tbl-app-fone .tbl-app-topo { gap: 2.6cqi; padding-bottom: 3.4cqi; font-size: 7.6cqi; }
#tb-landing .tbl-app-fone .tbl-app-topo svg { width: 7.6cqi; height: 7.6cqi; }
#tb-landing .tbl-app-fone .tbl-app-linha { padding: 3.4cqi 4cqi; border-radius: 3cqi; }
#tb-landing .tbl-app-fone .tbl-app-linha svg { width: 5.6cqi; height: 5.6cqi; }
#tb-landing .tbl-app-fone .tbl-chave { width: 10.5cqi; height: 6cqi; }
#tb-landing .tbl-app-fone .tbl-chave::after { top: .8cqi; left: .8cqi; width: 4.4cqi; height: 4.4cqi; }
#tb-landing .tbl-app-fone .tbl-chave.tbl-on::after { left: auto; right: .8cqi; }
#tb-landing .tbl-app-fone .tbl-app-item { padding: 3.2cqi 4cqi; border-radius: 3cqi; }

/* ── aparelhos: janela de navegador ─────────────────────────────────────── */
#tb-landing .tbl-janela { position: relative; z-index: 1; width: min(100%, 600px); border-radius: 12px; overflow: hidden; background: var(--tb-surface); border: 1px solid #2f2d29;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55); container-type: inline-size; }
#tb-landing .tbl-janela-topo { display: flex; align-items: center; gap: 2.4cqi; padding: 2cqi 2.6cqi; background: #141417; border-bottom: 1px solid var(--tb-line); }
#tb-landing .tbl-pontos { display: inline-flex; gap: 1.1cqi; }
#tb-landing .tbl-pontos i { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: #2c2b2f; }
#tb-landing .tbl-url { flex: 1; display: inline-flex; align-items: center; gap: 1.2cqi; min-width: 0; padding: 1.2cqi 2.2cqi; border-radius: 999px; background: #0c0c0e;
  font-family: var(--tb-mono); font-size: 2.4cqi; color: var(--tb-muted); white-space: nowrap; }
#tb-landing .tbl-url svg { width: 2.6cqi; height: 2.6cqi; color: var(--tb-dim); }
#tb-landing .tbl-ext { display: grid; place-items: center; width: 5cqi; height: 5cqi; border-radius: 1.2cqi; background: var(--tb-gold-a12); border: 1px solid var(--tb-gold-a30); }
#tb-landing .tbl-ext svg { width: 3.2cqi; height: 3.2cqi; color: var(--tb-gold); }
#tb-landing .tbl-janela-corpo { display: flex; flex-direction: column; gap: 2cqi; aspect-ratio: 16 / 9; padding: 4cqi 5cqi; }
#tb-landing .tbl-pag-titulo { width: 52%; height: 4cqi; border-radius: 1cqi; background: #26252a; }
#tb-landing .tbl-pag-linha { width: 84%; height: 1.8cqi; border-radius: 1cqi; background: #1d1d21; }
#tb-landing .tbl-pag-linha.tbl-curta { width: 60%; }
#tb-landing .tbl-pag-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqi; margin-top: auto; }
#tb-landing .tbl-pag-imgs i { aspect-ratio: 4 / 3; border-radius: 1.4cqi; background: radial-gradient(circle at 30% 35%, #4b4436 0 18%, transparent 19%), linear-gradient(140deg, #2b2a30, #18181c); }
#tb-landing .tbl-pag-imgs i.tbl-borrada { filter: blur(5px); }

/* ── abertura dos capítulos ─────────────────────────────────────────────── */
#tb-landing .tbl-cap { position: relative; border-top: 1px solid var(--tb-line); }
#tb-landing .tbl-abertura { overflow: clip; }
#tb-landing .tbl-numeral { position: absolute; z-index: 0; top: clamp(1.5rem, 5vw, 3rem); right: var(--tbl-gutter);
  font-family: var(--tb-display); font-weight: 500; font-size: clamp(9rem, 40vw, 34rem); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--tb-gold); opacity: .2; pointer-events: none; user-select: none; }
#tb-landing .tbl-abertura-texto, #tb-landing .tbl-abertura-fig { position: relative; z-index: 1; }
#tb-landing .tbl-abertura-fig { display: grid; place-items: center; margin-top: 3rem; }
@media (min-width: 1024px) {
  #tb-landing .tbl-abertura-fig { margin-top: 0; }
  /* no vão entre o texto e o aparelho: o contorno não cruza as linhas do texto */
  #tb-landing .tbl-numeral { top: 50%; right: auto; left: 45%; translate: -50% -50%; font-size: clamp(20rem, 30vw, 30rem); }
}

/* ── vista explodida (estado final: camadas já separadas) ──────────────── */
#tb-landing .tbl-explodida { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
#tb-landing .tbl-explodida-palco { position: relative; display: grid; place-items: center; min-height: var(--palco-h); }
/* Vista isométrica SEM preserve-3d: sem perspectiva, subir uma placa no eixo Z
   da pilha girada (rotateX 58° · rotateZ -40°) é o mesmo que deslocá-la para
   cima na tela em sin(58°) = 0,848 da distância. Cada placa leva o próprio giro
   e esse deslocamento; a ordem de pintura vem do z-index. Assim a pilha não
   depende de um contexto 3D (o WebKit de teste no Windows achata preserve-3d). */
#tb-landing .tbl-pilha { position: relative; width: var(--placa-w); aspect-ratio: var(--placa-ar); }
#tb-landing .tbl-placa { position: absolute; inset: 0; z-index: var(--z);
  transform: translateY(calc(var(--z) * var(--vao) * var(--zp, 1) * -0.848)) rotateX(58deg) rotateZ(-40deg); border-radius: var(--placa-r);
  background: linear-gradient(150deg, rgba(28, 27, 31, .96), rgba(15, 15, 17, .96)); border: 1px solid #3a362f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); container-type: inline-size; }
#tb-landing .tbl-placa.is-ativa { border-color: var(--tb-gold); box-shadow: 0 0 0 1px var(--tb-gold), 0 0 32px rgba(212, 175, 97, .35); }
#tb-landing .tbl-placa-rot { position: absolute; left: 6cqi; top: 5cqi; font-family: var(--tb-mono); font-size: 6cqi; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-gold); }
#tb-landing .tbl-arte { position: absolute; inset: 22% 10% 12%; display: grid; place-items: center; }
#tb-landing .tbl-arte-scan { background: repeating-linear-gradient(0deg, transparent 0 9%, rgba(212, 175, 97, .09) 9% 10%); border-top: 2px solid var(--tb-gold); }
#tb-landing .tbl-arte-janelas { grid-template-columns: repeat(3, 1fr); gap: 6%; }
#tb-landing .tbl-arte-janelas i, #tb-landing .tbl-arte-apps i { width: 100%; height: 100%; border: 1px solid #4a453b; border-radius: 4px; }
#tb-landing .tbl-arte-apps { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8%; }
#tb-landing .tbl-arte i.tbl-x { border-color: var(--tb-gold); background:
  linear-gradient(45deg, transparent 47%, var(--tb-gold) 47% 53%, transparent 53%),
  linear-gradient(-45deg, transparent 47%, var(--tb-gold) 47% 53%, transparent 53%); }
#tb-landing .tbl-arte-anel::before { content: ""; height: 76%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #4a453b; border-top-color: var(--tb-gold); border-right-color: var(--tb-gold); }
#tb-landing .tbl-arte-trava svg { height: 64%; width: auto; aspect-ratio: 1; color: var(--tb-gold); }
#tb-landing .tbl-arte-lista { align-content: center; justify-items: stretch; gap: 10%; }
#tb-landing .tbl-arte-lista i { height: 9cqi; border-radius: 3px; border: 1px solid #4a453b; }
#tb-landing .tbl-arte-lista i:first-child { border-color: var(--tb-gold); }
#tb-landing .tbl-arte-sinc { grid-template-columns: 1fr 1fr; gap: 30%; background: linear-gradient(90deg, transparent 22%, var(--tb-gold) 22% 78%, transparent 78%) center / 100% 1px no-repeat; }
#tb-landing .tbl-arte-sinc i { width: 70%; aspect-ratio: 1; justify-self: center; border-radius: 50%; border: 1px solid var(--tb-gold); background: var(--tb-bg); }
#tb-landing .tbl-arte-seta::before { content: ""; width: 30%; aspect-ratio: 1; border-left: 2px solid var(--tb-gold); border-bottom: 2px solid var(--tb-gold); transform: rotate(-45deg) translate(15%, -15%); }
#tb-landing .tbl-arte-borra { grid-template-columns: 1fr 1fr; gap: 8%; }
#tb-landing .tbl-arte-borra i { width: 100%; height: 100%; border-radius: 4px; background: radial-gradient(circle at 35% 40%, #5a4f3a 0 22%, #26252a 23%); filter: blur(3px); }
#tb-landing .tbl-arte-borra i:last-child { filter: none; outline: 1px solid var(--tb-gold); }
#tb-landing .tbl-arte-busca::before { content: "safe"; display: block; width: 86%; padding: 4% 6%; border-radius: 999px; border: 1px solid var(--tb-gold); font-family: var(--tb-mono); font-size: 7cqi; color: var(--tb-gold); text-align: right; }
#tb-landing .tbl-arte-texto { font-family: var(--tb-mono); font-size: 9cqi; letter-spacing: .06em; color: var(--tb-gold-light); }

#tb-landing .tbl-camadas { display: grid; gap: clamp(1rem, 2vw, 1.6rem); counter-reset: camada; }
#tb-landing .tbl-camada { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-top: 1.1rem; border-top: 1px solid var(--tb-line); }
#tb-landing .tbl-camada-n { font-family: var(--tb-mono); font-size: .78rem; letter-spacing: .14em; color: var(--tb-gold); padding-top: .3rem; }
#tb-landing .tbl-camada h3 { font-family: var(--tb-display); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; color: var(--tb-text); }
#tb-landing .tbl-camada p { margin-top: .35rem; max-width: 46ch; color: var(--tb-muted); font-size: 1rem; line-height: 1.6; }

/* tamanhos de cada pilha (largura da placa, proporção, vão entre placas) */
#tb-landing .tbl-explodida-note { --placa-w: clamp(190px, 46vw, 320px); --placa-ar: 16 / 10; --placa-r: 10px; --vao: clamp(26px, 7vw, 54px); --palco-h: clamp(330px, 90vw, 520px); }
#tb-landing .tbl-explodida-fone { --placa-w: clamp(110px, 26vw, 170px); --placa-ar: 9 / 19; --placa-r: 18px; --vao: clamp(30px, 8vw, 62px); --palco-h: clamp(360px, 100vw, 560px); }
#tb-landing .tbl-explodida-nav  { --placa-w: clamp(190px, 46vw, 320px); --placa-ar: 16 / 11; --placa-r: 10px; --vao: clamp(26px, 7vw, 54px); --palco-h: clamp(340px, 92vw, 530px); }
@media (min-width: 1024px) {
  #tb-landing .tbl-explodida { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-right: calc(var(--tbl-gutter) + 72px); }
  /* Cap. II: texto à esquerda, pilha à direita (o spec pede a ordem trocada) */
  #tb-landing .tbl-explodida-fone { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* ── detalhe: a trava (Cap. I) ──────────────────────────────────────────── */
#tb-landing .tbl-detalhe { padding-right: var(--tbl-gutter); }
@media (min-width: 1024px) { #tb-landing .tbl-detalhe { padding-right: calc(var(--tbl-gutter) + 72px); } }
#tb-landing .tbl-detalhe-texto { max-width: 46rem; }
#tb-landing .tbl-trava { text-align: center; }
#tb-landing .tbl-trava .tbl-detalhe-texto { margin-inline: auto; }
#tb-landing .tbl-trava-grade { display: grid; gap: 1.5rem; align-items: center; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 860px) { #tb-landing .tbl-trava-grade { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); } }
#tb-landing .tbl-caminho { display: grid; justify-items: center; gap: .6rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--tb-line); border-radius: 14px; background: var(--tb-surface); }
#tb-landing .tbl-caminho-ico { width: 34px; height: 34px; color: var(--tb-gold); }
#tb-landing .tbl-caminho h4 { font-family: var(--tb-display); font-weight: 500; font-size: 1.7rem; color: var(--tb-text); }
#tb-landing .tbl-caminho p { max-width: 30ch; color: var(--tb-muted); }
#tb-landing .tbl-caminho-amigo { position: relative; }
@media (min-width: 860px) {
  /* o contador pertence ao caminho do amigo: um fio dourado liga os dois */
  #tb-landing .tbl-caminho-amigo::after { content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(1.5rem, 4vw, 3.5rem)); width: clamp(1.5rem, 4vw, 3.5rem); height: 1px; background: var(--tb-gold); }
}
#tb-landing .tbl-anel { position: relative; display: grid; place-items: center; align-content: center; gap: .2rem; justify-self: center;
  width: clamp(190px, 22vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tb-surface-2), var(--tb-bg)); }
#tb-landing .tbl-anel-arco { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
#tb-landing .tbl-anel-arco circle { fill: none; stroke-width: 1.4; }
#tb-landing .tbl-anel-fundo { stroke: var(--tb-line); }
/* 09:59 de 10:00: o arco quase cheio */
#tb-landing .tbl-anel-resto { stroke: var(--tb-gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .0017; }
#tb-landing .tbl-anel-num { font-family: var(--tb-mono); font-size: clamp(2.2rem, 3.6vw, 2.8rem); font-weight: 500; letter-spacing: .04em; color: var(--tb-text); font-variant-numeric: tabular-nums; }
#tb-landing .tbl-anel-rot { font-family: var(--tb-mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tb-gold); }
#tb-landing .tbl-anel-nota { margin-top: .3rem; font-size: .75rem; color: var(--tb-dim); }
#tb-landing .tbl-aviso { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(2rem, 5vw, 3.5rem); padding: 10px 18px; border: 1px solid var(--tb-gold-a30); border-radius: 999px; color: var(--tb-text); font-size: .92rem; text-align: left; }
#tb-landing .tbl-aviso svg { flex: none; width: 18px; height: 18px; color: var(--tb-gold); }

/* ── detalhe: sincronia (Cap. II) ───────────────────────────────────────── */
#tb-landing .tbl-sinc-cena { display: grid; gap: 1.5rem; justify-items: center; align-items: center; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 860px) { #tb-landing .tbl-sinc-cena { grid-template-columns: minmax(0, 1.5fr) minmax(90px, .6fr) auto; } }
#tb-landing .tbl-note-p { width: min(89%, 520px); }
#tb-landing .tbl-note-p .tbl-app { gap: 2.6cqi; padding: 6cqi; font-size: 3cqi; }
#tb-landing .tbl-fone-p { width: clamp(190px, 20vw, 240px); }
#tb-landing .tbl-fone-p .tbl-app-fone { padding-top: 26cqi; font-size: 5cqi; }
#tb-landing .tbl-fio { position: relative; display: grid; place-items: center; width: 1px; height: 72px; background: linear-gradient(var(--tb-gold), var(--tb-gold-a30)); }
@media (min-width: 860px) { #tb-landing .tbl-fio { width: 100%; height: 1px; background: linear-gradient(90deg, var(--tb-gold-a30), var(--tb-gold), var(--tb-gold-a30)); } }
#tb-landing .tbl-fio-rot { position: absolute; padding: 4px 10px; border: 1px solid var(--tb-gold-a30); border-radius: 999px; background: var(--tb-bg);
  font-family: var(--tb-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tb-gold); white-space: nowrap; }
#tb-landing .tbl-fio-pulso { position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--tb-gold-light); box-shadow: 0 0 14px var(--tb-gold); }
@media (min-width: 860px) { #tb-landing .tbl-fio-pulso { top: 50%; left: 0; } }

/* ── detalhe: borrar primeiro (Cap. III) ────────────────────────────────── */
#tb-landing .tbl-borrar { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1024px) { #tb-landing .tbl-borrar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
#tb-landing .tbl-loja { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 1.8rem; padding: 0 18px; border: 1px solid var(--tb-gold-a30); border-radius: 999px;
  text-decoration: none; color: var(--tb-gold-light); font-size: .92rem; font-weight: 500; }
#tb-landing .tbl-loja svg { width: 18px; height: 18px; }
#tb-landing .tbl-loja.tbl-breve { color: var(--tb-muted); }
#tb-landing .tbl-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 14px); width: min(100%, 560px); justify-self: center; }
#tb-landing .tbl-img { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; border: 1px solid var(--tb-line); background: var(--tb-surface); container-type: inline-size; }
/* arte abstrata: só gradientes escuros, matiz por imagem (--h) */
#tb-landing .tbl-img { --tbl-arte:
    radial-gradient(circle at 30% 34%, hsla(var(--h), 14%, 32%, .9) 0 16%, transparent 17%),
    radial-gradient(ellipse at 72% 82%, hsla(var(--h), 10%, 22%, .9) 0 34%, transparent 35%),
    linear-gradient(150deg, hsl(var(--h), 7%, 14%), hsl(var(--h), 6%, 8%)); }
#tb-landing .tbl-img-arte { position: absolute; inset: 0; background: var(--tbl-arte); }
/* o borrão e o véu são cópias com filtro FIXO; mudar de estado é só opacidade */
#tb-landing .tbl-img-borrao, #tb-landing .tbl-img-veu { position: absolute; inset: 0; overflow: hidden; background: var(--tb-surface); }
#tb-landing .tbl-img-borrao::before, #tb-landing .tbl-img-veu::before { content: ""; position: absolute; inset: 0; background: var(--tbl-arte); transform: scale(1.12); }
#tb-landing .tbl-img-borrao::before { filter: blur(9px); }
#tb-landing .tbl-img-veu::before { filter: blur(12px) grayscale(1) brightness(.55); }
#tb-landing .tbl-img[data-estatico="segura"] .tbl-img-borrao,
#tb-landing .tbl-img:not([data-estatico="coberta"]) .tbl-img-veu { display: none; }
#tb-landing .tbl-img:not([data-estatico="analisando"]) .tbl-img-scan { display: none; }
#tb-landing .tbl-img-estados { position: absolute; left: 7cqi; right: 7cqi; bottom: 7cqi; display: grid; }
#tb-landing .tbl-img-estados > * { grid-area: 1 / 1; }
#tb-landing .tbl-img:not([data-estatico="fila"]) .tbl-e-fila,
#tb-landing .tbl-img:not([data-estatico="analisando"]) .tbl-e-analisando,
#tb-landing .tbl-img:not([data-estatico="segura"]) .tbl-e-segura,
#tb-landing .tbl-img:not([data-estatico="coberta"]) .tbl-e-coberta { display: none; }
#tb-landing .tbl-img-estado { display: inline-flex; align-items: center; gap: 4cqi;
  font-family: var(--tb-mono); font-size: max(9px, 7.2cqi); letter-spacing: .14em; text-transform: uppercase; color: var(--tb-muted); }
#tb-landing .tbl-img-estado svg { flex: none; width: max(12px, 11cqi); height: max(12px, 11cqi); }
#tb-landing .tbl-e-segura { color: var(--tb-gold); }
#tb-landing .tbl-img[data-estatico="segura"] { border-color: var(--tb-gold-a30); }
#tb-landing .tbl-e-coberta { color: var(--tb-text); }
#tb-landing .tbl-e-coberta svg { color: var(--tb-gold); }
#tb-landing .tbl-e-analisando { color: var(--tb-gold-light); }
#tb-landing .tbl-img-scan { position: absolute; left: 0; right: 0; top: 42%; height: 2px; background: var(--tb-gold); box-shadow: 0 0 12px var(--tb-gold); }

/* ── FINAL ──────────────────────────────────────────────────────────────── */
#tb-landing .tbl-final { display: grid; justify-items: center; gap: clamp(2.5rem, 6vw, 4rem); text-align: center; border-top: 1px solid var(--tb-line);
  background: radial-gradient(60% 50% at 50% 30%, rgba(212, 175, 97, .14), transparent 70%), var(--tb-bg); }
@media (min-width: 1024px) { #tb-landing .tbl-final { padding-right: calc(var(--tbl-gutter) + 72px); } }
#tb-landing .tbl-trio { position: relative; width: min(100%, 640px); aspect-ratio: 16 / 9; }
#tb-landing .tbl-trio > * { position: absolute; }
#tb-landing .tbl-trio-note { left: 0; top: 8%; width: 58%; opacity: .9; }
#tb-landing .tbl-trio-janela { right: 0; top: 0; width: 52%; opacity: .9; }
#tb-landing .tbl-trio-janela .tbl-janela-corpo { aspect-ratio: 16 / 10; padding: 3cqi; }
#tb-landing .tbl-trio-fone { left: 50%; bottom: -6%; width: 25%; transform: translateX(-50%); padding: 6px; border-radius: 22px; }
#tb-landing .tbl-trio-fone::before { top: 10px; }
#tb-landing .tbl-trio-fone .tbl-fone-tela { border-radius: 17px; }
#tb-landing .tbl-trio-tela { height: 100%; border-radius: 1cqi; background: linear-gradient(150deg, #18181b, #0e0e10); }
#tb-landing .tbl-trio-escudo { display: grid; place-items: center; background: radial-gradient(closest-side, rgba(212, 175, 97, .18), var(--tb-surface)); }
#tb-landing .tbl-trio-escudo img { width: 52%; height: auto; }
#tb-landing .tbl-final-texto { display: grid; justify-items: center; width: 100%; max-width: 60rem; }
#tb-landing .tbl-final .tbl-titulo { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
#tb-landing .tbl-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.2rem; }
#tb-landing .tbl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 600; }
#tb-landing .tbl-btn-ouro { background: var(--tb-gold); color: var(--tb-bg); }
#tb-landing .tbl-btn-ouro:hover { background: var(--tb-gold-light); }
#tb-landing .tbl-btn-linha { color: var(--tb-text); border: 1px solid #4a453b; }
#tb-landing .tbl-btn-linha:hover { border-color: var(--tb-gold); }
#tb-landing .tbl-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; width: min(100%, 900px); margin-top: 2rem; }
#tb-landing .tbl-dl { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-height: 64px; padding: 12px 16px; border: 1px solid var(--tb-line); border-radius: 12px;
  background: var(--tb-surface); text-decoration: none; text-align: left; }
#tb-landing a.tbl-dl:hover { border-color: var(--tb-gold-a30); }
#tb-landing .tbl-dl svg { grid-row: span 2; width: 24px; height: 24px; color: var(--tb-gold); }
#tb-landing .tbl-dl-t { color: var(--tb-text); font-size: .92rem; font-weight: 500; }
#tb-landing .tbl-dl-m { color: var(--tb-muted); font-family: var(--tb-mono); font-size: .7rem; letter-spacing: .06em; }
#tb-landing .tbl-dl.tbl-breve svg { color: var(--tb-dim); }
#tb-landing .tbl-pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); width: min(100%, 900px); margin-top: clamp(3rem, 7vw, 5rem); text-align: left; }
#tb-landing .tbl-pilares li { padding-top: 1rem; border-top: 1px solid var(--tb-gold-a30); }
#tb-landing .tbl-pilares h3 { font-family: var(--tb-display); font-weight: 500; font-size: 1.6rem; color: var(--tb-text); }
#tb-landing .tbl-pilares p { margin-top: .35rem; color: var(--tb-muted); }
#tb-landing .tbl-versiculo { margin: clamp(3rem, 7vw, 5rem) 0 0; max-width: 34ch; font-family: var(--tb-display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--tb-gold-light); text-wrap: balance; }
#tb-landing .tbl-versiculo p { margin: 0; }
#tb-landing .tbl-versiculo cite { display: block; margin-top: .7rem; font-family: var(--tb-mono); font-style: normal; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-gold); }

#tb-landing .tbl-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 1.6rem var(--tbl-gutter) calc(1.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--tb-line); color: var(--tb-dim); font-size: .85rem; }
#tb-landing .tbl-rodape nav { display: flex; gap: 4px; }
#tb-landing .tbl-rodape a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--tb-muted); text-decoration: none; }
#tb-landing .tbl-rodape a:hover { color: var(--tb-gold-light); }

/* ── celular estreito ───────────────────────────────────────────────────── */
@media (max-width: 479px) {
  #tb-landing .tbl-nav-entrar { padding: 0 10px; }
  #tb-landing .tbl-pilula { padding: 0 18px; }
  #tb-landing .tbl-marca span { font-size: 1.15rem; }
  #tb-landing .tbl-frentes svg { width: 72px; height: 72px; padding: 14px; }
  #tb-landing .tbl-frentes-linha { top: 44px; }
}

/* ── coreografia do desktop ─────────────────────────────────────────────────
   html.tbl-gsap só existe quando o JS carregou o GSAP (>= 1024 x 600, sem
   movimento reduzido). Cada bloco vira uma cena de uma tela, presa enquanto
   a linha do tempo anda; os estados iniciais vêm do JS (gsap.set), nunca
   daqui — sem JS nada nasce escondido. */
html.tbl-gsap #tb-landing .tbl-prologo { position: relative; height: 100svh; overflow: clip; }
html.tbl-gsap #tb-landing .tbl-quadro { position: absolute; inset: 0; min-height: 0; padding-top: calc(var(--tbl-nav-h) + 1rem); padding-bottom: 2rem; }
html.tbl-gsap #tb-landing .tbl-abertura,
html.tbl-gsap #tb-landing .tbl-explodida,
html.tbl-gsap #tb-landing .tbl-detalhe { height: 100svh; min-height: 0; padding-top: calc(var(--tbl-nav-h) + .5rem); padding-bottom: 1.5rem; }
html.tbl-gsap #tb-landing .tbl-explodida,
html.tbl-gsap #tb-landing .tbl-borrar { align-content: center; }
html.tbl-gsap #tb-landing .tbl-trava,
html.tbl-gsap #tb-landing .tbl-sinc { display: flex; flex-direction: column; justify-content: center; }
html.tbl-gsap #tb-landing .tbl-trava { align-items: center; }
html.tbl-gsap #tb-landing .tbl-trava .tbl-trava-grade { width: 100%; }
html.tbl-gsap #tb-landing .tbl-explodida-palco { min-height: min(var(--palco-h), 64svh); }
html.tbl-gsap #tb-landing .tbl-fone-p { width: min(240px, 26svh); }
html.tbl-gsap #tb-landing .tbl-abertura-fig .tbl-fone { width: min(clamp(210px, 24vw, 290px), 36svh); }
html.tbl-gsap #tb-landing .tbl-quadro-fig .tbl-fone { width: min(clamp(210px, 24vw, 290px), 38svh); }
/* lista da vista explodida: o item ativo em 1, os outros em .38 */
html.tbl-gsap #tb-landing .tbl-camada { opacity: .38; transition: opacity .35s ease; }
html.tbl-gsap #tb-landing .tbl-camada.is-ativo { opacity: 1; }
html.tbl-gsap #tb-landing .tbl-placa { transition: border-color .35s ease, box-shadow .35s ease; }
/* grade do Cap. III: todas as camadas e rótulos existem; o JS decide quem aparece */
html.tbl-gsap #tb-landing .tbl-img .tbl-img-borrao,
html.tbl-gsap #tb-landing .tbl-img .tbl-img-veu,
html.tbl-gsap #tb-landing .tbl-img .tbl-img-scan { display: block; }
html.tbl-gsap #tb-landing .tbl-img .tbl-img-estado { display: inline-flex; }
html.tbl-gsap #tb-landing .tbl-img-scan { top: 0; }
html.tbl-gsap #tb-landing .tbl-img { border-color: var(--tb-line); }
/* will-change só enquanto a cena está presa na tela */
html.tbl-gsap #tb-landing .tbl-anima .tbl-quadro-texto,
html.tbl-gsap #tb-landing .tbl-anima .tbl-quadro-fig,
html.tbl-gsap #tb-landing .tbl-anima .tbl-fone,
html.tbl-gsap #tb-landing .tbl-anima .tbl-note,
html.tbl-gsap #tb-landing .tbl-anima .tbl-janela,
html.tbl-gsap #tb-landing .tbl-anima .tbl-acolhe,
html.tbl-gsap #tb-landing .tbl-anima .tbl-feed-rolo,
html.tbl-gsap #tb-landing .tbl-anima .tbl-numeral,
html.tbl-gsap #tb-landing .tbl-anima .tbl-placa,
html.tbl-gsap #tb-landing .tbl-anima .tbl-img-borrao,
html.tbl-gsap #tb-landing .tbl-anima .tbl-img-scan { will-change: transform, opacity; }

/* ── barra fina de progresso (celular e tablet, no lugar do trilho) ───────── */
#tb-landing .tbl-barra { display: none; }
@media (max-width: 1023px) {
  html.tbl-js #tb-landing .tbl-barra { display: block; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; height: 2px; pointer-events: none; }
  html.tbl-js #tb-landing .tbl-barra span { display: block; height: 100%; background: var(--tb-gold); transform-origin: 0 50%; transform: scaleX(0); }
}

/* ── coreografia do celular ──────────────────────────────────────────────────
   html.tbl-movel sai no <head> (largura < 1024 ou altura < 600, sem "reduzir
   movimento"). Sem pino longo e sem 3D: blocos entram ao rolar, o aparelho de
   cada vista explodida fica preso no topo (45svh) e os cartões passam por
   baixo. Só transform e opacidade; o borrão continua uma cópia com filtro fixo. */
html.tbl-movel #tb-landing .tbl-entra { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.tbl-movel #tb-landing .tbl-entra.is-visivel { opacity: 1; transform: none; }

/* Prólogo: o feed rola sozinho; o escudo desce e trava; os marcadores acendem; as frentes se abrem do centro */
html.tbl-movel #tb-landing .tbl-quadro-1 .tbl-feed-rolo { transition: transform 7s linear; }
html.tbl-movel #tb-landing .tbl-quadro-1 .tbl-quadro-fig.is-visivel .tbl-feed-rolo { transform: translateY(-30%); }
html.tbl-movel #tb-landing .tbl-quadro-2 .tbl-acolhe { opacity: 0; transform: translateY(-8%) scale(1.15); transition: opacity .9s ease .5s, transform .9s cubic-bezier(.2, .7, .2, 1) .5s; }
html.tbl-movel #tb-landing .tbl-quadro-2 .tbl-quadro-fig.is-visivel .tbl-acolhe { opacity: 1; transform: none; }
html.tbl-movel #tb-landing .tbl-marcos li { opacity: .25; transition: opacity .5s ease; }
html.tbl-movel #tb-landing .tbl-quadro-texto.is-visivel .tbl-marcos li { opacity: 1; }
html.tbl-movel #tb-landing .tbl-quadro-texto.is-visivel .tbl-marcos li:nth-child(1) { transition-delay: .7s; }
html.tbl-movel #tb-landing .tbl-quadro-texto.is-visivel .tbl-marcos li:nth-child(2) { transition-delay: 1.2s; }
html.tbl-movel #tb-landing .tbl-quadro-texto.is-visivel .tbl-marcos li:nth-child(3) { transition-delay: 1.7s; }
html.tbl-movel #tb-landing .tbl-frentes li { opacity: 0; transition: opacity .7s ease .3s, transform .9s cubic-bezier(.2, .7, .2, 1) .3s; }
html.tbl-movel #tb-landing .tbl-frentes li:nth-child(1) { transform: translateX(110%) scale(.6); }
html.tbl-movel #tb-landing .tbl-frentes li:nth-child(2) { transform: scale(.6); }
html.tbl-movel #tb-landing .tbl-frentes li:nth-child(3) { transform: translateX(-110%) scale(.6); }
html.tbl-movel #tb-landing .tbl-quadro-fig.is-visivel .tbl-frentes li { opacity: 1; transform: none; }
html.tbl-movel #tb-landing .tbl-frentes-linha { transform: scaleX(0); transition: transform .8s ease 1s; }
html.tbl-movel #tb-landing .tbl-quadro-fig.is-visivel .tbl-frentes-linha { transform: none; }

/* aberturas: o numeral entra grande e recua */
html.tbl-movel #tb-landing .tbl-numeral { opacity: 0; transform: scale(1.4); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
html.tbl-movel #tb-landing .tbl-abertura.is-visivel .tbl-numeral { opacity: .2; transform: none; }

/* vista explodida: aparelho preso no topo, cartões por baixo */
html.tbl-movel #tb-landing .tbl-explodida-note,
html.tbl-movel #tb-landing .tbl-explodida-nav { --placa-w: min(clamp(190px, 46vw, 320px), 44svh); --vao: min(clamp(26px, 7vw, 54px), 5svh); }
html.tbl-movel #tb-landing .tbl-explodida-fone { --placa-w: min(clamp(110px, 26vw, 170px), 20svh); --vao: min(clamp(30px, 8vw, 62px), 6svh); }
html.tbl-movel #tb-landing .tbl-explodida { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
html.tbl-movel #tb-landing .tbl-explodida-palco { order: -1; position: sticky; top: calc(var(--tbl-nav-h) + env(safe-area-inset-top, 0px)); z-index: 2;
  height: 45svh; min-height: 0; margin-inline: calc(-1 * var(--tbl-gutter));
  background: linear-gradient(180deg, var(--tb-bg) 84%, rgba(7, 7, 8, 0)); overflow: clip; }
html.tbl-movel #tb-landing .tbl-pilha { transform: translateY(calc(var(--vao) * 1.6)); }
html.tbl-movel #tb-landing .tbl-placa { transition: transform .55s cubic-bezier(.2, .7, .2, 1), border-color .3s ease; }
html.tbl-movel #tb-landing .tbl-camadas { gap: 0; padding-bottom: 18svh; }
html.tbl-movel #tb-landing .tbl-camada { min-height: 38svh; align-content: start; margin-top: 1rem; padding: 1.2rem; border: 1px solid var(--tb-line); border-radius: 14px;
  background: var(--tb-surface); opacity: .38; transition: opacity .35s ease; }
html.tbl-movel #tb-landing .tbl-camada.is-ativo { opacity: 1; border-color: var(--tb-gold-a30); }

/* Cap. II: o item novo entra, o interruptor vira, o pulso leva a regra ao celular */
html.tbl-movel #tb-landing .tbl-sinc .tbl-novo { opacity: 0; transform: translateY(-10px); transition: opacity .5s ease, transform .5s ease; }
html.tbl-movel #tb-landing .tbl-sinc-cena.is-visivel .tbl-note-p .tbl-novo { opacity: 1; transform: none; transition-delay: .4s; }
html.tbl-movel #tb-landing .tbl-sinc-cena.is-visivel .tbl-fone-p .tbl-novo { opacity: 1; transform: none; transition-delay: 2.5s; }
html.tbl-movel #tb-landing .tbl-chave-viva::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #2a2a30; transition: opacity .3s ease 1s; }
html.tbl-movel #tb-landing .tbl-chave-viva i { z-index: 1; transform: none; transition: transform .3s ease 1s; }
html.tbl-movel #tb-landing .tbl-sinc-cena.is-visivel .tbl-chave-viva::before { opacity: 0; }
html.tbl-movel #tb-landing .tbl-sinc-cena.is-visivel .tbl-chave-viva i { transform: translateX(2.8cqi); }
html.tbl-movel #tb-landing .tbl-fio-pulso { opacity: 0; }
html.tbl-movel #tb-landing .tbl-sinc-cena.is-visivel .tbl-fio-pulso { animation: tbl-pulso 1s linear 1.4s both; }
@keyframes tbl-pulso {
  0% { opacity: 1; transform: translate(0, 0); }
  90% { opacity: 1; transform: translate(var(--fx, 0px), var(--fy, 0px)); }
  100% { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 0px)); }
}
html.tbl-movel #tb-landing .tbl-fone-p .tbl-app-sync { opacity: 0; transition: opacity .5s ease; }
html.tbl-movel #tb-landing .tbl-sinc-cena.is-visivel .tbl-fone-p .tbl-app-sync { opacity: 1; transition-delay: 2.9s; }

/* Cap. III: as imagens desborram uma a uma (escalonadas por --i); uma continua coberta */
html.tbl-movel #tb-landing .tbl-img .tbl-img-borrao,
html.tbl-movel #tb-landing .tbl-img .tbl-img-veu,
html.tbl-movel #tb-landing .tbl-img .tbl-img-scan { display: block; }
html.tbl-movel #tb-landing .tbl-img .tbl-img-estado { display: inline-flex; }
html.tbl-movel #tb-landing .tbl-img { --d: calc(var(--i) * .45s + .3s); border-color: var(--tb-line); }
html.tbl-movel #tb-landing .tbl-img-veu,
html.tbl-movel #tb-landing .tbl-img-scan,
html.tbl-movel #tb-landing .tbl-e-analisando,
html.tbl-movel #tb-landing .tbl-e-segura,
html.tbl-movel #tb-landing .tbl-e-coberta { opacity: 0; }
html.tbl-movel #tb-landing .tbl-img-scan { top: 0; }
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-e-fila { animation: tbl-sai .07s linear var(--d) both; }
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-e-analisando { animation: tbl-pisca .45s linear var(--d) both; }
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-img-scan { animation: tbl-varre .38s linear var(--d) both; }
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-e-segura,
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-e-coberta { animation: tbl-entra .1s linear calc(var(--d) + .46s) both; }
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-img[data-fim="segura"] .tbl-img-borrao { animation: tbl-sai .25s linear calc(var(--d) + .36s) both; }
html.tbl-movel #tb-landing .tbl-grade.is-visivel .tbl-img[data-fim="coberta"] .tbl-img-veu { animation: tbl-entra .25s linear calc(var(--d) + .36s) both; }
@keyframes tbl-sai { from { opacity: 1; } to { opacity: 0; } }
@keyframes tbl-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes tbl-pisca { 0% { opacity: 0; } 18% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tbl-varre { 0% { opacity: 1; transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(100cqi); } }
