/* Pele premium do ecossistema Portal Notarial.
   Inter self-hosted, azul-tinta, cartoes com sombra suave, cabecalho em duas
   linhas com chip do usuario e navegacao em pilulas. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-roman.var.260c81a4759b.woff2") format("woff2");
}

/* Serifa editorial dos titulos, autohospedada (OFL). Da gravidade notarial;
   o corpo e a interface seguem em Inter. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/SourceSerif4-roman.var.fb34450b3254.woff2") format("woff2");
}

:root {
  --bg: #eef2f8;
  --card: #ffffff;
  --ink: #0f2748;
  --text: #1f2d45;
  --muted: #515d72;
  --border: #e6ebf3;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eaf0ff;
  --ok: #0f9669;
  --err: #e11d48;
  --warn: #92680a;
  --warn-soft: #fff4d6;
  /* Paleta de alerta para caixas de mensagem (fundo claro, texto escuro) */
  --alert-ok-ink: #14532d;
  --alert-ok-bg: #dcfce7;
  --alert-warn-ink: #7c2d12;
  --alert-warn-bg: #ffedd5;
  --alert-err-ink: #7f1d1d;
  --alert-err-bg: #fee2e2;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 72, .05);
  --shadow: 0 10px 28px rgba(15, 39, 72, .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 960px;
  /* Escala tipografica. Piso de leitura de 12px. */
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "cv05" 1, "ss01" 1;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Cabecalho */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 18px clamp(20px, 8%, 160px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-row { min-height: 46px; }
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-row { margin-top: 12px; justify-content: flex-end; }

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: none;
  margin: 0;
}
.header-grid .logo { justify-self: start; }
.header-grid .pills { justify-self: center; }
.header-grid .pills.right { justify-self: end; grid-column: 3; }
.header-grid .chip { justify-self: end; }
/* Colapsa quando o cabecalho completo (logo, pilulas e chip com e-mail) nao
   cabe mais numa linha, por volta de 1030px, nao so no celular. */
@media (max-width: 1040px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .header-grid .pills { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: 12px; }
  .header-grid .pills.right { grid-column: 1 / -1; justify-self: end; }
  /* Fora do desktop o chip reduz ao avatar, para nao sobrepor o logo. */
  .header-grid .chip-text { display: none; }
}

.logo { display: flex; align-items: center; line-height: 1.05; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-img { height: 58px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-eyebrow {
  font-size: .62rem;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.logo-word { font-size: 1.32rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

.chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff; font-weight: 700; font-size: var(--fs-sm);
  display: grid; place-items: center;
}
.chip-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chip-name {
  font-weight: 600; color: var(--ink); font-size: var(--fs-base);
  max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-sub { font-size: var(--fs-xs); color: var(--muted); }

.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  min-height: 44px; /* alvo de toque confortavel no celular */
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit; font-weight: 600; font-size: var(--fs-base);
  text-decoration: none; cursor: pointer;
}
.pill-btn:hover { background: var(--bg); text-decoration: none; }

/* Foco visivel por teclado em elementos interativos, sem afetar o clique do
   mouse. Inputs ja tem anel proprio acima. */
a:focus-visible,
.btn:focus-visible,
.pill-btn:focus-visible,
.perfil-card:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Conteudo */
.wrap { max-width: var(--max); width: 100%; margin: 0 auto; padding: 26px 20px 40px; flex: 1 0 auto; }
h1 { font-family: var(--font-serif); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.015em; line-height: 1.14; margin: 0 0 4px; color: var(--ink); }

/* Cabecalho de pagina como painel azul, igual as telas de entrada e ao
   Escrevente IA. Aplica-se a todas as telas que usam .tool-title. */
.tool-title { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px;
  background: linear-gradient(160deg, #2f6bff 0%, #1740b8 100%);
  border-radius: 16px; padding: 24px 26px;
  box-shadow: 0 18px 40px rgba(23, 64, 184, .18); }
.tool-title .ic {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16); color: #fff;
  display: grid; place-items: center;
}
.tool-title h1 { color: #fff; font-size: 1.75rem; margin: 0; }
.tool-title .note { color: #dbe6ff; margin: 6px 0 0; }
@media (max-width: 560px) {
  .tool-title { padding: 20px 20px; gap: 13px; }
  .tool-title h1 { font-size: 1.5rem; }
}
.ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Selo reutilizavel (eyebrow) */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

.section-label {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: var(--fs-xs); font-weight: 700; color: var(--muted);
  margin: 22px 0 10px;
}

/* Cartoes */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--shadow);
  padding: 22px;
  margin: 16px 0;
}
.card-h { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 0 0 2px; }
/* Quando o .card-h e um <summary> clicavel (details), garante area de toque de 44px. */
details.card > summary.card-h { padding: 11px 0; cursor: pointer; }
.card-sub { color: var(--muted); font-size: var(--fs-base); margin: 0 0 14px; }
/* Numero em destaque, como o saldo da carteira. */
.balance { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); margin: 2px 0; }
/* Dado em destaque com rotulo, como a data e hora da captura na constatacao. */
.kv-strong { margin: 10px 0; }
.kv-strong .kv-label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.kv-strong .kv-value { display: block; font-size: var(--fs-lg); font-weight: 700; color: var(--ink); }

/* Campos */
.field { margin-bottom: 16px; }
.lbl { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font: inherit;
  color: var(--ink);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23515d72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}
input[type="file"] { padding: 9px 12px; border-radius: var(--radius-sm); }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600;
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--accent-soft); }
/* Campo de arquivo como zona de arrastar e soltar. O input nativo aceita o
   drop por padrao, entao a area toda funciona sem JS extra. Mesma aparencia
   da tela de envio de audio. */
input[type="file"].filedrop { width: 100%; padding: 22px 16px; cursor: pointer;
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg);
  color: var(--muted); font-size: var(--fs-base); }
