/* Próxima Digital: landing page.
   Direção visual: laudo técnico de inspeção. Mapa topográfico (o sistema
   sendo mapeado), anotações em fonte mono, serif editorial nos títulos.
   Temas claro e escuro pelos tokens abaixo; a cor de destaque é o ciano
   do design system Broadsheet, e o magenta marca o que é crítico. */

/* ═══ Tokens ═══════════════════════════════════════════════════════ */

:root {
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar-h: 76px;

  /* tema claro */
  color-scheme: light;
  --bg: #f2f1ec;
  --bg-raised: #e9e8e1;
  --surface: #fbfbf8;
  --glass: rgba(251, 251, 248, .74);
  --ink: #121417;
  --ink-2: #41464d;
  --ink-3: #676c73;
  --line: rgba(18, 20, 23, .11);
  --line-2: rgba(18, 20, 23, .22);
  --accent: #0088b0;
  --accent-ink: #006786;
  --accent-soft: rgba(0, 136, 176, .1);
  --critical: #c4005f;
  --high: #a65600;
  --medium: #846800;
  --contour: rgba(18, 20, 23, .16);
  --contour-accent: rgba(0, 136, 176, .75);
  --glow: rgba(0, 136, 176, .14);
  --btn-bg: #121417;
  --btn-ink: #f2f1ec;
  --btn-bg-hover: #006786;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 28px 60px -28px rgba(18, 20, 23, .3), 0 2px 6px rgba(18, 20, 23, .05);
  --grain: .05;
  --show-sun: none;
  --show-moon: block;
}

/* tema escuro: escolhido no botão, ou pela preferência do sistema.
   A faixa .ink-band usa sempre a paleta escura, nos dois temas. */
:root[data-theme="dark"],
.ink-band {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-raised: #0f141b;
  --surface: #111821;
  --glass: rgba(17, 24, 33, .7);
  --ink: #e8ecf0;
  --ink-2: #b3bbc5;
  --ink-3: #87919d;
  --line: rgba(232, 236, 240, .09);
  --line-2: rgba(232, 236, 240, .19);
  --accent: #3cc3ef;
  --accent-ink: #72d4f6;
  --accent-soft: rgba(60, 195, 239, .12);
  --critical: #ff5a98;
  --high: #ff9d4a;
  --medium: #f0c64a;
  --contour: rgba(150, 205, 230, .14);
  --contour-accent: rgba(60, 195, 239, .8);
  --glow: rgba(60, 195, 239, .15);
  --btn-bg: #3cc3ef;
  --btn-ink: #03131a;
  --btn-bg-hover: #72d4f6;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 34px 70px -30px rgba(0, 0, 0, .85);
  --grain: .07;
  --show-sun: block;
  --show-moon: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0d12;
    --bg-raised: #0f141b;
    --surface: #111821;
    --glass: rgba(17, 24, 33, .7);
    --ink: #e8ecf0;
    --ink-2: #b3bbc5;
    --ink-3: #87919d;
    --line: rgba(232, 236, 240, .09);
    --line-2: rgba(232, 236, 240, .19);
    --accent: #3cc3ef;
    --accent-ink: #72d4f6;
    --accent-soft: rgba(60, 195, 239, .12);
    --critical: #ff5a98;
    --high: #ff9d4a;
    --medium: #f0c64a;
    --contour: rgba(150, 205, 230, .14);
    --contour-accent: rgba(60, 195, 239, .8);
    --glow: rgba(60, 195, 239, .15);
    --btn-bg: #3cc3ef;
    --btn-ink: #03131a;
    --btn-bg-hover: #72d4f6;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 34px 70px -30px rgba(0, 0, 0, .85);
    --grain: .07;
    --show-sun: block;
    --show-moon: none;
  }
}

/* ═══ Base ═════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* granulação de papel sobre a página inteira */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
svg { display: block; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600;
}
.skip:focus-visible { top: 16px; }

/* rótulo de seção: número + fio + texto, em mono */
.label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.label span { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-ink); }
.label span::after { content: ""; width: 28px; height: 1px; background: var(--line-2); }

