/* Hallmark · macrostructure: Workbench (a working CRM: tables on the computer, lists on the phone) · nav: masthead + tab row
   (app views; a bottom tab row on the phone) · footer: Ft2 inline single line · pre-emit critique: P4 H4 E4 S4 R5 V4
   · contrast: pass (40–41) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: none
   · mobile: pass (34, 49, 50–57) */

/* Marcenaria Quaresmeira (negócio fictício de demonstração): o CRM da marcenaria, só com tipografia. Papel e tinta
   quentes, réguas finas em vez de caixas, um raio pequeno (4px) e uma cor de destaque, ferrugem, só para a ação principal,
   a aba aberta, o que está atrasado e o que acabou de chegar. Nada desenhado: a marca é o nome do negócio. */
:root {
  color-scheme: light;
  --papel: #f5f2ec;
  --papel-2: #ece7de;
  --tinta: #1d1a16;
  --tinta-2: #4b4640;
  --tinta-3: #6b655d;
  --regua: #d8d1c5;
  --regua-forte: #a99f91;
  --acento: #9a3b16;
  --acento-forte: #7f2f10;
  --acento-tinta: #fbf7f2;
  --acento-fundo: #f1dccf;
  --foco: #9a3b16;
  --veu: rgba(29, 26, 22, .45);
  --raio: 4px;
  --e-1: 4px;
  --e-2: 8px;
  --e-3: 12px;
  --e-4: 16px;
  --e-5: 24px;
  --e-6: 32px;
  --e-7: 48px;
  --e-8: 64px;
  --largura: 1240px;
  --fonte-titulo: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-texto: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --z-topo: 30;
  --z-baixo: 31;
  --z-lado: 40;
  --z-aviso: 60;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --papel: #171512;
    --papel-2: #221f1b;
    --tinta: #efe9e1;
    --tinta-2: #cfc7bc;
    --tinta-3: #a69d91;
    --regua: #36312b;
    --regua-forte: #6a6157;
    --acento: #e8956b;
    --acento-forte: #f2ab86;
    --acento-tinta: #1b1612;
    --acento-fundo: #3a2418;
    --foco: #e8956b;
    --veu: rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fonte-texto); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-weight: 400; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; margin: 0; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: var(--e-3); top: -80px; z-index: var(--z-aviso); padding: var(--e-3) var(--e-4); border-radius: var(--raio); background: var(--tinta); color: var(--papel); }
.pular:focus { top: var(--e-3); }
.sem-js { margin: var(--e-5) var(--e-4); }

/* A nota de demonstração: uma linha fina, sempre visível */
.nota-curta { display: none; }

/* O topo: o nome do negócio, as partes do CRM e o site */
.topo { position: sticky; top: 0; z-index: var(--z-topo); background: var(--papel); border-bottom: 1px solid var(--regua); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); max-width: var(--largura); margin: 0 auto; padding: var(--e-3) var(--e-5) 0; }
.marca { display: flex; align-items: baseline; gap: var(--e-2); font-family: var(--fonte-titulo); font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.marca a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--tinta); }
.marca-crm { font-family: var(--fonte-texto); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--tinta-3); }
.vistas { display: flex; gap: var(--e-5); max-width: var(--largura); margin: 0 auto; padding: 0 var(--e-5); }
.vistas button { display: inline-flex; align-items: center; gap: var(--e-1); min-height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--tinta-3); font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap; transition: color .15s, border-color .15s; }
.vistas button:hover { color: var(--tinta); }
.vistas button:active { color: var(--tinta); }
.vistas button[aria-current='page'] { color: var(--tinta); border-bottom-color: var(--acento); }
/* A contagem tem o lugar guardado ao lado do nome, dentro do botão: quando chega, nada no menu se move */
.vista-nome { position: relative; padding-right: 1.6em; }
.conta { position: absolute; top: 0; right: 0; width: 1.6em; padding-left: var(--e-1); color: var(--acento); font-variant-numeric: tabular-nums; }
.vista-site { display: none !important; }

