/* ============================================================
   Trena, home editorial (2026)
   Folha própria da home, da página Sobre e da página Conteúdo.
   Princípios do redesenho:
   - azul-marinho chapado da marca, sem degradê, brilho, vidro
     ou sombra colorida;
   - seções alternando fundo azul e fundo claro;
   - uma única família geométrica (DM Sans), títulos leves;
   - muito respiro vertical e conteúdo em coluna de 1100px;
   - uma única animação, o fade-in suave ao rolar.
   As classes começam com .h- e valem só dentro de body.home,
   para não conflitar com css/styles.css (páginas internas).
   ============================================================ */

/* ---------- Fonte ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../assets/fonts/dm-sans/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../assets/fonts/dm-sans/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
body.home {
  --navy:        #0E2A66;
  --navy-deep:   #0A1F4E;
  --paper:       #F7F8FA;
  --white:       #FFFFFF;

  --ink:         #0E2A66;   /* títulos sobre fundo claro */
  --ink-2:       #4F6182;   /* texto de apoio, cinza-azulado */
  --ink-3:       #6B7C99;   /* legendas */
  --line:        rgba(14,42,102,.14);
  --line-soft:   rgba(14,42,102,.09);

  --on-navy-2:   rgba(255,255,255,.7);
  --on-navy-3:   rgba(255,255,255,.54);
  --line-navy:   rgba(255,255,255,.2);
  --line-navy-s: rgba(255,255,255,.12);

  --wrap:  1240px;
  --gut:   24px;
  --pad-y: 120px;
  --nav-h: 88px;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.home * { box-sizing: border-box; }
body.home img { max-width: 100%; }
body.home [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
body.home :focus-visible {
  outline: 2px solid #7FB0FF;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Estrutura de seção
   ============================================================ */
.h-sec { padding: var(--pad-y) 0; position: relative; }
.h-sec--navy  { background: var(--navy); color: #fff; }
.h-sec--paper { background: var(--paper); color: var(--ink); }
.h-sec--white { background: var(--white); color: var(--ink); }
.h-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.h-eyebrow {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.h-sec--navy .h-eyebrow { color: var(--on-navy-3); }

.h-h1 {
  font-size: clamp(33px, 5.2vw, 60px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.028em;
  margin: 0;
  max-width: 17ch;
}
.h-h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.026em;
  margin: 0;
  max-width: 20ch;
}
.h-h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 0;
}
.h-lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 22px 0 0;
  max-width: 58ch;
}
.h-sec--navy .h-lead { color: var(--on-navy-2); }
.h-p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.h-sec--navy .h-p { color: var(--on-navy-2); }
.h-p:last-child { margin-bottom: 0; }
.h-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}
.h-sec--navy .h-note { color: var(--on-navy-3); }

.h-head { max-width: 760px; }
.h-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   Botões e links
   ============================================================ */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
/* fundo azul: botão branco com texto azul */
.h-sec--navy .h-btn, .h-btn--on-navy {
  background: #fff;
  color: var(--navy);
}
.h-sec--navy .h-btn:hover, .h-btn--on-navy:hover { background: #E6ECF8; }
/* fundo claro: botão azul com texto branco */
.h-sec--paper .h-btn, .h-sec--white .h-btn, .h-btn--on-paper {
  background: var(--navy);
  color: #fff;
}
.h-sec--paper .h-btn:hover, .h-sec--white .h-btn:hover, .h-btn--on-paper:hover { background: var(--navy-deep); }

.h-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: gap .18s ease, color .18s ease;
}
.h-arrow svg { flex: none; transition: transform .18s ease; }
.h-arrow:hover { gap: 13px; }
.h-sec--navy .h-arrow { color: #fff; }

.h-meta {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 16px 0 0;
}
.h-sec--navy .h-meta { color: var(--on-navy-3); }

/* ============================================================
   Header
   ============================================================ */
/* no topo a barra é branca; ao rolar, e com o menu do celular aberto,
   ela vira azul. Cada peça de dentro troca de cor junto. */
/* a barra flutua: o elemento fixo é só o trilho, e a pílula azul de
   cantos arredondados fica dentro dele, na largura do conteúdo (1240px),
   para a logo nascer na mesma vertical do título do herói. A cor é a
   mesma do começo ao fim da rolagem. */
.h-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  padding: 12px var(--gut);
  pointer-events: none;
}
.h-nav > * { pointer-events: auto; }
.h-nav-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 64px;
  position: relative;
  background: var(--navy-deep);
  border: 1px solid var(--line-navy-s);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 32px;
}
.h-nav-logo { grid-column: 1; display: flex; align-items: center; justify-self: start; }
.h-nav-logo img { height: 19px; width: auto; display: block; }

