/* Guia de IA na advocacia · Loiola & Siqueira
   Paleta do deck da palestra: grafite, dourado e papel creme. */
:root {
  --papel: #f5f0e8;
  --papel-2: #ece5d8;
  --branco: #fdfbf7;
  --tinta: #1e1c1b;
  --tinta-2: #4a4643;
  --tinta-3: #6f6a64;
  --linha: #ddd3c3;
  --ouro: #b8925f;
  --ouro-forte: #7a5c33;
  --ouro-claro: #efe2cc;
  --grafite: #1a1918;
  --grafite-2: #2a2828;
  --verde: #2f7a4f;
  --verde-claro: #e3f1e8;
  --vermelho: #a8432f;
  --vermelho-claro: #f8e4de;
  --azul: #2f5d9a;
  --azul-claro: #e4ecf7;
  --raio: 14px;
  --fonte: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fonte); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ouro-forte); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
code, .mono { font-family: var(--fonte); font-weight: 600; background: var(--papel-2); border-radius: 6px; padding: 1px 7px; font-size: 0.93em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- topo ---------- */
.topo { background: var(--branco); border-bottom: 1px solid var(--linha); }
.topo-inner { max-width: 1040px; margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topo img { width: 170px; height: auto; }
.topo .tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro-forte); }

