/* Radar ServTech (/servtech/) e base do painel. Tokens de docs/marca.md (os mesmos do LabTech). */
:root {
  --fieb-blue: #3C60A7;
  --fieb-dark: #243D6B;
  --fieb-light: #EFF3FB;
  --fieb-line: #D7E0F1;
  --ink: #20304F;
  --muted: #60708E;
  --muted-dark: #8492AA;
  --white: #FFFFFF;
  --success: #2E8B6B;
  --success-soft: #EDF8F4;
  --warning: #B77616;
  --warning-soft: #FFF7E7;
  --danger: #B54444;
  --danger-soft: #FBEEEE;
  --energia: #3CC48A;
  --sobre-escuro: #DCE7FB;
  --sobre-escuro-2: #A9BBDB;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --largura: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "tnum" 0;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--fieb-blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fieb-dark); }
h1, h2, h3 { color: var(--fieb-dark); line-height: 1.2; margin: 0; letter-spacing: -0.012em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--fieb-blue); outline-offset: 3px; border-radius: 2px; }

.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--fieb-dark); color: var(--white); border-radius: 6px; }
.pular:focus { top: 12px; color: var(--white); }

/* ---------- cabeçalho ---------- */
.topo { border-bottom: 1px solid var(--fieb-line); background: var(--white); }
.topo__faixa {
  max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fieb-dark); letter-spacing: .08em; }
.marca__glifo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--white); background: var(--fieb-blue); box-shadow: 0 8px 18px rgba(60,96,167,.22); flex: none; }
.marca__nome strong, .marca__nome em { display: block; line-height: .85; font-size: 16px; font-style: normal; font-weight: 800; }
.marca__nome em { color: var(--fieb-blue); font-size: 10px; margin-top: 6px; letter-spacing: .32em; font-weight: 700; }
.topo__nav { display: flex; align-items: center; gap: 28px; }
.topo__nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.topo__nav ul a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.topo__nav ul a:hover { color: var(--fieb-dark); }
.topo__nav ul a[aria-current="page"] { color: var(--fieb-dark); border-bottom-color: var(--fieb-blue); }
.topo__labtech { font-size: .875rem; font-weight: 600; color: var(--fieb-dark); text-decoration: none; background: var(--fieb-light); border: 1px solid var(--fieb-line); padding: 7px 12px; border-radius: 7px; }
.topo__labtech:hover { background: var(--fieb-blue); border-color: var(--fieb-blue); color: var(--white); }
.topo__menu-botao { display: none; }
.topo__painel { font-size: .875rem; font-weight: 600; color: var(--white); text-decoration: none; background: var(--fieb-dark); border: 1px solid var(--fieb-dark); padding: 7px 12px; border-radius: 7px; }
.topo__painel:hover { background: var(--fieb-blue); border-color: var(--fieb-blue); color: var(--white); }

/* ---------- botões e links ---------- */
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 11px 20px; border-radius: 8px; font: inherit; font-weight: 600; font-size: .9375rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out;
}
.botao--primario { background: var(--fieb-blue); color: var(--white); }
.botao--primario:hover { background: var(--fieb-dark); color: var(--white); }
.botao--primario:disabled { background: var(--muted-dark); cursor: not-allowed; }
.botao--claro { background: var(--white); color: var(--fieb-dark); }
.botao--claro:hover { background: var(--sobre-escuro); color: var(--fieb-dark); }
.botao--contorno { border-color: rgba(255,255,255,.45); color: var(--white); }
.botao--contorno:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.botao--contorno-escuro { border-color: var(--fieb-line); color: var(--fieb-dark); background: var(--white); }
.botao--contorno-escuro:hover { border-color: var(--fieb-blue); color: var(--fieb-blue); }
.link-seta { display: inline-block; margin-top: 22px; font-weight: 600; }

/* ---------- abertura com o unifilar ---------- */
.abertura { background: var(--fieb-dark); color: var(--white); }
.abertura :focus-visible { outline-color: var(--white); }
.abertura__grade {
  max-width: var(--largura); margin: 0 auto; padding: 72px var(--gutter) 56px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 56px; align-items: center;
}
.abertura h1 { color: var(--white); font-size: clamp(2.1rem, 1.35rem + 2.7vw, 3.35rem); line-height: 1.07; letter-spacing: -0.025em; font-weight: 700; max-width: 16ch; }
.abertura__lead { margin-top: 22px; font-size: 1.125rem; line-height: 1.6; color: var(--sobre-escuro); max-width: 54ch; }

