/* Wita — site institucional (Manual de Marca v2 + Gestalt v2) */
:root {
  --wita-paper: #FAF8F1;
  --wita-surface: #FFFFFF;
  --wita-ink: #242822;
  --wita-muted: #566057;
  --wita-line: #DADFD5;
  --wita-stage-line: #CFD6CC;
  --wita-input-line: #818A7D;
  --wita-pine: #144D43;
  --wita-pine-hover: #103C34;
  --wita-selected: #E3ECE5;
  --wita-clay: #8A4D35;
  --wita-ok: #205440;
  --wita-ok-bg: #E3EFE6;
  --wita-warn: #704C1B;
  --wita-warn-bg: #F7ECD8;
  --wita-font-ui: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wita-font-editorial: "Instrument Serif", Georgia, serif;
  --wita-radius-control: 6px;

  --brand: var(--wita-pine);
  --brand-bg: var(--wita-pine);
  --brand-hover: var(--wita-pine-hover);
  --brand-ink: var(--wita-paper);
  --brand-soft: var(--wita-selected);
  --brand-text: var(--wita-pine);
  --clay: var(--wita-clay);
  --bg: var(--wita-paper);
  --bg-alt: #F3F2EC;
  --surface: var(--wita-surface);
  --text: var(--wita-ink);
  --muted: var(--wita-muted);
  --border: var(--wita-line);
  --stage-border: var(--wita-stage-line);
  --input-line: var(--wita-input-line);
  --radius: var(--wita-radius-control);
  --radius-panel: 8px;
  --max: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #6CC2AE;
  --brand-bg: #1F6E5F;
  --brand-hover: #268271;
  --brand-ink: #FAF8F1;
  --brand-soft: #1C352E;
  --brand-text: #8AD1B3;
  --clay: #DDA187;
  --wita-ok: #8AD1B3;
  --wita-ok-bg: #18342A;
  --wita-warn: #E8C48B;
  --wita-warn-bg: #332818;
  --bg: #111815;
  --bg-alt: #16201C;
  --surface: #1B2722;
  --text: #FAF8F1;
  --muted: #B6C2B9;
  --border: #2C3C35;
  --stage-border: #33463E;
  --input-line: #7B8E85;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--wita-font-ui);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:root[data-theme="dark"] a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2 {
  font-family: var(--wita-font-editorial);
  font-weight: 400;
  margin: 0 0 8px;
}
h1 { font-size: clamp(2.6rem, 4.6vw, 3.65rem); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.14; letter-spacing: -.015em; }
h3 {
  font-family: var(--wita-font-ui);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--brand-bg); color: var(--brand-ink); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* Cabeçalho sticky 60px (4 links + link limpo Acessar o app) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; color: var(--brand); text-decoration: none; flex-shrink: 0; }
.brand svg { height: 24px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-app-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 4px;
}
.header-app-link:hover { text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--input-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle { display: none; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none; margin: 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { padding: 12px; }
  .header-actions { margin-left: auto; gap: 8px; }
}
@media (max-width: 480px) {
  .header-app-link { font-size: .84rem; }
  .brand svg { height: 21px; }
}

/* Botões e links de ação (1 botão pinho sólido por viewport) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); font-weight: 600; font-size: .94rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary {
  background: var(--brand-bg);
  border-color: transparent;
  color: var(--brand-ink);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: transparent;
  color: var(--brand-ink);
}
.btn-ghost {
  border-color: var(--input-line);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text);
}
.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-weight: 600;
  font-size: .94rem;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 38%, transparent);
  text-underline-offset: 4px;
}
.link-secondary:hover { text-decoration-color: currentColor; }

/* Seções (somente main > section para não afetar <section class="wc-box">) */
main > section { padding: 48px 0; }
@media (min-width: 720px) { main > section { padding: 60px 0; } }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head p { color: var(--muted); font-size: 1rem; max-width: 58ch; margin-bottom: 0; }

/* Eixo editorial unificado de 2 colunas (.38fr / .62fr) */
.split-axis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 48px;
  align-items: start;
}
@media (min-width: 860px) {
  .split-axis { grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); }
}
.split-head p { color: var(--muted); font-size: .98rem; max-width: 44ch; }
.split-head p:last-child { margin-bottom: 0; }

/* Dobra 1 — Hero Editorial + Palco Interativo (.hero-stage) */
main > section.hero { padding: 40px 0 56px; }
@media (min-width: 720px) { main > section.hero { padding: 56px 0 72px; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; }
}
.hero .lead { font-size: 16.5px; color: var(--muted); max-width: 46ch; margin: 12px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0 16px; }
.hero-note { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 480px) {
  h1 { font-size: 2.35rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn-primary { width: 100%; }
  .hero-cta .link-secondary { justify-content: center; }
}

/* Palco de produto elevado (Figura-Fundo) */
.hero-stage {
  background: var(--surface);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-panel);
  box-shadow: 0 1px 2px rgba(24, 26, 23, .04), 0 12px 32px rgba(20, 77, 67, .06);
  overflow: hidden;
  min-width: 0;
}
:root[data-theme="dark"] .hero-stage {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .24), 0 12px 32px rgba(0, 0, 0, .28);
}
.hs-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 38px;
  padding: 0 10px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hs-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--wita-font-ui);
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.hs-tab:hover { color: var(--text); }
.hs-tab.is-active { color: var(--brand); }
.hs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 0;
  height: 2px;
  background: var(--brand);
}
@media (max-width: 480px) {
  .hs-tab { font-size: 12.5px; padding: 0 10px; }
}