/* Botões: um só raio, uma só cor de destaque */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--e-5); border: 1px solid var(--acento); border-radius: var(--raio); background: var(--acento); color: var(--acento-tinta); font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s; }
.botao:hover { background: var(--acento-forte); border-color: var(--acento-forte); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.botao-linha { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.botao-linha:hover { background: var(--papel-2); border-color: var(--tinta); }
.botao-texto { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--e-1); border: 0; background: none; color: var(--acento); font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.botao-texto:hover { color: var(--acento-forte); }
.botao-texto:active { color: var(--tinta); }
.botao-texto:disabled { opacity: .55; cursor: not-allowed; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3) var(--e-4); }

main { max-width: var(--largura); margin: 0 auto; padding: var(--e-6) var(--e-5) var(--e-8); outline: none; }

/* A abertura: o convite para mandar um contato */
.abertura { padding-bottom: var(--e-7); border-bottom: 1px solid var(--regua); }
.abertura h1 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1.04; max-width: 21ch; }
.abertura > h1 + p { margin-top: var(--e-4); max-width: 62ch; color: var(--tinta-2); font-size: 17px; }
.abertura .acoes { margin-top: var(--e-5); }
/* A linha dos testes tem sempre a mesma altura: o botão de apagar só fica visível quando há um quadro */
.meus-testes { margin-top: var(--e-4); color: var(--tinta-3); font-size: 14px; line-height: 1.5; }
/* O botão segue o texto na mesma linha e ocupa só a altura dela; a área de toque de 44 px sai para cima e para baixo */
.meus-testes .botao-texto { display: inline-block; min-height: 0; padding: var(--e-3) var(--e-1); margin: calc(-1 * var(--e-3)) 0; font-size: 14px; line-height: 1.5; vertical-align: baseline; }
.oculto { visibility: hidden; }
/* O registro a caminho tem a linha guardada: quando aparece, nada salta */
.a-caminho { min-height: 1.55em; margin-top: var(--e-3); color: var(--tinta-2); font-size: 14px; max-width: 70ch; }
.a-caminho strong { color: var(--acento); }

/* As vistas */
.vista { margin-top: var(--e-6); }
.vista h2 { font-size: 28px; }
.vista-sub, .resumo { margin-top: var(--e-2); color: var(--tinta-2); max-width: 70ch; font-variant-numeric: tabular-nums; }
.dica { margin-top: var(--e-5); color: var(--tinta-3); font-size: 14px; max-width: 70ch; }
.so-estreito { display: none; }
/* Antes de o quadro chegar do servidor, a vista guarda a altura da tela: o que vem depois não salta na abertura */
#quadro-funil:empty, #lista-contatos:empty, #lista-tarefas:empty, #painel-numeros:empty { min-height: 100vh; }

/* Tabelas: o funil, os contatos e as tarefas */
.tabela { width: 100%; margin-top: var(--e-5); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: var(--e-3) var(--e-3) var(--e-3) 0; border-bottom: 1px solid var(--regua); text-align: left; vertical-align: top; }
.tabela thead th { padding-top: 0; font-size: 13px; font-weight: 600; color: var(--tinta-3); border-bottom-color: var(--regua-forte); white-space: nowrap; }
.tabela .num { text-align: right; padding-right: var(--e-5); white-space: nowrap; }
.tabela .grupo th { padding: var(--e-6) 0 var(--e-2); border-bottom: 1px solid var(--tinta); font-family: var(--fonte-titulo); font-size: 18px; font-weight: 750; letter-spacing: -.015em; color: var(--tinta); }
.tabela .grupo span { margin-left: var(--e-2); font-family: var(--fonte-texto); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--tinta-3); }
.tabela tbody tr:not(.grupo):hover { background: var(--papel-2); }
.tabela td { color: var(--tinta-2); font-size: 15px; }
.tabela .vazio td { color: var(--tinta-3); font-size: 14px; }
.tabela td.tarefa-texto { color: var(--tinta); }
.tabela .curta { white-space: nowrap; }
.abrir { display: block; width: 100%; min-height: 44px; margin: calc(-1 * var(--e-3)) 0; padding: var(--e-3) 0; border: 0; background: none; color: var(--tinta); font-weight: 650; text-align: left; line-height: 1.35; }
.abrir:hover { text-decoration: underline; text-underline-offset: 3px; }
.abrir:active { color: var(--acento); }
.seu { margin-left: var(--e-2); color: var(--acento); font-size: 13px; font-weight: 650; white-space: nowrap; }
.atrasada, .parada { color: var(--acento); font-weight: 650; }
.chegou td, .chegou .linha { animation: chegada 3s ease-out both; }
@keyframes chegada { from { background-color: var(--acento-fundo); } to { background-color: transparent; } }