/* ═══ Botões ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 15px/1 var(--font-body); letter-spacing: -.005em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: translate .3s var(--ease);
}
.btn:hover .arrow { translate: 4px 0; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ═══ Barra superior ═══════════════════════════════════════════════ */

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.topbar-inner {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--gutter) + 32px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.topbar.is-scrolled .topbar-inner { box-shadow: var(--shadow); border-color: var(--line-2); }

/* A logo vem de assets/marca.svg (gerado por tools/gerar_logo.py): traços e
   nome em currentColor, ponto no --accent. A altura do SVG é a do símbolo. */
.brand {
  display: inline-flex; align-items: center; margin-right: auto; min-height: 44px; min-width: 44px;
  color: var(--ink); text-decoration: none;
}
.brand svg { flex: none; overflow: visible; }
.brand-logo { display: block; height: 26px; width: auto; aspect-ratio: 839 / 132; }
.brand-simbolo { display: none; width: 28px; height: 28px; }

.menu { display: flex; gap: 2px; margin-right: 8px; }
.menu a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.menu a:hover { color: var(--ink); background: var(--accent-soft); }
.menu a[aria-current] { color: var(--ink); }
.menu a[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); translate: -50% 0;
}

.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--accent-soft); border-color: var(--line-2); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .icon-sun { display: var(--show-sun); }
.theme-toggle .icon-moon { display: var(--show-moon); }
.txt-short { display: none; }

/* transição circular entre os temas (View Transitions, quando houver) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ═══ Hero ═════════════════════════════════════════════════════════ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 1000px);
  display: flex; align-items: center;
  padding: calc(var(--topbar-h) + clamp(40px, 7vh, 80px)) 0 clamp(64px, 9vh, 104px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }

/* quadriculado técnico, esmaecendo para as bordas */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 65% 45%, #000 10%, transparent 75%);
  mask: radial-gradient(ellipse 70% 60% at 65% 45%, #000 10%, transparent 75%);
  opacity: .7;
}

/* a imagem de fundo: curvas de nível pintadas com a cor do tema */
.hero-map,
.hero-peak,
.hero-scan {
  position: absolute; inset: 0;
  -webkit-mask: url("contornos.svg") 62% 40% / cover no-repeat;
  mask: url("contornos.svg") 62% 40% / cover no-repeat;
}
.hero-map { background: var(--contour); }

/* o cume em destaque: curvas na cor de acento só em volta do pico */
.hero-peak {
  background: var(--contour-accent);
  -webkit-mask:
    url("contornos.svg") 62% 40% / cover no-repeat,
    radial-gradient(circle at 74% 42%, #000 0, transparent 24%);
  -webkit-mask-composite: source-in;
  mask:
    url("contornos.svg") 62% 40% / cover no-repeat,
    radial-gradient(circle at 74% 42%, #000 0, transparent 24%);
  mask-composite: intersect;
  opacity: .55;
}

/* varredura: uma faixa que acende as curvas enquanto desce pelo mapa */
.hero-scan {
  background: var(--contour-accent);
  -webkit-mask:
    url("contornos.svg") 62% 40% / cover no-repeat,
    linear-gradient(transparent, #000 50%, transparent) 0 -40% / 100% 26% no-repeat;
  -webkit-mask-composite: source-in;
  mask:
    url("contornos.svg") 62% 40% / cover no-repeat,
    linear-gradient(transparent, #000 50%, transparent) 0 -40% / 100% 26% no-repeat;
  mask-composite: intersect;
  animation: scan 9s var(--ease) 1.2s infinite;
}
@keyframes scan {
  0%   { -webkit-mask-position: 62% 40%, 0 -40%; mask-position: 62% 40%, 0 -40%; }
  65%  { -webkit-mask-position: 62% 40%, 0 140%; mask-position: 62% 40%, 0 140%; }
  100% { -webkit-mask-position: 62% 40%, 0 140%; mask-position: 62% 40%, 0 140%; }
}

/* véu para o texto respirar sobre o mapa, e fusão com a página embaixo */
.hero-bg::before,
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  background: radial-gradient(ellipse 55% 75% at 22% 52%, var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 42%, transparent 78%);
}
.hero-bg::after {
  background:
    radial-gradient(circle at 74% 42%, var(--glow), transparent 36%),
    linear-gradient(to bottom, transparent 62%, var(--bg));
}

/* pontos de inspeção marcados no mapa */
.marker {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
  animation: fade 1.2s var(--ease) 1.4s both;
}
.marker i {
  position: relative; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--accent);
}
.marker i::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent);
}
.marker i::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent);
  animation: ping 2.8s ease-out infinite;
}
.marker:nth-of-type(2) i::before { animation-delay: .9s; }
.marker:nth-of-type(3) i::before { animation-delay: 1.8s; }
@keyframes ping { from { scale: 1; opacity: .7; } to { scale: 2.8; opacity: 0; } }