.unifilar { margin: 0; justify-self: end; width: 100%; max-width: 340px; }
.unifilar svg { display: block; width: 100%; height: auto; overflow: visible; }
.unifilar figcaption { margin-top: 10px; font-size: .8125rem; color: var(--sobre-escuro-2); }
.u-linha { fill: none; stroke: #7F98C6; stroke-width: 2; }
.u-traco { fill: none; stroke: var(--sobre-escuro); stroke-width: 2; stroke-linecap: round; }
.u-fundo { fill: var(--fieb-dark); }
.u-caixa { fill: var(--fieb-dark); stroke: var(--sobre-escuro); stroke-width: 1.6; }
.u-caixa--evse { stroke-width: 2; }
.u-no { fill: var(--sobre-escuro); }
.u-rot { fill: var(--white); font-size: 12.5px; font-weight: 600; font-family: var(--font-display); }
.u-id { fill: var(--sobre-escuro-2); font-weight: 700; }
.u-sub { fill: var(--sobre-escuro-2); font-size: 11px; font-family: var(--font-display); }
.u-simb { fill: var(--sobre-escuro); font-size: 11px; font-weight: 700; font-family: var(--font-display); }
.u-simb--p { font-size: 9.5px; }
.u-estado { fill: var(--energia); font-size: 11px; font-weight: 700; font-family: var(--font-display); opacity: 0; animation: aparece .5s 2.6s ease-out forwards; }
.u-fluxo { fill: none; stroke: var(--energia); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: energia 2.2s .5s cubic-bezier(.55, .1, .35, 1) forwards; }
.u-led { fill: var(--energia); opacity: .2; animation: aparece .4s 2.5s ease-out forwards; }
.u-carro { fill: none; stroke: var(--sobre-escuro); stroke-width: 1.8; stroke-linejoin: round; }
.u-roda { fill: var(--fieb-dark); stroke: var(--sobre-escuro); stroke-width: 1.8; }
.u-bateria { stroke: var(--energia); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: carga 1.4s 2.7s ease-out forwards; }
@keyframes energia { to { stroke-dashoffset: 0; } }
@keyframes carga { to { stroke-dashoffset: 12; } }
@keyframes aparece { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .u-fluxo, .u-estado, .u-led, .u-bateria { animation: none; }
  .u-fluxo { stroke-dashoffset: 0; }
  .u-estado, .u-led { opacity: 1; }
  .u-bateria { stroke-dashoffset: 12; }
}

/* ---------- duas frentes ---------- */
.frentes__grade { max-width: var(--largura); margin: 0 auto; padding: 64px var(--gutter); display: grid; grid-template-columns: 1fr 1fr; }
.frente { padding-right: 48px; }
.frente + .frente { padding: 0 0 0 48px; border-left: 1px solid var(--fieb-line); }
.frente h3 { font-size: 1.5rem; }
.frente > p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.lista-traco { list-style: none; margin: 22px 0 0; padding: 0; }
.lista-traco li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--fieb-line); }
.lista-traco li:last-child { border-bottom: 1px solid var(--fieb-line); }
.lista-traco li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 2px; background: var(--fieb-blue); }

/* ---------- seções genéricas ---------- */
.secao { max-width: var(--largura); margin: 0 auto; padding: 56px var(--gutter); }
.secao--sem-topo { padding-top: 8px; }
.secao > h2, .secao__topo h2 { font-size: 1.75rem; }
.secao__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.secao__topo a { font-weight: 600; }
/* linha divisória alinhada ao conteúdo (não invade a margem lateral) */
.servico, .secao--contato, .rodape__aviso { background-image: linear-gradient(var(--fieb-line), var(--fieb-line)); background-size: calc(100% - 2 * var(--gutter)) 1px; background-position: center top; background-repeat: no-repeat; }
.faixa-labtech + .secao--contato { background-image: none; }
.secao--contato p { margin-top: 12px; max-width: 60ch; color: var(--muted); font-size: 1.0625rem; }
.secao--contato .botao { margin-top: 24px; }
.vazio { margin-top: 20px; color: var(--muted); }

.lista-artigos { list-style: none; margin: 24px 0 0; padding: 0; }
.lista-artigos li { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; padding: 24px 0; border-top: 1px solid var(--fieb-line); }
.lista-artigos li:last-child { border-bottom: 1px solid var(--fieb-line); }
.lista-artigos__meta { grid-row: 1 / span 2; color: var(--muted); font-size: .875rem; padding-top: 4px; }
.lista-artigos h2, .lista-artigos h3 { font-size: 1.25rem; line-height: 1.3; }
.lista-artigos h2 a, .lista-artigos h3 a { color: var(--fieb-dark); text-decoration: none; }
.lista-artigos h2 a:hover, .lista-artigos h3 a:hover { color: var(--fieb-blue); text-decoration: underline; }
.lista-artigos li > p:last-child { margin-top: 8px; color: var(--muted); max-width: 70ch; }
.lista-artigos--completa h2 { font-size: 1.375rem; }