input[type="file"].filedrop:hover { border-color: var(--accent); background: var(--accent-soft); }
input[type="file"].filedrop:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* Caixa de consentimento (declaracao) */
.consent {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--muted);
  font-size: var(--fs-base);
}
.consent span { color: var(--text); }

/* Botoes */
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; font-size: var(--fs-base);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: 0 1px 2px rgba(29, 78, 216, .2);
}
.btn.primary:hover { background: var(--accent-2); text-decoration: none; }
.btn.primary:active { transform: translateY(1px); }
.btn.ghost { background: var(--card); border-color: var(--border); color: var(--ink); }
.btn.ghost:hover { background: var(--bg); text-decoration: none; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.inline { display: inline; }

/* Pills e badges */
.pill {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  padding: 4px 11px; border-radius: 999px; background: var(--bg); color: var(--muted);
}
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.admin { background: var(--accent-soft); color: var(--accent); }
.badge.member { background: var(--bg); color: var(--muted); }

/* Status do job */
.status { font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-QUEUED { background: var(--bg); color: var(--muted); }
.status-RUNNING { background: var(--alert-warn-bg); color: var(--alert-warn-ink); }
.status-COMPLETED { background: var(--alert-ok-bg); color: var(--alert-ok-ink); }
.status-FAILED { background: var(--alert-err-bg); color: var(--alert-err-ink); }

/* Indicador de processamento em movimento */
.proc { display: flex; align-items: center; gap: 12px; }
.proc .spin { width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar-indet { position: relative; height: 6px; margin-top: 12px; border-radius: 999px;
  background: var(--bg); overflow: hidden; }
.bar-indet::before { content: ""; position: absolute; top: 0; left: -40%;
  width: 40%; height: 100%; border-radius: 999px; background: var(--accent);
  animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { left: -40%; } 100% { left: 100%; } }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; display: inline-block; width: 14px; height: 14px;
  margin-right: 8px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff;
  animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .proc .spin, .bar-indet::before, .btn.is-loading::before { animation: none; }
}

/* Tabelas */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--card); }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.data th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
/* Linha de trabalho que falhou: barra de destaque a esquerda e motivo abaixo
   do nome, para nao ter o mesmo peso de uma linha concluida. */
table.data tr.row-failed td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.row-error-note { display: block; font-size: var(--fs-sm); color: var(--alert-err-ink); margin-top: 3px; }
.row-error-action { display: inline-block; margin-top: 5px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
/* Caixa de aviso com os tokens de alerta, para um estado que pede acao. */
.alert-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); }
.alert-box.warn { background: var(--alert-warn-bg); color: var(--alert-warn-ink); }
.alert-box p { margin: 0; font-weight: 600; }

/* No celular, a tabela marcada com .stack vira cartoes empilhados, com rotulo
   por campo, para nao exigir rolagem lateral e manter "Abrir" ao alcance. */