/* Listas: o mesmo, no celular */
.grupo-lista { margin-top: var(--e-6); }
.grupo-lista h3 { padding-bottom: var(--e-2); border-bottom: 1px solid var(--tinta); font-size: 18px; }
.grupo-lista h3 span { margin-left: var(--e-2); font-family: var(--fonte-texto); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--tinta-3); }
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { border-bottom: 1px solid var(--regua); }
.linha { display: grid; gap: var(--e-1); width: 100%; min-height: 44px; padding: var(--e-3) 0; border: 0; background: none; color: var(--tinta); text-align: left; font-variant-numeric: tabular-nums; }
.linha .titulo { font-weight: 650; line-height: 1.35; }
.linha:hover .titulo { text-decoration: underline; text-underline-offset: 3px; }
.linha:active .titulo { color: var(--acento); }
.linha .meta { color: var(--tinta-3); font-size: 14px; }
.linha .tarefa-linha { color: var(--tinta-2); font-size: 14px; }
.lista .vazio { padding: var(--e-3) 0; color: var(--tinta-3); font-size: 14px; }

/* Contatos */
.busca { display: flex; align-items: center; gap: var(--e-3); margin-top: var(--e-4); max-width: 480px; }
.busca label { font-weight: 650; font-size: 14px; }
.busca input { flex: 1; min-width: 0; }

/* Tarefas */
.marcar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: calc(-1 * var(--e-3)) 0; cursor: pointer; }
.marcar input { width: 20px; height: 20px; margin: 0; accent-color: var(--acento); cursor: pointer; }
.feita .tarefa-texto { text-decoration: line-through; color: var(--tinta-3); }
.de { display: inline-flex; align-items: center; min-height: 44px; margin: calc(-1 * var(--e-3)) 0; padding: 0; border: 0; background: none; color: var(--tinta-2); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.de:hover { color: var(--tinta); }
.de:active { color: var(--acento); }
.tarefa-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 var(--e-2); align-items: start; padding: var(--e-3) 0; }
.tarefa-item .marcar { margin: calc(-1 * var(--e-2)) 0 0; }
.tarefa-item .tarefa-texto { font-weight: 600; line-height: 1.35; }
.tarefa-item .de { margin: 0; }
.tarefa-item .meta { color: var(--tinta-3); font-size: 14px; }

/* Os números */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--e-5) 0 0; border-top: 1px solid var(--regua); border-bottom: 1px solid var(--regua); }
.kpis > div { padding: var(--e-5) var(--e-4) var(--e-5) 0; }
.kpis > div + div { padding-left: var(--e-4); border-left: 1px solid var(--regua); }
.kpis dt { color: var(--tinta-2); font-size: 14px; font-weight: 600; }
.kpis dd { margin: 0; }
.kpis .valor { margin-top: var(--e-2); font-family: var(--fonte-titulo); font-size: 44px; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--tinta); }
.kpis .valor small { margin-left: var(--e-1); font-size: 20px; letter-spacing: 0; }
.kpis .nota { margin-top: var(--e-2); color: var(--tinta-3); font-size: 14px; }
.numeros-dupla { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--e-7); margin-top: var(--e-6); }
.numeros-dupla h3 { font-size: 18px; }
.barra-dado { display: block; height: 6px; margin-top: var(--e-2); width: var(--w, 0%); min-width: 2px; background: var(--tinta-2); }
.origem-col { width: 45%; }
.lista-paradas { list-style: none; margin: var(--e-4) 0 0; padding: 0; border-top: 1px solid var(--regua); }
.lista-paradas li { border-bottom: 1px solid var(--regua); }
.lista-paradas button { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); width: 100%; min-height: 44px; padding: var(--e-2) 0; border: 0; background: none; color: var(--tinta); text-align: left; font-weight: 600; }
.lista-paradas button:hover { text-decoration: underline; text-underline-offset: 3px; }
.lista-paradas button:active { color: var(--acento); }
.lista-paradas button span:last-child { color: var(--acento); font-weight: 650; white-space: nowrap; }