.faixa-labtech { background: var(--fieb-light); border-top: 1px solid var(--fieb-line); border-bottom: 1px solid var(--fieb-line); }
.faixa-labtech__grade { max-width: var(--largura); margin: 0 auto; padding: 40px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.faixa-labtech h2 { font-size: 1.375rem; }
.faixa-labtech p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.faixa-labtech .botao { flex: none; }

/* ---------- páginas internas ---------- */
.cabecalho-pagina { max-width: var(--largura); margin: 0 auto; padding: 56px var(--gutter) 32px; }
.cabecalho-pagina h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); letter-spacing: -0.022em; }
.cabecalho-pagina > p { margin-top: 14px; font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.sumario, .filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sumario a, .filtros a { padding: 7px 14px; border: 1px solid var(--fieb-line); border-radius: 999px; text-decoration: none; color: var(--fieb-dark); font-weight: 600; font-size: .875rem; }
.sumario a:hover, .filtros a:hover { border-color: var(--fieb-blue); color: var(--fieb-blue); }
.filtros a[aria-current="page"] { background: var(--fieb-dark); border-color: var(--fieb-dark); color: var(--white); }

.servico { max-width: var(--largura); margin: 0 auto; padding: 48px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; scroll-margin-top: 16px; }
.servico__intro { align-self: start; position: sticky; top: 24px; }
.servico__intro h2 { font-size: 1.75rem; }
.servico__intro p { margin-top: 14px; color: var(--muted); }
.servico__intro .servico__normas { font-size: .875rem; color: var(--muted-dark); }
.servico__corpo h3 { font-size: 1.125rem; margin-top: 32px; }
.servico__corpo h3:first-child { margin-top: 0; }
.servico__corpo .lista-traco { margin-top: 12px; }
.etapas { list-style: none; counter-reset: etapa; margin: 14px 0 0; padding: 0; }
.etapas li { counter-increment: etapa; position: relative; padding: 0 0 18px 44px; }
.etapas li::before { content: counter(etapa); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fieb-light); color: var(--fieb-blue); font-weight: 700; font-size: .875rem; }
.etapas li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--fieb-line); }
.etapas li:last-child::after { display: none; }
.etapas strong { color: var(--fieb-dark); }

.sobre { max-width: var(--largura); margin: 0 auto; padding: 16px var(--gutter) 64px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sobre__texto h2 { font-size: 1.5rem; }
.sobre__texto p, .sobre__bio p { margin-top: 14px; max-width: 64ch; font-size: 1.0625rem; }
.sobre__ficha { background: var(--fieb-light); border: 1px solid var(--fieb-line); border-radius: 10px; padding: 24px; }
.sobre__ficha h3 { font-size: .9375rem; color: var(--fieb-blue); margin-top: 20px; }
.sobre__ficha h3:first-child { margin-top: 0; }
.sobre__ficha p, .sobre__ficha ul { margin: 6px 0 0; }
.sobre__ficha ul { padding-left: 18px; }

/* ---------- artigo ---------- */
.artigo { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 24px; }
.artigo__trilha { font-size: .875rem; color: var(--muted); }
.artigo__trilha a { color: var(--muted); }
.artigo__cabecalho h1 { margin-top: 12px; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); letter-spacing: -0.022em; line-height: 1.12; }
.artigo__resumo { margin-top: 16px; font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
.artigo__meta { margin-top: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--fieb-line); color: var(--muted); font-size: .875rem; }
.artigo__capa { margin: 28px 0 0; }
.artigo__capa img { display: block; width: 100%; height: auto; border-radius: 8px; }
.artigo__corpo img { max-width: 100%; height: auto; border-radius: 6px; }
.artigo__corpo blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--fieb-line); color: var(--muted); }
.artigo__corpo { margin-top: 28px; font-size: 1.0625rem; line-height: 1.72; }
.artigo__corpo > * + * { margin-top: 1.05em; }
.artigo__corpo h2 { font-size: 1.375rem; margin-top: 2em; }
.artigo__corpo h2 + * { margin-top: .6em; }
.artigo__corpo ul, .artigo__corpo ol { padding-left: 1.3em; }
.artigo__corpo li + li { margin-top: .4em; }
.artigo__corpo strong { color: var(--fieb-dark); }
.artigo__corpo code { font-family: var(--font-mono); font-size: .9em; background: var(--fieb-light); padding: 1px 5px; border-radius: 4px; }
.artigo__corpo table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.artigo__corpo thead th { text-align: left; background: var(--fieb-light); color: var(--fieb-dark); }
.artigo__corpo th, .artigo__corpo td { padding: 9px 12px; border-bottom: 1px solid var(--fieb-line); vertical-align: top; }
.artigo__corpo td:first-child { font-weight: 700; color: var(--fieb-dark); }
.artigo__fim { margin-top: 40px; padding: 18px 20px; background: var(--fieb-light); border-radius: 8px; }
.artigo--documento .artigo__corpo h2 { font-size: 1.25rem; }

