/* ==========================================================================
   Branch Master · landing page
   Layout: página única em faixas escuras e claras alternadas, grade de 12
   colunas, conteúdo até 1200px. Motivo visual: ramos que se juntam num
   tronco, como o "N" do logo (hero e passo a passo).
   Paleta A da especificação (Grafite e Verde Petróleo).
   ========================================================================== */

/* Fonte provisória com a mesma largura da Inter, para o texto não pular quando a
   fonte do Google chega (reduz o CLS no celular). Fator medido contra a Arial.
   A Manrope em negrito já tem a largura da Arial Bold, por isso vai direto para a Arial. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 106.24%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 101.11%; }

:root {
  /* Paleta A (especificação, seção 3.1) */
  --color-bg-dark: #0F1A1F;
  --color-primary: #14424A;
  --color-accent: #2FB59A;
  --color-bg-light: #F6F5F1;
  --color-text: #2B2F33;
  --color-border: #C9CCC8;
  --color-text-on-dark: #F6F5F1;

  /* Derivadas */
  --color-on-accent: #0F1A1F;       /* texto sobre o botão verde: branco não passa no contraste AA */
  --color-bg-light-alt: #ECEEEA;
  --color-surface: #FFFFFF;
  --color-dark-raise: #16252B;
  --color-muted: #5A6166;
  --color-input-line: #7D8480;
  --color-on-dark-muted: rgba(246, 245, 241, .74);
  --color-line-dark: rgba(246, 245, 241, .13);
  --color-danger: #B42318;

  --font-display: "Manrope", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala da especificação (3.3): desktop / mobile */
  --fs-h1: clamp(36px, 1.6rem + 2.6vw, 56px);
  --fs-h2: clamp(28px, 1.25rem + 1.5vw, 40px);
  --fs-h3: clamp(20px, 1.1rem + .3vw, 22px);
  --fs-body: clamp(16px, .95rem + .2vw, 18px);
  --fs-small: 14px;

  --header-h: 72px;
  --radius: 4px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg-dark);
  color: var(--color-text);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
address { font-style: normal; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 3px solid var(--focus, var(--color-accent)); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.s-dark  { background: var(--color-bg-dark); color: var(--color-text-on-dark); --focus: var(--color-accent); }
.s-light { background: var(--color-bg-light); color: var(--color-text); --focus: var(--color-primary); }
.s-alt   { background: var(--color-bg-light-alt); }
.band { padding-block: clamp(72px, 9vw, 128px); }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; max-width: 24ch; }
.s-light .h2 { color: var(--color-primary); }
.lede { font-size: var(--fs-body); max-width: 60ch; }
.s-dark .lede { color: var(--color-on-dark-muted); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--color-surface); color: var(--color-text); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 8px; }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 86%, #fff); }
.btn-outline { border-color: rgba(246, 245, 241, .42); color: var(--color-text-on-dark); background: transparent; }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-input-line); }
.btn-ghost:hover { border-color: var(--color-primary); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--color-text-on-dark); --focus: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.header.is-solid { background: var(--color-bg-dark); border-bottom-color: var(--color-line-dark); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; color: var(--color-text-on-dark); }
.logo svg { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--color-on-dark-muted); padding-block: 6px; }
.nav a:hover { color: var(--color-text-on-dark); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--color-line-dark); color: inherit; width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.mnav { display: none; }
@media (max-width: 960px) {
  .nav, .header-in > .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mnav { display: grid; gap: 4px; padding: 8px clamp(16px, 4vw, 40px) 24px; background: var(--color-bg-dark); border-top: 1px solid var(--color-line-dark); }
  .mnav a:not(.btn) { text-decoration: none; padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--color-line-dark); }
  .mnav .btn { margin-top: 16px; }
}

