/* B&T Digital: site cinematográfico. HTML/CSS/JS puros.
   Movimento só em transform, opacity e clip-path (exceções declaradas: desfoque do título de abertura). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #05080f;
  --bg-2: #0a0f1c;
  --navy: #0a1a3f;
  --blue: #2f6bff;
  --cta: #2a62f2;
  --cta-hover: #2156e0;
  --ink: #8fb0ff;
  --mark: #3d78ff;
  --fg: #f4f5f7;
  --muted: #a3a9b5;
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.18);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --inout: cubic-bezier(0.77, 0, 0.175, 1);
  --gut: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scrollbar-color: #26314a transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(47 107 255 / 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1rem; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left)); }

/* ---------- marca ---------- */
.mark { font-weight: 760; letter-spacing: -0.065em; line-height: 1; }
.mark .amp { color: var(--mark); }
.brand-sub { font-weight: 400; letter-spacing: -0.01em; color: var(--muted); font-size: .62em; margin-left: .3em; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  border-radius: 999px; text-decoration: none; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 140ms var(--out), background-color 200ms ease, border-color 200ms ease;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn-primary { background: var(--cta); color: #fff; padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-ghost { border: 1px solid var(--line-2); padding: .55rem 1rem; font-size: .9rem; }
.btn-light { background: #fff; color: var(--navy); padding: 1.15rem 2rem; }
.btn-xl { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--cta-hover); }
  .btn-ghost:hover { border-color: var(--muted); }
  .btn-light:hover { background: #e9efff; }
}

/* ---------- carregamento ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 1.5rem;
}
.no-js .loader { display: none; }
.loader-mark { width: min(78vw, 560px); overflow: visible; transform-origin: 50% 60%; }
.loader-text {
  font-family: "Geist", sans-serif; font-size: 190px; font-weight: 780; letter-spacing: -12px;
  fill: url(#g-marca); fill-opacity: 0;
  stroke: url(#g-marca); stroke-width: 2.4; stroke-dasharray: 1100; stroke-dashoffset: 1100;
  animation: draw 1.7s var(--inout) .1s forwards;
  transition: fill-opacity .7s ease;
}
.loader.filled .loader-text { fill-opacity: 1; }
.loader-count { font-variant-numeric: tabular-nums; font-size: .95rem; letter-spacing: .14em; color: var(--muted); }
.loader.out { pointer-events: none; opacity: 0; transition: opacity .55s ease .5s; }
.loader.out .loader-mark { transform: scale(26); transition: transform 1.15s var(--inout); }
.loader.out .loader-count { opacity: 0; transition: opacity .2s ease; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: max(1rem, env(safe-area-inset-top)) var(--gut) 1rem;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: rgb(5 8 15 / 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: baseline; text-decoration: none; }
.brand .mark { font-size: 1.45rem; }
.nav { display: flex; gap: 2rem; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--fg); } }

main { position: relative; z-index: 1; }
.ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- a apresentação ---------- */
.journey { position: relative; height: 780vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #02040a; }
.frame { position: absolute; inset: 0; transform-origin: 50% 50%; }
.media { position: absolute; inset: 0; overflow: hidden; }
.media > img, .video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.still { opacity: 0; transition: opacity .9s ease; }
.still.is-on { opacity: 1; }
.video { opacity: 0; transition: opacity .6s ease; }
.video.ready { opacity: 1; }
.shade { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgb(2 4 10 / .55) 100%); pointer-events: none; }
.browser-bar {
  position: absolute; z-index: 3; inset: 0 0 auto 0; height: 38px;
  display: flex; align-items: center; gap: 7px; padding: 0 16px;
  background: #0c1120; border-bottom: 1px solid var(--line); opacity: 0;
}
.browser-bar i, .browser-top i { width: 10px; height: 10px; border-radius: 50%; background: #2a3247; }
.browser-bar span, .browser-top span { margin-left: 14px; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.chapters { position: absolute; inset: 0; z-index: 2; }
.ch { position: absolute; inset: 0; display: flex; opacity: 0; padding: 0 var(--gut); pointer-events: none; }
.ch.on { pointer-events: auto; }
.ch::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ch > * { position: relative; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }

/* abertura */
/* a barra de busca do vídeo ocupa o meio do quadro (41–57% da altura): o título fica na faixa vazia de baixo */
.ch-hero { flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.ch-hero::before { background: linear-gradient(180deg, transparent 52%, rgb(2 4 10 / .82) 100%); }
.hero-title { font-size: clamp(2.7rem, 1rem + 5.4vw, 6.6rem); font-weight: 720; line-height: .94; letter-spacing: -0.045em; }
.js .hero-title .line > span { transform: translateY(105%); opacity: 0; filter: blur(14px); }
.js .ready .hero-title .line > span,
.js.ready .hero-title .line > span { transform: none; opacity: 1; filter: blur(0); transition: transform 1.3s var(--expo), opacity .9s ease, filter 1.1s var(--expo); }
.js.ready .hero-title .line:nth-child(2) > span { transition-delay: .14s; }
.hero-sub { margin-top: 1.1rem; max-width: 46ch; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); color: #d3d8e2; }
.js .hero-sub, .js .cue { opacity: 0; transform: translateY(12px); }
.js.ready .hero-sub, .js.ready .cue { opacity: 1; transform: none; transition: opacity .9s ease .45s, transform 1s var(--expo) .45s; }
.js.ready .cue { transition-delay: .7s; }
.cue { position: absolute; right: var(--gut); bottom: clamp(2.5rem, 7vh, 4.5rem); display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.cue-track { position: relative; width: 2px; height: 42px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.cue-dot { position: absolute; left: 0; top: 0; width: 2px; height: 14px; background: var(--ink); animation: cue 1.8s var(--inout) infinite; }
@keyframes cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(42px); } }

/* capítulo a: palavras que se separam e se juntam */
.ch-a { align-items: flex-start; justify-content: center; text-align: center; padding-top: clamp(6rem, 17vh, 10rem); }
.ch-a::before { background: linear-gradient(180deg, rgb(2 4 10 / .72) 0%, rgb(2 4 10 / .35) 38%, transparent 60%); }
.split { font-size: clamp(2.3rem, 1rem + 4.8vw, 6.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.split .row { display: block; }
.split .w { display: inline-block; }
.w-dim { font-weight: 360; color: #c4cad6; }

/* capítulo b: escala com profundidade */
.ch-b { align-items: center; justify-content: center; text-align: center; }
.ch-b::before { background: radial-gradient(ellipse 62% 42% at 50% 50%, rgb(2 4 10 / .8), rgb(2 4 10 / .35) 60%, transparent 80%); }
.depth { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gut); }
.depth > span { display: block; font-size: clamp(2.8rem, 1rem + 8vw, 10.5rem); font-weight: 740; line-height: .95; letter-spacing: -0.05em; opacity: 0; }

/* capítulo c: espaçamento das letras fechando */
.ch-c { align-items: center; }
.ch-c::before { background: linear-gradient(90deg, rgb(2 4 10 / .88) 0%, rgb(2 4 10 / .6) 38%, transparent 66%); }
.ch-c > *, .ch-d > * { max-width: min(46rem, 52vw); }
.ch-c { flex-direction: column; justify-content: center; align-items: flex-start; }
.track { font-size: clamp(2.2rem, 1rem + 4.2vw, 5.6rem); font-weight: 720; line-height: 1.02; letter-spacing: -0.04em; }
.track .row { display: block; white-space: nowrap; }
.track .l { display: inline-block; white-space: pre; }
.track .lw { display: inline-block; white-space: nowrap; }
.labels { margin-top: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; max-width: 40rem; }
.label { display: grid; gap: .35rem; }
.label strong { font-size: 1.5rem; letter-spacing: .06em; color: var(--ink); font-weight: 650; }
.label span { color: #c4cad6; font-size: 1rem; }

/* capítulo d: máscara de baixo para cima */
.ch-d { flex-direction: column; justify-content: center; align-items: flex-start; }
.ch-d::before { background: linear-gradient(90deg, rgb(2 4 10 / .9) 0%, rgb(2 4 10 / .6) 40%, transparent 68%); }
.masked { font-size: clamp(2.2rem, 1rem + 4.4vw, 5.8rem); font-weight: 720; line-height: 1; letter-spacing: -0.04em; }
.bubbles { margin-top: 2rem; display: grid; gap: .6rem; max-width: 26rem; }
.bubble { justify-self: start; padding: .75rem 1.05rem; border-radius: 18px 18px 18px 6px; background: rgb(255 255 255 / .1); border: 1px solid var(--line); font-size: 1rem; transform-origin: 0 100%; }
.bubble-out { justify-self: end; border-radius: 18px 18px 6px 18px; background: #1d6f47; border-color: transparent; color: #fff; transform-origin: 100% 100%; }

/* capítulo e: repouso */
.ch-e { display: block; padding: 0; }
.e-mark { position: absolute; display: grid; place-items: center; align-content: center; text-align: center; color: #fff; }
.e-thin, .e-bold { grid-area: 1 / 1; font-size: inherit; letter-spacing: -0.065em; line-height: .9; }
.e-thin { font-weight: 180; }
.e-bold { font-weight: 800; opacity: 0; }
.e-mark .amp { color: var(--navy); }
.e-sub { grid-area: 2 / 1; margin-top: .25em; font-size: .17em; letter-spacing: .5em; text-transform: uppercase; color: #eef2fa; padding-left: .5em; }
.e-side { position: absolute; display: grid; gap: 1.75rem; justify-items: start; }
.e-side::before { content: ""; position: absolute; inset: -30% -40% -30% -60%; background: radial-gradient(ellipse at 30% 50%, rgb(2 4 10 / .75), transparent 70%); z-index: -1; }
.e-title { font-size: clamp(1.7rem, 1rem + 1.9vw, 3.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.e-side .btn { opacity: 0; }
.ch-e.e-compact .e-side { left: var(--gut) !important; right: var(--gut); top: auto !important; bottom: clamp(5rem, 12vh, 8rem); width: auto !important; justify-items: center; text-align: center; }

.journey-progress { position: absolute; right: clamp(.75rem, 2vw, 1.5rem); top: 50%; z-index: 4; width: 2px; height: 22vh; transform: translateY(-50%); background: var(--line); border-radius: 2px; overflow: hidden; }
.journey-progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(0); }

/* ---------- seções ---------- */
.sec { position: relative; padding: clamp(6rem, 4rem + 9vw, 12rem) 0; }
.sec-title { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5.6rem); font-weight: 720; line-height: 1; letter-spacing: -0.042em; max-width: 16ch; }

/* serviços: linhas que se desenham */
.svc-list { list-style: none; margin: clamp(3rem, 6vw, 5.5rem) 0 0; padding: 0; display: grid; }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; padding: 2.1rem 0; align-items: baseline; }
.svc-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: 0 50%; }
.svc h3 { font-size: clamp(1.6rem, 1rem + 2vw, 2.9rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.svc p { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }

/* portfólio */
.portfolio .sec-title { max-width: none; }
.project { margin-top: clamp(4rem, 8vw, 8rem); }
.project-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.project-alt .project-copy { order: 2; }
.project-name { font-size: clamp(2.6rem, 1rem + 5vw, 6.2rem); font-weight: 740; letter-spacing: -0.05em; line-height: .95; }
.project-desc { margin-top: 1.4rem; color: var(--muted); font-size: 1.15rem; max-width: 34ch; }
.link-arrow { display: inline-block; margin-top: 1.8rem; font-weight: 560; text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size .35s var(--out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { background-size: 100% 1px; } }
.link-arrow:focus-visible { background-size: 100% 1px; }
.devices { position: relative; padding: 0 6% 9% 0; }
.browser { border-radius: 16px; overflow: hidden; background: #0c1120; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .9); }
.browser-top { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser .screen { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; border-radius: 30px; padding: 7px; background: #0b0d12; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .95); }
.phone .screen { aspect-ratio: 390 / 844; overflow: hidden; border-radius: 23px; background: #000; }
.scroller { width: 100%; height: auto; }
.mid-cta { margin-top: clamp(5rem, 10vw, 9rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.mid-cta-text { font-size: clamp(2rem, 1rem + 3.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* como funciona: o mesmo tratamento nos 4 passos */
.steps-rail { position: relative; margin-top: clamp(3rem, 6vw, 5rem); height: 2px; background: var(--line); }
.steps-rail span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--navy), var(--blue)); }
.step-list { list-style: none; margin: 0; padding: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.step-n { display: block; font-size: clamp(2.6rem, 2rem + 2vw, 4rem); font-weight: 250; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 1.1rem; font-size: 1.55rem; font-weight: 650; letter-spacing: -0.025em; }
.step p { margin-top: .7rem; color: var(--muted); }

/* número medido */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; align-items: end; }
.proof-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.proof-n { font-size: clamp(3.4rem, 2rem + 4vw, 6rem); font-weight: 680; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-l { margin-top: .6rem; color: var(--muted); }

/* dúvidas */
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq .sec-title { position: sticky; top: 7rem; }
.wt { display: grid; }
.wt > span { grid-area: 1 / 1; }
.wt-b { font-weight: 820; opacity: 0; }
.wt-a { font-weight: 260; }
.qa { border-top: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: .45em; background: linear-gradient(currentColor, currentColor) 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% / 2px 100% no-repeat; transition: transform .3s var(--out); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 1.7rem; color: var(--muted); max-width: 60ch; }
.qa[open] p { animation: qa-in .45s var(--out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* CTA final */
.final { position: relative; z-index: 1; min-height: 92vh; min-height: 92svh; display: grid; align-items: center; background: linear-gradient(160deg, var(--navy) 0%, #13307f 50%, var(--blue) 100%); overflow: hidden; }
.final-inner { display: grid; justify-items: center; text-align: center; gap: 2rem; padding-block: 6rem; }
.final-title { font-size: clamp(3rem, 1rem + 7vw, 8.6rem); font-weight: 740; line-height: .95; letter-spacing: -0.05em; max-width: 12ch; }
.final-sub { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); max-width: 36ch; color: rgb(255 255 255 / .88); }

.about { padding-block: 5rem 3rem; }
.about-title { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.about-text { margin-top: .8rem; max-width: 72ch; color: var(--muted); font-size: .98rem; }

.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 3.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: end; }
.mark-lg { font-size: 2.3rem; }
.footer-note { margin-top: .9rem; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; text-align: right; }
.footer-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--ink); } }
.footer-base { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #7b8291; font-size: .88rem; }

.wa-float { position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; box-shadow: 0 12px 30px -10px rgb(47 107 255 / .7); opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; transition: opacity .25s var(--out), transform .25s var(--out); }
.wa-float .ico { width: 28px; height: 28px; fill: currentColor; }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }


/* ---------- aviso de cookies ---------- */
.consent {
  position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(26rem, calc(100vw - 2rem)); padding: 1.25rem; border-radius: 18px;
  background: #0d1322; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .9);
  animation: consent-in .4s var(--out);
}
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
.consent-title { font-size: 1.05rem; font-weight: 650; }
.consent-text { margin-top: .5rem; font-size: .95rem; color: #c4cad6; }
.consent-text a { color: var(--ink); }
.consent-opts { margin-top: 1rem; display: grid; gap: .65rem; }
.consent-opts[hidden] { display: none; }
.consent-opts label { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: start; font-size: .95rem; cursor: pointer; }
.consent-opts input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--blue); grid-row: span 2; }
.consent-opts small { grid-column: 2; color: var(--muted); font-size: .82rem; }
.consent-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-btn { border: 1px solid var(--line-2); background: transparent; color: var(--fg); border-radius: 999px; padding: .6rem 1rem; font: 560 .9rem/1 "Geist", sans-serif; cursor: pointer; touch-action: manipulation; }
.consent-primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.consent-link { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: .5rem; }
@media (hover: hover) and (pointer: fine) { .consent-btn:hover { border-color: var(--muted); } .consent-primary:hover { background: var(--cta-hover); } }
@media (max-width: 640px) {
  .consent { left: 1rem; right: 1rem; width: auto; }
  body:has(.consent) .wa-float { visibility: hidden; }
}

/* ---------- páginas legais ---------- */
.legal-main { position: relative; z-index: 1; padding: 8rem 0 5rem; }
.legal { max-width: 72ch; }
.legal h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); font-weight: 720; letter-spacing: -0.04em; line-height: 1.02; }
.legal .updated { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.legal h2 { margin-top: 3rem; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; scroll-margin-top: 6rem; }
.legal h3 { margin-top: 1.8rem; font-size: 1.15rem; font-weight: 620; }
.legal p, .legal li { color: #c9ced9; }
.legal p { margin-top: 1rem; }
.legal ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal a { color: var(--ink); }
.legal table { width: 100%; margin-top: 1.2rem; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--fg); font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-legal a, .footer-legal button { color: #a9b0bd; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover, .footer-legal button:hover { color: var(--fg); } }

/* ---------- revelações (cada seção com a sua) ---------- */
.js [data-reveal="letters"] .ltr { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.96); }
.js [data-reveal="letters"].in .ltr { opacity: 1; transform: none; transition: opacity .7s ease calc(var(--i) * 14ms), transform 1s var(--expo) calc(var(--i) * 14ms); }
.js [data-reveal="draw"] .svc-line { transform: scaleX(0); }
.js [data-reveal="draw"] h3 { clip-path: inset(0 0 100% 0); transform: translateY(.35em); }
.js [data-reveal="draw"] p { opacity: 0; }
.js [data-reveal="draw"].in .svc-line { transform: none; transition: transform 1.3s var(--inout); }
.js [data-reveal="draw"].in h3 { clip-path: inset(0 0 -10% 0); transform: none; transition: clip-path .9s var(--expo) .25s, transform 1s var(--expo) .25s; }
.js [data-reveal="draw"].in p { opacity: 1; transition: opacity .8s ease .5s; }
.js [data-reveal="mask"] .line > span { transform: translateY(105%); }
.js [data-reveal="mask"].in .line > span { transform: none; transition: transform 1.1s var(--expo); }
.js [data-reveal="mask"].in .line:nth-child(2) > span { transition-delay: .1s; }
.js [data-reveal="mask-p"] { clip-path: inset(0 0 100% 0); }
.js [data-reveal="mask-p"].in { clip-path: inset(0 0 -5% 0); transition: clip-path 1s var(--expo) .15s; }
.js [data-reveal="depth"] { opacity: 0; transform: scale(.82); }
.js [data-reveal="depth"].in { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.3s var(--expo); }
.js [data-reveal="frame"] .browser { clip-path: inset(48% 48% 48% 48% round 16px); }
.js [data-reveal="frame"] .phone { clip-path: inset(100% 0 0 0 round 30px); }
.js [data-reveal="frame"].in .browser { clip-path: inset(0 0 0 0 round 16px); transition: clip-path 1.4s var(--inout); }
.js [data-reveal="frame"].in .phone { clip-path: inset(0 0 0 0 round 30px); transition: clip-path 1.1s var(--expo) .55s; }
.js [data-reveal="step"] .step-n { opacity: 0; transform: scale(.6); }
.js [data-reveal="step"] h3, .js [data-reveal="step"] p { clip-path: inset(0 0 100% 0); }
.js [data-reveal="step"].in .step-n { opacity: 1; transform: none; transition: opacity .7s ease, transform 1.1s var(--expo); }
.js [data-reveal="step"].in h3, .js [data-reveal="step"].in p { clip-path: inset(0 0 -10% 0); transition: clip-path .9s var(--expo) .2s; }
.js [data-reveal="step"].in p { transition-delay: .32s; }
.js [data-reveal="weight"].in .wt-a { opacity: 0; transition: opacity 1.2s ease .2s; }
.js [data-reveal="weight"].in .wt-b { opacity: 1; transition: opacity 1.2s ease .2s; }
.js [data-reveal="clip"] { clip-path: inset(0 0 0 100%); }
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--inout) calc(var(--i, 0) * 90ms); }

/* ---------- celular e telas estreitas ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .journey { height: 560vh; }
  .ch-c > *, .ch-d > * { max-width: none; }
  .ch-c, .ch-d { justify-content: flex-start; padding-top: clamp(6rem, 15vh, 8rem); }
  .ch-c::before, .ch-d::before { background: linear-gradient(180deg, rgb(2 4 10 / .9) 0%, rgb(2 4 10 / .7) 50%, rgb(2 4 10 / .35) 100%); }
  .track .row { white-space: normal; }
  .labels { grid-template-columns: 1fr; }
  .journey-progress { display: none; }
  .svc { grid-template-columns: 1fr; }
  .project-grid, .faq-grid, .proof-grid { grid-template-columns: 1fr; }
  .project-alt .project-copy { order: 0; }
  .step-list { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .faq .sec-title { position: static; }
  .footer-links { text-align: left; }
}
@media (max-width: 560px) {
  .step-list { grid-template-columns: 1fr; }
  .topbar .btn-ghost { padding: .5rem .85rem; }
}

/* ---------- sem JS ou com "reduzir movimento": tudo legível, sem coreografia ---------- */
.no-js .journey, .flat .journey { height: auto; }
.no-js .stage, .flat .stage { position: relative; height: auto; overflow: visible; background: none; }
.no-js .frame, .flat .frame { position: relative; }
.no-js .media, .flat .media { position: relative; height: 70vh; }
.no-js .video, .flat .video { display: none; }
.no-js .still-a, .flat .still-a { opacity: 0; }
.no-js .still-c, .flat .still-c { opacity: 1; }
.no-js .chapters, .flat .chapters { position: static; }
.no-js .ch, .flat .ch { position: relative; opacity: 1; padding: 3.5rem var(--gut); pointer-events: auto; display: block; }
.no-js .ch::before, .flat .ch::before { display: none; }
/* o título fica sobre a imagem (70vh do topo); os outros capítulos vêm em sequência, abaixo */
.no-js .ch-hero, .flat .ch-hero { position: absolute; top: 0; left: 0; right: 0; height: 70vh; display: flex; }
.no-js .ch-hero::before, .flat .ch-hero::before { display: block; }
.no-js .cue, .flat .cue { display: none; }
.no-js .track .row, .flat .track .row { white-space: normal; }
.no-js .labels, .flat .labels { grid-template-columns: 1fr; }
.no-js .depth, .flat .depth { position: static; display: block; padding: 0; }
.no-js .depth > span, .flat .depth > span { opacity: 1; font-size: clamp(2.2rem, 1rem + 4vw, 4.5rem); }
.no-js .ch-e, .flat .ch-e { display: grid; gap: 2rem; }
.no-js .e-mark, .flat .e-mark { position: static; font-size: clamp(4rem, 12vw, 9rem); justify-items: start; text-align: left; }
.no-js .e-mark .amp, .flat .e-mark .amp { color: var(--mark); }
.no-js .e-bold, .flat .e-bold { opacity: 1; }
.no-js .e-thin, .flat .e-thin { opacity: 0; }
.no-js .e-side, .flat .e-side { position: static; }
.no-js .e-side::before, .flat .e-side::before { display: none; }
.no-js .e-side .btn, .flat .e-side .btn { opacity: 1; }
.no-js .browser-bar, .flat .browser-bar, .flat .journey-progress, .no-js .journey-progress { display: none; }
.flat .hero-title .line > span, .flat .hero-sub, .flat .cue { transform: none !important; opacity: 1 !important; filter: none !important; }
.flat .cue-dot { animation: none; }

/* teclado: o que recebe foco aparece na hora, sem esperar a revelação */
.js [data-reveal]:focus-within, .js [data-reveal]:focus-within * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

/* sem JavaScript: tudo aparece direto, sem movimento */
.flat [data-reveal], .flat [data-reveal] * { transition-duration: .01ms !important; transition-delay: 0s !important; }
.flat [data-reveal] .ltr, .flat [data-reveal="depth"], .flat [data-reveal="draw"] h3, .flat [data-reveal="draw"] .svc-line { transform: none !important; }
