/* Black Track — site publico (blacktrack.org).
   Sistema visual: paleta do painel (azul-marinho, tinta, linhas, fundo cinza-claro, azul de acao) e a pilha
   de fontes do sistema. Assinatura da marca: o traco em degrade do logo (azul -> roxo -> rosa), usado so onde
   ele representa o caminho do anuncio ate a venda (jornada no painel, passos de "How it works").
   Tipografia so por tokens (--fs-*, --fw-*): pesos 400/500/600/700 existem em qualquer fonte estatica
   (Arial, Segoe UI), entao a hierarquia e a mesma no Windows e no Mac. 280/720 ficam so na marca nominativa
   e na dupla leve/negrito dos titulos do hero e do CTA.
   Sem estilos inline nas paginas: a CSP em _headers bloqueia atributos style. */

/* ------------------------------------------------------------------ TOKENS */
:root {
  --navy: #0d1a33;
  --navy-2: #182b54;
  --ink: #1d2433;
  --ink-2: #3c4557;
  --muted: #586174;          /* texto secundario: contraste AA sobre branco e sobre --bg */
  --line: #e3e7ee;
  --line-2: #d4d9e2;
  --bg: #f3f5f9;
  --well: #f8f9fc;
  --card: #ffffff;
  --blue: #2f64ea;
  --blue-2: #2451c4;
  --green: #137a43;
  --trace-1: #3a4fd0;
  --trace-2: #8a4fd6;
  --trace-3: #e2508e;
  --trace: linear-gradient(90deg, var(--trace-1), var(--trace-2) 55%, var(--trace-3));
  --trace-v: linear-gradient(180deg, var(--trace-1), var(--trace-2) 55%, var(--trace-3));
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Escala de texto: tamanhos inteiros; titulos grandes usam clamp() proprio. */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-ui: 14px;             /* navegacao, botoes pequenos, rotulos, sumario */
  --fs-md: 15px;             /* texto de cartoes e botoes */
  --fs-base: 16px;
  --fs-read: 17px;           /* leitura longa: textos legais (medida de ~80 caracteres por linha) */
  --fs-lg: 18px;
  --fs-xl: 20px;
  /* Pesos: so os que toda fonte tem; os da marca ficam a parte. */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-brand-light: 280;
  --fw-brand-bold: 720;

  --radius: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --shadow-sm: 0 1px 2px rgba(13, 26, 51, .06);
  --shadow-lg: 0 1px 1px rgba(13, 26, 51, .04), 0 14px 28px -10px rgba(13, 26, 51, .12), 0 48px 96px -32px rgba(13, 26, 51, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: #dbe5fd; color: var(--ink); }
[hidden] { display: none !important; }
/* Icones do sprite: traco na cor do texto. */
.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; font-weight: var(--fw-semibold); font-size: var(--fs-ui); transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Marca nominativa oficial: "black" leve + "track" em negrito, minusculas, cor unica (herda do contexto).
   Segoe UI Variable/Segoe UI antes de Helvetica/Arial: no Windows elas tem face leve (Light 300), entao o
   contraste leve/negrito da marca continua visivel (Arial so tem 400 e 700). */
.wordmark {
  display: inline-flex; align-items: baseline; line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: inherit;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, 'Segoe UI Variable Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
.wm-light { font-weight: var(--fw-brand-light); }
.wm-bold { font-weight: var(--fw-brand-bold); }

/* ------------------------------------------------------------------ BOTOES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-md); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold);
  letter-spacing: -.005em; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .15s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(13, 26, 51, .24); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--ink); border-color: #b8c0cd; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2f9; color: var(--navy); }
.btn-light:focus-visible { outline-color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: var(--fs-ui); border-radius: var(--radius-sm); }

/* ------------------------------------------------------------------ CABECALHO */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; border-radius: 8px; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .wordmark { font-size: 22px; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: var(--fs-ui); font-weight: var(--fw-medium);
}
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 899px) {
  .header-inner { gap: 16px; }
  /* Sem JavaScript: os links ficam visiveis numa segunda linha rolavel. */
  .site-header .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; row-gap: 8px; }
  .nav-links a, .nav-actions .btn { white-space: nowrap; }
  .nav-links a { padding: 0 10px; }
  .nav-actions { margin-left: 0; }
  /* Com JavaScript: botao de menu e painel recolhivel. */
  .js .site-header .header-inner { flex-wrap: nowrap; height: var(--header-h); padding-top: 0; padding-bottom: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(13, 26, 51, .25);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-links { flex-direction: column; align-items: stretch; }
  .js .nav-links a { display: flex; height: 48px; font-size: var(--fs-base); padding: 0 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav-links a:hover { background: transparent; }
  .js .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 20px; }
  .js .nav-actions .btn { height: 48px; font-size: var(--fs-base); }
}

/* ------------------------------------------------------------------ SECOES (compartilhado) */
.section { padding: clamp(80px, 10vw, 128px) 0; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--bg); }
.section-head { max-width: 700px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-label { display: block; margin-bottom: 14px; font-size: var(--fs-ui); font-weight: var(--fw-semibold); color: var(--blue); letter-spacing: -.005em; }
.section-head h2, .split-copy h2 {
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.032em; font-weight: var(--fw-bold); text-wrap: balance;
}
/* Paragrafo de abertura da secao: so o <p> sem classe (linhas com classe propria, como .contact-line, ficam de fora). */
.section-head > p, .split-copy > p:not([class]) { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 620px; }

/* ------------------------------------------------------------------ HERO */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); overflow: hidden; }
/* Textura discreta: grade fina que some em direcao ao texto (preenche o lado direito sem imagem). */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 88% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 88% 0%, #000 0%, transparent 72%);
  opacity: .75;
}
.hero-copy { position: relative; }
/* Publico do produto, acima do titulo. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 6px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2);
}
.eyebrow-mark { width: 22px; height: 4px; border-radius: 4px; background: var(--trace); }
.hero h1 {
  max-width: 1120px; font-size: clamp(40px, 5.3vw, 72px); line-height: 1.04; letter-spacing: -.042em; font-weight: var(--fw-brand-bold);
  text-wrap: balance;
}
/* Mesma dupla da marca nominativa: linha leve + linha em negrito. */
.hero h1 .h-light { display: block; font-weight: var(--fw-brand-light); letter-spacing: -.04em; }
.hero-lead { margin-top: 26px; max-width: 640px; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; list-style: none; font-size: var(--fs-ui); color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* Palco do mock: faixa cinza que comeca no meio do painel. */
.stage { position: relative; margin-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 104px); }
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: clamp(90px, 14vw, 180px); bottom: 0;
  background: var(--bg); border-top: 1px solid var(--line);
}
.stage .container { position: relative; }
.mock-figure { margin: 0; }
.mock-caption { margin-top: 18px; text-align: center; font-size: var(--fs-sm); color: var(--muted); }