/* ---------- 1 · Hero ---------- */
/* Ocupa a tela inteira ao abrir a página (sem a faixa da seção seguinte aparecendo embaixo).
   svh = altura da tela descontando a barra do navegador no celular; vh é a reserva para navegador antigo. */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(64px, 8vw, 112px);
}
.hero > .wrap { width: 100%; }
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; max-width: 12ch; }
.hero .lede { margin-top: 28px; font-size: clamp(17px, 1rem + .3vw, 20px); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.support { margin-top: 24px; font-size: var(--fs-small); color: var(--color-on-dark-muted); max-width: 52ch; }

/* Ilustração: o único momento animado da página. Os ramos se desenham uma vez,
   o nó acende e as barras sobem. Em repouso (e com movimento reduzido), tudo desenhado. */
.viz { max-width: 480px; width: 100%; justify-self: center; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz .chip { fill: var(--color-dark-raise); stroke: var(--color-line-dark); }
.viz .chip-t { fill: var(--color-text-on-dark); font: 500 12.5px var(--font-body); }
.viz .br { fill: none; stroke: var(--color-accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1s cubic-bezier(.6, 0, .2, 1) backwards; }
.viz .br:nth-child(1), .viz .br:nth-child(5) { animation-delay: .15s; }
.viz .br:nth-child(2), .viz .br:nth-child(4) { animation-delay: .25s; }
.viz .br:nth-child(3) { animation-delay: .35s; }
.viz .hub { fill: var(--color-accent); transform-box: fill-box; transform-origin: center; animation: pop .4s 1.3s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.viz .hub-ring { fill: none; stroke: var(--color-accent); opacity: .35; transform-box: fill-box; transform-origin: center; animation: ring 1.1s 1.4s ease-out backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes ring { from { transform: scale(.4); opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } }
.trunk { width: 2px; height: 22px; margin: 0 auto; background: var(--color-accent); }
.dash { background: var(--color-dark-raise); border: 1px solid var(--color-line-dark); border-radius: 6px; padding: 18px 18px 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.dash-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.dash-h b { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.dash-h span { color: var(--color-on-dark-muted); display: inline-flex; align-items: center; gap: 6px; }
.dash-h span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--color-line-dark); }
.kpi small { display: block; font-size: 11.5px; color: var(--color-on-dark-muted); line-height: 1.3; }
.kpi strong { display: block; white-space: nowrap; font: 700 clamp(17px, 1rem + .5vw, 22px)/1.2 var(--font-display); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 6px; height: 74px; margin-top: 14px; }
.bars i { display: block; background: color-mix(in srgb, var(--color-text-on-dark) 18%, transparent); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: grow .5s calc(1.5s + var(--n, 0) * 40ms) cubic-bezier(.2, .7, .2, 1) backwards; }
.bars i:last-child { background: var(--color-accent); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-on-dark-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- 2 · Problema ---------- */
.split { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split > .sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.pains li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.pains .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 9%, transparent); }
.pains p { padding-top: 9px; }
/* Frase de fechamento: uma linha só a partir de 1024px; a segunda frase no verde do CTA */
.close-line { margin-top: clamp(48px, 6vw, 72px); font: 700 clamp(22px, 1rem + 1.4vw, 30px)/1.3 var(--font-display); letter-spacing: -.02em; color: var(--color-primary); }
.close-line span { color: var(--color-accent); }
@media (min-width: 1024px) { .close-line { white-space: nowrap; font-size: min(2.4vw, 36px); } }

/* ---------- 3 · Entregas ---------- */
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.deliver { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deliver .card:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .deliver { grid-template-columns: repeat(6, minmax(0, 1fr)); } .deliver .card { grid-column: span 2; } .deliver .card:nth-child(n+4) { grid-column: span 3; } }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--color-primary); line-height: 1.25; letter-spacing: -.01em; }
.card .ico { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; color: var(--color-primary); border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent); margin-bottom: 6px; }
.scope-note { margin-top: 28px; font-size: var(--fs-small); color: color-mix(in srgb, var(--color-text) 72%, transparent); }

/* ---------- 4 · Modelo (tabela comparativa; vira cartões empilhados abaixo de 900px) ---------- */
.compare { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) {
  .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); gap: 0 16px; }
  .compare .col { grid-row: span 5; display: grid; grid-template-rows: subgrid; }
}
.col { border: 1px solid var(--color-line-dark); border-radius: var(--radius); padding: 8px 24px 12px; min-width: 0; }
.col h3 { font-size: 18px; font-weight: 700; padding: 18px 0 16px; border-bottom: 1px solid var(--color-line-dark); color: var(--color-on-dark-muted); }
.col ul { display: contents; list-style: none; }
.col li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--color-line-dark); color: var(--color-on-dark-muted); font-size: 16px; line-height: 1.5; }
.col li:last-child { border-bottom: 0; }
.col li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin: 9px 7px 0; background: color-mix(in srgb, var(--color-text-on-dark) 35%, transparent); }
.col.is-us { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 9%, var(--color-bg-dark)); }
.col.is-us h3 { color: var(--color-text-on-dark); display: flex; align-items: center; gap: 10px; }
.col.is-us h3 svg { height: 20px; width: auto; color: var(--color-accent); }
.col.is-us li { color: var(--color-text-on-dark); font-weight: 500; }
.col.is-us li::before { display: none; }
.col.is-us li .ic { width: 20px; height: 20px; color: var(--color-accent); stroke-width: 2.2; margin-top: 2px; }
@media (max-width: 899px) { .col.is-us { order: -1; } }

