/* Atende.IA | site público
   1. Tokens  2. Base  3. Layout  4. Tipografia  5. Botões  6. Cabeçalho e rodapé
   7. Hero  8. Console do produto  9. Cartões, fluxo e tabela  10. Dúvidas e fechamento
   11. Chat  12. Campos e diálogos  13. Páginas legais  14. Responsivo

   Contraste WCAG. Sobre o fundo #0a0a0b: texto 18,1:1, apoio 8,2:1, borda de campo 3,8:1.
   Sobre a faixa #121214: texto 17,2:1, apoio 7,7:1. Texto do CTA sobre o accent: 16:1.
   Tema claro, sobre #ffffff: texto 19,2:1, apoio 7,3:1 (6,7:1 sobre a faixa), borda de campo 3,6:1, CTA 6,3:1. */

/* 1. Tokens */
@font-face {
  font-family: "Geist";
  src: url("/geist.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Um fundo, um texto, um neutro (o texto em baixa opacidade) e um accent só para CTAs. */
  --bg: #0a0a0b;
  --bg-band: #121214;
  --text: #f5f5f4;
  --text-2: #a6a6ab;
  --grid: rgb(245 245 244 / 0.035);
  --line: rgb(245 245 244 / 0.14);
  --surface: rgb(245 245 244 / 0.05);
  --surface-2: rgb(245 245 244 / 0.1);
  --field: rgb(245 245 244 / 0.42);
  --accent: #cff56a;
  --on-accent: #0a0a0b;
  --console-bg: #0d0d0e;
  --backdrop: rgb(0 0 0 / 0.72);

  /* Escala tipográfica: tamanho e altura de linha andam juntos. */
  --fs-display: clamp(2.625rem, 7.2vw, 6.5rem);
  --lh-display: 1;
  --fs-h2: clamp(2.125rem, 4.6vw, 4rem);
  --lh-h2: 1.04;
  --fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --lh-h3: 1.25;
  --fs-lede: clamp(1.0625rem, 1.5vw, 1.3125rem);
  --lh-lede: 1.5;
  --fs-body: 1.0625rem;
  --lh-body: 1.6;
  --fs-small: 0.875rem;
  --lh-small: 1.5;

  /* Espaçamento e geometria. */
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(80px, 10vw, 144px);
  --gap: clamp(24px, 3vw, 48px);
  --radius: 6px;
  --cell: 72px;
  --header: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-band: #f5f5f4;
  --text: #0f0f10;
  --text-2: #56565c;
  --grid: rgb(15 15 16 / 0.045);
  --line: rgb(15 15 16 / 0.14);
  --surface: rgb(15 15 16 / 0.04);
  --surface-2: rgb(15 15 16 / 0.08);
  --field: rgb(15 15 16 / 0.5);
  --accent: #3f6b00;
  --on-accent: #ffffff;
  --console-bg: #fafafa;
  --backdrop: rgb(0 0 0 / 0.5);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
}

/* Quadriculado de 1px: a malha do layout fica visível no fundo. */
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 3. Layout */
.shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.rule { border-top: 1px solid var(--line); }
.band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.split > .col-4 { grid-column: span 4; }
.split > .col-5 { grid-column: span 5; }
.split > .col-7 { grid-column: span 7; }
.split > .col-8 { grid-column: span 8; }
.split > .sticky { position: sticky; top: calc(var(--header) + 40px); }

/* 4. Tipografia */
h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 800;
  letter-spacing: -0.045em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  font-weight: 300;
  color: var(--text-2);
}

.support { color: var(--text-2); }

.note {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 400;
  color: var(--text-2);
}

.heading-intro { max-width: 15em; }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lede { max-width: 36em; margin-top: 20px; }
.split h2 + .lede { margin-top: clamp(20px, 2.4vw, 32px); }
.split .lede + .note { margin-top: 24px; }

