/* Painel de leads — design system "mac-app" (sem framework).
   Referências: Chronicle (paleta light), ScreenPlace (dark), BusyContacts
   (detalhe do lead), NotePlan (estrutura), In Your Face (ênfase).
   Doc: docs/design/painel-referencia.md */

:root {
  color-scheme: light;
  --bg: #ecf4fa;
  --bg-grad: linear-gradient(180deg, #e2eff9 0%, #f3f8fc 45%, #eef5fa 100%);
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --line: #dbe6ef;
  --txt: #1d2b38;
  --muted: #64798a;
  --accent: #1f6fe5;
  --accent-txt: #ffffff;
  --accent-soft: #e3eefc;
  --hi: #f58a1f;
  --ok: #2ea25f;   --ok-soft: #e3f4ea;
  --warn: #e0584a; --warn-soft: #fbe9e7;
  --info: #1f6fe5; --info-soft: #e3eefc;
  --pend: #f58a1f; --pend-soft: #fdf0e0;
  --wa: #1fae54;
  --shadow: 0 1px 2px rgba(23, 49, 71, .05), 0 8px 24px rgba(23, 49, 71, .07);
  --shadow-pop: 0 12px 32px rgba(23, 49, 71, .18);
  --radius: 14px;
  --radius-s: 9px;
  --chevron-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364798a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Tokens dark: fonte única, resolvida pelo script anti-flash em _layout.php
   (data-theme no <html>) — não copiar/duplicar valores. Ver ADR-003. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151114;
  --bg-grad: linear-gradient(180deg, #1a1518 0%, #121013 100%);
  --surface: #1e191d;
  --surface-2: #282227;
  --line: rgba(255, 255, 255, .09);
  --txt: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .55);
  --accent: #f0603f;
  --accent-txt: #ffffff;
  --accent-soft: rgba(240, 96, 63, .16);
  --hi: #f0603f;
  --ok: #46c883;   --ok-soft: rgba(70, 200, 131, .15);
  --warn: #ff7a6b; --warn-soft: rgba(255, 122, 107, .14);
  --info: #6ea8fe; --info-soft: rgba(110, 168, 254, .15);
  --pend: #f5a623; --pend-soft: rgba(245, 166, 35, .15);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .6);
  --chevron-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg) var(--bg-grad) fixed;
  color: var(--txt);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23, 49, 71, .04);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { color: var(--txt); font-weight: 700; letter-spacing: -.01em; }
.brand span { color: var(--hi); }
.brand:hover { text-decoration: none; }
/* Nav em pílulas (segmented control NotePlan) */
.mainnav {
  display: flex; gap: 2px; flex: 0 1 auto; margin: 0 20px; flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.mainnav a { color: var(--muted); padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.mainnav a:hover { color: var(--txt); text-decoration: none; }
.mainnav a.active { color: var(--accent-txt); background: var(--accent); box-shadow: 0 1px 3px rgba(23, 49, 71, .2); }
.topbar-user { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 28px 20px 64px; }

/* Métricas (Chronicle: número grande + rótulo com ponto colorido) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.card strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--txt); font-variant-numeric: tabular-nums; }
.card span { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.card span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); flex: none; }
.card:nth-child(4n+2) span::before { background: var(--pend); }
.card:nth-child(4n+3) span::before { background: var(--ok); }
.card:nth-child(4n) span::before { background: var(--warn); }

/* funil por estágio (ADR-004) — barras horizontais nativas, sem JS/lib externa */
.funnel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.funnel h2 {
  margin: 0 0 12px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted);
}
.funnel-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.funnel-label { flex: 0 0 130px; font-size: 12.5px; color: var(--txt); }
.funnel-track { flex: 1 1 auto; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 999px; }
.funnel-bar.t-ok { background: var(--ok); }
.funnel-bar.t-warn { background: var(--warn); }
.funnel-bar.t-pend { background: var(--pend); }
.funnel-bar.t-info { background: var(--info); }
.funnel-value { flex: 0 0 auto; min-width: 90px; text-align: right; font-size: 12px; color: var(--txt); font-variant-numeric: tabular-nums; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
select, textarea, input[type="password"], input[type="text"], input[type="search"], input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--txt);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  background-image: var(--chevron-icon);
}
select::-ms-expand { display: none; }
select:focus, textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-block;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  color: var(--accent-txt);
  padding: 8px 14px;
  font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", system-ui, sans-serif;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.wa.ghost { background: transparent; color: var(--ok); border-color: var(--ok); }
.btn.danger { background: transparent; color: var(--warn); border-color: var(--warn); }

.stage-form { display: flex; align-items: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.stage-form label { font-size: 13px; }

/* Atividade (BusyContacts: bolinha laranja + evento + hora) */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.timeline li {
  position: relative;
  padding: 6px 10px 6px 22px;
  background: var(--surface-2);
  border-radius: var(--radius-s);
}
.timeline li::before {
  content: "";
  position: absolute; left: 9px; top: 13px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--hi);
}
.timeline strong { color: var(--accent); font-weight: 600; margin: 0 4px; }