/* ---------- 5 · Como funciona (horizontal no desktop, vertical no mobile) ---------- */
.steps { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
.steps .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary); color: var(--color-text-on-dark); font: 700 17px var(--font-display); position: relative; z-index: 1; }
.steps li:first-child .dot { background: var(--color-accent); color: var(--color-on-accent); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: -24px; width: 2px; background: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.steps h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--color-primary); line-height: 1.25; padding-top: 8px; }
.steps p { margin-top: 8px; max-width: 34ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .steps li:not(:last-child)::after { left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps h3 { padding-top: 0; }
}

/* ---------- 6 · Para quem (só o foco comercial vira cartão) ---------- */
.segs { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .segs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seg-card { padding: 28px 24px; display: grid; gap: 12px; align-content: start; border-radius: var(--radius); }
.seg-card .ic { width: 28px; height: 28px; color: var(--color-primary); margin-bottom: 8px; }
.seg-card h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--color-primary); }
.seg-card.is-focus { background: var(--color-primary); color: var(--color-text-on-dark); }
.seg-card.is-focus h3 { color: var(--color-text-on-dark); }
.seg-card.is-focus .ic { color: var(--color-accent); }
.signal { margin-top: 24px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px clamp(20px, 3vw, 32px); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); border-radius: var(--radius); background: var(--color-surface); }
.signal .ic { color: var(--color-primary); width: 28px; height: 28px; }
.signal strong { color: var(--color-primary); }

/* ---------- 7 · Projetos (índice: régua do segmento em cima, sem caixa) ---------- */
.projects { display: grid; gap: 40px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proj { border-top: 2px solid var(--color-primary); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tag { font: 700 var(--fs-h3)/1.25 var(--font-display); color: var(--color-primary); letter-spacing: -.01em; }
.proj p { font-size: 17px; }

/* ---------- 8 · Diferenciais ---------- */
.diffs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line-dark); }
.diffs li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--color-line-dark); }
.diffs .ck { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 16%, transparent); color: var(--color-accent); }
.diffs .ck .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.diffs p { color: var(--color-on-dark-muted); padding-top: 3px; }
.diffs strong { display: block; color: var(--color-text-on-dark); font: 700 19px/1.35 var(--font-display); margin-bottom: 4px; }

/* ---------- 9 · FAQ ---------- */
.faq { border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 600 clamp(17px, 1rem + .2vw, 19px)/1.4 var(--font-display); color: var(--color-primary); }
.faq summary::-webkit-details-marker { display: none; }
.pm { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--color-border); position: relative; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s; }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 52px 24px 0; max-width: 66ch; }