/* 5. Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:disabled { opacity: 0.5; cursor: progress; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { opacity: 0.86; }

.btn-secondary { border-color: var(--field); color: var(--text); background: var(--bg); }
.btn-secondary:hover { background: var(--surface-2); }

.btn-small { min-height: 40px; padding: 8px 16px; font-size: var(--fs-small); }

.icon-btn {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: none;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); }

.text-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.text-btn:hover { color: var(--text-2); }

/* 6. Cabeçalho e rodapé */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: var(--radius); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  flex: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s ease;
}
.main-nav a:hover { text-decoration-color: var(--text); }

.foot { background: var(--bg-band); border-top: 1px solid var(--line); }
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px var(--gap);
  padding-block: 56px;
}
.foot-brand { margin-bottom: 14px; }
.foot-col h2 {
  margin-bottom: 12px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}
.foot-col li + li { margin-top: 6px; }
.foot-col a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--field); }
.foot-col a:hover { text-decoration-color: var(--text); }

/* 7. Hero */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 4.5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px var(--gap);
  align-items: start;
}
.hero h1 { font-size: clamp(2.625rem, 4.9vw, 5rem); line-height: 1.02; }
.hero .lede { margin-top: clamp(20px, 2.4vw, 32px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.product { padding-bottom: var(--section); }

.console-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px var(--gap);
  margin-top: 32px;
}
.console-notes h3 { margin-bottom: 8px; font-size: 1.0625rem; line-height: 1.4; }
.console-notes p { font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }

/* 8. Console do produto: HTML real, escala com a largura do próprio componente. */
.console {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--console-bg);
}

.console-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  font-size: clamp(0.8125rem, 1.25cqi, 1.0625rem);
  line-height: 1.45;
  font-weight: 400;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 1.5em;
  min-height: 3.4em;
  padding-inline: 1.15em;
  background: var(--bg-band);
  border-bottom: 1px solid var(--line);
}
.console-title { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 600; white-space: nowrap; }
.console-title img { width: 1.3em; height: 1.3em; border-radius: 3px; }
.console-flag { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 0.92em; white-space: nowrap; }