.hero-inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2.4s ease-out infinite;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: .99; letter-spacing: -.032em;
  text-wrap: balance;
}
.hero h1 em {
  display: block; margin-top: .06em;
  font-style: italic; font-weight: 400; color: var(--accent-ink);
}
.hero-lead { max-width: 54ch; margin-top: 26px; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.assurances {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin: 36px 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.assurances li { display: flex; align-items: center; gap: 9px; }
.assurances li::before {
  content: ""; width: 12px; height: 7px; margin-top: -3px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  rotate: -45deg;
}

/* entrada do hero: escalonada */
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .14s; }
.hero-copy > :nth-child(3) { animation-delay: .26s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.hero-copy > :nth-child(5) { animation-delay: .46s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ═══ Relatório de exemplo (peça do hero) ══════════════════════════ */

.report {
  position: relative; margin: 0;
  padding: 24px 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow);
  animation: rise 1s var(--ease) .35s both;
}
.report::before {
  /* fio de acento no topo, como a tarja de um laudo */
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent);
}
.report-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.report-tag {
  padding: 4px 9px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--ink-2);
}
.report-target { display: grid; gap: 2px; margin: 20px 0 14px; }
.report-target span { font-size: 12.5px; color: var(--ink-3); }
.report-target strong {
  font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -.015em; line-height: 1.2;
}

.findings { margin: 0; padding: 0; list-style: none; }
.findings li {
  display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.4;
  animation: rise .7s var(--ease) both;
}
.findings li:nth-child(1) { animation-delay: .7s; }
.findings li:nth-child(2) { animation-delay: .8s; }
.findings li:nth-child(3) { animation-delay: .9s; }
.findings li:nth-child(4) { animation-delay: 1s; }
.findings li:nth-child(5) { animation-delay: 1.1s; }

.sev-critico { --c: var(--critical); }
.sev-alto    { --c: var(--high); }
.sev-medio   { --c: var(--medium); }
.sev-ausente { --c: var(--ink-3); }
.sev {
  padding: 5px 0; border-radius: 7px; text-align: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}

.meter { display: flex; gap: 3px; height: 6px; margin: 18px 0 14px; }
.meter span {
  flex: 0 0 calc(var(--w) - 3px); border-radius: 99px; background: var(--c);
  transform-origin: left; animation: grow .9s var(--ease) both 1.2s;
}
@keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
.report figcaption { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* ═══ Índice ═══════════════════════════════════════════════════════ */

.toc ol {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: 0; padding: 0; list-style: none;
  border-block: 1px solid var(--line);
}
.toc a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px 18px; border-left: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.35;
  transition: color .2s, background-color .2s;
}
.toc li:first-child a { border-left: 0; }
.toc a span { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-ink); }
.toc a:hover { color: var(--ink); background: var(--accent-soft); }

/* ═══ Seções ═══════════════════════════════════════════════════════ */

.section { padding: clamp(96px, 12vw, 160px) 0 0; }
.section--tight-top { padding-top: clamp(88px, 10vw, 136px); }

