/* content.css — páginas de conteúdo estáticas (blog/guias) do Leadvora.
   Identidade de marca: fonte Inter, chrome escuro (header/rodapé como a landing),
   verde #00C878 + gradiente, corpo claro para leitura. Independente do SPA. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #0f172a; --muted: #475569; --faint: #64748b; --line: #e6eaf0;
  --bg: #ffffff; --bg-soft: #f6f8fb;
  --green: #00C878; --green-ink: #0b8f57; --blue: #00B4D8; --blue2: #1E6FE8;
  --dark: #060412; --darker: #030210; --dark-line: rgba(255,255,255,.08);
  --max: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--green-ink); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header VERDE (identidade da marca) + logo/wordmark preto */
.site-header { background: var(--green); border-bottom: 1px solid rgba(0,0,0,.12); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .brand { display: inline-flex; align-items: center; }
.site-header .brand img { height: 40px; width: auto; display: block; }
.site-header .nav { display: flex; align-items: center; gap: 22px; }
.site-header .nav > a:not(.btn) { color: #05140d; font-weight: 700; font-size: 15px; }
.site-header .nav > a:not(.btn):hover { text-decoration: none; opacity: .7; }
.site-header .btn { background: #05140d; color: #fff; box-shadow: none; padding: 9px 18px; font-size: 14px; font-weight: 700; border-radius: 9px; }
.site-header .btn:hover { background: #000; }
@media (max-width: 560px) { .site-header .nav > a:not(.btn) { display: none; } }
.btn { display: inline-block; background: var(--green); color: #052015; font-weight: 800; padding: 9px 18px; border-radius: 10px; font-size: 15px; box-shadow: 0 6px 20px rgba(0,200,120,.28); transition: transform .15s, background .15s; }
.btn:hover { background: #00b36a; text-decoration: none; transform: translateY(-1px); }

/* Artigo */
article { padding: 44px 0 24px; }
.eyebrow { color: var(--green-ink); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: 2.15rem; line-height: 1.14; letter-spacing: -.025em; font-weight: 900; margin: 12px 0 10px; }
.lead { font-size: 1.16rem; color: var(--muted); margin: 0 0 8px; }
.meta { color: var(--faint); font-size: 14px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
h2 { font-size: 1.55rem; letter-spacing: -.02em; font-weight: 800; margin: 42px 0 12px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 8px; }
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--green); font-weight: 700; }
strong { color: var(--ink); font-weight: 700; }
.tldr { background: linear-gradient(135deg,#eefaf3,#eaf6fb); border: 1px solid #bfead3; border-radius: 14px; padding: 18px 22px; margin: 0 0 30px; }
.tldr strong:first-child { color: var(--green-ink); }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 18px 22px; margin: 26px 0; }
.callout p:last-child { margin-bottom: 0; }
.faq h3 { margin-top: 22px; }

/* CTA escuro com brilho de marca */
.cta-box { background: radial-gradient(120% 140% at 0% 0%, #10233a 0%, var(--dark) 55%); color: #fff; border: 1px solid rgba(0,200,120,.25); border-radius: 18px; padding: 30px; text-align: center; margin: 42px 0; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.cta-box h2 { color: #fff; margin: 0 0 8px; }
.cta-box p { color: #b6c2d4; margin: 0 0 18px; }
.faint { color: var(--faint); font-size: 14px; }

/* Rodapé escuro (igual à landing) */
.site-footer { background: var(--darker); border-top: 1px solid var(--dark-line); padding: 30px 0; margin-top: 44px; color: rgba(255,255,255,.42); font-size: 14px; }
.site-footer .wrap { text-align: center; }
.site-footer a { color: rgba(255,255,255,.6); font-weight: 500; }
.site-footer a:hover { color: #fff; }

/* ===== HUB do blog (organização por categorias + cards) ===== */
.hub { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hub-hero { background: linear-gradient(135deg, rgba(0,200,120,.10), rgba(0,180,216,.08)); border: 1px solid #cdeede; border-radius: 20px; padding: 40px 32px; margin: 40px 0 12px; }
.hub-hero .eyebrow { color: var(--green-ink); }
.hub-hero h1 { margin: 10px 0 8px; font-size: 2.3rem; }
.hub-hero .lead { max-width: 640px; }
.cat { margin: 44px 0 0; }
.cat-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--green); padding-bottom: 8px; margin-bottom: 20px; }
.cat-head h2 { margin: 0; font-size: 1.4rem; }
.cat-head span { color: var(--faint); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.07); text-decoration: none; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-ink); background: rgba(0,200,120,.10); border-radius: 6px; padding: 3px 8px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; color: var(--ink); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.card .more { display: inline-block; margin-top: 12px; color: var(--green-ink); font-weight: 700; font-size: .9rem; }

/* ===== E-book / materiais ===== */
.ebook-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 10px 0 34px; }
.ebook-toc strong { display: block; color: var(--green-ink); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.ebook-toc ol { margin: 0; padding-left: 20px; }
.ebook-toc li { margin-bottom: 6px; }
.template { background: #0b1220; border: 1px solid rgba(255,255,255,.08); border-left: 4px solid var(--green); border-radius: 12px; padding: 18px 20px; margin: 16px 0; }
.template .label { display: block; color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.template p { margin: 0 0 10px; color: #cdd6e2; font-size: .98rem; line-height: 1.6; }
.template p:last-child { margin-bottom: 0; }
.template .var { color: #7ee0b0; font-weight: 600; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.tip { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.tip strong { display: block; color: var(--green-ink); margin-bottom: 4px; }
.tip p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ===== Gate de download de e-book (compartilhado) ===== */
.ebook-download { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px;
  background: linear-gradient(135deg, rgba(0,200,120,.10), rgba(0,180,216,.08)); border:1px solid #cdeede;
  border-radius:14px; padding:18px 22px; margin: 4px 0 30px; }
.ebook-download > div { color: var(--ink); font-size:1rem; max-width: 460px; }
.eg-overlay { position:fixed; inset:0; background:rgba(3,2,16,.72); display:flex; align-items:center; justify-content:center; padding:20px; z-index:1000; }
.eg-overlay[hidden] { display:none; }
.eg-modal { background:#fff; border-radius:18px; width:100%; max-width:440px; padding:28px; position:relative; box-shadow:0 30px 80px rgba(0,0,0,.4); }
.eg-close { position:absolute; top:12px; right:14px; background:none; border:none; font-size:26px; line-height:1; color:#94a3b8; cursor:pointer; }
.eg-modal h3 { margin:0 0 6px; font-size:1.35rem; color:var(--ink); font-weight:800; }
.eg-sub { margin:0 0 18px; color:var(--muted); font-size:.95rem; }
#eg-form input[type=text], #eg-form input[type=email], #eg-form input[type=tel] { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 14px; font-size:15px; margin-bottom:10px; font-family:inherit; color:var(--ink); }
#eg-form input:focus { outline:none; border-color:var(--green); }
.eg-consent { display:flex; gap:8px; align-items:flex-start; font-size:.82rem; color:var(--muted); margin:4px 0 16px; line-height:1.4; }
.eg-consent input { margin-top:2px; }
.eg-submit { width:100%; border:none; cursor:pointer; font-size:15px; }
.eg-hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.eg-error { color:#dc2626; font-size:.88rem; margin:10px 0 0; }
.eg-done { text-align:center; }
.eg-done .eg-download { margin:10px 0; }
.eg-note { color:var(--faint); font-size:.82rem; margin:6px 0 0; }
@media (max-width:520px){ .ebook-download { flex-direction:column; align-items:flex-start; } }

/* ===== Calculadoras / ferramentas ===== */
.calc { background: var(--bg-soft); border:1px solid var(--line); border-radius:16px; padding:24px; margin:24px 0; }
.calc label { display:block; font-weight:700; color:var(--ink); font-size:.92rem; margin:14px 0 6px; }
.calc label:first-child { margin-top:0; }
.calc .hint { font-weight:400; color:var(--faint); font-size:.82rem; }
.calc input[type=number] { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 14px; font-size:16px; font-family:inherit; color:var(--ink); background:#fff; }
.calc input:focus { outline:none; border-color:var(--green); }
.calc .row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.calc .row .col label:first-child { margin-top:14px; }
.calc-result { margin-top:22px; border-top:2px solid var(--green); padding-top:18px; }
.calc-result .headline { font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; color:var(--green-ink); font-weight:800; margin-bottom:6px; }
.calc-result .big { font-size:2.1rem; font-weight:900; color:var(--ink); letter-spacing:-.02em; line-height:1.1; }
.calc-out { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); font-size:1rem; }
.calc-out:last-child { border-bottom:none; }
.calc-out span:last-child { font-weight:800; color:var(--ink); white-space:nowrap; }
.calc-out.pos span:last-child { color:var(--green-ink); }
.calc-out.neg span:last-child { color:#dc2626; }
@media (max-width:520px){ .calc .row { grid-template-columns:1fr; } }

/* ===== Glossário ===== */
.gloss-nav { display:flex; flex-wrap:wrap; gap:8px; margin: 6px 0 26px; }
.gloss-nav a { border:1px solid var(--line); border-radius:8px; padding:5px 11px; font-size:14px; font-weight:700; color:var(--green-ink); }
.gloss-nav a:hover { background:var(--green); color:#052015; text-decoration:none; }
.gloss-term { border-top:1px solid var(--line); padding-top:18px; margin-top:18px; }
.gloss-term:first-of-type { border-top:none; padding-top:0; margin-top:0; }
.gloss-term h3 { margin:0 0 6px; font-size:1.22rem; color:var(--ink); }
.gloss-term p { margin:0; }

/* Lista simples (fallback) */
.post-list { list-style: none; padding: 0; margin: 28px 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list a.title { font-size: 1.28rem; font-weight: 800; color: var(--ink); }
.post-list a.title:hover { color: var(--green-ink); text-decoration: none; }
.post-list p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 640px) { body { font-size: 17px; } h1 { font-size: 1.72rem; } h2 { font-size: 1.32rem; } .hub-hero { padding: 28px 22px; } .hub-hero h1 { font-size: 1.8rem; } }