@media (max-width: 560px) {
  table.data.stack { min-width: 0; display: block; }
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; }
  table.data.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  table.data.stack tr:last-child { border-bottom: 0; }
  table.data.stack tr.row-failed { box-shadow: inset 3px 0 0 var(--err); }
  table.data.stack td[colspan] { display: block; text-align: left; }
  table.data.stack td[colspan]::before { content: none; }
  table.data.stack td.cell-actions { display: block; text-align: left; padding-top: 8px; }
  table.data.stack td.cell-actions::before { content: none; }
  table.data.stack td.cell-block { display: block; text-align: left; }
  table.data.stack td.cell-block::before { content: attr(data-label); display: block;
    font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 700; margin-bottom: 4px; }
  /* Celula de prova no celular: acoes empilhadas, com alvo de toque de 44px e o
     botao principal em largura total, separando a acao gratis da que cobra. */
  table.data.stack td.cell-block .row-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  table.data.stack td.cell-block .prova-cell { display: flex; flex-direction: column; gap: 6px; }
  table.data.stack td.cell-block .link { min-height: 44px; display: inline-flex; align-items: center; }
  table.data.stack td.cell-block .inline { display: block; }
  table.data.stack td.cell-block .btn { width: 100%; justify-content: center; }
  table.data.stack td { padding: 4px 0; border: 0; text-align: right; display: flex; justify-content: space-between; align-items: center; gap: 12px; overflow-wrap: anywhere; }
  /* O rotulo (::before) nunca quebra; o valor longo (e-mail, texto) e que
     reflui, para nao espremer o rotulo em duas linhas ("E-\nMAIL"). */
  table.data.stack td::before { content: attr(data-label); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; text-align: left; white-space: nowrap; flex: 0 0 auto; }
  table.data.stack td[data-label="Arquivo"] { display: block; text-align: left; font-weight: 700; color: var(--ink); font-size: var(--fs-md); padding-bottom: 6px; }
  table.data.stack td[data-label="Arquivo"]::before { content: none; }
  /* Coluna de URL longa: rotulo acima e endereco em largura total, para o
     rotulo nao ser espremido pela URL e quebrar no meio. */
  table.data.stack td[data-label="Página"] { display: block; text-align: left; }
  table.data.stack td[data-label="Página"]::before { display: block; margin-bottom: 4px; }
  table.data.stack td.cell-open { padding-top: 8px; }
  table.data.stack td.cell-open::before { content: none; }
  table.data.stack td.cell-open .open-link { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--accent); font-weight: 600; text-decoration: none; }
  table.data.stack td.cell-open .open-link:hover { background: var(--accent-soft); border-color: var(--accent); }
}

/* No desktop, "Abrir" e a acao principal da linha e ganha aparencia de botao,
   para nao ficar como texto cru mais fraco que o botao Mover ao lado. */
@media (min-width: 561px) {
  .cell-open .open-link { display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 8px 18px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .cell-open .open-link:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }
  /* Fixa a coluna de acao a direita, para "Abrir" seguir visivel quando a
     tabela precisa rolar na horizontal em janelas estreitas. */
  table.data td.cell-open { position: sticky; right: 0; background: var(--card); box-shadow: inset 1px 0 0 var(--border); }
}

/* Paginacao das listas */
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager .btn.disabled { opacity: .5; pointer-events: none; }

/* Transcricao */
.transcript { margin-top: 20px; }
.segment { margin: 10px 0; line-height: 1.6; }
.ts { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; font-size: var(--fs-sm); }
.speaker { font-weight: 700; margin-right: 4px; color: var(--ink); }

.row-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
/* Formato da prova (PDF/A assinado) numa linha abaixo do link de baixar. */
.prova-fmt { display: block; margin-top: 2px; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 42px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--ink); background: var(--bg); }

.note { color: var(--muted); font-size: var(--fs-base); }
/* Lista de erros padrao do Django, por campo. */
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--err); font-size: var(--fs-sm); }
.errorlist li { margin: 2px 0; }
/* Linha de URL do modo de varios links (constatacao). */
.url-row { display: flex; gap: 8px; margin-bottom: 8px; }
.url-row .url-input { flex: 1; }
.hash { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-sm); word-break: break-all; color: var(--ink); margin: 2px 0 8px; }
/* Botao "Copiar" anexado a cada .hash por JS no base.html. */
.hash-copy { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; padding: 6px 15px;
  font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--accent);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.hash-copy:hover { background: var(--accent-soft); border-color: var(--accent); }
