/* Conceito: prancha técnica. Faixas escuras de "papel vegetal" com desenhos cotados alternam
   com faixas claras de leitura; o laranja da marca marca cotas, ações e o que importa. */
:root {
  --ink: #0f1821;
  --ink-2: #16222d;
  --ink-line: rgba(196, 214, 228, .16);
  --paper: #f2f4f5;
  --sheet: #ffffff;
  --line: #d8dee3;
  --text: #17212b;
  --muted: #5a6875;
  --on-ink: #e9eef2;
  --on-ink-muted: #aab9c6;
  --apex: #db4222;
  --apex-text: #b9351a;
  --apex-soft: #fbe9e4;
  --ok: #2f7d5b;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--apex); outline-offset: 3px; border-radius: 3px; }

.wrap {
  max-width: calc(var(--wrap) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--sheet { background: var(--sheet); }

.eyebrow {
  font: 500 .75rem/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--apex-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.band--ink .eyebrow { color: #f07a5f; }
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.05;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.band--ink .lead { color: var(--on-ink-muted); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--f-body);
  text-decoration: none; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--apex); color: #fff; }
.btn--primary:hover { background: #c2381b; }
.btn--ghost { border-color: var(--ink-line); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink-muted); }
.btn--line { border-color: var(--line); background: var(--sheet); color: var(--text); }
.btn--line:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Cabeçalho */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(15, 24, 33, .94); backdrop-filter: blur(10px); border-bottom-color: var(--ink-line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 8px 12px; border-radius: 4px; transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--on-ink); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--ink-line);
  border-radius: var(--radius); width: 44px; height: 44px; color: var(--on-ink);
  align-items: center; justify-content: center;
}

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  font-weight: 750; font-stretch: 108%;
  line-height: 1.0; letter-spacing: -.02em;
  margin: 22px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--apex); }
.hero .lead { font-size: 1.2rem; color: var(--on-ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font: 400 .8rem/1.4 var(--f-mono); color: var(--on-ink-muted); letter-spacing: .02em;
}
.hero-facts strong { color: var(--on-ink); font-weight: 500; }

/* Prancha do hero */
.plate {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.plate-tabs { display: flex; border-bottom: 1px solid var(--ink-line); }
.plate-tab {
  flex: 1; background: none; border: 0; border-right: 1px solid var(--ink-line);
  padding: 14px 10px; color: var(--on-ink-muted);
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  position: relative;
}
.plate-tab:last-child { border-right: 0; }
.plate-tab[aria-selected="true"] { color: var(--on-ink); background: rgba(255, 255, 255, .03); }
.plate-tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--apex);
}
.plate-tab[aria-selected="true"]::after { animation: tabTimer 7s linear forwards; }
.plate.is-paused .plate-tab[aria-selected="true"]::after { animation: none; width: 100%; }
@keyframes tabTimer { from { width: 0; } to { width: 100%; } }

.plate-view { display: none; }
.plate-view.is-active { display: block; }
.drawing { padding: 18px 18px 0; color: #c4d6e4; }
.drawing svg { width: 100%; height: auto; display: block; }
.drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.4; }
.drawing .ln-thin { fill: none; stroke: currentColor; stroke-width: .8; opacity: .55; }
.drawing .dim { fill: none; stroke: var(--apex); stroke-width: 1; }
.drawing .dim-t { fill: #f2856b; font: 500 11px var(--f-mono); letter-spacing: .04em; }
.drawing .note { fill: var(--on-ink-muted); font: 400 10px var(--f-mono); letter-spacing: .05em; }
.drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.plate-view.is-active .draw { animation: draw 1.6s cubic-bezier(.6, .1, .2, 1) forwards; }
.plate-view.is-active .draw.d2 { animation-delay: .35s; }
.plate-view.is-active .draw.d3 { animation-delay: .9s; }
.plate-view .fade { opacity: 0; }
.plate-view.is-active .fade { animation: fadeIn .5s ease forwards 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.spec { margin: 0; padding: 14px 20px 20px; display: grid; gap: 0; }
.spec-title {
  display: flex; justify-content: space-between; align-items: center;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-ink-muted); padding: 10px 0 12px;
}
.spec-title span:last-child { color: #f2856b; }
.spec div:not(.spec-title) {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px;
  padding: 8px 0; border-top: 1px dashed var(--ink-line);
  font-size: .9rem;
}
.spec dt { font: 400 .74rem/1.5 var(--f-mono); color: var(--on-ink-muted); letter-spacing: .03em; padding-top: 2px; }
.spec dd { margin: 0; color: var(--on-ink); }

/* Faixa de clientes */
.clients-strip { background: var(--sheet); border-bottom: 1px solid var(--line); padding-block: 26px; overflow: hidden; }
.clients-strip .wrap { display: flex; align-items: center; gap: 28px; }
.clients-strip .label {
  flex: none; font: 500 .72rem/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); max-width: 150px;
}
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 38px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Serviços */
.services { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); overflow: hidden; }
.svc-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--paper); }
.svc-btn {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 22px 24px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start;
  transition: background .2s;
}
.svc-btn:last-child { border-bottom: 0; }
.svc-btn:hover { background: rgba(255, 255, 255, .6); }
.svc-btn[aria-selected="true"] { background: var(--sheet); box-shadow: inset 3px 0 0 var(--apex); }
.svc-btn .code { font: 500 .72rem/1 var(--f-mono); color: var(--muted); padding-top: 6px; letter-spacing: .05em; }
.svc-btn[aria-selected="true"] .code { color: var(--apex-text); }
.svc-btn strong { display: block; font: 650 1.12rem/1.2 var(--f-display); font-stretch: 105%; }
.svc-btn small { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; line-height: 1.4; }