.h-nav-links { grid-column: 2; display: flex; align-items: center; justify-self: start; gap: 26px; }
.h-nav-links a {
  font-size: 14.5px;
  font-weight: 450;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color .18s ease;
}
.h-nav-links a:hover { color: #fff; }

/* Soluções abre um painel no hover e no foco pelo teclado. O link
   continua navegando no clique, o painel é só uma prévia. */
.h-nav-sol { position: static; display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.82); }
.h-nav-chev { color: currentColor; opacity: .55; transition: transform .18s ease, opacity .18s ease; }
.h-nav-sol:hover .h-nav-chev, .h-nav-sol:focus-within .h-nav-chev { opacity: 1; transform: rotate(180deg); }

.h-mega {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 9px);
  background: var(--navy-deep);
  border: 1px solid var(--line-navy-s);
  border-radius: 16px;
  padding: 30px 0 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.h-nav-sol:hover .h-mega, .h-nav-sol:focus-within .h-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.h-mega-in {
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 40px;
}
.h-mega-in--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-mega-col { display: flex; flex-direction: column; gap: 12px; }
.h-mega-t {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--on-navy-3);
}
.h-mega a {
  font-size: 14.5px;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
  transition: color .15s ease;
}
.h-nav-links .h-mega a { color: #fff; }
.h-nav-links .h-mega a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-mega-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.h-mega-todas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 18px var(--gut) 0;
  border-top: 1px solid var(--line-navy-s);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.h-mega-todas svg { transition: transform .18s ease; }
.h-mega-todas:hover svg { transform: translateX(3px); }

/* coluna fixa: com os links escondidos no celular, sem isto o bloco
   da direita caía na coluna do meio em vez da última. */
.h-nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 16px; }

/* três bandeiras no lugar do antigo botão EN. A ativa fica opaca, as
   outras ficam apagadas até o mouse passar. */
.h-flags { display: flex; align-items: center; gap: 6px; }
.h-flag {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s ease;
}
.h-flag svg { width: 21px; height: 14px; display: block; border-radius: 2px; }
.h-flag:hover { opacity: .8; }
.h-flag.is-on { opacity: 1; }
.h-flag.is-on svg { outline: 1px solid rgba(255,255,255,.5); outline-offset: 1px; border-radius: 2px; }
.h-nav-lang, .h-nav-login {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 450;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}
.h-nav-lang:hover, .h-nav-login:hover { color: #fff; }
.h-nav .h-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
  white-space: nowrap;
  background: #fff;
  color: var(--navy);
}
.h-nav .h-btn:hover { background: #E6ECF8; }

/* o secundário é de contorno, para não virar dois botões cheios */
.h-nav .h-btn--ghost {
  background: none;
  border-color: var(--line-navy);
  color: #fff;
}
.h-nav .h-btn--ghost:hover { background: rgba(255,255,255,.1); }

.h-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-navy);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}
.h-menu {
  margin-top: 9px;
  background: var(--navy-deep);
  border: 1px solid var(--line-navy-s);
  border-radius: 16px;
  padding: 4px 20px 20px;
}
.h-menu[hidden] { display: none; }
.h-menu a, .h-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-navy-s);
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
/* os itens de produto entram recuados dentro do menu do celular */
.h-menu a.h-menu-sub {
  padding: 11px 0 11px 14px;
  font-size: 14.5px;
  color: var(--on-navy-2);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.h-menu-flags { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-navy-s); }
/* as regras gerais do menu esticam todo botão; as bandeiras ficam de fora */
.h-menu-flags .h-flag {
  display: inline-flex;
  width: auto;
  padding: 0;
  border-bottom: 0;
}
.h-menu-flags .h-flag svg { width: 28px; height: 19px; }
.h-menu .h-btn--ghost { background: none; border: 1px solid var(--line-navy); color: #fff; }
.h-menu .h-menu-cta {
  border-bottom: 0;
  margin-top: 18px;
  text-align: center;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 500;
}

/* ============================================================
   1. Hero
   ============================================================ */
.h-hero { padding-top: calc(var(--nav-h) + 68px); padding-bottom: 76px; overflow: hidden; position: relative; }
/* grafismo de raios ao fundo, bem apagado: só para o azul não ficar chapado */
.h-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/grafismo-raios.webp') center center / 170% auto no-repeat;
  opacity: .0175;
  pointer-events: none;
}
.h-hero > .h-wrap { position: relative; z-index: 1; }
.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  /* texto e imagem avançam até 40px além da margem do conteúdo, na
     direção das bordas, sem nunca passar da margem livre da tela */
  margin-inline: calc(-1 * clamp(0px, (100vw - var(--wrap)) / 2, 40px));
}
.h-hero .h-h1 { font-size: clamp(31px, 3.7vw, 47px); max-width: 20ch; }
.h-hero .h-lead { font-size: 17px; max-width: 47ch; margin-top: 20px; }
.h-hero-cta { margin-top: 34px; }

