/* Blog e páginas legais. Identidade da agência (docs/plano-identidade-visual.md), direção A. */
@font-face { font-family: Satoshi; src: url(/fonts/Satoshi-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Satoshi; src: url(/fonts/Satoshi-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Satoshi; src: url(/fonts/Satoshi-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Satoshi; src: url(/fonts/Satoshi-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --indigo: #4242D8;
  --lavender: #6460EB;
  --cream: #F5EEDC;
  --cream-2: #EDE4CC;
  --coral: #EF390C;
  --amber: #FFAD00;
  --ink: #0A0A0C;
  --white: #FFFFFF;
  --muted: #55524A;

  color-scheme: light;
  font-family: Satoshi, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; -webkit-font-smoothing: antialiased; }
/* Link em índigo sublinhado: 7:1 sobre o creme. */
a { color: var(--indigo); text-underline-offset: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Topo índigo com o meio-círculo lavanda (igual à landing) */
.topbar { position: relative; overflow: hidden; background: var(--indigo); }
.topbar::before { content: ""; position: absolute; left: -120px; top: -60px; width: 300px; height: 200px; border-radius: 0 999px 999px 0; background: var(--lavender); }
.topbar .wrap { position: relative; max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
.brand { display: block; text-decoration: none; }
.brand img { display: block; height: 38px; width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  font-family: inherit; font-weight: 700; font-size: 19px; line-height: 1;
  text-decoration: none; cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
/* Cores com significado (docs/plano-identidade-visual.md): amarelo cria (entrar, começar),
   preto confirma. Coral fica para problema, que o blog não tem. */
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 16px; }
.topbar .btn-primary { background: var(--white); color: var(--ink); }

/* Article */
article { padding: 40px 0 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700;
  color: var(--white); background: var(--ink); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
article h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 900; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
article h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 900; line-height: 1.15; margin: 44px 0 12px; letter-spacing: -0.01em; }
article h3 { font-size: 20px; font-weight: 700; margin: 28px 0 8px; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin: 6px 0; }
article strong { font-weight: 700; }

.callout { background: var(--white); border-radius: 24px; padding: 20px 24px; margin: 24px 0; }
.callout.warn { background: var(--amber); }
.callout p:last-child { margin-bottom: 0; }

.tbl-scroll { overflow-x: auto; margin: 24px 0; background: var(--white); border-radius: 24px; padding: 6px 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; }
tr + tr td { border-top: 1px solid var(--cream-2); }
th { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--indigo); }
td { color: var(--muted); }
td strong { color: var(--ink); }

/* CTA do produto: bloco amarelo, como o CTA final da landing */
.cta { text-align: center; background: var(--amber); border-radius: 32px; padding: 40px 28px; margin: 44px 0 8px; }
.cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 30px); }
.cta p { margin: 0 0 22px; }
.cta .btn-primary { background: var(--ink); color: var(--white); }

/* Related / internal links */
.related { margin-top: 44px; padding-top: 28px; border-top: 2px solid var(--ink); }
.related h2 { font-size: 20px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { text-decoration: none; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* Blog index cards */
.postlist { display: grid; gap: 14px; padding: 8px 0 24px; }
.postcard { display: block; background: var(--white); border-radius: 28px; padding: 24px 28px; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.postcard:hover { transform: translateY(-2px); }
.postcard .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--white); background: var(--indigo); border-radius: 999px; padding: 4px 12px; }
.postcard h2 { font-size: 22px; font-weight: 900; line-height: 1.2; margin: 10px 0 6px; }
.postcard p { color: var(--muted); margin: 0; font-size: 16px; }

footer { background: var(--ink); color: #CFCFD4; padding: 48px 0 56px; font-size: 14px; margin-top: 56px; }
footer .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer .brand img { height: 30px; }
footer .disclaimer { max-width: 620px; }
footer .legal { display: flex; gap: 16px; }
footer .legal a { color: #CFCFD4; }

@media (max-width: 600px) {
  .brand img { height: 28px; }
  .topbar::before { width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .postcard { transition: none; } }