.svc-panel { display: none; padding: clamp(28px, 4vw, 48px); }
.svc-panel.is-active { display: block; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.svc-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; font-stretch: 110%; line-height: 1.1; }
.svc-panel .norm {
  display: inline-block; margin-top: 12px; font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted);
}
.svc-panel > p { margin-top: 18px; color: var(--muted); max-width: 62ch; }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.svc-cols h4 {
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; line-height: 1.45; }
.ticks li::before {
  content: ""; width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--apex); border-radius: 2px;
  background: linear-gradient(135deg, transparent 45%, var(--apex) 45%, var(--apex) 55%, transparent 55%);
}
.ticks.plain li::before { border-radius: 50%; background: none; border-width: 1.5px; width: 9px; height: 9px; margin-top: 7px; margin-left: 2px; }
.svc-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Gráfico de depreciação */
.curve { margin-top: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 20px 20px 16px; background: var(--paper); }
.curve-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; }
.curve-head strong { font: 600 1rem/1.3 var(--f-display); }
.curve-head span { font: 400 .74rem/1 var(--f-mono); color: var(--muted); }
.curve svg { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.curve .axis { stroke: var(--muted); stroke-width: 1; }
.curve .grid { stroke: var(--line); stroke-width: 1; }
.curve .tick-t { fill: var(--muted); font: 400 10px var(--f-mono); }
.curve .path { fill: none; stroke: var(--text); stroke-width: 2; }
.curve .area { fill: var(--apex-soft); }
.curve .res { stroke: var(--apex); stroke-width: 1; stroke-dasharray: 4 4; }
.curve .res-t { fill: var(--apex-text); font: 500 10px var(--f-mono); }
.curve .marker-l { stroke: var(--apex); stroke-width: 1; }
.curve .marker { fill: var(--apex); stroke: var(--sheet); stroke-width: 2; }
.curve-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 10px; }
.curve-controls label { font: 400 .8rem/1.3 var(--f-mono); color: var(--muted); display: grid; gap: 8px; }
.curve-controls input[type="range"] { width: 100%; accent-color: var(--apex); }
.readout { text-align: right; font-variant-numeric: tabular-nums; }
.readout b { display: block; font: 700 1.9rem/1 var(--f-display); font-stretch: 110%; color: var(--text); }
.readout span { font: 400 .74rem/1.3 var(--f-mono); color: var(--muted); }

/* Diagnóstico */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.finder-steps { display: grid; gap: 30px; }
.step-label { font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 14px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .02); color: var(--on-ink);
  border-radius: 999px; padding: 11px 18px; font-size: .98rem; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--on-ink-muted); }