.hash-copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Texto so para leitor de tela (aria-live, rotulos ocultos). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.error { color: var(--err); }
.messages { list-style: none; padding: 0; margin: 0 0 16px; max-width: var(--max); }
.messages li { background: var(--accent-soft); color: var(--ink); padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.auth-card { max-width: 440px; margin: 44px auto; }
/* Painel azul do topo das paginas de entrada (criar conta, convites), no
   estilo do Escrevente IA. Une-se ao card do formulario logo abaixo. */
.auth-hero { max-width: 440px; margin: 44px auto 0; padding: 30px 32px 24px;
  background: linear-gradient(160deg, #2f6bff 0%, #1740b8 100%);
  border-radius: 16px 16px 0 0; box-shadow: 0 18px 40px rgba(23, 64, 184, .16); }
.auth-hero h1 { font-family: var(--font-serif); font-weight: 600; color: #fff;
  font-size: 1.75rem; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.auth-hero p { color: #dbe6ff; font-size: var(--fs-md); line-height: 1.5; margin: 10px 0 0; }
.auth-hero + .auth-card { margin-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(23, 64, 184, .10); }

/* Rodape */
.site-footer { border-top: 1px solid var(--border); background: transparent; margin-top: 40px; padding: 26px 20px; flex-shrink: 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.footer-trust { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.footer-trust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-links a { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-sep { color: var(--border); }
.footer-legal { color: var(--muted); font-size: var(--fs-sm); margin: 2px 0; }

/* Paginas de texto legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-xl); letter-spacing: -.01em; color: var(--ink); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: var(--fs-base); }
.legal ul { margin: 6px 0 6px; padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }

/* Paginas de conteudo (landing/SEO) */
.lp { max-width: 860px; margin: 0 auto; }
/* Painel azul do topo das paginas publicas, no estilo do Escrevente IA. */
.lp .hero-lp { text-align: left; background: linear-gradient(160deg, #2f6bff 0%, #1740b8 100%);
  border-radius: 20px; padding: 40px 44px; margin: 6px 0 26px; box-shadow: 0 18px 40px rgba(23, 64, 184, .2); }
.lp .hero-lp .hero-eyebrow { color: #eaf0ff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); }
.lp .hero-lp .hero-eyebrow .dot { background: #fff; }
.lp .hero-lp h1 { color: #fff; margin: 14px 0 12px; }
.lp .hero-lp .hero-sub { color: #dbe6ff; margin: 0; max-width: 56ch; }
.lp .hero-lp .trust { justify-content: flex-start; margin: 22px 0 0; }
.lp .hero-lp .hero-cta { justify-content: flex-start; margin: 22px 0 0; }
.lp .hero-lp .hero-cta .btn.primary { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.lp .hero-lp .hero-cta .btn.primary:hover { background: #eef2ff; }
.lp .hero-lp .hero-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lp .hero-lp .hero-cta .btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
@media (max-width: 560px) { .lp .hero-lp { padding: 26px 22px; } }
.lp .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }
.lp .hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.lp h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em; color: var(--ink);
  margin: 16px auto 12px; max-width: 24ch; }
.lp .hero-sub { color: var(--muted); font-size: var(--fs-md); line-height: 1.5; margin: 0 auto 18px; max-width: 58ch; }
.lp .trust { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; margin: 0 0 20px; }
.lp .trust span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.lp .trust svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.lp .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 8px; }
.lp h2 { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin: 0 0 8px; }
.lp h3 { font-size: var(--fs-md); font-weight: 700; color: var(--ink); margin: 14px 0 4px; }
.lp .card p { color: var(--text); font-size: var(--fs-base); line-height: 1.55; }
.lp .card p + p { margin-top: 8px; }
.lp .steps { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.lp .steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--text); font-size: var(--fs-base); line-height: 1.5; }
.lp .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-sm); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 8px; }
.lp .faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: var(--fs-md); padding: 12px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp .faq summary::-webkit-details-marker { display: none; }
/* Chevron a direita, que gira ao abrir, para sinalizar que a pergunta expande.
   Sem ele, o marcador padrao fica escondido e a FAQ parece uma lista de titulos. */
.lp .faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 2px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.lp .faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); border-color: var(--accent); }
.lp .faq details { border-top: 1px solid var(--border); }
.lp .faq details[open] summary { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lp .faq summary::after { transition: none; } }
.lp .faq p { margin: 0 0 12px; color: var(--text); font-size: var(--fs-base); line-height: 1.55; }
