/* Blog do Bukme. Claro para leitura longa; marca do site (Geist, amarelo só em destaque).
   Regras: docs/claude/blog.md. Espaços: 4 8 12 16 24 32 40 48 64 80. */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --text: #1A1A17;
  --muted: #5E5D57;
  --dim: #8A8982;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.16);
  --y: #F0B400;
  --y-hover: #FFC21A;
  --y-soft: #FFF6D6;
  --bad: #B42318;
  --on-y: #1A1500;
  --ink: #131209;
  --ink-2: #1F1F1F;
  --ink-text: #F4F3EE;
  --ink-muted: #A6A59E;
  --ink-line: rgba(255, 255, 255, 0.12);
  --wa-bg: #EFEAE2;
  --wa-out: #D9FDD3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ler: 680px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Geist", system-ui, sans-serif; font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
::selection { background: var(--y); color: var(--on-y); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }

.pular { position: fixed; left: 16px; top: 16px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--y); color: var(--on-y); font-weight: 600; transform: translateY(-200%); }
.pular:focus { transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 9999px; background: var(--y); color: var(--on-y);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color 200ms var(--ease);
}
.btn:hover { background: var(--y-hover); }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); }
.topo-in { max-width: var(--max); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topo-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.topo-logo .bk-logo { height: 22px; width: auto; }
.topo-blog { font-weight: 600; font-size: 0.9375rem; padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--muted); }
.topo-links { display: flex; align-items: center; gap: 20px; font-size: 0.9375rem; }
.topo-links a { text-decoration: none; color: var(--muted); }
.topo-links a:hover { color: var(--text); }
/* discreto de propósito: o blog ensina primeiro; o convite forte fica só no fim do artigo */
.topo-links .topo-teste { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 9999px; color: var(--text); font-weight: 500; transition: border-color 200ms var(--ease); }
.topo-links .topo-teste:hover { border-color: var(--text); }
@media (max-width: 560px) { .topo-links a:not(.topo-teste) { display: none; } }