/* O rodapé: uma linha */
.rodape { max-width: var(--largura); margin: 0 auto; padding: 0 var(--e-5) var(--e-7); color: var(--tinta-3); font-size: 14px; }
.rodape p { padding-top: var(--e-5); border-top: 1px solid var(--regua); }

/* Os painéis ao lado (o site da marcenaria e o contato aberto): a altura toda, sem moldura desenhada */
.lado { position: fixed; inset: 0 0 0 auto; z-index: var(--z-lado); width: min(500px, 100%); height: 100dvh; max-width: 100%; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--regua-forte); background: var(--papel); color: var(--tinta); overflow: hidden; display: none; flex-direction: column; }
.lado[open] { display: flex; }
.lado::backdrop { background: var(--veu); }
.lado-topo { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); padding: 0 var(--e-4) 0 var(--e-5); border-bottom: 1px solid var(--regua); }
.lado-topo p { color: var(--tinta-3); font-size: 14px; }
.lado-corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--e-5) var(--e-5) var(--e-7); }
.site-nome { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.site-linha { margin-top: var(--e-2); color: var(--tinta-2); max-width: 60ch; }
.abas { display: flex; gap: var(--e-5); margin: var(--e-5) 0 var(--e-4); border-bottom: 1px solid var(--regua); }
.abas button { min-height: 44px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--tinta-3); font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap; transition: color .15s, border-color .15s; }
.abas button:hover { color: var(--tinta); }
.abas button:active { color: var(--tinta); }
.abas button[aria-selected='true'] { color: var(--tinta); border-bottom-color: var(--acento); }
.aviso-ficticio { margin-bottom: var(--e-4); color: var(--tinta-2); font-size: 14px; max-width: 60ch; }
.campo { display: flex; flex-direction: column; gap: var(--e-1); min-width: 0; margin-bottom: var(--e-2); }
.campo label, .escrever label, .rotulo { font-weight: 650; font-size: 14px; }
.rotulo { display: block; margin-bottom: var(--e-1); }
.opcional { font-weight: 400; color: var(--tinta-3); }
input[type='text'], input[type='tel'], input[type='email'], input[type='search'], input[type='datetime-local'], select, textarea { width: 100%; min-height: 44px; padding: 0 var(--e-3); border: 1px solid var(--regua-forte); border-radius: var(--raio); background: var(--papel); color: var(--tinta); font-size: 16px; outline: 2px solid transparent; outline-offset: 1px; }
textarea { padding: var(--e-2) var(--e-3); min-height: 88px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--tinta-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--foco); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
[aria-invalid='true'] { border-color: var(--acento); }
.erro-campo { min-height: 1.4em; color: var(--acento); font-size: 13px; font-weight: 600; }
.campo-dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--e-3); }
.form-estado { margin-top: var(--e-3); min-height: 1.4em; color: var(--tinta-2); }
.form-estado.ok { color: var(--tinta); font-weight: 600; }
.form-estado.erro { color: var(--acento); font-weight: 600; }
.conversa { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--regua); }
.fala { padding: var(--e-3) 0; border-bottom: 1px solid var(--regua); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.fala .autor { display: block; margin-bottom: var(--e-1); font-size: 13px; font-weight: 700; color: var(--tinta-3); white-space: normal; }
.fala.cliente .autor { color: var(--tinta); }
.fala.sistema .autor { color: var(--acento); }
.fala.digitando { color: var(--tinta-3); }
.sugestoes { margin-top: var(--e-4); }
.sugestoes p { color: var(--tinta-3); font-size: 14px; }
.sugestoes ul { list-style: none; margin: 0; padding: 0; }
.sugestoes .sugestao { color: var(--tinta); }
.sugestoes .sugestao:hover { color: var(--acento); }
.escrever { display: grid; gap: var(--e-2); margin-top: var(--e-4); }
.escrever textarea { min-height: 72px; }
.caminho-titulo { margin-top: var(--e-7); font-size: 16px; }
.caminho { margin: var(--e-2) 0 0; padding-left: var(--e-5); color: var(--tinta-2); font-size: 14px; max-width: 60ch; }
.caminho li + li { margin-top: var(--e-1); }

/* O contato aberto */
.detalhe-nome { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.detalhe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e-4); margin-top: var(--e-1); color: var(--tinta-2); font-size: 15px; }
.detalhe-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.detalhe-resumo { color: var(--tinta-3); font-size: 14px; }
.bloco { margin-top: var(--e-6); }
.bloco > h3 { font-size: 16px; padding-bottom: var(--e-2); border-bottom: 1px solid var(--tinta); }
.negocio { padding: var(--e-4) 0; border-bottom: 1px solid var(--regua); }
.negocio h4 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.negocio-linha { margin-top: var(--e-1); color: var(--tinta-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.negocio-campos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e-3); margin-top: var(--e-3); }
.negocio-campos label { display: flex; flex-direction: column; gap: var(--e-1); font-size: 14px; font-weight: 650; }
.valor-linha { display: flex; gap: var(--e-2); }
.valor-linha input { min-width: 0; }
.motivo { grid-column: 1 / -1; }
.motivo .acoes { margin-top: var(--e-2); }
.juntar { padding-top: var(--e-3); }
.tipo { display: flex; flex-wrap: wrap; gap: 0 var(--e-5); border: 0; margin: 0 0 var(--e-2); padding: 0; }
.tipo legend { padding: 0; font-weight: 650; font-size: 14px; }
.tipo label { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 44px; cursor: pointer; }
.tipo input { width: 18px; height: 18px; margin: 0; accent-color: var(--acento); }
.juntar .quando { display: flex; flex-direction: column; gap: var(--e-1); margin-top: var(--e-3); font-size: 14px; font-weight: 650; }
.juntar .acoes { margin-top: var(--e-3); }
.tempo { list-style: none; margin: 0; padding: 0; }
.tempo > li { padding: var(--e-3) 0; border-bottom: 1px solid var(--regua); }
.tempo .quem { color: var(--tinta-3); font-size: 13px; }
.tempo .quem strong { color: var(--tinta); font-weight: 700; }
.tempo .quem.atendente strong { color: var(--acento); }
.tempo .texto { margin-top: var(--e-1); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.dados { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--e-1) var(--e-3); margin: var(--e-2) 0 0; font-size: 14px; }
.dados dt { color: var(--tinta-3); }
.dados dd { margin: 0; overflow-wrap: anywhere; }