.console-tabs { display: flex; gap: 0.5em; }
.console-tabs button {
  min-height: 2.5em;
  padding: 0.3em 1em;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.console-tabs button:hover { background: var(--surface-2); }
.console-tabs button[aria-selected="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }

.panel { min-height: 0; overflow: hidden; }
.panel h3 { font-size: 1.6em; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.panel-pad { padding: 1.7em 1.9em; }
.muted { color: var(--text-2); font-size: 0.92em; }

/* Conversas */
.panel-conversas { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; }
.conv-list, .conv-side { display: none; }
.conv-item { padding: 0.8em 1.15em; border-bottom: 1px solid var(--line); }
.conv-item.on { background: var(--surface); }
.conv-item div { display: flex; justify-content: space-between; gap: 0.6em; }
.conv-item b { font-weight: 550; }
.conv-item p { overflow: hidden; color: var(--text-2); font-size: 0.92em; white-space: nowrap; text-overflow: ellipsis; }

.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-head { padding: 0.8em 1.3em; border-bottom: 1px solid var(--line); }
.conv-head b { display: block; font-weight: 600; font-size: 1.08em; }
.conv-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7em;
  min-height: 0;
  padding: 1.2em 1.3em;
  overflow: hidden;
}
.bubble { max-width: 80%; padding: 0.6em 0.9em; border-radius: var(--radius); }
.bubble small { display: block; color: var(--text-2); font-size: 0.86em; }
.bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.bubble.out { align-self: flex-end; background: var(--surface-2); }
.conv-input { margin: 0 1.3em 1.1em; padding: 0.65em 0.9em; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); }

.conv-side { flex-direction: column; gap: 1.2em; padding: 1.3em 1.15em; border-left: 1px solid var(--line); }
.conv-side dt { color: var(--text-2); font-size: 0.86em; }
.conv-side dd { font-weight: 500; }
.segment { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0.35em; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-size: 0.92em; }
.segment span { padding: 0.4em; }
.segment .on { border-radius: 5px; background: var(--text); color: var(--bg); font-weight: 600; }
.meter { height: 4px; margin-top: 0.5em; border-radius: 2px; background: var(--surface-2); }
.meter i { display: block; width: 74%; height: 100%; border-radius: 2px; background: var(--text); }

/* Pedidos */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.1em; border: 1px solid var(--line); border-radius: var(--radius); }
.kpis div { padding: 0.65em 0.9em; color: var(--text-2); font-size: 0.86em; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis b { display: block; color: var(--text); font-size: 1.6em; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }

.mini-table { width: 100%; margin-top: 1em; border-collapse: collapse; }
.mini-table th { padding: 0 0.8em 0.6em 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 0.86em; font-weight: 500; text-align: left; }
.mini-table td { padding: 0.65em 0.8em 0.65em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table td b { display: block; font-weight: 550; }
.is-new { font-weight: 650; }

/* Regras */
.fields { display: grid; gap: 0.9em; margin-top: 1.1em; }
.fields dt { color: var(--text-2); font-size: 0.86em; font-weight: 500; }
.fields dd { margin-top: 0.3em; padding: 0.55em 0.8em; border: 1px solid var(--line); border-radius: var(--radius); }
.fields dd.tags { display: flex; flex-wrap: wrap; gap: 0.4em; padding: 0; border: 0; }
.tags span { padding: 0.3em 0.7em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Janela 16:9 quando há largura; abaixo disso, só a conversa, em altura livre. */
@container (min-width: 820px) {
  .console-inner { aspect-ratio: 16 / 9; }
  .panel-conversas { grid-template-columns: 23% minmax(0, 1fr) 20%; }
  .conv-list { display: block; overflow: hidden; border-right: 1px solid var(--line); }
  .conv-side { display: flex; }
}
@container (max-width: 560px) {
  .console-bar { flex-wrap: wrap; gap: 0.3em 1em; padding-block: 0.7em; }
  .console-tabs { order: 3; flex-basis: 100%; }
  .console-tabs button { flex: 1; padding-inline: 0.3em; }
  .bubble { max-width: 92%; }
  .panel-pad { padding: 1.2em 1.15em; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis div:nth-child(3) { border-left: 0; }
  .kpis div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .col-owner { display: none; }
}

/* 9. Cartões, fluxo e tabela */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.card > p { margin-top: 12px; }
.card ul { margin-top: auto; padding-top: 28px; }
.card li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.5; font-weight: 400; }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.flow li { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 32px); }
.flow li + li { border-left: 1px solid var(--line); }
.flow .step { margin-bottom: 36px; font-size: var(--fs-small); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.flow p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.kv { margin-top: auto; padding-top: 24px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-top: 1px solid var(--line); }
.kv dt { color: var(--text-2); }
.kv dd { text-align: right; }

.matrix-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; font-weight: 400; }
.matrix th, .matrix td { padding: 15px clamp(10px, 1.6vw, 20px); text-align: left; }
.matrix thead th { background: var(--bg-band); font-size: var(--fs-small); font-weight: 500; color: var(--text-2); }
.matrix tbody tr { border-top: 1px solid var(--line); }
.matrix tbody th { font-weight: 500; }
.matrix td { color: var(--text); font-weight: 550; }
.matrix td.no { color: var(--text-2); font-weight: 300; }
.matrix-note { margin-top: 16px; }

/* 10. Dúvidas e fechamento */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 550;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text-2); }
.faq summary::after { content: "+"; font-weight: 300; color: var(--text-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 42em; padding-bottom: 26px; color: var(--text-2); }

.closing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px var(--gap); align-items: end; }
.closing h2 { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 800; letter-spacing: -0.045em; }

/* 11. Chat */
.chat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.chat-head strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.chat-head .note { display: block; }

.chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: clamp(220px, calc(100vh - 430px), 440px);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.message {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
  white-space: pre-wrap;
}
.message.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.message.visitor { align-self: flex-end; background: var(--surface-2); }