.section-head { max-width: 840px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--split {
  max-width: none;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px clamp(40px, 6vw, 96px); align-items: end;
}
.section-head--split .lead { margin: 0 0 8px; }

h2 {
  font-size: clamp(36px, 4.7vw, 64px); line-height: 1.03; letter-spacing: -.028em; text-wrap: balance;
}
h2 em { font-style: italic; font-weight: 400; color: var(--ink-3); }
.lead { max-width: 60ch; margin-top: 26px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }

/* cards */
.card {
  position: relative; overflow: hidden;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .35s var(--ease), translate .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover {
  translate: 0 -4px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}
.card h3 { font-size: 27px; line-height: 1.12; letter-spacing: -.018em; }
.card p { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }

/* riscos */
.risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.risk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 52px; }
.risk-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px;
  color: var(--critical);
  background: color-mix(in srgb, var(--critical) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--critical) 22%, transparent);
}
.risk-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.risk-id { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* serviços em bento: largos alternando de lado */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.svc--wide { grid-column: span 2; }
.svc--wide p { max-width: 48ch; }
.svc-num {
  position: absolute; top: clamp(26px, 2.6vw, 34px); left: clamp(26px, 2.6vw, 34px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-ink);
}
.svc > :not(.svc-num) { position: relative; }
.svc--map::before {
  content: ""; position: absolute; inset: 0;
  background: var(--contour);
  -webkit-mask:
    url("contornos.svg") 85% 20% / 1100px auto no-repeat,
    linear-gradient(to left, #000 15%, transparent 72%);
  -webkit-mask-composite: source-in;
  mask:
    url("contornos.svg") 85% 20% / 1100px auto no-repeat,
    linear-gradient(to left, #000 15%, transparent 72%);
  mask-composite: intersect;
  transition: background-color .5s var(--ease);
}
.svc--map-alt::before {
  -webkit-mask-position: 10% 80%, 0 0;
  mask-position: 10% 80%, 0 0;
}
.svc--map:hover::before { background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ═══ Faixa escura: Quem somos ═════════════════════════════════════ */

.ink-band {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(96px, 12vw, 168px) 0;
  background: var(--bg-raised);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.band-map {
  position: absolute; inset: 0; z-index: -1;
  background: var(--contour-accent);
  opacity: .32;
  -webkit-mask:
    url("contornos.svg") 30% 70% / cover no-repeat,
    radial-gradient(ellipse 60% 80% at 85% 50%, #000, transparent 70%);
  -webkit-mask-composite: source-in;
  mask:
    url("contornos.svg") 30% 70% / cover no-repeat,
    radial-gradient(ellipse 60% 80% at 85% 50%, #000, transparent 70%);
  mask-composite: intersect;
}
.statement {
  max-width: 31ch;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px); line-height: 1.26; letter-spacing: -.018em;
}
.statement em { font-style: italic; color: var(--accent-ink); }

/* ═══ Como funciona ════════════════════════════════════════════════ */

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.steps::before {
  /* o trilho que liga as etapas, desenhado quando a lista aparece */
  content: ""; position: absolute; top: 25px; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--line-2) 70%);
  transform-origin: left; scale: 0 1;
  transition: scale 1.4s var(--ease) .2s;
}
.steps.is-visible::before,
html:not(.js) .steps::before { scale: 1 1; }
.step-node {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 30px;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg);
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink);
}
.steps li:first-child .step-node { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.steps h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.015em; }
.steps p { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }

/* ═══ FAQ ══════════════════════════════════════════════════════════ */

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px clamp(40px, 6vw, 104px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--topbar-h) + 40px); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.32; letter-spacing: -.012em;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-icon {
  position: relative; flex: none; width: 34px; height: 34px; margin-top: -1px;
  border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2);
  transition: rotate .4s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.faq-icon::before,
.faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: currentColor; translate: -50% -50%;
}
.faq-icon::after { rotate: 90deg; }
details[open] .faq-icon { rotate: 45deg; background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.faq-list details p { max-width: 62ch; padding: 0 60px 28px 0; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }

/* abre e fecha com animação onde o navegador permite */
@supports selector(::details-content) {
  .faq-list details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ═══ Diagnóstico ══════════════════════════════════════════════════ */

.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px clamp(40px, 6vw, 96px);
  padding: clamp(28px, 5.5vw, 76px);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--contour-accent); opacity: .3;
  -webkit-mask:
    url("contornos.svg") 0% 100% / 1500px auto no-repeat,
    radial-gradient(ellipse 60% 70% at 0% 100%, #000, transparent 70%);
  -webkit-mask-composite: source-in;
  mask:
    url("contornos.svg") 0% 100% / 1500px auto no-repeat,
    radial-gradient(ellipse 60% 70% at 0% 100%, #000, transparent 70%);
  mask-composite: intersect;
}
.cta::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; left: -260px; bottom: -320px;
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%);
}
.next { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.next li { display: flex; align-items: baseline; gap: 14px; font-size: 15.5px; color: var(--ink-2); }
.next span { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-ink); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.full { grid-column: 1 / -1; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label,
.field > legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.req { color: var(--accent-ink); }
.input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
textarea.input { min-height: 128px; resize: vertical; }
.was-validated .input:invalid { border-color: var(--critical); }
.was-validated .input:invalid:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--critical) 15%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px;
  border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14.5px; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--accent); color: var(--ink); }