.chip[aria-pressed="true"] { background: var(--apex); border-color: var(--apex); color: #fff; }
.chips.is-empty { color: var(--on-ink-muted); font-size: .95rem; }
.result {
  background: var(--sheet); color: var(--text); border-radius: 10px; padding: 28px;
  position: sticky; top: 100px;
}
.result-empty { color: var(--muted); }
.result-empty strong { display: block; color: var(--text); font: 650 1.25rem/1.25 var(--f-display); margin-bottom: 8px; }
.result .kicker { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--apex-text); }
.result h3 { font-size: 1.6rem; font-weight: 700; font-stretch: 108%; margin: 10px 0 10px; line-height: 1.15; }
.result p { color: var(--muted); }
.result h4 { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; }
.result .btn { margin-top: 24px; width: 100%; justify-content: center; }
.result .fine { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Processo */
.process-wrap { position: relative; }
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.process-rail { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process-rail i { display: block; height: 100%; width: 0; background: var(--apex); transition: width .2s linear; }
.process li { position: relative; display: grid; gap: 14px; align-content: start; }
.process .num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sheet); border: 2px solid var(--line);
  font: 500 .9rem/1 var(--f-mono); color: var(--muted); transition: border-color .3s, color .3s, background .3s;
}
.process li.is-on .num { border-color: var(--apex); color: #fff; background: var(--apex); }
.process h3 { font-size: 1.15rem; font-weight: 650; font-stretch: 105%; line-height: 1.25; }
.process p { color: var(--muted); font-size: .98rem; }

/* Diferenciais */
.diffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.diff { padding: 30px 26px 8px 0; display: grid; gap: 12px; align-content: start; }
.diff + .diff { padding-left: 26px; border-left: 1px solid var(--line); }
.diff svg { width: 30px; height: 30px; color: var(--apex); }
.diff h3 { font-size: 1.15rem; font-weight: 650; font-stretch: 105%; }
.diff p { color: var(--muted); font-size: .98rem; }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-text { display: grid; gap: 18px; color: var(--muted); font-size: 1.08rem; }
.about-text p:first-of-type { color: var(--text); font-size: 1.22rem; line-height: 1.5; }
.mvv { border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); overflow: hidden; }
.mvv-tabs { display: flex; border-bottom: 1px solid var(--line); }
.mvv-tab {
  flex: 1; padding: 16px 10px; background: var(--paper); border: 0; border-right: 1px solid var(--line);
  font: 600 1rem/1 var(--f-display); font-stretch: 105%; color: var(--muted);
}
.mvv-tab:last-child { border-right: 0; }
.mvv-tab[aria-selected="true"] { background: var(--sheet); color: var(--text); box-shadow: inset 0 -2px 0 var(--apex); }
.mvv-panel { padding: 28px; font-size: 1.12rem; line-height: 1.55; min-height: 150px; }
.mvv-panel[hidden] { display: none; }

/* Clientes */
.sectors { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sector { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sector h3 { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-tile {
  width: 140px; height: 70px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  display: grid; place-items: center; padding: 12px 16px;
}
.logo-tile img { max-height: 42px; width: auto; filter: grayscale(1); opacity: .78; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
  font: 600 1.12rem/1.35 var(--f-display); font-stretch: 103%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--apex); transition: transform .25s; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 64ch; }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); }