.typing { display: inline-flex; gap: 5px; padding-block: 6px; }
.typing i { width: 5px; height: 5px; border-radius: 1px; background: var(--text-2); }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: pulse 1.2s infinite; }
  .typing i:nth-child(2) { animation-delay: 0.2s; }
  .typing i:nth-child(3) { animation-delay: 0.4s; }
}
@keyframes pulse { 50% { opacity: 0.3; } }

.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.chat-input input { flex: 1; min-width: 0; }
.chat-input .btn { flex: none; min-height: 44px; padding-inline: 18px; }

.chat-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

/* 12. Campos e diálogos */
input:not([type="checkbox"]), textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}
input:not([type="checkbox"]):hover, textarea:hover { border-color: var(--text-2); }
input:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: transparent; }
::placeholder { color: var(--text-2); opacity: 1; }
textarea { display: block; resize: vertical; }

dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
dialog::backdrop { background: var(--backdrop); }

.lead-form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); }
.lead-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lead-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.08; }
.lead-header p { margin-top: 12px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; color: var(--text-2); }
.lead-header strong { color: var(--text); font-weight: 600; }

.lead-form label { display: grid; gap: 8px; font-size: var(--fs-small); font-weight: 500; }

.lead-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: var(--lh-small);
  color: var(--text-2);
}
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--text); text-underline-offset: 3px; }

.form-feedback { min-height: 1.5em; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; color: var(--text); }
.form-feedback:empty { display: none; }

/* 13. Páginas legais */
.legal-head { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 64px); }
.legal-head h1 { max-width: 11em; font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 1; }
.legal-head .lede { max-width: 36em; margin-top: 28px; }
.legal-head .lede strong, .legal-body strong { color: var(--text); font-weight: 550; }

.legal-layout { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.legal-nav { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; color: var(--text-2); }
.legal-nav h2 { margin-bottom: 12px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; letter-spacing: 0; color: var(--text); }
.legal-nav a { display: block; padding-block: 8px; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; text-decoration: none; transition: background-color 0.15s ease; }
.legal-nav a:hover { background: var(--surface); }

.legal-body { max-width: 44em; }
.legal-body section { padding-block: 28px; border-top: 1px solid var(--line); }
.legal-body section:first-child { padding-top: 0; border-top: 0; }
.legal-body h2 { margin-bottom: 12px; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; letter-spacing: -0.02em; }
.legal-body p { color: var(--text-2); }
.legal-body code { font: inherit; font-weight: 500; color: var(--text); }
.legal-body a { color: var(--text); text-underline-offset: 3px; }

/* 14. Responsivo */
@media (max-width: 1100px) {
  .hero-grid, .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: var(--fs-display); line-height: var(--lh-display); }
  .hero .lede { max-width: 38em; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(3) { border-left: 0; }
  .flow li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header: 104px; }
  .topbar-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; min-height: 0; }
  .main-nav { order: 3; flex-basis: 100%; gap: 22px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
  .split > .col-4, .split > .col-5, .split > .col-7, .split > .col-8 { grid-column: 1 / -1; }
  .split > .sticky { position: static; }
  .split > .col-4 + .col-8, .split > .col-5 + .col-7 { margin-top: 40px; }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .cards, .console-notes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .topbar .brand span { display: none; }
}

@media (max-width: 360px) {
  .topbar-inner { column-gap: 8px; }
  .topbar .btn-small { padding-inline: 10px; font-size: 0.8125rem; }
}

@media (max-width: 640px) {
  :root { --cell: 48px; }
  .actions .btn { width: 100%; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li + li, .flow li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .flow .step { margin-bottom: 16px; }
  .message { max-width: 92%; }
  .chat-history { height: 360px; padding: 16px; }
  .chat-head, .chat-input, .chat-bottom { padding-inline: 16px; }
  .quick-actions { padding-inline: 16px; }
  .matrix th, .matrix td { padding-block: 12px; font-size: 0.8125rem; }
}

@media print {
  .topbar, .foot, .legal-nav { display: none; }
}