/* título dos cartões claros e escuros de recorte da plataforma
   (o painel da seção de soluções usa este mesmo título) */
.h-mock-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* herói: imagem pronta (foto de campo com cartões da plataforma) */
.h-vis img { display: block; width: 100%; height: auto; }

/* ============================================================
   2. Prova
   ============================================================ */

/* faixa das distribuidoras, no topo da seção clara */
.h-band { margin-top: 72px; }
.h-band-t {
  margin: 0 0 30px;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 400;
  letter-spacing: -.018em;
  color: var(--ink);
}
.h-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.h-marquee-row {
  display: flex;
  width: max-content;
  animation: hMarquee 52s linear infinite;
}
.h-marquee-track {
  display: flex;
  align-items: center;
  gap: 76px;
  padding-right: 76px;
}
.h-marquee img {
  height: 36px;
  width: auto;
  max-width: 158px;
  object-fit: contain;
  filter: grayscale(1) opacity(.55);
}
/* sobre o azul, os arquivos escuros viram brancos */
.h-sec--navy .h-band-t { color: #fff; }
.h-sec--navy .h-marquee img { filter: brightness(0) invert(1) opacity(.62); }
@keyframes hMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.h-statshead { text-align: center; }
.h-statshead .h-h2 { margin: 0 auto; max-width: 22ch; }
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
}
.h-stat {
  padding: 4px 26px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.h-stat:first-child { border-left: 0; }
.h-stat b {
  display: block;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}
.h-stat span {
  display: block;
  margin: 16px auto 0;
  max-width: 22ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ============================================================
   3. Por que agora
   ============================================================ */
.h-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 72px;
  align-items: center;
}
.h-why-text { margin-top: 28px; }
.h-why-fig {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.h-why-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* ============================================================
   4. Soluções
   ============================================================ */
/* topo da seção: texto à esquerda, recorte da plataforma à direita,
   na mesma proporção do herói. */
/* a coluna da esquerda tem a medida do título: subtítulo e cartões
   terminam na mesma vertical da última letra da primeira linha. */
.h-sol-top {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .75fr);
  gap: 80px;
  align-items: center;
}
.h-sol-top .h-head { max-width: none; }
.h-sol-top .h-lead { max-width: none; }
/* 530px é a medida da primeira linha do título nesta faixa de tamanho,
   de "Uma" até o "s" de "as". Subtítulo e cartões param nessa vertical. */
.h-sol-col { max-width: 530px; }
.h-panel-wrap { position: relative; }
/* o recorte vem no modo escuro da plataforma: azul da marca sobre a
   seção clara, para dar destaque. */
.h-panel, .h-panel-bills {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 10px;
  color: #fff;
}
.h-panel { padding: 17px 17px 46px; }
.h-panel .h-mock-title, .h-panel-bills .h-mock-title { color: #fff; }
.h-panel-search {
  margin-top: 12px;
  padding: 8px 11px;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  color: var(--on-navy-3);
}
.h-panel-search svg { flex: none; color: var(--on-navy-2); }
.h-panel-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
/* .h-kpi e não .h-tile: esse nome já é dos cartões das páginas internas. */
.h-kpi {
  padding: 11px 12px 12px;
  border: 1px solid var(--line-navy-s);
  border-radius: 8px;
}
.h-kpi span { display: block; font-size: 9.5px; color: var(--on-navy-3); }
.h-kpi b {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.h-tag {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255,255,255,.09);
  font-size: 9.5px;
  font-style: normal;
  color: var(--on-navy-2);
  font-variant-numeric: tabular-nums;
}
/* sobre o azul, o par do fundo claro perderia contraste e ficaria
   indistinguível para quem não enxerga verde. Estes dois passam em 6,2:1
   e 7,4:1 e continuam separados na simulação de deuteranopia. */
.h-tag--alta  { background: rgba(249,143,168,.14); color: #F98FA8; }
.h-tag--queda { background: rgba(78,210,201,.14);  color: #4ED2C9; }

/* cartão menor sobreposto, como o de erro de faturamento no herói. O anel
   é a cor da seção clara, não uma sombra. */
.h-panel-bills {
  position: relative;
  z-index: 1;
  width: 236px;
  margin: -46px 0 0 -46px;
  padding: 13px 14px 12px;
  outline: 5px solid var(--paper);
  color: #fff;
}
.h-bills {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}
.h-bills li { font-size: 9.5px; line-height: 1.4; color: var(--on-navy-3); }
.h-bill-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--on-navy-2);
}
.h-bill-ico--erro { background: rgba(249,143,168,.16); color: #F98FA8; }
.h-bill-ico--ok   { background: rgba(78,210,201,.16);  color: #4ED2C9; }
.h-bills b {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.h-bill-erro { color: #F98FA8; }
.h-bill-ok   { color: #4ED2C9; }
.h-bills li > span:last-child { display: block; margin-top: 1px; }

/* bloco dos três cartões, na largura inteira da seção. */
.h-sol-cards { margin-top: 96px; }
.h-sol-cards-t {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}

/* três cartões lado a lado, em azul, para destacar do fundo claro.
   A seta fica no topo à direita e os títulos nascem todos na mesma
   altura, com as descrições correndo para baixo. */
.h-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.h-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 14px;
  padding: 24px 26px 28px;
  text-decoration: none;
  color: #fff;
  transition: background-color .18s ease;
}
.h-card:hover { background: var(--navy-deep); }
.h-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.h-card-ico { display: inline-flex; color: #fff; }
.h-card .h-h3 { margin-top: 30px; font-size: 19px; }
.h-card p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--on-navy-2);
}
.h-card-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-navy);
  border-radius: 50%;
  color: #fff;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.h-card:hover .h-card-go { background: #fff; border-color: #fff; color: var(--navy); }

/* a foto abre a seção do passo a passo, na largura inteira. A foto fica
   parada na tela, então ela desliza em relação à página enquanto se rola,
   e um véu azul chapado, sem degradê, costura a foto ao azul da seção.
   Em vez de background-attachment: fixed, que obriga o navegador a
   repintar a faixa a cada quadro, a foto é um ::before fixo recortado
   pelo clip-path da faixa: o efeito é o mesmo e a rolagem não engasga. */
.h-sec--foto { padding-top: 0; }
.h-faixa {
  position: relative;
  height: 420px;
  margin-bottom: var(--pad-y);
  clip-path: inset(0);
}
.h-faixa::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../assets/equipe-campo.webp') center center / cover no-repeat;
  will-change: transform;
}
.h-faixa::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,42,102,.55);
}

/* ------------------------------------------------------------
   Páginas de produto: herói em duas colunas, com o dashboard
   principal à direita, e a grade dos complementares abaixo.
   Os cartões em si vêm de assets/dashboards.css.
   ------------------------------------------------------------ */
.h-prod-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 56px;
  align-items: center;
}
.h-prod-grid .h-h1 { font-size: clamp(30px, 3.4vw, 44px); max-width: 18ch; }
.h-prod-grid .h-lead { max-width: 46ch; }
/* segunda seção: dashboard à esquerda e texto à direita, o inverso do
   herói, para os dois blocos não repetirem a mesma leitura. */