.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-info .h2 { margin-top: 4px; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--ink-line); margin-top: 10px; }
.channel { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.channel dt { font: 500 .72rem/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.channel dd { margin: 0; color: var(--on-ink); font-size: 1.05rem; overflow-wrap: anywhere; }
.channel a { text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.channel a:hover { border-color: var(--apex); }
.form { background: var(--sheet); color: var(--text); border-radius: 10px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.form h3 { font-size: 1.4rem; font-weight: 700; font-stretch: 108%; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font: 500 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--apex); background: #fff; box-shadow: 0 0 0 3px var(--apex-soft); }
.form .btn { justify-content: center; }
.form .fine { font-size: .85rem; color: var(--muted); }

/* Rodapé */
.footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 56px 28px; }
.footer img { height: 32px; width: auto; margin-bottom: 16px; }
.footer p { max-width: 44ch; font-size: .98rem; }
.footer h4 { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink-line); font: 400 .78rem/1.4 var(--f-mono); }

/* Barra fixa no celular */
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 8px var(--gutter-r) 20px var(--gutter);
  }
  .site-header.menu-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .svc-btn { flex: none; border-bottom: 0; border-right: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); padding: 16px 18px; gap: 6px; }
  .svc-btn small { display: none; }
  .svc-btn strong { font-size: 1rem; white-space: nowrap; }
  .svc-btn[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--apex); }
  .finder { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .process-rail { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process-rail i { width: 100%; height: 0; transition: height .2s linear; }
  .process li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
  .process li .num { grid-row: span 2; }
  .diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff:nth-child(3) { padding-left: 0; border-left: 0; }
  .diff:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .hero h1 { font-stretch: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .spec div:not(.spec-title) { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .plate-tab { font-size: .68rem; letter-spacing: .04em; padding: 13px 6px; }
  .clients-strip .label { display: none; }
  .svc-cols { grid-template-columns: minmax(0, 1fr); }
  .curve-controls { grid-template-columns: minmax(0, 1fr); }
  .readout { text-align: left; }
  .diffs { grid-template-columns: minmax(0, 1fr); }
  .diff, .diff + .diff { padding-left: 0; border-left: 0; }
  .diff + .diff { border-top: 1px solid var(--line); }
  .sector { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .logo-tile { width: calc(50% - 6px); }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .channel { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .faq details p { padding-right: 0; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(15, 24, 33, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--ink-line);
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  }
  .mobile-bar .btn { justify-content: center; min-height: 46px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}

/* ---------- AVCB, páginas internas e blog ---------- */
:root { --apex-deep: #c23a1c; --apex-ink: #2a0d05; }

.announce {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--apex-deep); color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 500; line-height: 1.3;
  padding-block: 10px; padding-left: var(--gutter); padding-right: var(--gutter-r);
  text-align: center;
}
.announce:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }
.announce-tag {
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  background: #fff; color: var(--apex-deep); padding: 5px 7px; border-radius: 3px; flex: none;
}
.announce svg { width: 16px; height: 16px; flex: none; }

.nav a.nav-avcb { color: #fff; background: var(--apex); font-weight: 600; }
.nav a.nav-avcb:hover { background: #c2381b; }

.hero h1 { display: grid; gap: 22px; }
.hero h1 .eyebrow { font-stretch: 100%; }
.h1-main { display: block; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #fff; color: var(--apex-ink); }
.btn--light:hover { background: var(--apex-soft); }

/* Faixa laranja do AVCB */
.band--apex { background: var(--apex-deep); color: #fff; position: relative; overflow: hidden; }
.band--apex::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.band--apex .eyebrow { color: #fff; }
.band--apex .lead { color: #fde3dc; }
.avcb-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.avcb-pitch .h2 { margin: 18px 0; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.avcb-includes { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.avcb-includes li { display: grid; gap: 4px; padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.avcb-includes li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .28); }
.avcb-includes b { font: 650 1.05rem/1.25 var(--f-display); font-stretch: 105%; }
.avcb-includes span { color: #fde3dc; font-size: .95rem; line-height: 1.4; }

.avcb-tool { background: var(--sheet); color: var(--text); border-radius: 10px; padding: clamp(22px, 3vw, 30px); box-shadow: 0 30px 70px -30px rgba(42, 13, 5, .55); }
.avcb-tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avcb-tool-head strong { font: 700 1.25rem/1.2 var(--f-display); font-stretch: 106%; }
.avcb-tool-head span { font: 400 .72rem/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.avcb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.avcb-full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: center; font-size: .98rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--apex); flex: none; }
.check[hidden] { display: none; }
.avcb-result { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); min-height: 120px; }
.avcb-result .kicker { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--apex-text); }
.avcb-result h3 { font-size: 1.5rem; font-weight: 700; font-stretch: 108%; margin: 8px 0; }
.avcb-result p { color: var(--muted); }
.avcb-result ul { margin-top: 12px; }
.avcb-result .btn { width: 100%; justify-content: center; margin-top: 18px; }
.avcb-result .fine { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.avcb-wait { color: var(--muted); }

.faq details p a { color: var(--apex-text); }

/* Páginas internas */
.page-hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 90% at 80% 30%, #000 10%, transparent 70%);
}
.page-hero .wrap { position: relative; padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 750; font-stretch: 108%; line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 20px; max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--apex); }
.page-hero .lead { color: var(--on-ink-muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font: 400 .76rem/1.3 var(--f-mono); color: var(--on-ink-muted); letter-spacing: .03em; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-ink); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid var(--ink-line); }
.facts div { padding: 16px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--ink-line); }
.facts b { display: block; font: 700 1.6rem/1.1 var(--f-display); font-stretch: 108%; color: var(--on-ink); font-variant-numeric: tabular-nums; }
.facts span { font: 400 .74rem/1.4 var(--f-mono); color: var(--on-ink-muted); }

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.path-card .tag { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--apex-text); }
.path-card h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 106%; }
.path-card p { color: var(--muted); font-size: .98rem; }
.path-card dl { margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.path-card dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.path-card dt { font: 400 .72rem/1.6 var(--f-mono); color: var(--muted); }
.path-card dd { margin: 0; }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pack { border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); padding: 28px; display: grid; gap: 14px; align-content: start; }
.pack.is-featured { border-color: var(--apex); box-shadow: 0 0 0 1px var(--apex); }
.pack .tag { justify-self: start; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; background: var(--apex-soft); color: var(--apex-text); }
.pack h3 { font-size: 1.4rem; font-weight: 700; font-stretch: 106%; }
.pack > p { color: var(--muted); }
.pack .btn { justify-content: center; margin-top: 6px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline .num { font: 500 .9rem/1 var(--f-mono); color: var(--apex-text); padding-top: 4px; }
.timeline h3 { font-size: 1.2rem; font-weight: 650; font-stretch: 105%; }
.timeline p { color: var(--muted); margin-top: 4px; }
.timeline .when { font: 400 .78rem/1.5 var(--f-mono); color: var(--muted); text-align: right; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.callout { border-left: 3px solid var(--apex); background: var(--sheet); padding: 18px 22px; border-radius: 0 8px 8px 0; color: var(--muted); }
.callout strong { color: var(--text); }
.sources { font: 400 .78rem/1.6 var(--f-mono); color: var(--muted); margin-top: 18px; }
.sources a { color: var(--apex-text); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: grid; gap: 12px; align-content: start; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 24px; text-decoration: none; transition: border-color .2s, transform .2s; }
a.post-card:hover { border-color: var(--text); transform: translateY(-2px); }
.post-card .meta { display: flex; justify-content: space-between; gap: 10px; font: 400 .72rem/1.3 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.post-card .meta b { color: var(--apex-text); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.post-card h3 { font-size: 1.22rem; font-weight: 650; font-stretch: 104%; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .96rem; }
.post-card.is-soon { opacity: .72; }
.post-card.is-featured { grid-column: span 2; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.post-card.is-featured h3 { font-size: 1.7rem; }
.post-card.is-featured p, .post-card.is-featured .meta { color: var(--on-ink-muted); }
.post-card.is-featured .meta b { color: #f2856b; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { border: 1px solid var(--line); background: var(--sheet); border-radius: 999px; padding: 9px 16px; font-size: .95rem; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 68ch; font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; font-weight: 700; font-stretch: 106%; line-height: 1.2; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; font-weight: 650; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--apex-text); }
.prose .tldr { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; font-size: 1.02rem; }
.prose .tldr strong:first-child { display: block; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--apex-text); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 24px; display: grid; gap: 12px; }
.aside-card strong { font: 700 1.25rem/1.2 var(--f-display); font-stretch: 106%; }
.aside-card p { color: var(--on-ink-muted); font-size: .96rem; }
.aside-card .btn { justify-content: center; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 .78rem/1.4 var(--f-mono); color: var(--on-ink-muted); margin-top: 18px; }

@media (max-width: 1080px) {
  .avcb-band, .page-hero-grid, .split, .article { grid-template-columns: minmax(0, 1fr); }
  .paths, .packs { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { position: static; }
  .site-header.menu-open .nav a.nav-avcb { align-self: flex-start; padding: 10px 14px; margin-top: 8px; border-bottom: 0; }
}
@media (max-width: 640px) {
  .announce { font-size: .86rem; justify-content: flex-start; text-align: left; }
  .avcb-includes, .avcb-fields { grid-template-columns: minmax(0, 1fr); }
  .avcb-includes li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div + div { padding-left: 0; border-left: 0; }
  .timeline li { grid-template-columns: 44px minmax(0, 1fr); }
  .timeline .when { grid-column: 2; text-align: left; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .post-card.is-featured { grid-column: auto; }
  .path-card dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Formulário, WhatsApp flutuante e aviso de cookies ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .95rem; color: var(--muted); align-items: flex-start; }
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--apex-text); }
#form-status.is-erro { color: var(--apex-text); font-weight: 600; }
.form button[disabled] { opacity: .7; cursor: progress; }

.wa-float {
  position: fixed; z-index: 45;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--f-body);
  box-shadow: 0 10px 28px -8px rgba(15, 24, 33, .45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(15, 24, 33, .55); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes waPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }

.cookie-bar {
  position: fixed; z-index: 55;
  left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 460px; display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: 10px;
  padding: 16px 18px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); font-size: .93rem; line-height: 1.45;
}
.cookie-bar a { color: #f2856b; }
.cookie-bar .btn { flex: none; min-height: 40px; padding: 0 16px; }

@media (max-width: 640px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .wa-float span { display: none; }
  .cookie-bar { right: max(16px, env(safe-area-inset-right, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); max-width: none; flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 640px) { body:has(.cookie-bar) .wa-float { bottom: calc(230px + env(safe-area-inset-bottom, 0px)); } }