/* ---------- 10 · Contato + formulário ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.contact-copy .lede { margin-top: 20px; }
.contact-copy .mail { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-line-dark); font-size: var(--fs-small); color: var(--color-on-dark-muted); display: grid; gap: 4px; }
.contact-copy .mail span { color: var(--color-text-on-dark); font-weight: 600; font-size: 16px; user-select: all; }
.form-card { background: var(--color-bg-light); color: var(--color-text); border-radius: 6px; padding: clamp(20px, 4vw, 40px); --focus: var(--color-primary); min-width: 0; }
.form { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label { font-size: var(--fs-small); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.field label .opt { font-weight: 500; color: var(--color-muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-input-line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%232B2F33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--color-danger) !important; }
.err { font-size: 13px; color: var(--color-danger); font-weight: 500; }
.count { font-size: 12px; color: var(--color-muted); font-variant-numeric: tabular-nums; justify-self: end; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.consent label { font-size: 15px; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-primary); }
.consent a { color: var(--color-primary); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.submit { min-width: 240px; }
.form-hint { font-size: 13px; color: var(--color-muted); }
.success { display: grid; gap: 16px; padding-block: 24px; }
.success:focus { outline: none; } /* recebe foco só para o leitor de tela anunciar o resultado */
.success .ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-on-accent); }
.success .ok .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.success h3 { font-size: var(--fs-h3); color: var(--color-primary); }
.success p { max-width: 52ch; }
.success-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- 11 · Rodapé ---------- */
.footer { border-top: 1px solid var(--color-line-dark); padding-block: 56px 28px; font-size: var(--fs-small); color: var(--color-on-dark-muted); }
.foot-top { display: grid; gap: 28px 64px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr) auto; } }
.foot-brand .logo svg { height: 28px; }
.foot-brand p { margin-top: 16px; max-width: 48ch; font-size: 15px; line-height: 1.55; }
.foot-contact { display: grid; gap: 6px; }
@media (min-width: 900px) { .foot-contact { text-align: right; } }
.foot-contact a { color: var(--color-text-on-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-contact a:hover { color: var(--color-accent); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--color-line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
@media (max-width: 899px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } } /* não fica sob o botão flutuante do WhatsApp */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a, .foot-links .linklike { color: var(--color-text-on-dark); text-decoration: none; }
.foot-links a:hover, .foot-links .linklike:hover { color: var(--color-accent); }

/* ---------- WhatsApp flutuante ---------- */
.wa {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .2s, opacity .2s; --focus: var(--color-primary);
}
.wa:hover { transform: translateY(-2px); }
.wa .ic { width: 26px; height: 26px; stroke-width: 1.8; }
/* Em telas onde o aviso de cookies cobriria o botão, o botão espera a escolha (sem pular de lugar) */
@media (max-width: 911px) { .has-cookie .wa { opacity: 0; visibility: hidden; } }

/* ---------- Banner de cookies (Recusar e Aceitar com o mesmo peso, LGPD) ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  max-width: 720px; margin-inline: auto; background: var(--color-dark-raise); color: var(--color-text-on-dark);
  border: 1px solid var(--color-line-dark); border-radius: 6px; padding: 16px 18px;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  font-size: var(--fs-small); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); --focus: var(--color-accent);
}
.cookie p { flex: 1 1 320px; color: var(--color-on-dark-muted); }
.cookie p a { color: var(--color-text-on-dark); }
.cookie .acts { display: flex; gap: 10px; }
.cookie .btn { min-height: 40px; padding: 0 18px; font-size: 14px; border-color: rgba(246, 245, 241, .42); color: var(--color-text-on-dark); background: transparent; }
.cookie .btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Modal da Política de Privacidade ---------- */
.policy {
  width: min(760px, calc(100% - 32px)); max-height: min(88vh, 960px);
  padding: 0; border: 0; border-radius: 8px;
  background: var(--color-bg-light); color: var(--color-text); --focus: var(--color-primary);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.policy[open] { display: flex; flex-direction: column; }
.policy::backdrop { background: rgba(15, 26, 31, .64); }
.policy-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 40px); border-bottom: 1px solid var(--color-border); }
.policy-head h2 { font-size: clamp(22px, 1.1rem + .8vw, 28px); color: var(--color-primary); letter-spacing: -.01em; }
.policy-close { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); display: grid; place-items: center; cursor: pointer; }
.policy-close:hover { border-color: var(--color-primary); }
.policy-close .ic { width: 20px; height: 20px; }
.policy-body { overflow-y: auto; padding: 24px clamp(20px, 4vw, 40px) 40px; font-size: 16px; line-height: 1.65; }
.policy-body > * + * { margin-top: 12px; }
.policy-body h3 { margin-top: 28px; font-size: 18px; color: var(--color-primary); }
.policy-body ul { padding-left: 20px; }
.policy-body li + li { margin-top: 6px; }
.policy-date { font-size: var(--fs-small); color: var(--color-muted); }