.h-prod-sec2 {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.h-prod-sec2 > * { min-width: 0; }
.h-dashcol { display: grid; gap: 20px; }
.h-dashcol > * { min-width: 0; }

/* teto de 560px por cartão: sem isso um cartão sozinho estica para os
   1.192px da coluna e o gráfico sai ampliado. */
.h-dashgrid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 560px));
  justify-content: start;
  gap: 20px;
  align-items: start;
}
/* item de grade nasce com min-width auto e o conteúdo do cartão
   empurra a coluna além do container nas telas estreitas. */
.h-dashgrid > *, .h-prod-grid > * { min-width: 0; }

@media (max-width: 1000px) {
  .h-prod-grid, .h-prod-sec2 { grid-template-columns: 1fr; gap: 40px; }
  .h-prod-grid .h-h1, .h-prod-grid .h-lead { max-width: none; }
  /* empilhado, o texto vem antes do dashboard */
  .h-prod-sec2 .h-dashcol { order: 2; }
}
@media (max-width: 720px) {
  .h-dashgrid { grid-template-columns: 1fr; margin-top: 32px; }
}

/* ============================================================
   5. Como funciona
   ============================================================ */
.h-steps {
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  position: relative;
}
.h-step { padding-top: 30px; position: relative; }
.h-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: -30px;
  height: 1px;
  background: var(--line-navy-s);
}
.h-step:last-child::before { right: 0; }
.h-step::after {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}
.h-step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: #fff;
}
.h-step p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--on-navy-2);
}