.chip input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.fine { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.fine svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.sent { padding: 8px 0; }
.sent:focus { outline: none; } /* recebe foco por script, só para leitores de tela anunciarem */
.sent-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
}
.sent-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sent h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.02em; line-height: 1.1; }
.sent p { max-width: 44ch; margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.sent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn .wa { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.form-erro {
  padding: 12px 16px; border-radius: 12px; font-size: 14.5px;
  color: var(--critical);
  background: color-mix(in srgb, var(--critical) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--critical) 25%, transparent);
}

/* ═══ Rodapé ═══════════════════════════════════════════════════════ */

.footer { padding: clamp(96px, 12vw, 150px) 0 0; overflow: hidden; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px;
  padding: 36px 0 32px; border-top: 1px solid var(--line);
}
.footer-logo { display: block; height: 30px; width: auto; aspect-ratio: 839 / 132; color: var(--ink); overflow: visible; }
.footer-top p { max-width: 46ch; font-size: 14.5px; color: var(--ink-2); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; color: var(--ink-2); text-decoration: none; }
.footer-row a:hover { color: var(--accent-ink); }
/* a logo inteira em marca-d'água: traços e nome na cor dos fios, ponto num
   ciano bem fraco (o sprite pinta o ponto com --accent) */
.footer-mark {
  display: block; width: 100%; height: auto; aspect-ratio: 839 / 132;
  margin: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px);
  color: var(--line);
  /* baseado no --accent-ink: definir --accent a partir dele mesmo seria
     referência circular, e o navegador descartaria o valor */
  --accent: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  overflow: visible;
}

/* ═══ Revelação ao rolar (só com JS; sem JS tudo aparece) ══════════ */

html.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* o card também tem transição de hover; as duas precisam conviver */
html.js .card[data-reveal] {
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms),
    border-color .35s var(--ease), translate .45s var(--ease), box-shadow .45s var(--ease);
}

/* ═══ Responsivo ═══════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .menu { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .report { max-width: 560px; }
  .marker { display: none; }
  .toc ol { grid-template-columns: repeat(3, 1fr); }
  .toc li:nth-child(4) a { border-left: 0; }
  .toc li:nth-child(n + 4) a { border-top: 1px solid var(--line); }
  .risks { grid-template-columns: 1fr; }
  .risk-top { margin-bottom: 32px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc--wide { grid-column: span 2; }
  .section-head--split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --radius: 18px; }
  body { font-size: 16px; }
  .hero { min-height: auto; }
  .hero-bg::before {
    background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 85%, transparent));
  }
  .hero-lead { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
  .assurances { flex-direction: column; }
  .findings li { grid-template-columns: 76px 1fr; gap: 12px; font-size: 14.5px; }
  .sev { font-size: 10.5px; }
  .report-head, .assurances, .risk-id, .toc a span, .next span, .svc-num { font-size: 11px; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .toc li a { border-left: 1px solid var(--line); border-top: 0; }
  .toc li:nth-child(odd) a { border-left: 0; padding-left: 0; }
  .toc li:nth-child(n + 3) a { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .svc--wide { grid-column: auto; }
  .svc { min-height: 0; padding-top: 72px; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; }
  .step-node { margin: 0; }
  .faq-list summary { font-size: 19.5px; padding: 22px 0; gap: 18px; }
  .faq-list details p { padding-right: 0; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 12px 0; }
  .topbar-inner { padding-left: 14px; }
  .brand-logo { height: 22px; }
  .txt-long { display: none; }
  .txt-short { display: inline; }
  .eyebrow { font-size: 10.5px; letter-spacing: .04em; padding-right: 12px; }
}

/* celulares bem estreitos (320px): só o símbolo da marca, para a barra caber
   com o botão de tema e o "Diagnóstico" em 44px. O link mantém o aria-label. */
@media (max-width: 350px) {
  .brand-logo { display: none; }
  .brand-simbolo { display: block; }
}

/* ═══ Movimento reduzido ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero-scan { display: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