/* ---------- capa ---------- */
.capa { background: var(--grafite); color: #ede8df; padding: 72px var(--gut) 64px; position: relative; overflow: hidden; }
.capa::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,168,124,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,124,.06) 1px, transparent 1px); background-size: 44px 44px; }
.capa > div { position: relative; max-width: 1040px; margin: 0 auto; }
.olho { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #c9a87c; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.olho::before { content: ""; width: 28px; height: 2px; background: #c9a87c; }
.capa h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; max-width: 15ch; color: #f5f0e8; }
.capa h1 span { color: #c9a87c; }
.capa p.sub { font-size: 19px; color: #bdb6aa; max-width: 60ch; margin: 22px 0 0; }
.capa .autores { margin-top: 30px; font-size: 14px; color: #958e82; }

/* ---------- índice ---------- */
.indice { max-width: 1040px; margin: -28px auto 0; padding: 0 var(--gut); position: relative; }
.indice nav { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px 26px; box-shadow: 0 10px 30px rgba(30,28,27,.06); }
.indice .rot { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3); margin-bottom: 10px; }
.indice ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; font-size: 15px; }
.indice li { break-inside: avoid; }
.indice a { color: var(--tinta); text-decoration: none; }
.indice a:hover { color: var(--ouro-forte); text-decoration: underline; }
@media (max-width: 640px) { .indice ol { columns: 1; } }

/* ---------- seções ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 var(--gut) 80px; }
.sec { padding: 64px 0 8px; scroll-margin-top: 12px; }
.sec-cab { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.num { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--grafite); color: #c9a87c; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.sec h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
.sec .lede { color: var(--tinta-2); margin-top: 8px; max-width: 70ch; }
.sec h3 { font-size: 21px; font-weight: 800; margin: 30px 0 12px; }
.prosa { max-width: 74ch; color: var(--tinta-2); }
.prosa strong { color: var(--tinta); }

/* ---------- cartões ---------- */
.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 18px 0; }
.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px; min-width: 0; }
.cartao.topo-ouro { border-top: 4px solid var(--ouro); }
.cartao h4 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.cartao p { font-size: 15.5px; color: var(--tinta-2); margin-bottom: 10px; }
.cartao .analogia { font-style: italic; color: var(--ouro-forte); border-top: 1px solid var(--linha); padding-top: 10px; margin: 12px 0 0; font-size: 15px; }
.cartao.escuro { background: var(--grafite-2); border-color: var(--grafite-2); color: #ede8df; }
.cartao.escuro p { color: #d9d2c5; }
.cartao.escuro h4 { color: #f5f0e8; }

.passos { list-style: none; padding: 0; counter-reset: p; display: grid; gap: 12px; margin: 18px 0; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; gap: 14px; background: var(--branco); border: 1px solid var(--linha); border-radius: 12px; padding: 16px 18px; margin: 0; }
.passos li::before { content: counter(p); width: 34px; height: 34px; border-radius: 50%; background: var(--grafite); color: #c9a87c; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.passos li strong { display: block; color: var(--tinta); }
.passos li span { color: var(--tinta-2); font-size: 15.5px; }

/* ---------- avisos ---------- */
.aviso { border-radius: 10px; padding: 16px 20px; margin: 18px 0; font-size: 15.5px; border-left: 5px solid; max-width: 80ch; }
.aviso strong.t { display: block; margin-bottom: 4px; }
.aviso p:last-child { margin: 0; }
.aviso.ouro { background: var(--ouro-claro); border-color: var(--ouro); color: #3e2f19; }
.aviso.verm { background: var(--vermelho-claro); border-color: var(--vermelho); color: #4a1a10; }
.aviso.verde { background: var(--verde-claro); border-color: var(--verde); color: #123a22; }
.aviso.azul { background: var(--azul-claro); border-color: var(--azul); color: #12284a; }

/* ---------- prompts ---------- */
.prompt { background: var(--grafite); color: #ede8df; border-radius: var(--raio); margin: 16px 0 22px; overflow: hidden; }
.prompt-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #2a2828; border-bottom: 1px solid #3a3735; }
.prompt-cab b { color: #c9a87c; font-size: 15px; }
.prompt-cab small { color: #958e82; font-size: 13px; }
.prompt pre { margin: 0; padding: 18px 20px; white-space: pre-wrap; word-wrap: break-word; font-family: var(--fonte); font-size: 15px; line-height: 1.6; color: #ede8df; }
.copiar { font-family: var(--fonte); font-size: 13px; font-weight: 700; color: #1e1912; background: #c9a87c; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; flex: none; }
.copiar:focus-visible { outline: 3px solid #f5f0e8; outline-offset: 2px; }
.ph { color: #e8c99a; font-weight: 700; }

/* ---------- ilustrações (maquetes) ---------- */
.maquete { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; margin: 18px 0; }
.maquete .leg { font-size: 13px; color: var(--tinta-3); margin: 10px 4px 0; }
.janela { border: 1px solid #cfc5b3; border-radius: 10px; overflow: hidden; background: #fff; font-size: 13.5px; }
.barra { display: flex; align-items: center; gap: 8px; background: #ece5d8; padding: 8px 12px; border-bottom: 1px solid #d9cfbf; }
.barra i { width: 11px; height: 11px; border-radius: 50%; background: #cfc5b3; display: inline-block; }
.barra .url { flex: 1; background: #fff; border-radius: 6px; padding: 4px 10px; color: var(--tinta-3); font-size: 12.5px; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 300px; }
.corpo.so { grid-template-columns: 200px minmax(0, 1fr); }
.lado { background: #f7f3ec; border-right: 1px solid #e5dccd; padding: 14px; }
.lado .it { padding: 7px 10px; border-radius: 6px; color: var(--tinta-2); margin-bottom: 4px; }
.lado .it.ativo { background: var(--grafite); color: #f5f0e8; font-weight: 700; }
.area { padding: 16px; min-width: 0; }
.campo { border: 1px solid #e0d6c6; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; color: var(--tinta-2); background: #fffdf9; }
.campo b { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); margin-bottom: 3px; }
.arq { display: inline-block; background: var(--papel-2); border-radius: 6px; padding: 3px 8px; margin: 2px 4px 2px 0; font-size: 12.5px; }
.marca-n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--vermelho); color: #fff; font-weight: 800; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; vertical-align: middle; }
.pje-cab { background: #4a5560; color: #fff; padding: 10px 14px; font-weight: 700; }
.pje-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pje-tab th, .pje-tab td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #ece5d8; }
.pje-tab th { background: #f2efe9; color: var(--tinta-3); font-weight: 700; }
.painel { background: #faf8f4; border-left: 1px solid #e5dccd; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.painel .ttl { font-weight: 800; color: var(--tinta); display: flex; align-items: center; gap: 6px; }
.painel .ttl i { width: 10px; height: 10px; border-radius: 50%; background: #d97757; display: inline-block; }
.bal { border-radius: 10px; padding: 8px 10px; line-height: 1.45; }
.bal.eu { background: var(--grafite-2); color: #f5f0e8; align-self: flex-end; max-width: 92%; }
.bal.ia { background: #fff; border: 1px solid #e5dccd; color: var(--tinta-2); max-width: 96%; }
.bal.acao { background: var(--ouro-claro); color: #3e2f19; font-size: 12.5px; }
@media (max-width: 760px) {
  .corpo, .corpo.so { grid-template-columns: 1fr; }
  .lado { border-right: 0; border-bottom: 1px solid #e5dccd; }
  .painel { border-left: 0; border-top: 1px solid #e5dccd; }
}

/* ---------- tabelas ---------- */
.tab-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--linha); border-radius: 12px; background: var(--branco); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.t th { text-align: left; background: var(--grafite); color: #c9a87c; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 11px 14px; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--linha); vertical-align: top; color: var(--tinta-2); }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 700; color: var(--tinta); }

/* ---------- fecho ---------- */
.fecho { background: var(--grafite); color: #ede8df; border-radius: 18px; padding: 40px; margin-top: 56px; }
.fecho h2 { color: #f5f0e8; font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
.fecho p { color: #bdb6aa; max-width: 64ch; }
.botao { display: inline-flex; align-items: center; gap: 10px; background: #c9a87c; color: #1e1912; font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 999px; margin-top: 10px; border: 0; font-family: var(--fonte); font-size: 16px; cursor: pointer; }
.botao.claro { background: transparent; color: #ede8df; border: 1.5px solid #6f6a64; }
.botao:focus-visible { outline: 3px solid #f5f0e8; outline-offset: 3px; }
.rodape { max-width: 1040px; margin: 0 auto; padding: 28px var(--gut) 48px; color: var(--tinta-3); font-size: 13.5px; }

/* ---------- formulário (página de entrada) ---------- */
.entrada { max-width: 1040px; margin: 0 auto; padding: 40px var(--gut) 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .entrada { grid-template-columns: 1fr; } }
.entrada .pitch h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.entrada .pitch h1 span { color: var(--ouro-forte); }
.entrada .pitch p { color: var(--tinta-2); margin-top: 16px; }
.entrada .pitch ul { list-style: none; padding: 0; margin: 22px 0 0; }
.entrada .pitch li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--tinta); }
.entrada .pitch li::before { content: "✓"; color: var(--verde); font-weight: 800; flex: none; }
form.cad { background: var(--branco); border: 1px solid var(--linha); border-radius: 18px; padding: 28px; box-shadow: 0 14px 40px rgba(30,28,27,.07); }
form.cad h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
form.cad .mini { color: var(--tinta-3); font-size: 14px; margin-bottom: 20px; }
.f { margin-bottom: 18px; }
.f > label, .f > .leg { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.f input[type=text], .f input[type=tel], .f select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cfc5b3; border-radius: 10px; background: #fffdf9; color: var(--tinta); }
.f input:focus, .f select:focus { outline: none; border-color: var(--ouro-forte); box-shadow: 0 0 0 3px rgba(184,146,95,.25); }
.opcoes { display: grid; gap: 8px; }
.opcoes.duas { grid-template-columns: 1fr 1fr; }
.op { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #cfc5b3; border-radius: 10px; padding: 11px 13px; cursor: pointer; background: #fffdf9; font-size: 15px; line-height: 1.4; }
.op input { margin-top: 3px; accent-color: var(--ouro-forte); flex: none; }
.op:has(input:checked) { border-color: var(--ouro-forte); background: var(--ouro-claro); }
.op:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(184,146,95,.35); }
.op small { display: block; color: var(--tinta-3); font-size: 13px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tinta-2); margin: 8px 0 18px; }
.consent input { margin-top: 4px; accent-color: var(--ouro-forte); flex: none; }
.erro { color: var(--vermelho); font-size: 13.5px; margin-top: 6px; display: none; }
.f.invalido .erro { display: block; }
.f.invalido input, .f.invalido select, .f.invalido .op { border-color: var(--vermelho); }
form.cad .botao { width: 100%; justify-content: center; background: var(--grafite); color: #f5f0e8; }
form.cad .botao[disabled] { opacity: .6; cursor: wait; }
.pronto { display: none; text-align: center; }
.pronto h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.pronto p { color: var(--tinta-2); }
.pronto .botao { width: auto; margin: 8px 6px 0; }
.pronto .botao.sec { background: transparent; color: var(--tinta); border: 1.5px solid #cfc5b3; }

/* ---------- impressão / PDF ---------- */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  body { background: #fff; font-size: 11pt; }
  .topo, .indice, .copiar, .nao-imprimir { display: none !important; }
  .capa { padding: 40px 28px; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-after: page; min-height: 250mm; display: flex; align-items: center; }
  .sec { padding-top: 14px; break-inside: auto; }
  .sec-cab { margin-bottom: 14px; }
  .grade { gap: 10px; }
  .sec-cab { break-after: avoid; }
  .prompt, .cartao, .passos li, .maquete, .aviso, .tab-wrap { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .num, .fecho, .prompt-cab, table.t th, .passos li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main { padding-bottom: 0; }
  a { text-decoration: none; }
}

/* utilitários (o CSP não aceita style="" no HTML) */
.mt { margin-top: 18px; }
.olho-claro { color: #7a5c33; }
.olho-claro::before { background: #b8925f; }
.erro-consent { margin-top: -10px; }
.botao-topo { margin: 0; padding: 10px 18px; font-size: 14px; }
.prosa.nota { font-size: 14.5px; }
.area.sem-pad { padding: 0; }
.pje-corpo { padding: 12px; }
.pronto { display: none; }
.pronto.on { display: block; }
.oculto { display: none; }

.f > label.consent { display: flex; font-weight: 400; font-size: 14px; margin-bottom: 0; }