/* ============================================================
   6. Cases
   ============================================================ */
.h-cases {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.h-case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.h-case img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.h-case-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.h-case-seg {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink-3);
}
.h-case-prob {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.h-case-val {
  margin-top: auto;
  padding-top: 22px;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--ink);
}
.h-case-unit { font-size: 16px; color: var(--ink-3); letter-spacing: 0; }

/* ============================================================
   7. Conteúdo
   ============================================================ */
.h-posts {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.h-post {
  border: 1px solid var(--line-navy-s);
  border-radius: 14px;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  background: rgba(255,255,255,.03);
}
.h-post-cat {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--on-navy-3);
}
.h-post h3 {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -.015em;
  color: #fff;
}
.h-post time {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--on-navy-3);
}
.h-news {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line-navy-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.h-news--bare { margin-top: 32px; padding-top: 0; border-top: 0; }
.h-news p { margin: 0; font-size: 17px; color: #fff; max-width: 40ch; }
.h-news form { display: flex; gap: 10px; flex-wrap: wrap; }
.h-news input {
  width: 280px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-navy);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
}
.h-news input::placeholder { color: rgba(255,255,255,.5); }
.h-news input:focus { outline: none; border-color: rgba(255,255,255,.6); }
.h-news-ok { margin: 0; font-size: 15px; color: #fff; }

/* ============================================================
   8. FAQ
   ============================================================ */
.h-faq { margin-top: 56px; border-top: 1px solid var(--line); }
.h-faq details { border-bottom: 1px solid var(--line); }
.h-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--ink);
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.h-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.h-faq p {
  margin: 0 0 28px;
  max-width: 76ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.h-faq a { color: var(--ink); }

/* ============================================================
   9. CTA final e formulário
   ============================================================ */
.h-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.h-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.h-field { display: flex; flex-direction: column; gap: 8px; }
.h-field--full { grid-column: 1 / -1; }
.h-field label { font-size: 13.5px; color: var(--on-navy-2); }
.h-form input, .h-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.h-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234F6182' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.h-form input:focus, .h-form select:focus { outline: none; border-color: #7FB0FF; }
.h-form input::placeholder { color: #8A99B3; }
.h-file {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px dashed var(--line-navy);
  border-radius: 8px;
  color: var(--on-navy-2);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s ease;
}
.h-file:hover { border-color: rgba(255,255,255,.55); }
.h-file input { display: none; }
.h-form button[type="submit"] { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.h-form-err { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #FFB4B6; }
.h-thanks {
  border: 1px solid var(--line-navy);
  border-radius: 14px;
  padding: 40px 32px;
}
.h-thanks b { display: block; font-size: 21px; font-weight: 400; color: #fff; }
.h-thanks p { margin: 10px 0 0; color: var(--on-navy-2); }

/* ============================================================
   10. Rodapé
   ============================================================ */
.h-foot { background: var(--white); border-top: 1px solid var(--line); padding: 76px 0 40px; }
.h-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}
.h-foot-mark {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  padding: 10px 14px;
}
.h-foot-mark img { height: 18px; width: auto; display: block; }
.h-foot-tag { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 32ch; }
.h-foot-social { display: flex; gap: 10px; margin-top: 22px; }
.h-foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  transition: color .18s ease, border-color .18s ease;
}
.h-foot-social a:hover { color: var(--ink); border-color: rgba(14,42,102,.34); }
.h-foot h2 {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.h-foot nav { display: flex; flex-direction: column; gap: 12px; }
.h-foot nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  width: fit-content;
}
.h-foot nav a:hover { color: var(--ink); }
.h-foot-bar {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ============================================================
   Páginas internas novas (Sobre e Conteúdo)
   ============================================================ */
.h-page-hero { padding-top: calc(var(--nav-h) + 92px); padding-bottom: 104px; }
/* o herói de produto não tem link de volta, então o respiro do topo
   encolhe e o conteúdo começa mais perto da barra. */
.h-page-hero.h-prod-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 84px; }
.h-page-hero.h-seg-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 84px; }
.h-prose { max-width: 68ch; }
.h-prose h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 56px 0 16px;
}
.h-prose h2:first-child { margin-top: 0; }
.h-prose p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; }
.h-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.h-list li { border-bottom: 1px solid var(--line); padding: 28px 0; }
.h-list h3 { margin: 10px 0 0; font-size: 20px; font-weight: 400; letter-spacing: -.015em; }
.h-list p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.h-list .h-post-cat { color: var(--ink-3); }
.h-list h3 a { color: inherit; text-decoration: none; }
.h-list h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Páginas internas: hub de Soluções, páginas de segmento e
   Políticas. Mesmos tokens e mesma alternância azul/claro da home.
   ============================================================ */

/* link de volta, no topo das páginas de segmento */

/* herói de segmento em duas colunas: texto à esquerda, foto à direita.
   A classe só entra nas páginas que têm foto; sem ela o topo segue
   em uma coluna, como era antes. */
.h-seg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
}
.h-seg-grid > * { min-width: 0; }
.h-seg-foto {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-navy-s);
}
.h-seg-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* rótulo de bloco, com fio acima */
.h-label {
  margin: 0 0 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink-3);
}
.h-sec--navy .h-label { border-top-color: var(--line-navy-s); color: var(--on-navy-3); }
/* variante sem o fio de cima, usada nas páginas de segmento */
.h-label.h-label--limpo { padding-top: 0; border-top: 0; }