.confirmar { width: min(440px, calc(100% - var(--e-6))); padding: var(--e-6); border: 1px solid var(--regua-forte); border-radius: var(--raio); background: var(--papel); color: var(--tinta); }
.confirmar::backdrop { background: var(--veu); }
.confirmar h2 { font-size: 22px; }
.confirmar p:not(.acoes) { margin-top: var(--e-3); color: var(--tinta-2); }
.confirmar .acoes { margin-top: var(--e-5); }

/* O aviso: no canto de baixo à esquerda (o site e o contato abrem à direita), sem empurrar nada */
.aviso { position: fixed; left: var(--e-5); bottom: var(--e-5); z-index: var(--z-aviso); display: flex; align-items: center; gap: var(--e-3); max-width: min(460px, calc(100% - var(--e-6))); padding: var(--e-2) var(--e-2) var(--e-2) var(--e-4); border-radius: var(--raio); background: var(--tinta); color: var(--papel); }
.aviso p { flex: 1; font-size: 15px; font-weight: 550; }
.aviso .botao-texto { flex: none; color: var(--papel); }
.aviso .botao-texto, .form-estado .botao-texto, .fala .botao-texto { white-space: nowrap; }

/* Abaixo de 1000px: a tabela do funil perde a coluna do último movimento */
@media (max-width: 999px) {
  .col-movimento { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpis > div:nth-child(n + 3) { border-top: 1px solid var(--regua); }
  .numeros-dupla { grid-template-columns: minmax(0, 1fr); gap: var(--e-6); }
}

/* Celular: listas em vez de tabelas, e as partes do CRM numa fila no fundo */
@media (max-width: 759px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .nota-longa { display: none; }
  .nota-curta { display: inline; }
  .topo-linha { padding: var(--e-1) var(--e-4); }
  .marca { font-size: 20px; }
  .topo-site { display: none; }
  .vistas { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-baixo); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--papel); border-top: 1px solid var(--regua-forte); }
  .vistas button { justify-content: center; min-height: 56px; border-bottom: 0; border-top: 2px solid transparent; font-size: 14px; }
  .vistas button[aria-current='page'] { border-top-color: var(--acento); }
  .vista-nome { padding-right: var(--e-4); }
  .conta { width: var(--e-4); padding-left: 0; text-align: right; }
  .vista-site { display: inline-flex !important; }
  main { padding: var(--e-5) var(--e-4) var(--e-7); }
  .abertura { padding-bottom: var(--e-6); }
  .abertura h1 { font-size: 30px; }
  .abertura > h1 + p { font-size: 16px; }
  .abertura .acoes .botao { flex: 1 1 100%; }
  .vista { margin-top: var(--e-6); }
  .vista h2 { font-size: 24px; }
  .so-largo { display: none; }
  .so-estreito { display: block; }
  .kpis .valor { font-size: 36px; }
  .rodape { padding: 0 var(--e-4) var(--e-7); }
  .lado { width: 100%; border-left: 0; }
  .lado-corpo { padding: var(--e-4) var(--e-4) var(--e-7); }
  .site-nome { font-size: 24px; }
  .site-linha { font-size: 15px; }
  .campo-dupla, .negocio-campos { grid-template-columns: minmax(0, 1fr); }
  .aviso { left: var(--e-3); right: var(--e-3); bottom: calc(68px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .botao:active { transform: none; }
}

/* Faixa do Capi Studio: a nota de demonstração no topo, igual em todas as demonstrações (este mesmo bloco no fim da
   folha de estilo de cada uma). A cor, a letra e a ligação são as do Capi Studio (pme-ia/design.md e
   public/site/capi/tokens.css: --color-ink #1b110c, --color-on-ink #fbf7f2, texto pequeno 14 px peso 500, ligação peso
   650 sublinhada); o negócio fictício mantém a sua marca no resto da página. Não descarrega letra nenhuma (os números
   medidos de cada demonstração continuam certos): o Archivo só se usa se estiver instalado; senão a reserva local com as
   métricas do Archivo, a mesma que as páginas do estúdio mostram enquanto ele carrega. Tudo em ficheiro externo, nada
   inline: funciona sob style-src 'self'. */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 98.4%;
  ascent-override: 87%;
  descent-override: 21%;
  line-gap-override: 0%;
}
.faixa-estudio {
  display: block;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  background: #1b110c;
  color: #fbf7f2;
  font-family: 'Archivo', 'Archivo Fallback', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.faixa-estudio p { display: inline; margin: 0; padding: 0; font: inherit; color: inherit; }
/* The link's target is 44 px tall inside the strip (the strip grows to hold it, nothing overlaps the page) */
.faixa-estudio a {
  display: inline-block;
  margin: -12px -4px -12px 4px;
  padding: 12px 4px;
  color: #fbf7f2;
  font-weight: 650;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-color: currentColor;
  transition: text-decoration-thickness 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faixa-estudio a:focus-visible { outline: 2px solid #fbf7f2; outline-offset: -2px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .faixa-estudio a:hover { text-decoration-thickness: 2.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .faixa-estudio a { transition: none; }
}