/* ---------- contato ---------- */
.contato { max-width: var(--largura); margin: 0 auto; padding: 8px var(--gutter) 64px; display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 300px); gap: 64px; align-items: start; }
.contato__direto { border-left: 1px solid var(--fieb-line); padding-left: 28px; color: var(--muted); }
.contato__direto h2 { font-size: 1.125rem; }
.contato__direto p { margin-top: 10px; }
.formulario { display: grid; gap: 22px; }
.formulario__dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label, .campo legend { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.campo--opcoes { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.campo--opcoes legend { width: 100%; margin-bottom: 6px; padding: 0; }
.campo--opcoes .opcao { padding: 10px 14px; border: 1px solid #B9C6DD; border-radius: 8px; cursor: pointer; }
.campo--opcoes .opcao:has(input:checked) { border-color: var(--fieb-blue); background: var(--fieb-light); color: var(--fieb-dark); }
.campo--opcoes .campo__erro { width: 100%; }
.opcao { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.opcao input { accent-color: var(--fieb-blue); margin: 4px 0 0; width: 16px; height: 16px; flex: none; }
.campo--aceite .opcao { font-size: .9375rem; color: var(--muted); }
.opcional { color: var(--muted-dark); font-weight: 400; }
.campo__dica { font-size: .875rem; color: var(--muted); margin-top: -2px; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #B9C6DD; border-radius: 8px; padding: 11px 12px;
}
.campo textarea { resize: vertical; min-height: 140px; }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--fieb-blue); outline-offset: 1px; border-color: var(--fieb-blue); }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--danger); }
.campo__erro { color: var(--danger); font-size: .875rem; font-weight: 500; }
.campo-oculto { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario .botao { justify-self: start; }

.aviso { border-left: 4px solid var(--fieb-blue); background: var(--fieb-light); padding: 14px 18px; border-radius: 0 8px 8px 0; }
.aviso h2 { font-size: 1.25rem; }
.aviso p + p, .aviso h2 + p { margin-top: 8px; }
.aviso--ok { border-left-color: var(--success); background: var(--success-soft); }
.aviso--erro { border-left-color: var(--danger); background: var(--danger-soft); color: var(--ink); }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--fieb-line); background: #F8FAFD; }
.rodape > * { max-width: var(--largura); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.rodape__grade { display: flex; justify-content: space-between; gap: 40px; padding-top: 40px; padding-bottom: 28px; }
.rodape__marca p { margin-top: 14px; color: var(--muted); font-size: .9375rem; max-width: 40ch; }
.rodape__links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.rodape__links a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.rodape__links a:hover { color: var(--fieb-blue); text-decoration: underline; }
.rodape__aviso { font-size: .8125rem; color: var(--muted); line-height: 1.55; padding-top: 20px; }
.rodape__aviso, .rodape__autor { max-width: var(--largura); }
.rodape__autor { font-size: .8125rem; color: var(--muted); padding-top: 10px; padding-bottom: 32px; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .abertura__grade { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .unifilar { justify-self: start; max-width: 320px; }
  .frentes__grade { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .frente { padding-right: 0; }
  .frente + .frente { padding: 40px 0 0; margin-top: 40px; border-left: 0; border-top: 1px solid var(--fieb-line); }
  .servico { grid-template-columns: 1fr; gap: 28px; }
  .servico__intro { position: static; }
  .sobre, .contato { grid-template-columns: 1fr; gap: 40px; }
  .contato__direto { border-left: 0; border-top: 1px solid var(--fieb-line); padding: 24px 0 0; }
  .lista-artigos li { grid-template-columns: 1fr; }
  .lista-artigos__meta { grid-row: auto; padding: 0 0 6px; }
  .faixa-labtech__grade { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .js .topo__menu-botao {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    font: inherit; font-weight: 600; font-size: .9375rem; color: var(--fieb-dark);
    background: var(--fieb-light); border: 1px solid var(--fieb-line); border-radius: 8px; cursor: pointer;
  }
  .topo__faixa { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .topo__nav { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .js .topo__nav { display: none; }
  .js .topo[data-aberto] .topo__nav { display: flex; }
  .topo__nav ul { flex-direction: column; gap: 0; }
  .topo__nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--fieb-line); }
  .topo__nav ul a[aria-current="page"] { border-bottom-color: var(--fieb-line); box-shadow: inset 3px 0 0 var(--fieb-blue); padding-left: 12px; }
  .topo__labtech, .topo__painel { text-align: center; padding: 11px 12px; }
  .formulario__dupla { grid-template-columns: 1fr; }
  .rodape__grade { flex-direction: column; }
  .secao__topo { flex-direction: column; gap: 6px; }
}