/* grade de cartões do hub (times e setores) */
.h-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.h-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease;
}
.h-tile:hover { border-color: rgba(14,42,102,.34); }
.h-tile-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.h-tile-t svg { flex: none; opacity: .45; transition: opacity .18s ease, transform .18s ease; }
.h-tile:hover .h-tile-t svg { opacity: 1; transform: translateX(3px); }
.h-tile-d { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.h-sec--navy .h-tile {
  background: rgba(255,255,255,.03);
  border-color: var(--line-navy-s);
}
.h-sec--navy .h-tile:hover { border-color: var(--line-navy); }
.h-sec--navy .h-tile-t { color: #fff; }
.h-sec--navy .h-tile-d { color: var(--on-navy-2); }

/* páginas de segmento: os passos de "como a Trena resolve", lado a lado
   em cartões, para a seção não virar uma lista comprida. */
.h-resolve {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.h-resolve-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-navy-s);
  border-radius: 14px;
  padding: 26px 26px 30px;
}
.h-resolve-n {
  font-size: 14px;
  color: var(--on-navy-3);
  font-variant-numeric: tabular-nums;
}
.h-resolve-card h3 {
  margin: 28px 0 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: #fff;
}
.h-resolve-card p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--on-navy-2); }

/* páginas de segmento: as dores do segmento */
.h-pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.h-pain {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 28px;
  background: var(--white);
}
.h-pain b {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
}
.h-pain p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* páginas de segmento: como a Trena resolve, em etapas numeradas */



/* páginas de segmento: outros times ou setores */

/* Políticas */
.h-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.h-legal-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.h-legal-nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.h-legal-nav a:hover { color: var(--ink); }
.h-legal-body article { scroll-margin-top: 96px; }
.h-legal-body article + article { margin-top: 52px; padding-top: 52px; border-top: 1px solid var(--line); }
.h-legal-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 18px;
}
.h-legal-body h3 { font-size: 16.5px; font-weight: 500; color: var(--ink); margin: 30px 0 10px; }
.h-legal-body p, .h-legal-body li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.h-legal-body p { margin: 0 0 14px; }
.h-legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.h-legal-body li { margin-bottom: 8px; }
.h-legal-body strong { color: var(--ink); font-weight: 500; }
.h-legal-body a { color: var(--ink); }
.h-legal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--white);
  line-height: 1.85 !important;
}

@media (max-width: 1000px) {
  .h-tiles, .h-pains { grid-template-columns: 1fr 1fr; }
  .h-resolve { grid-template-columns: 1fr 1fr; }
  .h-legal { grid-template-columns: 1fr; gap: 32px; }
  .h-legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .h-legal-nav a { border-bottom: 0; }
}

@media (max-width: 720px) {
  .h-tiles, .h-pains, .h-resolve { grid-template-columns: 1fr; }
  .h-tiles { margin-top: 32px; }
  .h-label { margin-bottom: 26px; }
}

/* ============================================================
   Fade-in ao rolar (a única animação do site)
   ============================================================ */
.js body.home [data-rev] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.js body.home [data-rev].is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1200px) {
  .h-nav .h-btn--ghost { display: none; }
  .h-nav-links { gap: 20px; }
}