/* Tabela de leads (janela branca Chronicle) */
table.leads {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.leads th, table.leads td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.leads th { background: var(--surface-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.leads tr:last-child td { border-bottom: none; }
table.leads tr:hover td { background: var(--accent-soft); }
table.leads th[aria-sort] a { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
table.leads th[aria-sort] a:hover { color: var(--txt); text-decoration: none; }
.sort-ind {
  display: inline-block;
  width: 10px;
  height: 7px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: var(--chevron-icon);
}
.sort-ind.is-asc { transform: rotate(180deg); }

/* Tabela dentro de .panel (clients.php, users.php): o painel já é o card
   (bg + sombra) — a tabela não pode duplicar isso, senão vira card em cima
   de card da mesma cor. Fora de .panel (index.php) a tabela continua sendo
   o próprio card, com bg e sombra normais. */
.panel table.leads { background: none; box-shadow: none; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
/* Badge de ambiente (env_badge_html): só existe fora de produção. */
.env-badge { margin-left: 10px; text-transform: uppercase; letter-spacing: .04em; }

/* Detalhe do lead (BusyContacts: ficha + coluna de atividade) */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel h2 { color: var(--txt); font-size: 20px; letter-spacing: -.01em; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel h2:not(:first-child) { margin-top: 24px; }
.panel h3 {
  color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.panel h3:first-child { margin-top: 0; }

.avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}

.fields { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 16px 0; }
.fields dt { color: var(--muted); font-size: 13px; text-align: right; padding-top: 1px; }
.fields dd { word-break: break-word; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.actions form { display: inline; }
.actions form:has(.btn.danger) { margin-left: auto; }

.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.notes label { font-size: 13px; color: var(--muted); }
.notes textarea { resize: vertical; }
.notes .btn { align-self: flex-start; }

.score { margin-left: 8px; }

.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.bubble {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.user { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

/* login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  width: min(360px, calc(100vw - 32px));
  box-shadow: var(--shadow-pop);
}
.login-card h1 { color: var(--txt); font-size: 20px; letter-spacing: -.01em; }
.login-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.login-card label { font-size: 13px; color: var(--muted); }
.login-card button {
  margin-top: 4px; background: var(--accent); border: none; border-radius: var(--radius-s);
  color: var(--accent-txt); padding: 10px;
  font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", system-ui, sans-serif;
  cursor: pointer;
}
.alert {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 12px;
}
.alert.ok { background: var(--ok-soft); color: var(--ok); }

/* board kanban — cartões com barra de estágio à esquerda (linhas do Chronicle) */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.kcol {
  flex: 0 0 236px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kcol-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.kcount { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--txt); }
.ksum { flex-basis: 100%; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--txt); margin-top: 4px; }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-left: 6px; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 12px; min-height: 60px; }
.kcol-body.drop-over { outline: 2px dashed var(--accent); outline-offset: -4px; border-radius: var(--radius-s); }
.kcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--info);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(23, 49, 71, .06);
  cursor: grab;
}
.kcol.novo .kcard, .kcol.em_qualificacao .kcard { border-left-color: var(--pend); }
.kcol.ganho .kcard { border-left-color: var(--ok); }
.kcol.perdido .kcard { border-left-color: var(--warn); }
.kcard.dragging { opacity: .4; }
.kcard a { display: block; color: var(--txt); padding-right: 20px; }
.kcard a:hover { text-decoration: none; }
.kcard a small { display: block; }
.kmeta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 11px; }
.kmove { position: absolute; top: 10px; right: 12px; }
.kmove summary { list-style: none; cursor: pointer; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.kmove summary::-webkit-details-marker { display: none; }
.kmove[open] summary { color: var(--accent); }
.kmove form {
  position: absolute; right: 0; top: 22px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  width: 190px;
  box-shadow: var(--shadow-pop);
}

/* forms genéricos do painel (usuários, config) */
.stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.stack label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stack .btn { align-self: flex-start; margin-top: 4px; }
.stack .hint { font-size: 12px; color: var(--muted); margin-top: -4px; }
form.inline { display: inline; }

.next-action {
  border-left: 3px solid var(--hi);
  background: var(--pend-soft);
  padding: 8px 12px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 10px 0;
}

/* Detalhe do cliente (clients.php): respiro entre blocos de texto dentro de
   um painel — corrige o "tudo grudado" quando um painel mistura h2, texto
   explicativo, <pre> e formulário. Escopado a filho direto de .panel para
   não alterar espaçamento interno de .fields/.notes/.transcript em outras
   páginas (lead.php etc.), que já têm sua própria margem. */
.panel > p.muted { margin-bottom: 16px; }
.panel > p.muted:last-child { margin-bottom: 0; }
.panel > .snippet-block { margin-bottom: 16px; }
.panel > .snippet-block:last-child { margin-bottom: 0; }

/* Snippet de instalação (clients.php): <pre> teve tamanho de fonte padrão do
   navegador (maior que o resto do painel) e nunca quebrava linha — por isso
   "parecia enorme". Caixa com fonte menor, quebra de linha e botão de copiar. */
.snippet-block { display: flex; align-items: flex-start; gap: 8px; }
.snippet-block pre {
  flex: 1; min-width: 0; margin: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 12px; overflow-x: auto;
}
.snippet-block code { font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-top: 1px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--muted); cursor: pointer;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn .icon-check { display: none; }
.copy-btn--ok { color: var(--ok); border-color: var(--ok); }
.copy-btn--ok .icon-copy { display: none; }
.copy-btn--ok .icon-check { display: block; }
.copy-btn--error { color: var(--warn); border-color: var(--warn); }

/* Página de clientes (clients.php): ritmo entre os painéis empilhados do
   detalhe, cabeçalho do cliente e agrupamento dos campos do prompt. */
.client-detail { display: flex; flex-direction: column; gap: 28px; }

.client-head { display: flex; flex-direction: column; gap: 8px; }
.client-head .crumb { font-size: 13px; }
.client-head .crumb a { color: var(--muted); }
.client-name { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--txt); }
.client-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.client-meta code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 13px; color: var(--muted); }

/* Abas do detalhe (Instalação / Notificações / Milena) — mesmo pílulas do
   .mainnav, como <button> pra trocar sem reload via client_tabs.js. */
.client-tabs { display: flex; gap: 2px; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.client-tabs [role="tab"] { color: var(--muted); background: none; border: none; padding: 7px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.client-tabs [role="tab"]:hover { color: var(--txt); }
.client-tabs [role="tab"].active { color: var(--accent-txt); background: var(--accent); box-shadow: 0 1px 3px rgba(23, 49, 71, .2); }
.tab-panel { display: flex; flex-direction: column; gap: 28px; }
.tab-panel[hidden] { display: none; }

/* Prompt da Milena: grupos por proximidade (identificação / sobre e
   serviços / orçamento / canal e escopo / exemplos), gap maior entre
   grupos do que dentro de cada um. */
.stack.prompt-form { gap: 24px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }

.sector-picker { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.sector-picker select { max-width: 420px; }

/* Guias de ajuda (faq.php): padrão único para toda explicação visual futura
   — anatomia de um valor, comparação lado a lado, resposta final. Reaproveita
   .panel e .badge; só acrescenta o que eles não cobrem. */
.faq-index { display: grid; gap: 10px; margin-top: 18px; }
.faq-index-item { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; color: var(--txt); }
.faq-index-item:hover { border-color: var(--accent); text-decoration: none; }
.faq-index-item strong { font-size: 15px; }
.faq-index-item span { font-size: 13px; color: var(--muted); }

.faq-page { display: flex; flex-direction: column; gap: 28px; max-width: 720px; margin: 0 auto; }
.faq-page h1 { font-size: clamp(22px, 4vw, 28px); letter-spacing: -.01em; margin-bottom: 8px; color: var(--txt); }
.faq-page .lede { font-size: 15.5px; max-width: 58ch; }

.faq-value { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(14px, 3.4vw, 19px); font-weight: 600; display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0 20px; }
.faq-value span { padding: 3px 2px; border-radius: 4px; }
.faq-value .dim { color: var(--muted); }
.faq-value .hi { background: var(--accent-soft); color: var(--accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.faq-value .faint { color: var(--muted); opacity: .55; }

.faq-legend { display: grid; gap: 12px; }
.faq-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; font-size: 14px; list-style: none; }
.faq-legend .swatch { width: 14px; height: 14px; border-radius: 4px; margin-top: 3px; }
.faq-legend .swatch.dim { background: var(--muted); opacity: .5; }
.faq-legend .swatch.hi { background: var(--accent); }
.faq-legend .swatch.faint { background: var(--muted); opacity: .25; }

.faq-compare-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-compare-row:last-child { border-bottom: none; padding-bottom: 0; }
.faq-compare-row .pair { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; min-width: 0; }
.faq-compare-row .pair span { word-break: break-all; }
.faq-compare-row .pair .vs { font-family: -apple-system, sans-serif; color: var(--muted); font-size: 11px; }
.faq-compare-row .reason { grid-column: 1 / -1; font-size: 13px; color: var(--muted); font-family: -apple-system, sans-serif; }

.faq-answer-box { margin-top: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.faq-answer-box .maybe { color: var(--muted); }
.faq-checklist { list-style: none; display: grid; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.faq-checklist li { display: flex; gap: 8px; }
.faq-checklist li::before { content: "→"; color: var(--accent); flex: none; }

@media (max-width: 480px) {
  .faq-compare-row { grid-template-columns: 1fr; }
  .faq-compare-row .badge { justify-self: start; }
}

/* Login Google (spec 2026-07-09): o <a> vira botão de largura cheia acima do form. */
.btn-google { display: block; text-align: center; margin-bottom: 4px; }
.login-sep { text-align: center; margin: 8px 0 12px; }

/* Jornada do lead (WS3): pageview pós-conversão fica apagada — o que importa
   na leitura é o caminho ATÉ virar lead. */
table.leads tr.pv-pos td { opacity: .55; }
