/* =============================================
   DESCOMPLICA PERÍCIAS — tema dos artigos do blog
   Mesma identidade da home: #222220 · #EDEDED · #FFFFFF · #3F99C5
   Carregado depois do <style> de cada artigo, por isso sobrescreve.
   ============================================= */
:root {
  --ink: #222220;
  --paper: #EDEDED;
  --white: #FFFFFF;
  --blue: #3F99C5;
  --blue-dark: #2B7FA8;
  --black: #222220;
  --rule: rgba(34,34,32,.14);
  --text-2: rgba(34,34,32,.72);
  --font-body: 'Area Extended', 'Area', 'Archivo', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

body { font-family: var(--font-body); font-stretch: 112%; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); color: var(--white); }
a { color: var(--blue-dark); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
p, li { text-wrap: pretty; }

/* Barra de progresso de leitura */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); padding: 0; }
.site-header .inner { max-width: 1240px; height: 72px; padding: 0 32px; }
.logo { color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: -.01em; text-transform: none; }
.logo span { color: var(--blue); }
.logo:hover { text-decoration: none; }
.header-cta { background: var(--ink); color: var(--white); height: 42px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 500; transition: background .3s; }
.header-cta:hover { background: #000; text-decoration: none; }

/* Hero do artigo */
.article-hero { background: var(--white); padding: 96px 24px 56px; text-align: center; border-bottom: 1px solid var(--rule); }
.article-category { background: rgba(63,153,197,.12); color: var(--blue-dark); font-size: .8rem; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 7px 16px; border-radius: 999px; margin-bottom: 28px; }
.article-hero h1 { color: var(--ink); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; max-width: 20ch; margin: 0 auto 24px; }
.article-meta { color: rgba(34,34,32,.55); font-size: .88rem; }

/* Corpo */
.article-wrap { max-width: 760px; padding: 72px 24px 112px; }
article h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 500; color: var(--ink); margin: 64px 0 18px; line-height: 1.15; letter-spacing: -.03em; }
article h2:first-child { margin-top: 0; }
article h3 { font-size: 1.15rem; font-weight: 500; color: var(--ink); margin: 36px 0 12px; }
article p, article li { font-size: 1.04rem; color: var(--text-2); line-height: 1.8; }
article strong { color: var(--ink); font-weight: 600; }
article em { color: rgba(34,34,32,.6); }
article ul { list-style: none; padding-left: 0; }
article ul > li { position: relative; padding-left: 26px; }
article ul > li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 1.5px; background: var(--blue); }
article ol { padding-left: 22px; }
article ol > li::marker { color: var(--blue); font-weight: 600; }

/* Componentes */
.highlight { background: var(--paper); border-left: 2px solid var(--blue); border-radius: 0; padding: 24px 28px; margin: 40px 0; }
.highlight p { color: var(--ink); font-weight: 500; font-size: 1.08rem; line-height: 1.6; }
.warning { background: rgba(63,153,197,.08); border-left: 2px solid var(--blue); border-radius: 0; }
.example-box { background: var(--paper); border: 0; border-radius: 0; padding: 28px 32px; }
.example-label { color: var(--blue-dark); font-size: .8rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.step-block { background: var(--paper); border-radius: 0; padding: 28px; gap: 24px; }
.step-num { background: var(--blue); color: var(--white); font-family: var(--font-body); font-weight: 500; }
.table-wrap { border: 1px solid var(--rule); border-radius: 0; }
article table { border-collapse: collapse; width: 100%; font-size: .94rem; }
article th { background: var(--ink); color: var(--white); font-weight: 500; text-align: left; }
article th, article td { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
article tr:nth-child(even) td { background: rgba(237,237,237,.5); }
hr.divider { border-top: 1px solid var(--rule); margin: 64px 0; }

/* CTA do artigo */
.cta-block { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); border-radius: 4px; padding: 56px 48px; margin-top: 72px; text-align: left; animation: none; }
.cta-block::after { content: "Descomplica"; position: absolute; right: -24px; bottom: -.2em; z-index: -1; font-size: 9rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25); pointer-events: none; white-space: nowrap; }
.cta-label { color: var(--white); font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 500; opacity: .85; }
.cta-block h2 { color: var(--white); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.cta-block p { color: rgba(255,255,255,.88); margin: 0 0 28px; max-width: 52ch; }
.cta-btn { background: var(--ink); color: var(--white); border-radius: 999px; padding: 16px 30px; font-weight: 500; animation: none; transition: transform .3s var(--ease), background .3s; }
.cta-btn:hover { background: #000; transform: scale(1.02); text-decoration: none; }
.cta-micro { color: rgba(255,255,255,.75); }

/* Rodapé */
.site-footer { background: var(--ink); padding: 48px 24px; }
.site-footer p { color: rgba(237,237,237,.6); font-size: .86rem; }
.site-footer a { color: var(--white); }
.floating-whatsapp { box-shadow: none; animation: none; }

/* Revelação suave */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .site-header .inner { height: 64px; padding: 0 20px; }
  .article-hero { padding: 64px 20px 40px; }
  .article-wrap { padding: 48px 20px 80px; }
  .cta-block { padding: 40px 24px; }
  .cta-block::after { font-size: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