@media (max-width: 1000px) {
  body.home { --pad-y: 92px; }
  .h-nav-in { gap: 20px; }
  .h-nav-links { gap: 14px; }
  .h-nav-links > a, .h-nav-links > span > a { white-space: nowrap; }
  .h-seg-grid { grid-template-columns: 1fr; gap: 36px; }
  .h-seg-foto { max-width: 560px; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 48px; margin-inline: 0; }
  .h-hero .h-h1, .h-hero .h-lead { max-width: none; }
  .h-vis { max-width: 600px; }
  .h-split { grid-template-columns: 1fr; gap: 48px; }
  .h-cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .h-stats { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .h-stat:nth-child(3) { border-left: 0; }
  .h-steps { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
  .h-step:nth-child(2n)::before { right: 0; }
  .h-cases, .h-posts { grid-template-columns: 1fr 1fr; }
  .h-cards { grid-template-columns: 1fr 1fr; margin-top: 62px; }
  .h-card { min-height: 0; }
  .h-card .h-h3 { margin-top: 26px; }
  .h-sol-top { grid-template-columns: 1fr; gap: 48px; }
  .h-sol-top .h-lead { max-width: none; }
  .h-sol-col { max-width: none; }
  .h-sol-cards { margin-top: 72px; }
  .h-panel-wrap { max-width: 520px; }
  .h-panel { padding-bottom: 17px; }
  .h-panel-bills { width: auto; margin: 14px 0 0; outline: 0; }
}

@media (max-width: 860px) {
  /* foto fixa trava ou pisca em vários navegadores de celular */
  .h-faixa { height: 320px; }
  .h-faixa::before { position: absolute; }
  .h-nav-links { display: none; }
  .h-mega { display: none; }
  .h-nav-right .h-btn, .h-nav-login { display: none; }
  .h-burger { display: inline-flex; }
}

@media (max-width: 720px) {
  body.home { --pad-y: 76px; --gut: 20px; font-size: 16px; }
  .h-faixa { height: 260px; }
  .h-h1 { font-size: clamp(32px, 8.6vw, 36px); max-width: none; }
  .h-h2 { font-size: clamp(30px, 8vw, 34px); max-width: none; }
  .h-lead { font-size: 17px; }
  .h-hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
  .h-hero-grid { gap: 40px; }
  .h-band { margin-top: 52px; }
  .h-marquee-track { gap: 52px; padding-right: 52px; }
  .h-marquee img { height: 30px; }
  .h-page-hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 68px; }
  .h-page-hero.h-prod-hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; }
  .h-page-hero.h-seg-hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; }
  .h-cases, .h-posts, .h-steps, .h-stats, .h-form { grid-template-columns: 1fr; }
  .h-stats { row-gap: 38px; margin-top: 48px; }
  .h-stat { border-left: 0; padding: 0; }
  .h-steps { gap: 0; margin-top: 48px; }
  .h-step { padding: 30px 0 0; margin-bottom: 34px; }
  .h-step::before { right: 0; }
  .h-step:last-child { margin-bottom: 0; }
  .h-cards { grid-template-columns: 1fr; margin-top: 48px; }
  .h-sol-cards { margin-top: 56px; }
  .h-card { padding: 24px; }
  .h-card .h-h3 { margin-top: 22px; }
  .h-panel-grid { gap: 10px; }
  .h-bills { gap: 14px 12px; }
  .h-card p { font-size: 16px; }
  .h-news input { width: 100%; }
  .h-news form { width: 100%; }
  .h-news form .h-btn { width: 100%; }
  .h-hero-cta .h-btn, .h-cta-grid .h-btn { width: 100%; }
  .h-foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .h-foot-brand { grid-column: 1 / -1; }
  .h-faq summary { font-size: 17px; padding: 22px 0; }
}

@media (max-width: 480px) {
  .h-foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js body.home [data-rev] { transition: none; }
  .h-marquee-row { animation: none; }
  body.home * { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .h-faixa::before { position: absolute; }
}

/* âncoras do menu e links internos deslizam até a seção em vez de pular */
@media (prefers-reduced-motion: no-preference) {
  html:has(body.home) { scroll-behavior: smooth; }
  /* durante o deslize da roda (js/home.js) cada passo é um scrollTo, que
     não pode virar outra animação */
  html.h-roda:has(body.home) { scroll-behavior: auto; }
}

/* ============================================================
   Artigos (guias/)
   Coluna única de leitura, capa, resumo, índice curto e caixas
   de exemplo. Tudo sobre fundo claro, exceto o cabeçalho.
   ============================================================ */
.h-art-hero { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 150px; }
.h-art-col { max-width: 760px; margin: 0 auto; }
.h-art-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; font-size: 14px; color: var(--on-navy-3); }
.h-art-crumb a { color: var(--on-navy-2); text-decoration: none; }
.h-art-crumb a:hover { color: #fff; }
.h-art-hero .h-h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; max-width: none; }
.h-art-hero .h-lead { font-size: 19.5px; max-width: none; }
.h-art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 34px 0 0; font-size: 14.5px; color: var(--on-navy-3); }
.h-art-byline b { font-weight: 500; color: #fff; }
.h-art-byline span + span::before { content: '·'; margin-right: 14px; }

.h-art-sec { padding-top: 0; display: flow-root; }
.h-art-capa { max-width: 1000px; margin: -110px auto 0; }
.h-art-capa img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 16px; }