/* ---------- Artigo ---------- */
.artigo-topo, .artigo-corpo { max-width: var(--ler); margin: 0 auto; padding: 0 16px; }
.artigo-topo { padding-top: 40px; }
.trilha { display: flex; gap: 8px; font-size: 0.875rem; color: var(--dim); margin-bottom: 16px; }
.trilha a { color: var(--muted); text-decoration: none; }
.trilha a:hover { color: var(--text); text-decoration: underline; }
.artigo h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); line-height: 1.12; }
.linha-fina { margin: 16px 0 0; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.assinatura { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.assinatura img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.assinatura p { margin: 0; }
.assinatura-nome { font-weight: 600; font-size: 0.9375rem; }
.assinatura-data { font-size: 0.875rem; color: var(--dim); }

.capa { max-width: 960px; margin: 32px auto 0; padding: 0 16px; }
.capa img { width: 100%; border-radius: 16px; aspect-ratio: 1200 / 630; object-fit: cover; }

.artigo-corpo { padding-top: 32px; padding-bottom: 64px; font-size: 1.125rem; line-height: 1.75; }
.artigo-corpo > p, .artigo-corpo > ul, .artigo-corpo > ol { margin: 0 0 20px; }
.artigo-corpo ul, .artigo-corpo ol { padding-left: 24px; }
.artigo-corpo li { margin-bottom: 8px; }
.artigo-corpo h2 { font-size: 1.625rem; line-height: 1.25; margin: 48px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.artigo-corpo h3 { font-size: 1.25rem; line-height: 1.35; margin: 32px 0 8px; }
.artigo-corpo a { text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.artigo-corpo a:hover { text-decoration-color: var(--text); }
.artigo-corpo strong { font-weight: 600; }

.resumo { margin: 0 0 32px; padding: 20px 24px; border: 1px solid var(--line-2); border-left: 4px solid var(--y); border-radius: 12px; }
.resumo p { margin: 0; }
.resumo-tit { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px !important; }

.indice { margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.indice-tit { font-weight: 600; margin: 0 0 8px; }
.indice ol { margin: 0; padding-left: 20px; }
.indice li { margin-bottom: 4px; }
.indice a { text-decoration: none; color: var(--muted); }
.indice a:hover { color: var(--text); text-decoration: underline; }

.tabela { margin: 0 0 24px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { font-weight: 600; }

/* Mensagem de WhatsApp para copiar */
.msg { margin: 0 0 24px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.msg figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; font-size: 0.9375rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.msg-copiar { font: inherit; font-size: 0.875rem; font-weight: 600; padding: 6px 12px; border-radius: 9999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); cursor: pointer; }
.msg-copiar:hover { border-color: var(--text); }
.msg-copiar.ok { background: var(--text); color: var(--bg); border-color: var(--text); }
.msg-balao { background: var(--wa-bg); padding: 16px; }
.msg-balao p {
  margin: 0 0 0 auto; max-width: 88%; width: fit-content; padding: 8px 12px 8px 12px;
  background: var(--wa-out); border-radius: 10px 0 10px 10px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  font-size: 1rem; line-height: 1.5; color: #111B21;
}

.nota-bukme { margin: 0 0 24px; padding: 16px 20px; border-radius: 12px; background: var(--y-soft); font-size: 1rem; line-height: 1.6; }
.nota-bukme p { margin: 0; }

.leia { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 1rem; }
.leia-tit { font-weight: 600; margin: 0 0 12px; }
.artigo-corpo .leia ul { list-style: none; padding: 0; margin: 0; }
.leia li { margin-bottom: 8px; }
.autor { display: flex; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.autor img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.autor p { margin: 0; }
.autor-nome { font-weight: 600; }
.autor-cargo { color: var(--dim); font-size: 0.9375rem; margin-bottom: 8px !important; }

.chamada {
  margin-top: 40px; padding: 32px; border-radius: 20px; background: var(--ink); color: var(--ink-text);
  display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: center; overflow: hidden;
  font-size: 1rem; line-height: 1.6;
}
.chamada p { margin: 0; }
.chamada-selo { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--y); margin-bottom: 12px !important; }
.chamada-tit { font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 20px !important; }
.chamada .chamada-lista { list-style: none; margin: 0 0 24px; padding: 0; color: var(--ink-muted); }
.chamada .chamada-lista li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.chamada-lista li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--y) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1500' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.btn-grande { padding: 14px 24px; font-size: 1rem; }
.chamada-nota { margin-top: 12px !important; font-size: 0.875rem; color: var(--ink-muted); }
.chamada-nota a { color: var(--ink-text); text-decoration-color: var(--y); }
.chamada-cel { align-self: end; margin-bottom: -32px; }
.chamada-cel img {
  width: 100%; border: 6px solid #2A2A2A; border-bottom: 0; border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 40px rgba(240, 180, 0, 0.18);
}
@media (max-width: 620px) {
  .chamada { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .chamada-cel { max-width: 220px; margin: 0 auto -24px; }
  .btn-grande { width: 100%; }
}

/* ---------- Índice do blog ---------- */
.indice-pag { max-width: var(--max); margin: 0 auto; padding: 48px 16px 80px; }
.indice-topo { max-width: var(--ler); margin-bottom: 40px; }
.indice-topo h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: block; text-decoration: none; color: inherit; }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; }
.card-txt { padding-top: 16px; }
.card-txt p { margin: 0; color: var(--muted); }
.card-cat { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim) !important; margin-bottom: 8px !important; }
.card h2 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
.card:hover h2 { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-data { font-size: 0.875rem; color: var(--dim) !important; margin-top: 12px !important; }

/* ---------- Rodapé (escuro, como o site) ---------- */
.rodape { background: var(--ink); color: var(--ink-muted); }
.rodape-in { max-width: var(--max); margin: 0 auto; padding: 48px 16px 32px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; font-size: 0.9375rem; }
.rodape p { margin: 0; }
.rodape-marca { max-width: 320px; }
.rodape-logo { display: inline-block; color: var(--ink-text); margin-bottom: 12px; }
.rodape-logo .bk-logo { height: 24px; width: auto; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.rodape a { color: var(--ink-text); text-decoration: none; }
.rodape a:hover { color: var(--y); }
.rodape-dir { flex-basis: 100%; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 0.8125rem; color: var(--ink-muted); }

/* ---------- Calculadora ---------- */
.calc { margin: 8px 0 32px; padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; font-size: 1rem; line-height: 1.5; }
.calc-tit { font-weight: 600; font-size: 1.125rem; margin: 0 0 16px; }
.calc-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.calc-campo { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; font-weight: 500; }
.calc-campo small { font-weight: 400; color: var(--dim); font-size: 0.8125rem; }
.calc-din { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.calc-din:focus-within { border-color: var(--text); }
.calc-din b { font-weight: 500; color: var(--dim); }
.calc-din input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.0625rem; color: var(--text); background: transparent; font-variant-numeric: tabular-nums; }
.calc-grupo { border: 0; padding: 0; margin: 0 0 16px; }
.calc-grupo legend { font-size: 0.9375rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.calc-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-opcoes label { cursor: pointer; }
.calc-opcoes input { position: absolute; opacity: 0; pointer-events: none; }
.calc-opcoes span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 9999px; font-size: 0.9375rem; transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.calc-opcoes input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.calc-opcoes input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.calc-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.calc-res div { display: flex; flex-direction: column; gap: 2px; }
.calc-res span { font-size: 0.8125rem; color: var(--muted); }
.calc-res strong { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-destaque strong { font-size: 1.5rem; box-shadow: inset 0 -8px 0 var(--y-soft); width: fit-content; }
.calc-conta { margin: 16px 0 0; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 560px) {
  .calc { padding: 16px; }
  .calc-campos { grid-template-columns: 1fr; }
  .calc-res { grid-template-columns: 1fr; gap: 12px; }
}
.calc-res strong.neg { color: var(--bad); }