.hs-panel { min-height: 300px; }
@media (min-width: 620px) {
  .hs-panel { min-height: 374px; }
}
.hs-panel[hidden] { display: none; }

/* Aba 1: Conversas */
.hs-conversas {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 620px) {
  .hs-conversas { grid-template-columns: 200px 1fr; }
}
.hb-queue {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
@media (max-width: 619px) {
  .hb-queue { display: none; }
}
.hb-col-head {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hb-list { display: flex; flex-direction: column; }
.hb-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
}
.hb-item:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.hb-item.is-active {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--brand);
}
.hb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
}
.hb-row strong { font-size: 13px; font-weight: 600; color: var(--text); }
.hb-row time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
}
.hb-tag.warn { background: var(--wita-warn-bg); color: var(--wita-warn); }
.hb-tag.ok { background: var(--wita-ok-bg); color: var(--wita-ok); }
.hb-queue-foot {
  margin-top: auto;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hb-queue-foot strong { color: var(--text); font-weight: 600; }

.hb-thread { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.hb-thread-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hb-thread-head strong { display: block; font-size: 13.5px; color: var(--text); }
.hb-thread-head > div span { font-size: 12px; color: var(--muted); }
/* Chip secundário dentro de preview — NUNCA pinho sólido (Semelhança / Figura-Fundo) */
.hb-action-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  white-space: nowrap;
}
.hb-handoff {
  margin: 10px 14px 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.hb-handoff > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.hb-handoff span { color: var(--muted); min-width: 54px; flex-shrink: 0; }
.hb-handoff strong { color: var(--text); font-weight: 600; }

.hb-messages {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hb-msg {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: var(--radius-panel);
  font-size: 13px;
  line-height: 1.42;
}
.hb-msg small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.hb-msg.in {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.hb-msg.out {
  align-self: flex-end;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
}

/* Aba 2: Quadro (mini-Kanban 3 colunas) */
.hs-quadro { padding: 12px; background: var(--bg-alt); }
.hk-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) {
  .hk-board { grid-template-columns: 1fr; }
}
.hk-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hk-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hk-col-head small { color: var(--muted); font-size: 11.5px; }
.hk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hk-card strong { font-size: 12.5px; color: var(--text); }
.hk-card > span:not(.hb-tag) { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Aba 3: Gestão (KPIs tabulares + radar) */
.hs-gestao { padding: 14px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.hg-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 480px) {
  .hg-kpis { grid-template-columns: 1fr; }
}
.hg-kpi {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hg-kpi span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hg-kpi strong { font-size: 1.35rem; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.hg-kpi small { font-size: 11.5px; color: var(--muted); }
.hg-radar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hg-radar-head {
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.hg-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hg-row:last-child { border-bottom: 0; }
.hg-row strong { display: block; font-size: 13px; color: var(--text); }
.hg-row > div span { font-size: 12px; color: var(--muted); }

/* Dobra 2 — Duas Visões, Um Só Fluxo (#produto) */
.role-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .role-cards { grid-template-columns: 1fr 1fr; }
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 22px 24px;
}
.role-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.role-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.whitelabel-strip {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  color: var(--muted);
}
.whitelabel-strip strong { color: var(--text); }

/* Dobra 3 — Como funciona (alinhado ao eixo .38fr / .62fr) */
.steps-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.step-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 48px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
@media (min-width: 860px) {
  .step-row { grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); }
}
.step-title { display: flex; align-items: baseline; gap: 14px; }
.step-num {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.step-row p { margin: 0; color: var(--muted); max-width: 62ch; }

/* Dobra 4 — Recursos essenciais (.feature-lead no eixo .38fr / .62fr + grade 2x2) */
.features-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 48px;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .features-editorial { grid-template-columns: repeat(2, 1fr); }
}
.feature-lead {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 860px) {
  .feature-lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
    gap: 12px 48px;
    align-items: baseline;
  }
}
@media (min-width: 720px) and (max-width: 859px) {
  .feature-lead { grid-column: 1 / -1; }
}
.feature-lead h3 { font-size: 1.18rem; }
.feature-lead p { margin: 0; color: var(--muted); max-width: 60ch; }
.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.feature-item p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 52ch; }

/* Dobra 5 — Segurança, LGPD + FAQ (ambos no eixo .38fr / .62fr) */
.checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.checklist li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.checklist p { margin: 0; color: var(--muted); font-size: .95rem; }
.checklist strong { color: var(--text); }

.faq-band {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 0 2px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--brand); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 12px; font-size: .95rem; max-width: 66ch; }

/* Dobra 6 — Fechamento em Pinho Sólido (#contato) */
main > section.section-closing { padding: 0 0 64px; }
.contact-box {
  background: var(--wita-pine);
  color: var(--wita-paper);
  border: 1px solid var(--wita-pine);
  border-radius: var(--radius-panel);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
  align-items: center;
}
@media (min-width: 820px) {
  .contact-box { grid-template-columns: 1fr auto; }
}
:root[data-theme="dark"] .contact-box {
  border-color: #26695C;
}
.contact-box .eyebrow { color: #E9C9B7; }
.contact-box h2 { color: var(--wita-paper); margin-bottom: 10px; }
.contact-box p { color: #DCE6E1; max-width: 56ch; margin: 0; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.btn-inverted {
  background: var(--wita-paper);
  color: var(--wita-pine);
  border-color: transparent;
}
.btn-inverted:hover {
  background: #FFFFFF;
  color: var(--wita-pine-hover);
}
.link-inverted {
  color: var(--wita-paper);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: underline;
  text-decoration-color: rgba(250, 248, 241, .45);
  text-underline-offset: 4px;
  white-space: nowrap;
}
.link-inverted:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.contact-box :focus-visible { outline-color: var(--wita-paper); }
@media (max-width: 480px) {
  .contact-box { padding: 26px 20px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn-inverted { width: 100%; }
  .contact-actions .link-inverted { text-align: center; }
}

/* Rodapé */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: .9rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand svg { height: 21px; width: auto; color: var(--brand); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

/* Páginas legais */
.legal { padding: 48px 0 76px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal h2 { font-family: var(--wita-font-ui); font-weight: 600; font-size: 1.15rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal .back { display: inline-block; margin-bottom: 22px; font-size: .92rem; font-weight: 500; }

/* Widget de chat (cabeçalho claro, raio 8px, preservando padding: 0 do hotfix 7d2f394) */
.wc-fab {
  position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 16px; background: var(--brand-bg); color: var(--brand-ink);
  font: 600 14.5px/1 var(--wita-font-ui);
  box-shadow: 0 4px 14px rgba(36, 40, 34, .14); cursor: pointer;
  transition: opacity .18s, transform .18s, background-color .15s;
}
.wc-fab:hover { background: var(--brand-hover); }
.wc-fab.is-hidden-hero { opacity: 0; pointer-events: none; transform: translateY(8px); }
.wc-box {
  position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 51;
  width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100vh - 36px));
  padding: 0;
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  box-shadow: 0 12px 32px rgba(24, 26, 23, .14); overflow: hidden;
}
.wc-box[hidden], .wc-fab[hidden], .wc-chips[hidden] { display: none; }
.wc-head {
  flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--surface); color: var(--text);
  border-bottom: 1px solid var(--border);
}
.wc-title strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.wc-title small { display: block; color: var(--muted); font-size: 12px; }
.wc-close {
  border: 0; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: var(--radius);
}
.wc-close:hover { background: var(--bg-alt); color: var(--text); }
.wc-new {
  border: 1px solid var(--input-line); background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 4px 9px;
  font: 500 12px var(--wita-font-ui); cursor: pointer; margin-left: auto; margin-right: 4px;
}
.wc-new:hover { border-color: var(--brand); background: var(--brand-soft); }
.wc-log {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; background: var(--bg-alt);
}
.wc-msg {
  max-width: 86%; padding: 9px 12px; border-radius: var(--radius-panel);
  font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.wc-assistente, .wc-equipe {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-bottom-left-radius: 3px;
}
.wc-visitante {
  align-self: flex-end;
  background: var(--brand-bg); color: var(--brand-ink);
  border-bottom-right-radius: 3px;
}
.wc-erro { opacity: .65; }
.wc-typing { opacity: .75; font-style: italic; }
.wc-chips { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--bg-alt); }
.wc-chip {
  border: 1px solid var(--input-line); background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 6px 10px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.wc-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.wc-form {
  flex-shrink: 0;
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.wc-form input {
  flex: 1; min-width: 0; padding: 8px 11px;
  border: 1px solid var(--input-line); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px;
}
.wc-form button {
  border: 1px solid transparent; border-radius: var(--radius); padding: 0 15px;
  background: var(--brand-bg); color: var(--brand-ink);
  font: 600 14px var(--wita-font-ui); cursor: pointer;
}
.wc-form button:hover { background: var(--brand-hover); }
.wc-note { flex-shrink: 0; margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--muted); background: var(--surface); }
.wc-link { color: var(--brand); font-weight: 600; }
@media (max-width: 480px) {
  .wc-fab {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 10px 14px;
    font-size: 13px;
  }
  .wc-fab svg { width: 18px; height: 18px; }
  .wc-box {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
