/* Deepfake Brasil — editorial + laboratório
   Paleta curta: papel, tinta (azul-marinho), um único accent (azul-escuro da bandeira)
   e o verde/amarelo do Brasil reservados ao símbolo. */

:root {
  --paper: #F6F5F1;
  --paper-2: #EEECE6;
  --surface: #FFFFFF;
  --ink: #0B1521;
  --ink-2: #3A3A36;
  --muted: #76756F;
  --line: #D9D7D0;
  --line-strong: #0B1521;
  --accent: #001C55;
  --accent-light: #8FB0EA;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 28, 85, .10);
  --br-green: #009739;
  --br-yellow: #FEDD00;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 68px;
  --wrap: 1440px;
  --wrap-wide: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.btn-accent:hover { background: var(--ink); }
.btn-accent:disabled { cursor: progress; background: var(--ink); }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent-light); transition: width .2s linear; }
.btn-label { position: relative; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
/* Marca: símbolo (quadro de detecção + círculo real/sintético) + "Powered by Ermis" */
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { width: 26px; height: 26px; flex: none; overflow: visible; }
.brand-logo .bl-frame { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; transition: transform .35s var(--ease); transform-origin: 16px 16px; }
.brand-logo .bl-green { fill: var(--br-green); }
.brand-logo .bl-yellow { fill: var(--br-yellow); }
.brand:hover .bl-frame { transform: scale(.88); }
.brand-name { font: 800 18px/1 var(--font-display); letter-spacing: -.025em; white-space: nowrap; }
.lockup-ermis { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-left: 18px; border-left: 1px solid var(--line); height: 26px; text-decoration: none; color: var(--ink); font-size: 13px; white-space: nowrap; }
.lockup-ermis .lk-by { color: var(--muted); font: 500 10.5px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; margin-right: 2px; }
.lockup-ermis .ermis-logo { width: 1.95em; margin: 0; }
.lockup-ermis strong { font: 700 15px/1 var(--font-display); letter-spacing: -.01em; }
.lockup-ermis:hover strong { color: var(--accent); }
.footer-grid .brand-logo { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Marca Ermis ---------- */
.ermis-logo { display: inline-block; width: 1.9em; aspect-ratio: 916 / 680; background: currentColor; vertical-align: -0.35em; margin-right: 2px;
  -webkit-mask: url(/assets/ermis-symbol.svg) center / contain no-repeat; mask: url(/assets/ermis-symbol.svg) center / contain no-repeat; }
.powered .ermis-logo, .footer-legal .ermis-logo { color: var(--ink); }
.powered { text-decoration: none; color: var(--muted); }
.powered strong { color: var(--ink); }
.powered:hover strong { color: var(--accent); }

/* ---------- Tipografia comum ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--ink-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.kicker { margin: 0 0 16px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.h2 { margin: 0; font: 700 clamp(32px, 4.4vw, 56px)/1.02 var(--font-display); letter-spacing: -.035em; }
.lead { margin: 0; max-width: 36ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 15px; font-weight: 500; }

/* =========================================================
   HOME — MODO CENAS
   Sem .scenes-on (mobile, reduced motion, sem JS) tudo vira uma página comum com rolagem.
   ========================================================= */
.scene { position: relative; }
.scene-title, .scene-how { border-bottom: 1px solid var(--line); }

.scenes-on, .scenes-on body { height: 100%; overflow: hidden; }
.scenes-on .stage { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; overflow: hidden; }
.scenes-on .scene {
  position: absolute; inset: 0; border: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(var(--off, 56px));
  transition: opacity .55s var(--ease), transform .9s var(--ease-out), visibility 0s linear .9s;
}
.scenes-on .scene.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .6s var(--ease) .12s, transform .9s var(--ease-out) .12s, visibility 0s;
}
.scenes-on .scene.no-anim { transition: none !important; }

/* Trilho lateral e dicas */
.rail, .stage-hint, .stage-skip { display: none; }
.scenes-on .rail {
  display: flex; flex-direction: column; gap: 6px; position: absolute; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 5;
}
.rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 28px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; }
.rail button::after { content: ""; width: 10px; height: 2px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.rail button span { position: absolute; right: 36px; white-space: nowrap; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.rail button:hover span, .rail button.is-active span { opacity: 1; transform: none; }
.rail button:hover::after { width: 18px; background: var(--ink-2); }
.rail button.is-active::after { width: 28px; background: var(--accent); }
.stage[data-index="4"] .rail button span { opacity: 0; }
.stage[data-index="4"] .rail button:hover span { opacity: 1; }

.scenes-on .stage-hint {
  display: flex; align-items: center; gap: 12px; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: var(--muted); font-size: 11px; transition: opacity .4s;
}
.mouse { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.mouse span { position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; background: var(--accent); border-radius: 1px; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.scenes-on .stage-skip {
  display: block; position: absolute; right: clamp(16px, 4vw, 48px); bottom: 18px; background: none; border: 0; cursor: pointer;
  color: var(--ink-2); font-size: 11px; padding: 8px 0; transition: opacity .4s, color .2s;
}
.stage-skip:hover { color: var(--accent); }
.stage[data-index="4"] .stage-hint, .stage[data-index="4"] .stage-skip,
.stage[data-index="3"] .stage-hint { opacity: 0; pointer-events: none; }

/* ---------- Cena 0: título ---------- */
.title-inner { position: relative; width: 100%; padding-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(64px, 10vh, 112px); }
.display {
  margin: clamp(20px, 3vh, 36px) 0 0; font: 800 clamp(48px, 9vw, 150px)/.88 var(--font-display);
  letter-spacing: -.05em; text-transform: uppercase;
}
.display-accent { color: var(--accent); }
.title-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; margin-top: clamp(28px, 5vh, 56px); padding-top: 28px; border-top: 1px solid var(--ink); }
.title-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.title-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ticker { position: absolute; right: var(--gutter); top: clamp(40px, 6vh, 72px); display: grid; }
.ticker .state { grid-area: 1 / 1; justify-self: end; animation: tick 6s steps(1) infinite; }
.ticker .state + .state { animation-delay: -3s; }
@keyframes tick { 0% { opacity: 1; } 50% { opacity: 0; } }

.scene-title.is-active .eyebrow, .scene-title.is-active .display, .scene-title.is-active .title-foot { animation: rise .9s var(--ease-out) both; }
.scene-title.is-active .display { animation-delay: .08s; }
.scene-title.is-active .title-foot { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Cenas 1–3: como detectar ---------- */
.how-inner { width: 100%; display: flex; flex-direction: column; padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(56px, 9vh, 96px); }
.scenes-on .how-inner { height: 100%; }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.how-progress { display: none; gap: 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.scenes-on .how-progress { display: flex; }
.how-progress li { display: flex; flex-direction: column; gap: 10px; width: clamp(96px, 10vw, 150px); transition: color .3s; }
.hp-bar { height: 2px; background: var(--line); overflow: hidden; }
.hp-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.how-progress li.is-done { color: var(--ink-2); }
.how-progress li.is-done .hp-bar span { width: 100%; }
.how-progress li.is-active { color: var(--ink); }
.how-progress li.is-active .hp-bar span { animation: fill .9s var(--ease) .2s forwards; }
@keyframes fill { to { width: 100%; } }

.how-steps { position: relative; }
.scenes-on .how-steps { flex: 1; min-height: 0; }
.how-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding: 48px 0; }
.how-step + .how-step { border-top: 1px solid var(--line); }
.scenes-on .how-step {
  position: absolute; inset: 0; padding: 0; border: 0;
  opacity: 0; visibility: hidden; transform: translateY(var(--off, 40px));
  transition: opacity .45s var(--ease), transform .8s var(--ease-out), visibility 0s linear .8s;
}
.scenes-on .how-step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .1s, transform .8s var(--ease-out) .1s, visibility 0s; }
.scenes-on .how-step.no-anim { transition: none !important; }
.how-n { display: block; font: 800 clamp(88px, 13vw, 200px)/.8 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 28px; }
.how-step.is-active .how-n { animation: num-in 1s var(--ease-out) both; }
@keyframes num-in { from { -webkit-text-stroke-color: transparent; transform: translateY(16px); } }
.how-text h3 { margin: 0 0 14px; font: 700 clamp(32px, 3.4vw, 48px)/1.05 var(--font-display); letter-spacing: -.03em; }
.how-text p { margin: 0; max-width: 38ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }
.how-visual { position: relative; height: clamp(320px, 52vh, 520px); }

/* --- Animação 01: envio --- */
.anim-upload { display: flex; flex-direction: column; gap: 14px; }
.au-chips { display: flex; gap: 8px; }
.au-chips span { padding: 7px 12px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--muted); }
.au-chips span.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.au-drop { position: relative; flex: 1; display: grid; place-items: center; border: 1px dashed var(--ink-2); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px, var(--paper); }
.au-drop::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.au-drop > * { position: relative; }
.au-hint { position: absolute !important; top: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 11px; }
.au-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; width: min(440px, 80%); padding: 14px; background: var(--surface); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.au-thumb { position: relative; width: 84px; aspect-ratio: 4 / 3; background: #111B28; overflow: hidden; }
.au-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.au-name { font-weight: 600; }
.au-size { color: var(--muted); font-size: 10.5px; }
.au-bar { height: 4px; background: var(--paper-2); overflow: hidden; }
.au-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.au-pct { font-size: 13px; color: var(--ink); }
.au-note { margin: 0; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.au-note::before { content: ""; width: 6px; height: 6px; background: var(--accent); }
.how-step.is-active .au-file { animation: drop 1s var(--ease-out) .25s both; }
.how-step.is-active .au-drop { animation: drop-glow 2.6s var(--ease) both; }
.how-step.is-active .au-bar span { animation: fill 1.6s var(--ease) 1.1s forwards; }
.how-step.is-active .au-hint { animation: fade-out .4s var(--ease) .9s both; }
.how-step.is-active .au-chips span.is-on { animation: pop .5s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translate(-18%, -70%) rotate(-7deg) scale(1.04); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes drop-glow { 0%, 30% { border-color: var(--ink-2); } 45%, 80% { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); } 100% { border-color: var(--ink-2); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

/* --- Animação 02: análise --- */
.anim-scan { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 16vw, 240px); gap: 16px; }
.as-frame { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--ink); padding: 12px; }
.as-frame .frame { flex: 1; aspect-ratio: auto; min-height: 0; }
.as-readout { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 18px; background: var(--ink); color: var(--paper); }
.as-label { color: #9AA3B2; font-size: 10.5px; }
.as-big { font: 800 clamp(48px, 5vw, 76px)/.9 var(--font-display); letter-spacing: -.04em; color: var(--accent-light); }
.as-signals { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid #263244; display: grid; gap: 10px; font-size: 10.5px; }
.as-signals li { display: flex; align-items: center; gap: 8px; color: #CBD1DA; }
.as-signals li::before { content: ""; width: 7px; height: 7px; background: var(--accent-light); transform: rotate(45deg); }
.how-step.is-active .as-box1 { animation: box-in .5s var(--ease-out) .8s both; }
.how-step.is-active .as-box2 { animation: box-in .5s var(--ease-out) 1.5s both; }
.how-step.is-active .as-seg1 { animation: grow .7s var(--ease) 1.1s both; }
.how-step.is-active .as-seg2 { animation: grow .7s var(--ease) 1.8s both; }
.how-step.is-active .as-head { animation: head 2.6s linear both; }
.how-step.is-active .scanline { animation: sweep 2.4s var(--ease) infinite; }
.how-step.is-active .as-signals li { animation: rise .5s var(--ease-out) both; }
.how-step.is-active .as-signals li:nth-child(1) { animation-delay: 1s; }
.how-step.is-active .as-signals li:nth-child(2) { animation-delay: 1.7s; }
.how-step.is-active .as-signals li:nth-child(3) { animation-delay: 2.3s; }
@keyframes box-in { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes head { from { left: 0; } to { left: 80%; } }

/* --- Animação 03: e-mail --- */
.anim-mail { display: grid; place-items: center; }
.am-report { position: absolute; right: 4%; top: 6%; width: 52%; padding: 18px; background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transform: rotate(2.5deg); }
.am-r-k { color: var(--muted); font-size: 10.5px; }
.am-report .state { align-self: flex-start; }
.am-meter { height: 6px; background: linear-gradient(90deg, var(--ink) 0 40%, var(--line) 40% 60%, var(--accent) 60%); position: relative; }
.am-meter span { position: absolute; left: 78%; top: -5px; width: 3px; height: 16px; background: var(--ink); }
.am-lines { display: grid; gap: 8px; }
.am-lines span { height: 6px; background: var(--line); }
.am-lines span:nth-child(2) { width: 80%; } .am-lines span:nth-child(3) { width: 55%; }
.am-mail { position: relative; width: min(480px, 86%); margin-left: -18%; margin-top: 12%; padding: 24px; background: var(--surface); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; gap: 12px; }
.am-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10.5px; text-transform: none; }
.am-head b { font-weight: 500; color: var(--ink); margin-right: 6px; text-transform: uppercase; }
.am-subject { margin: 0; font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; }
.am-body { margin: 0; color: var(--ink-2); font-size: 15px; }
.am-state, .am-btn { align-self: flex-start; }
.am-btn { pointer-events: none; }
.how-step.is-active .am-mail { animation: mail-in .9s var(--ease-out) .2s both; }
.how-step.is-active .am-report { animation: report-in .9s var(--ease-out) 1.3s both; }
.how-step.is-active .am-state { animation: pop .5s var(--ease-out) 1s both; }
.how-step.is-active .am-btn { animation: pulse 1.8s var(--ease) 1.8s infinite; }
@keyframes mail-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes report-in { from { opacity: 0; transform: rotate(0) translate(-20px, 20px); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 28, 85, .45); } 60% { box-shadow: 0 0 0 10px rgba(0, 28, 85, 0); } }

/* ---------- Cena 4: aplicação ---------- */
.app-inner { width: 100%; display: flex; flex-direction: column; padding-top: clamp(16px, 3vh, 32px); padding-bottom: 12px; }
.scenes-on .app-inner { min-height: 100%; padding-right: calc(var(--gutter) + 24px); }
.scenes-on .scene-app { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.tool {
  flex: 1; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink); min-height: 520px;
}
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.tool-label { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.tool-label::before { content: ""; width: 6px; height: 6px; background: var(--accent); }
.tool-steps { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.tool-steps li.is-active { color: var(--ink); }
.tool-steps li.is-done { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--accent); }

.tool-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.tool[data-step="email"] .tool-body, .tool[data-step="done"] .tool-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.tool-panel { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; min-width: 0; animation: panel-in .4s var(--ease) both; }
.tool[data-step="email"] .tool-panel, .tool[data-step="done"] .tool-panel { justify-content: center; max-width: 580px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.tool-title { margin: 0; font: 700 clamp(26px, 2.6vw, 38px)/1.1 var(--font-display); letter-spacing: -.025em; }
.tool-sub { margin: -4px 0 0; color: var(--ink-2); font-size: 16px; }
.tool-note { margin: 0; color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.tool-note::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px); }
.tool-error { margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 14px; }

/* Etapa 1 — cartões grandes de tipo */
.type-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; text-align: left; cursor: pointer; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.tile-arrow { font-size: 16px; transition: transform .25s var(--ease), color .25s; }
.tile-viz { position: relative; display: block; flex: 1; min-height: 140px; aspect-ratio: auto; overflow: hidden; }
.tile-foot { display: flex; flex-direction: column; gap: 6px; }
.tile-name { font: 700 clamp(26px, 2.4vw, 34px)/1 var(--font-display); letter-spacing: -.02em; }
.tile-desc { color: var(--ink-2); font-size: 14px; }
.tile-meta { color: var(--muted); font-size: 10.5px; text-transform: none; }
.tile:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.tile:hover .tile-arrow { color: var(--accent); transform: translateX(4px); }
.tile:hover .scanline { animation: sweep 1.8s var(--ease) infinite; }

/* Etapa 2 — dropzone */
.panel-type { display: flex; align-items: center; gap: 14px; margin: 0; }
.type-chip { background: var(--ink); color: var(--paper); padding: 5px 10px; font-size: 11px; }
.dropzone {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 300px; padding: 24px; text-align: center; cursor: pointer;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  border: 1px dashed var(--ink-2); border-radius: var(--radius);
  transition: border-color .2s;
}
.dropzone::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 72%, transparent); border-radius: inherit; }
.dropzone > * { position: relative; }
.dz-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dz-corners { position: absolute !important; inset: 12px; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 2px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 2px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 2px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 2px 16px no-repeat;
  transition: inset .25s var(--ease);
}
.dz-main { font: 700 clamp(24px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: -.02em; }
.dz-or { color: var(--muted); font-size: 13px; }
.dropzone:hover .dz-corners, .dropzone.is-over .dz-corners { inset: 5px; }
.dropzone.is-over { border-color: var(--accent); border-style: solid; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.specs { display: flex; gap: 32px; margin: 0; }
.specs dt { color: var(--muted); font-size: 10.5px; }
.specs dd { margin: 4px 0 0; color: var(--ink); text-transform: none; font-size: 12.5px; }

/* Etapas 3 e 4 — prévia do arquivo */
.preview { display: none; margin: 0; padding: clamp(16px, 2vw, 24px); border-right: 1px solid var(--line); background: var(--paper); flex-direction: column; gap: 12px; min-width: 0; }
.tool[data-step="email"] .preview, .tool[data-step="done"] .preview { display: flex; }
.preview-bar { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.preview-status { color: var(--ink); }
.tool[data-step="done"] .preview-status { color: var(--accent); }
.tool[data-step="done"] .preview-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent); border-radius: 50%; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preview-stage { position: relative; flex: 1; min-height: 260px; background: #111B28; overflow: hidden; }
.preview-stage .dz-corners { inset: 14px; filter: invert(1); }
.preview-media { position: absolute; inset: 0; display: grid; place-items: center; }
.preview-media img, .preview-media video { width: 100%; height: 100%; object-fit: contain; }
.preview-media .wave { width: 86%; height: 60%; }
.preview-media .wave .bar { fill: #DCE6F7; }
.pv-fallback { color: #9AA3B2; font: 500 12px var(--font-mono); text-transform: uppercase; }
.tool[data-step="done"] .preview-stage .scanline { animation: sweep 2.2s var(--ease) infinite; }
.preview-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.preview-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool[data-step="done"] .preview-cap .link-btn { display: none; }

.field input {
  width: 100%; height: 56px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--surface); font: 500 17px var(--font-body); color: var(--ink);
}
.field input::placeholder { color: #A5A39C; }
.field input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.check em { color: var(--muted); font-style: normal; }

.status-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.status-list li::before { content: ""; flex: none; width: 14px; height: 14px; }
.status-list li.ok::before { background: var(--ink); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.status-list li.running::before { border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#restart { align-self: flex-start; }


/* =========================================================
   VISUALIZAÇÕES (a máquina observando a mídia)
   ========================================================= */
.viz { margin: 0; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 12px; }
.viz-bar, .viz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.viz-bar { padding: 2px 2px 10px; }
.viz-foot { padding: 12px 2px 2px; }
.frame { position: relative; display: block; aspect-ratio: 16 / 10; background: #111B28; overflow: hidden; border-radius: 2px; }
.frame-subject { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 15% 22% at 50% 37%, #6E6A72 0 60%, transparent 62%),
    radial-gradient(ellipse 30% 30% at 50% 92%, #474656 0 70%, transparent 72%),
    linear-gradient(180deg, #1C2735, #111B28);
}
.bbox { position: absolute; border: 1.5px solid var(--accent-light); }
.bbox::before, .bbox::after { content: ""; position: absolute; width: 8px; height: 8px; border: 2px solid var(--accent-light); }
.bbox::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.bbox::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.bbox-soft { border-style: dashed; }
.bbox-tag { position: absolute; left: -1.5px; top: -22px; background: var(--accent); color: var(--accent-ink); padding: 3px 6px; font-size: 10px; white-space: nowrap; }
.bbox-soft .bbox-tag { top: auto; bottom: -22px; }
.scanline { position: absolute; top: 0; bottom: 0; left: -4px; width: 2px; background: var(--accent-light); box-shadow: 0 0 18px 4px rgba(143, 176, 234, .55); opacity: 0; pointer-events: none; }
@keyframes sweep { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.timeline { position: relative; display: block; height: 22px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 3%), var(--paper); border: 1px solid var(--line); }
.tl-seg { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .85; }
.tl-head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); left: 27%; }

.frame-map { background:
  radial-gradient(circle at 30% 40%, #8C877C 0 18%, transparent 19%),
  radial-gradient(ellipse 60% 40% at 70% 80%, #5D5A53 0 60%, transparent 61%),
  linear-gradient(160deg, #B9B4A8, #7D796F 60%, #4E4B45);
}
.heat { position: absolute; inset: 0; mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 62% 30%, rgba(0,28,85,.95) 0, rgba(0,28,85,.55) 10%, transparent 24%),
    radial-gradient(circle at 30% 64%, rgba(0,28,85,.8) 0, rgba(0,28,85,.35) 8%, transparent 18%),
    radial-gradient(circle at 75% 70%, rgba(0,28,85,.35) 0, transparent 14%);
}
.grid-overlay { position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px) 0 0 / 10% 12.5%,
              linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px) 0 0 / 10% 12.5%; }
.marker { position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 11px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.legend { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 10.5px; }
.legend-ramp { flex: 1; height: 6px; background: linear-gradient(90deg, var(--paper-2), var(--accent)); }

.frame-wave { background: var(--paper); border: 1px solid var(--line); }
.viz .frame-wave { aspect-ratio: auto; height: 220px; }
.wave { width: 100%; height: 100%; }
.wave .bar { fill: var(--ink); }
.wave .bar.hot { fill: var(--accent); }
.wave .zone { fill: var(--accent-soft); }
.wave .zone-edge { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tile-viz .wave { position: absolute; top: 10%; left: 6%; width: 88%; height: 80%; }
.ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 10.5px; padding-top: 6px; }

/* Estados REAL / DEEPFAKE — sistema gráfico recorrente */
.state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; }
.state-real { background: var(--ink); color: var(--paper); }
.state-real::before { background: var(--paper); border-radius: 50%; }
.state-fake { background: var(--accent); color: var(--accent-ink); }
.state-fake::before { background: var(--accent-ink); transform: rotate(45deg); }
.state-unsure { background: var(--paper-2); color: var(--ink); border: 1px solid var(--ink); }
.state-unsure::before { border: 1.5px solid currentColor; border-radius: 50%; }
.state-lg { font-size: clamp(16px, 2.2vw, 26px); padding: 14px 18px; gap: 14px; }
.state-lg::before { width: 12px; height: 12px; }

/* =========================================================
   PÁGINAS INTERNAS (como funciona, sobre, privacidade, resultado)
   ========================================================= */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page-title { margin: 0 0 16px; font: 800 clamp(40px, 6.4vw, 88px)/.95 var(--font-display); letter-spacing: -.045em; }
.section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.section-tight { padding-top: 0; padding-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-lead { margin: 24px 0 0; font-size: 18px; color: var(--ink-2); max-width: 60ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 28px 28px 8px 0; min-width: 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { display: block; color: var(--accent); font-size: 13px; margin-bottom: 48px; }
.steps h3 { margin: 0 0 12px; font: 700 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--ink-2); max-width: 34ch; }

.media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(64px, 8vw, 112px) 0; }
.media-row + .media-row { border-top: 1px solid var(--line); }
.media-row-rev .media-text { order: 2; }
.media-text .h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 24px; }
.media-text p:not(.kicker) { margin: 0 0 14px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }

.states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.state-card { padding: 32px 32px 0 0; min-width: 0; }
.state-card + .state-card { padding-left: 32px; border-left: 1px solid var(--line); }
.state-card p { margin: 20px 0 0; color: var(--ink-2); max-width: 40ch; }

.manifesto { background: var(--ink); color: var(--paper); border-bottom: 0; }
.manifesto .kicker { color: #9AA3B2; }
.manifesto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.manifesto-text p { margin: 0 0 18px; font-size: 18px; color: #CBD1DA; }
.slogan { grid-column: 1 / -1; margin: clamp(32px, 6vw, 80px) 0 0; padding-top: 32px; border-top: 1px solid #263244;
  font: 800 clamp(48px, 9vw, 136px)/.92 var(--font-display); letter-spacing: -.05em; text-transform: uppercase; }
.slogan::after { content: "."; color: var(--accent-light); }

.commitments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.commitments li { padding: 28px 24px 0 0; min-width: 0; }
.commitments li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.commitments h3 { margin: 0 0 10px; font: 700 21px/1.15 var(--font-display); letter-spacing: -.015em; }
.commitments p { margin: 0; color: var(--ink-2); font-size: 15px; }
.commitments .mono { display: block; color: var(--accent); margin-bottom: 32px; }

.ermis { background: var(--paper-2); }
.ermis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.ermis-mark { width: clamp(120px, 14vw, 180px); color: var(--ink); margin-bottom: 28px; }
.ermis-mark .ermis-logo { width: 100%; }
.ermis-name { margin: 0 0 24px; font: 700 clamp(44px, 6vw, 80px)/1 var(--font-display); letter-spacing: -.04em; }
.ermis-grid p:not(.kicker) { margin: 0 0 12px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.ermis-grid .btn { margin-top: 20px; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 19px/1.3 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 22px/1 var(--font-mono); color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 62ch; }

.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band .h2 { max-width: 16ch; }

.prose > * { max-width: 720px; }
.prose h2 { margin: 48px 0 12px; font: 700 24px/1.2 var(--font-display); letter-spacing: -.015em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.terms-summary { margin: 8px 0 40px; padding: 24px 28px; border: 1px solid var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
.terms-summary .mono { margin: 0 0 12px; color: var(--accent); }
.terms-summary ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.terms-summary li { color: var(--ink-2); }
.terms-summary strong { color: var(--ink); }
.note { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 14px; }

/* ---------- Pesquisa (página Sobre) ---------- */
.paper { border-top: 1px solid var(--ink); padding-top: 32px; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 11px; margin: 0 0 18px; }
.paper-meta .tag { color: var(--accent); }
.paper-title { margin: 0; max-width: 28ch; font: 700 clamp(26px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: -.025em; }
.paper-authors { margin: 18px 0 4px; color: var(--ink-2); font-size: 15px; max-width: 80ch; }
.paper-orgs { margin: 0; color: var(--muted); font-size: 11px; }
.paper-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 40px; }
.paper-text p { margin: 0 0 16px; color: var(--ink-2); font-size: 17px; max-width: 54ch; }
.paper-text strong { color: var(--ink); }
.paper-viz .frame-wave { height: 180px; }
.attack-line { margin: 14px 2px 0; font: 600 clamp(18px, 1.8vw, 22px)/1.4 var(--font-display); letter-spacing: -.01em; }
.attack-line del { color: var(--muted); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.attack-line ins { text-decoration: none; background: var(--accent); color: var(--accent-ink); padding: 0 6px; }
.paper-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; border-top: 1px solid var(--line); }
.paper-stats div { padding: 24px 24px 0 0; min-width: 0; }
.paper-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.paper-stats dd { margin: 0 0 10px; font: 800 clamp(36px, 4vw, 56px)/1 var(--font-display); letter-spacing: -.04em; }
.paper-stats dt { color: var(--ink-2); font-size: 11px; line-height: 1.5; text-transform: none; }
.paper-stats div:nth-child(n+2) dd { color: var(--accent); }
.paper-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; max-width: 80ch; }
.paper-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.footer-claim { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.footer-nav a { text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { margin: 0; color: var(--muted); text-transform: none; }
.footer-grid .footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .title-foot { grid-template-columns: minmax(0, 1fr); }
  .title-side { align-items: flex-start; }
  .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commitments li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 980px) {
  .paper-grid { grid-template-columns: minmax(0, 1fr); }
  .paper-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .media-row, .manifesto-grid, .ermis-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .media-row-rev .media-text { order: 0; }
  .how-step { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how-n { font-size: 88px; margin-bottom: 16px; }
  .tool[data-step="email"] .tool-body, .tool[data-step="done"] .tool-body { grid-template-columns: minmax(0, 1fr); }
  .preview { border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-stage { min-height: 200px; }
  .ticker { display: none; }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .lockup-ermis .lk-by { display: none; }
  .brand-lockup { gap: 12px; }
  .lockup-ermis { padding-left: 12px; }
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { flex-direction: row; align-items: center; }
  .tile-top, .tile-desc { display: none; }
  .tile-viz { flex: none; width: 96px; min-height: 72px; }
  .tile-foot { flex: 1; }
  .tool { box-shadow: 5px 5px 0 var(--ink); min-height: 0; }
  .tool-head { padding: 12px 16px; }
  .tool-steps li:not(.is-active) { display: none; }
  .dropzone { min-height: 220px; }
  .steps, .states, .commitments { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li, .commitments li, .commitments li + li { padding: 24px 0; border-left: 0; }
  .steps li + li, .commitments li + li { border-top: 1px solid var(--line); }
  .step-n, .commitments .mono { margin-bottom: 16px; }
  .state-card, .state-card + .state-card { padding: 28px 0; border-left: 0; }
  .state-card + .state-card { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .anim-scan { grid-template-columns: minmax(0, 1fr); }
  .as-readout { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .as-signals { display: none; }
  .how-visual { height: 340px; }
  .am-report { display: none; }
  .am-mail { margin: 0; width: 100%; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
  .paper-stats { grid-template-columns: minmax(0, 1fr); }
  .paper-stats div, .paper-stats div + div { padding: 20px 0 0; border-left: 0; }
  .title-actions .btn { flex: 1; }
  .hero-meta { flex-direction: column; gap: 4px; }
  .bbox-tag { font-size: 9px; }
  .viz-foot { flex-wrap: wrap; }
  .specs { gap: 20px; }
  .au-file { width: 92%; grid-template-columns: auto minmax(0, 1fr); }
  .au-pct { display: none; }
}
.flag-br { display: inline-block; width: 1.6em; height: auto; vertical-align: -0.2em; margin-left: 4px; border-radius: 1px; }

/* Entrada das páginas internas (assets/reveal.js) */
.reveal-on :where(.page-hero .wrap > *, .manifesto-grid > div > *, .manifesto-text > *, .slogan,
  .section-head > *, .steps > li, .media-text > *, .media-row .viz, .states > *,
  .faq-grid > div:first-child > *, .faq details, .commitments > li, .paper > :not(.paper-grid),
  .paper-text > *, .paper-viz, .paper-stats > div, .ermis-grid > .kicker, .ermis-grid > div > *, .cta-band-inner > *) {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms);
}
.reveal-on :where(.page-title, .manifesto h1) { transform: translateY(44px); }
.reveal-on .media-row .viz { transform: translateY(40px) scale(.97); }
.reveal-on .is-in.is-in { opacity: 1; transform: none; }
.reveal-on .frame-wave rect.bar { transform-box: fill-box; transform-origin: center; transform: scaleY(.06);
  transition: transform .6s var(--ease-out) calc(var(--d, 0ms) + 250ms + var(--i, 0) * 7ms); }
.reveal-on .is-in .frame-wave rect.bar { transform: none; }
.scenes-on .scene-app .site-footer .wrap { padding-right: calc(var(--gutter) + 24px); }