.h-art { max-width: 700px; margin: 64px auto 0; color: var(--ink-2); font-size: 18.5px; line-height: 1.8; }
.h-art p { margin: 0 0 24px; }
.h-art h2 { margin: 64px 0 20px; font-size: clamp(25px, 2.6vw, 31px); font-weight: 400; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 24px); }
.h-art h3 { margin: 40px 0 12px; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.012em; color: var(--ink); }
.h-art strong { font-weight: 500; color: var(--ink); }
.h-art a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(14,42,102,.35); text-underline-offset: 3px; }
.h-art a:hover { text-decoration-color: var(--ink); }
.h-art ul, .h-art ol { margin: 0 0 26px; padding-left: 22px; }
.h-art li { margin: 0 0 10px; padding-left: 4px; }
.h-art li::marker { color: var(--ink-3); }
.h-art > p:first-of-type { font-size: 20.5px; line-height: 1.7; color: var(--ink); }

.h-art-resumo { margin: 0 0 44px; padding: 28px 32px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-soft); }
.h-art-resumo p.h-art-t, .h-art-box p.h-art-t, .h-art-indice p.h-art-t { margin: 0 0 12px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.h-art-resumo ul { margin: 0; }
.h-art-resumo li { font-size: 17px; line-height: 1.65; }
.h-art-resumo li:last-child { margin-bottom: 0; }

.h-art-indice { margin: 0 0 12px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.h-art-indice ol { margin: 0; padding-left: 20px; font-size: 16.5px; line-height: 1.6; }
.h-art-indice li { margin-bottom: 6px; }
.h-art-indice a { text-decoration: none; }
.h-art-indice a:hover { text-decoration: underline; }

.h-art-box { margin: 8px 0 30px; padding: 26px 30px; border-left: 3px solid var(--navy); border-radius: 0 12px 12px 0; background: rgba(14,42,102,.05); }
.h-art-box > :last-child { margin-bottom: 0; }
.h-art-box p, .h-art-box li { font-size: 17px; line-height: 1.7; }

.h-art-destaque { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--navy); font-size: 23px; line-height: 1.5; font-weight: 300; letter-spacing: -.012em; color: var(--ink); }

.h-art .h-faq { margin-top: 8px; }
.h-art .h-faq summary { font-size: 18px; }
.h-art .h-faq p { font-size: 17px; }

.h-art-fim { margin: 64px 0 0; padding: 32px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-soft); }
.h-art-fim h2 { margin-top: 0; font-size: 24px; }
.h-art-fim p { font-size: 17px; }
.h-art-fim ul { margin-bottom: 0; }
.h-art-nota { margin: 28px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

.h-art-mais { max-width: 1000px; margin: 88px auto 0; padding-top: 44px; border-top: 1px solid var(--line); }
.h-art-mais > p { margin: 0 0 22px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.h-art-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-art-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.h-art-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.h-art-card span { font-size: 13.5px; color: var(--ink-3); }
.h-art-card b { font-size: 19px; font-weight: 400; line-height: 1.35; letter-spacing: -.012em; }
.h-art-card:hover b { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .h-art-cards { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .h-art-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px; }
  .h-art-hero .h-lead { font-size: 17.5px; }
  .h-art-byline { flex-direction: column; align-items: flex-start; gap: 2px; }
  .h-art-byline span + span::before { content: none; }
  .h-art-capa { margin-top: -64px; }
  .h-art-capa img { border-radius: 12px; aspect-ratio: 16 / 10; }
  .h-art { margin-top: 44px; font-size: 17.5px; line-height: 1.75; }
  .h-art > p:first-of-type { font-size: 19px; }
  .h-art h2 { margin-top: 52px; }
  .h-art-resumo, .h-art-fim { padding: 22px 20px; }
  .h-art-box { padding: 20px 20px; }
  .h-art-destaque { font-size: 20px; padding-left: 18px; }
}