/* ------------------------------------------------------------------ MOCK DO PAINEL (ilustrativo) */
.mock {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #fff;
  border: 1px solid rgba(13, 26, 51, .1); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); color: var(--ink);
  user-select: none;
}
.mock-bar { display: flex; align-items: center; gap: 22px; height: 46px; padding: 0 18px; background: var(--navy); color: #fff; }
.mock-brand { display: inline-flex; align-items: center; gap: 8px; }
.mock-brand img { width: 20px; height: 20px; border-radius: 5px; }
.mock-brand .wordmark { font-size: var(--fs-md); }
.mock-tabs { display: flex; gap: 4px; list-style: none; }
.mock-tabs li { padding: 5px 10px; border-radius: 6px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .72); }
.mock-tabs li.is-active { background: rgba(255, 255, 255, .12); color: #fff; font-weight: var(--fw-medium); }
.mock-range {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .9);
}
.mock-range svg { width: 13px; height: 13px; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.mock-body { display: grid; gap: 16px; padding: 20px; background: var(--bg); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.kpi-head { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink-2); }
.kpi-ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.kpi-ic svg { width: 15px; height: 15px; }
.kpi-ic.is-spend { background: #3b6cf2; }
.kpi-ic.is-revenue { background: #3ba55c; }
.kpi-ic.is-roas { background: #f0a33a; }
.kpi-value { margin-top: 14px; font-size: 30px; line-height: 1.1; font-weight: var(--fw-semibold); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi-delta { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.kpi-delta b { color: var(--green); font-weight: var(--fw-semibold); }
.kpi-delta b.is-neutral { color: var(--ink-2); }
.mock-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.panel { min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.legend { display: flex; gap: 14px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--muted); white-space: nowrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; background: var(--blue); }
.legend i.is-spend { background: #9aa3b2; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.pill-green { background: #e5f5eb; color: #11683a; }

/* Jornada da venda: o traco degrade liga o anuncio a venda (assinatura). */
.trace-steps { position: relative; list-style: none; display: grid; gap: 12px; padding-left: 26px; }
.trace-steps::before {
  content: ""; position: absolute; left: 6px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px;
  background: var(--trace-v); transform-origin: top;
}
.trace-steps li { position: relative; display: flex; justify-content: space-between; gap: 10px; }
.trace-steps li::before {
  content: ""; position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--dot, var(--trace-1)); box-sizing: border-box;
}
.trace-steps li:nth-child(1) { --dot: #3a4fd0; }
.trace-steps li:nth-child(2) { --dot: #5c4fd4; }
.trace-steps li:nth-child(3) { --dot: #8a4fd6; }
.trace-steps li:nth-child(4) { --dot: #b650b3; }
.trace-steps li:nth-child(5) { --dot: #e2508e; }
.trace-steps li:nth-child(5)::before { background: #e2508e; }
.t-main { min-width: 0; }
.t-main b { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-main > span { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-side { flex: none; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.t-amount { font-variant-numeric: tabular-nums; }

.mock-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mock-table th { padding: 0 0 8px; text-align: right; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted); border-bottom: 1px solid var(--line); }
.mock-table td { padding: 9px 0; text-align: right; border-bottom: 1px solid var(--line); }
.mock-table tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.mock-table th:first-child, .mock-table td:first-child { text-align: left; }
.mock-table td:first-child { font-weight: var(--fw-medium); }
.mock-table .roas { color: var(--green); font-weight: var(--fw-semibold); }

/* Entrada orquestrada da jornada (respeita reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  .trace-steps::before { animation: bt-draw 1.1s var(--ease) .35s both; }
  .trace-steps li { animation: bt-rise .5s var(--ease) both; }
  .trace-steps li:nth-child(1) { animation-delay: .3s; }
  .trace-steps li:nth-child(2) { animation-delay: .5s; }
  .trace-steps li:nth-child(3) { animation-delay: .7s; }
  .trace-steps li:nth-child(4) { animation-delay: .9s; }
  .trace-steps li:nth-child(5) { animation-delay: 1.1s; }
}
@keyframes bt-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bt-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ RECURSOS */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); list-style: none;
}
.feature { display: flex; flex-direction: column; padding: 30px 28px 32px; background: #fff; }
.feature-ic {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--well); color: var(--navy);
}
.feature-ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: var(--fs-base); line-height: 1.35; font-weight: var(--fw-semibold); letter-spacing: -.012em; }
.feature p { margin-top: 10px; font-size: var(--fs-md); line-height: 1.6; color: var(--muted); }
.feature-spec { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); letter-spacing: -.01em; }

/* ------------------------------------------------------------------ INTEGRACOES E SEGURANCA (texto + conteudo) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-copy .section-label { margin-bottom: 14px; }
.int-groups { display: grid; gap: 28px; }
.int-group h3 { margin-bottom: 14px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--muted); letter-spacing: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: -.01em; color: var(--ink);
}
.badge-code { font-family: var(--mono); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); border-style: dashed; box-shadow: none; background: transparent; }
.int-meta { display: grid; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.int-meta-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 22px; background: #fff; }
.int-meta-head strong { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -.015em; }
.int-meta-head span { font-size: var(--fs-sm); color: var(--muted); }
.int-meta-row { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 14px 22px; background: #fff; font-size: var(--fs-md); }
.int-meta-row dt { font-weight: var(--fw-semibold); color: var(--ink); }
.int-meta-row dd { margin: 0; color: var(--muted); }
.fineprint { margin-top: 22px; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }

/* ------------------------------------------------------------------ COMO FUNCIONA (sequencia real: numeros) */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; }
.steps::before {
  content: ""; position: absolute; top: 17px; left: 18px; right: calc((100% - 96px) / 4 - 18px); height: 2px;
  border-radius: 2px; background: var(--trace); opacity: .9;
}
.step { position: relative; display: flex; flex-direction: column; }
.step-num {
  position: relative; width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 0 0 6px #fff;
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--navy);
}
.step h3 { font-size: var(--fs-lg); line-height: 1.3; font-weight: var(--fw-semibold); letter-spacing: -.015em; }
.step p { margin-top: 10px; margin-bottom: 22px; font-size: var(--fs-md); line-height: 1.6; color: var(--muted); }
/* Exemplo no pe de cada passo: sempre encostado embaixo, para os quatro ficarem na mesma linha. */
.step-artifact {
  margin-top: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--well);
  font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere;
}
.step-artifact pre { margin: 0; white-space: pre-wrap; font: inherit; }
.tok-tag { color: var(--navy); font-weight: var(--fw-semibold); }
.tok-attr { color: #7a4fc4; }
.tok-str { color: var(--blue-2); }
.art-row { display: flex; justify-content: space-between; gap: 12px; }
.art-row span:first-child { flex: none; white-space: nowrap; }
.art-row span:last-child { text-align: right; }
.art-row + .art-row { margin-top: 4px; }
.art-ok { color: var(--green); font-weight: var(--fw-semibold); }
.chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-family: var(--font); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); }

/* ------------------------------------------------------------------ SEGURANCA E PRIVACIDADE */
.policy-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; list-style: none; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.policy-links a { display: inline-flex; align-items: center; gap: 6px; }
.policy-links svg { width: 15px; height: 15px; transition: transform .15s var(--ease); }
.policy-links a:hover svg { transform: translateX(2px); }
.contact-line { margin-top: 22px; font-size: var(--fs-md); color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.trust { padding: 26px 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.trust-ic { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 18px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; }
.trust-ic svg { width: 18px; height: 18px; }
.trust h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); letter-spacing: -.012em; }
.trust p { margin-top: 8px; font-size: var(--fs-md); line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------------ CTA FINAL */
.cta { position: relative; padding: clamp(80px, 10vw, 128px) 0; background: var(--navy); color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--trace); }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: var(--fw-brand-bold); }
.cta h2 .h-light { display: block; font-weight: var(--fw-brand-light); letter-spacing: -.04em; }
.cta p { margin-top: 20px; max-width: 520px; font-size: var(--fs-lg); line-height: 1.55; color: rgba(255, 255, 255, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ RODAPE */
.site-footer { border-top: 1px solid var(--line); background: #fff; font-size: var(--fs-ui); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 48px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); line-height: 1.6; }
.footer-col h2 { margin-bottom: 14px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; color: var(--ink); }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-col a[aria-current="page"] { color: var(--ink); font-weight: var(--fw-semibold); }  /* pagina atual (marcada pelo build.py) */
.footer-legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; padding: 24px 0 36px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.65; color: var(--muted); }
.footer-legal strong { color: var(--ink-2); font-weight: var(--fw-semibold); }
/* Dado pendente de confirmacao pelo dono (ex.: nome do encarregado). Some sozinho quando o site_constants.py sincroniza o valor real. */
[data-pending] { padding: 0 4px; border-radius: 4px; background: #fff4d6; color: #7a5200; white-space: nowrap; }

/* ------------------------------------------------------------------ PAGINAS DE TEXTO (templates/page.html) */
.page-main { background: #fff; }
/* Medida de leitura: 660px a 17px = ~80 caracteres por linha. */
.prose { max-width: 660px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 120px); box-sizing: content-box; counter-reset: doc-sec; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.035em; font-weight: var(--fw-bold); text-wrap: balance; }
/* Datas do documento: cada rotulo fica junto da sua data quando a linha quebra. */
.prose .doc-meta { display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 14px 0 32px; font-size: var(--fs-ui); color: var(--muted); }
.prose .doc-meta > span { white-space: nowrap; }
/* Primeiro paragrafo depois da data funciona como abertura do documento. */
.prose .doc-meta + p:not([class]) { font-size: var(--fs-lg); line-height: 1.65; color: var(--ink-2); }
.prose h2 { margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 23px; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 20px); }
/* Secoes numeradas como no sumario (1. Summary ... 16. Contact us); o build.py garante a mesma ordem. */
.prose > h2 { counter-increment: doc-sec; }
.prose > h2::before { content: counter(doc-sec) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.prose h3 { margin: 32px 0 10px; font-size: var(--fs-lg); line-height: 1.35; letter-spacing: -.012em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p, .prose li, .prose dd { font-size: var(--fs-read); line-height: 1.7; color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: var(--fw-semibold); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border-radius: 5px; background: var(--bg); font-size: .88em; color: var(--ink); }
.prose .toc { margin: 36px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--well); }
.prose .toc > p { margin: 0 0 10px; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.prose .toc > p strong { color: inherit; font-weight: var(--fw-semibold); }
.prose .toc ol { margin: 0; columns: 2; column-gap: 32px; }
/* padding (e nao margin) para as duas colunas comecarem alinhadas. */
.prose .toc li { margin: 0; padding: 3px 0 3px 4px; font-size: var(--fs-ui); line-height: 1.5; break-inside: avoid; }
.prose .toc li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Sumario sem sublinhado: lista de navegacao, nao links no meio do texto (o foco usa o contorno global). */
.prose .toc a { color: var(--ink-2); text-decoration: none; }
.prose .toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* Link permanente dos titulos (gerado pelo site/build.py): o proprio titulo e o link, sem cara de link.
   O "#" fica na margem esquerda e aparece no hover, no foco do teclado e na secao aberta pelo sumario (:target).
   content "#" / "" = texto alternativo vazio: o "#" nao entra no nome lido pelo leitor de tela. */
.prose h2, .prose h3 { position: relative; }
.prose .heading-anchor, .prose .heading-anchor:hover { color: inherit; text-decoration: none; }
.prose .heading-anchor::before { content: "#"; content: "#" / ""; position: absolute; left: -.95em; font-weight: var(--fw-medium); color: var(--muted); opacity: 0; transition: opacity .15s var(--ease); }
.prose .heading-anchor:hover::before, .prose .heading-anchor:focus-visible::before { opacity: 1; }
.prose :target > .heading-anchor::before { opacity: 1; color: var(--blue); }

/* Trilho lateral "On this page" (copia do sumario, montada pelo build.py): so em telas largas, onde substitui o
   sumario do texto. O site.js marca a secao visivel com aria-current. */
.doc-rail { display: none; }
.doc-rail-title { margin: 0 0 12px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--muted); }
.doc-rail ol { margin: 0; padding-left: 24px; }
.doc-rail li { padding: 4px 0; font-size: var(--fs-ui); line-height: 1.45; }
.doc-rail li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-rail a { color: var(--ink-2); }
.doc-rail a:hover { color: var(--blue); }
.doc-rail a[aria-current] { color: var(--ink); font-weight: var(--fw-semibold); }
.doc-rail li:has(> a[aria-current])::marker { color: var(--blue); }
@media (min-width: 1280px) {
  .doc-shell { display: grid; grid-template-columns: 220px minmax(0, 660px); gap: 64px; justify-content: center; padding: 0 var(--gutter); }
  .doc-shell .prose { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  .doc-shell .prose .toc { display: none; }
  .doc-rail {
    display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start;
    max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; overscroll-behavior: contain;
    margin-top: clamp(48px, 7vw, 96px); padding: 2px 8px 2px 2px;
  }
}

/* Status do pedido de exclusao de dados (preenchido pelo site.js em /data-deletion?code=). */
.deletion-status { margin: 32px 0; scroll-margin-top: calc(var(--header-h) + 24px); padding: 22px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.deletion-status .ds-title { margin: 0; padding: 0; border: 0; font-size: var(--fs-lg); letter-spacing: -.012em; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ds-badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); background: var(--bg); color: var(--ink-2); }
.ds-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ds-badge.is-pending { background: #fff3dc; color: #7f4f00; }
.ds-badge.is-completed { background: #e5f5eb; color: #11683a; }
.ds-badge.is-refused, .ds-badge.is-error { background: #fdecee; color: #a4242b; }
.ds-badge.is-loading::before { animation: bt-pulse 1s ease-in-out infinite alternate; }
@keyframes bt-pulse { from { opacity: .25; } to { opacity: 1; } }
.prose .deletion-status .ds-text { margin: 14px 0 0; }
.ds-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-ui); }
.ds-list dt { color: var(--muted); }
.prose .ds-list dd { margin: 0; font-size: var(--fs-ui); line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.ds-code { font-family: var(--mono); font-size: var(--fs-sm); }
.ds-retry { margin-top: 16px; }

/* ------------------------------------------------------------------ 404 */
.notfound { padding: clamp(80px, 12vw, 160px) 0; }
.notfound-code { font-family: var(--mono); font-size: var(--fs-ui); font-weight: var(--fw-semibold); color: var(--blue); }
.notfound h1 { margin-top: 14px; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: var(--fw-bold); }
.notfound p { margin-top: 18px; max-width: 520px; font-size: var(--fs-lg); color: var(--ink-2); }
.notfound .hero-actions { margin-top: 32px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; list-style: none; font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* ------------------------------------------------------------------ RESPONSIVO */
@media (min-width: 1081px) {
  /* Exemplos de "How it works" com a mesma altura nas quatro colunas. */
  .step-artifact { min-height: 98px; }
  /* O texto da secao acompanha a rolagem ao lado da coluna mais alta (integracoes, cartoes de seguranca). */
  .split-copy { position: sticky; top: calc(var(--header-h) + 40px); }
}
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  /* Texto e conteudo empilhados: em duas colunas os cartoes ficariam estreitos demais (~250px). */
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .mock-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .mock-tabs, .mock-avatar { display: none; }
  .mock-body { padding: 12px; gap: 12px; }
  .kpis { gap: 8px; }
  .kpi { padding: 12px; }
  .kpi-head { flex-direction: column; align-items: flex-start; gap: 8px; font-size: var(--fs-xs); }
  .kpi-ic { width: 24px; height: 24px; }
  .kpi-value { margin-top: 8px; font-size: 19px; }
  .kpi-delta { display: none; }
  .panel { padding: 14px; }
  .panel-table { display: none; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .int-meta-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose .toc ol { columns: 1; }
  .prose .heading-anchor::before { display: none; }  /* sem margem lateral para o "#" no celular */
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  /* Celular: icone ao lado do titulo (cartoes mais curtos, lista menos longa). */
  .feature, .trust { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .feature { padding: 22px 20px 24px; }
  .trust { padding: 22px 20px 24px; }
  .feature-ic, .trust-ic { margin-bottom: 0; }
  .feature-ic { width: 36px; height: 36px; }
  .feature p, .feature-spec, .trust p { grid-column: 1 / -1; }
  .feature p { margin-top: 12px; }
  .trust p { margin-top: 12px; }
  .feature-spec { padding-top: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-left: 0; }
  .steps::before { display: block; top: 18px; bottom: 18px; left: 17px; right: auto; width: 2px; height: auto; background: var(--trace-v); }
  .step { padding-left: 60px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  /* Botoes do hero e do CTA final ocupam a largura toda, do mesmo jeito. */
  .cta-actions { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 48px; }
  .ds-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ds-list dd + dt { margin-top: 10px; }
}

/* ------------------------------------------------------------------ IMPRESSAO (textos legais em papel ou PDF) */
@media print {
  .site-header, .skip-link, .footer-top, .doc-rail { display: none; }
  body { display: block; }
  .prose { max-width: none; padding: 0; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose .toc { break-inside: avoid; }
  .prose .heading-anchor::before { display: none; }
  .prose a { color: inherit; }
  .footer-legal { border-top: 1px solid #999; }
}

/* ------------------------------------------------------------------ MOVIMENTO REDUZIDO */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
