/* =====================================================================
   WOOA — componentes de conteúdo (artigos e páginas de palavra-chave)
   Usa os tokens de style.css. Carregado depois de style.css.
   ===================================================================== */

/* ---------- Hero de conteúdo ---------- */
.ct-hero { padding: calc(var(--nav-h) + 3.5rem) 0 4rem; background: linear-gradient(135deg, var(--wooa-navy) 0%, #163766 60%, #0e4a5e 100%); color: #fff; position: relative; overflow: hidden; }
.ct-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(42,191,170,.18) 0%, rgba(42,191,170,0) 70%); pointer-events: none; }
.ct-hero .container { position: relative; z-index: 1; }
.ct-hero h1 { color: #fff; margin: 1rem 0 1.25rem; max-width: 820px; }
.ct-hero .lead { color: rgba(255,255,255,.8); max-width: 700px; margin: 0 0 2rem; }
.ct-hero .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.ct-hero--article { padding-bottom: 3.25rem; }
.ct-hero--article h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); max-width: 860px; }
.ct-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: rgba(255,255,255,.7); }
.ct-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ct-meta svg { opacity: .8; }

/* ---------- Layout do artigo: sumário lateral + texto ---------- */
.ct-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; max-width: 1080px; margin: 0 auto; padding: 3.5rem 0 1rem; align-items: start; }
.ct-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.ct-toc { border-left: 2px solid var(--wooa-gray-100); padding-left: 1.125rem; }
.ct-toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wooa-teal-dk); margin-bottom: .75rem; }
.ct-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.ct-toc li { counter-increment: toc; margin: 0 0 .625rem; }
.ct-toc a { display: flex; gap: .5rem; font-size: .875rem; line-height: 1.45; color: var(--wooa-gray-600); transition: color .15s; }
.ct-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--wooa-gray-400); font-size: .75rem; padding-top: 2px; }
.ct-toc a:hover { color: var(--wooa-teal-dk); }
.ct-aside-cta { margin-top: 2rem; background: var(--wooa-teal-lt); border-radius: var(--radius-md); padding: 1.125rem; }
.ct-aside-cta p { font-size: .875rem; color: var(--wooa-navy); font-weight: 600; margin: 0 0 .75rem; line-height: 1.5; }
.ct-aside-cta .btn { width: 100%; justify-content: center; font-size: .8125rem; padding: .6rem .75rem; }
.ct-toc-mobile { display: none; }

/* ---------- Corpo do texto ---------- */
.ct-body { max-width: 720px; counter-reset: sec; }
.ct-body > h2 { counter-increment: sec; font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin: 3.25rem 0 1rem; padding-top: 2.25rem; border-top: 1px solid var(--wooa-gray-100); display: flex; gap: .875rem; align-items: baseline; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.ct-body > h2::before { content: counter(sec, decimal-leading-zero); font-size: .875rem; font-weight: 800; color: var(--wooa-teal-dk); background: var(--wooa-teal-lt); border-radius: 999px; padding: .2rem .6rem; flex-shrink: 0; position: relative; top: -2px; }
.ct-body > h2.no-num::before { display: none; }
.ct-body > h3 { font-size: 1.125rem; margin: 1.75rem 0 .5rem; color: var(--wooa-navy); }
.ct-body p, .ct-body li { font-size: 1.0625rem; line-height: 1.8; color: var(--wooa-gray-600); }
.ct-body p { margin: 0 0 1.125rem; }
.ct-body strong { color: var(--wooa-navy); font-weight: 700; }
.ct-body a { color: var(--wooa-teal-dk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ct-body a:hover { color: var(--wooa-navy); }
.ct-body ul, .ct-body ol { margin: 0 0 1.375rem; padding-left: 1.25rem; }
.ct-body li { margin-bottom: .5rem; }
.ct-lead { font-size: 1.25rem !important; line-height: 1.7 !important; color: var(--wooa-text) !important; padding-left: 1.25rem; border-left: 3px solid var(--wooa-teal); margin-bottom: 0 !important; }

/* ---------- Tabelas ---------- */
.ct-table { border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0 1.75rem; background: var(--wooa-white); box-shadow: var(--shadow-sm); }
.ct-table-scroll { overflow-x: auto; }
.ct-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ct-table th { background: var(--wooa-navy); color: #fff; font-weight: 700; text-align: left; padding: .875rem 1rem; font-size: .875rem; }
.ct-table td { padding: .875rem 1rem; border-top: 1px solid var(--wooa-gray-100); color: var(--wooa-gray-600); vertical-align: top; line-height: 1.55; }
.ct-table tbody tr:nth-child(even) td { background: var(--wooa-gray-50); }
.ct-table td:first-child { font-weight: 600; color: var(--wooa-navy); }
.ct-table tr.total td { background: var(--wooa-teal-lt) !important; color: var(--wooa-navy); font-weight: 800; }
.ct-table .hl { color: var(--wooa-teal-dk); font-weight: 700; }
.ct-table-note { font-size: .8125rem !important; color: var(--wooa-gray-400) !important; margin-top: -1rem !important; }

/* ---------- Números em destaque ---------- */
.ct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1rem; margin: 1.5rem 0 1.75rem; }
.ct-stat { background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1.125rem; position: relative; overflow: hidden; }
.ct-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--wooa-teal); }
.ct-stat--dark { background: var(--wooa-navy); border-color: var(--wooa-navy); }
.ct-stat--dark .ct-stat-num { color: #fff; }
.ct-stat--dark .ct-stat-label { color: rgba(255,255,255,.7); }
.ct-stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--wooa-navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ct-stat-label { display: block; font-size: .8125rem; color: var(--wooa-gray-600); margin-top: .375rem; line-height: 1.45; }

/* ---------- Destaques ---------- */
.ct-callout { display: flex; gap: .875rem; background: var(--wooa-teal-lt); border-radius: var(--radius-md); padding: 1.125rem 1.25rem; margin: 1.5rem 0 1.75rem; }
.ct-callout-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--wooa-teal-cta); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .875rem; flex-shrink: 0; }
.ct-callout p { margin: 0 !important; font-size: .9688rem !important; color: var(--wooa-navy) !important; line-height: 1.65 !important; }
.ct-callout--amber { background: var(--wooa-amber-lt); }
.ct-callout--amber .ct-callout-icon { background: var(--wooa-amber); color: var(--wooa-navy); }

/* ---------- Listas ---------- */
.ct-check, .ct-x { list-style: none; padding: 0 !important; }
.ct-check li, .ct-x li { position: relative; padding-left: 2rem; }
.ct-check li::before, .ct-x li::before { position: absolute; left: 0; top: .3rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6875rem; font-weight: 800; }
.ct-check li::before { content: '✓'; background: var(--wooa-teal-lt); color: var(--wooa-teal-dk); }
.ct-x li::before { content: '✕'; background: var(--wooa-amber-lt); color: #b26a00; }

/* ---------- Cards dentro do texto ---------- */
.ct-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 1.75rem; }
.ct-card { background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); padding: 1.25rem 1.375rem; }
.ct-card h3, .ct-card h4 { font-size: 1rem !important; margin: 0 0 .5rem !important; color: var(--wooa-navy); display: flex; align-items: center; gap: .5rem; }
.ct-card p, .ct-card li { font-size: .9375rem !important; line-height: 1.6 !important; }
.ct-card p:last-child, .ct-card ul:last-child { margin-bottom: 0 !important; }
.ct-card ul { padding-left: 1.1rem !important; margin: 0 !important; }
.ct-card li { margin-bottom: .35rem !important; }
.ct-card--accent { border-color: var(--wooa-teal); box-shadow: 0 0 0 3px var(--wooa-teal-lt); }
.ct-card-tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wooa-teal-dk); display: block; margin-bottom: .375rem; }
.ct-card--muted .ct-card-tag { color: var(--wooa-gray-400); }

/* ---------- Passo a passo ---------- */
.ct-steps { list-style: none; padding: 0 !important; margin: 1.5rem 0 1.75rem; counter-reset: step; position: relative; }
.ct-steps::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--wooa-gray-100); }
.ct-steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.5rem; margin: 0 !important; }
.ct-steps li:last-child { padding-bottom: 0; }
.ct-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--wooa-teal-cta); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--wooa-white); }
.ct-steps li strong { display: block; font-size: 1.0625rem; margin-bottom: .125rem; }

/* ---------- Fórmula (eNPS) ---------- */
.ct-formula { background: var(--wooa-navy); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0 1.75rem; color: #fff; }
.ct-formula-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.ct-group { border-radius: var(--radius-md); padding: .875rem; text-align: center; }
.ct-group b { display: block; font-size: 1.25rem; font-weight: 800; }
.ct-group span { font-size: .8125rem; opacity: .85; }
.ct-group--pro { background: rgba(42,191,170,.2); color: #7ee8da; }
.ct-group--neu { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.ct-group--det { background: rgba(245,166,35,.18); color: #ffc873; }
.ct-formula-eq { text-align: center; font-size: 1.125rem; font-weight: 700; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.ct-formula-eq em { font-style: normal; color: #7ee8da; }

/* ---------- Pergunta de exemplo ---------- */
.ct-quote { background: var(--wooa-gray-50); border-radius: var(--radius-md); padding: 1rem 1.25rem; font-size: 1.0625rem !important; color: var(--wooa-navy) !important; font-weight: 600; margin: 1rem 0 1.25rem !important; border-left: 3px solid var(--wooa-teal); }

/* ---------- CTA no meio do texto ---------- */
.ct-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: linear-gradient(135deg, var(--wooa-navy), #0e4a5e); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 2.5rem 0; }
.ct-inline-cta p { margin: 0 !important; color: #fff !important; font-weight: 700; font-size: 1.0625rem !important; line-height: 1.5 !important; }
.ct-inline-cta p span { display: block; font-weight: 400; font-size: .9375rem; color: rgba(255,255,255,.75); margin-top: .25rem; }
.ct-inline-cta .btn { flex-shrink: 0; text-decoration: none !important; }

/* ---------- Fontes ---------- */
.ct-sources { margin-top: 3rem; padding: 1.25rem 1.375rem; background: var(--wooa-gray-50); border-radius: var(--radius-md); }
.ct-sources strong { display: block; font-size: .75rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--wooa-gray-600) !important; margin-bottom: .5rem; }
.ct-sources ul { margin: 0 !important; padding-left: 1.1rem !important; }
.ct-sources li { font-size: .875rem !important; margin-bottom: .25rem !important; }

/* ---------- Páginas de palavra-chave ---------- */
.ct-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.ct-chips li { background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: 999px; padding: .45rem .95rem; font-size: .875rem; font-weight: 600; color: var(--wooa-navy); margin: 0 !important; }
.ct-chips li.on { background: var(--wooa-teal-cta); border-color: var(--wooa-teal-cta); color: #fff; }
.ct-chips--dark li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.ct-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ct-split .lead { margin-bottom: 1rem; }
.ct-split p { color: var(--wooa-gray-600); line-height: 1.75; }
.ct-vs { display: grid; gap: 1rem; }
.ct-signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1rem; }
.ct-signal { background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); padding: 1.375rem; display: flex; flex-direction: column; gap: .75rem; }
.ct-signal-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--wooa-amber-lt); color: #b26a00; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ct-signal p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--wooa-navy); font-weight: 600; }
.ct-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); padding: 2rem 2.25rem; box-shadow: var(--shadow-sm); }
.ct-band h3 { margin: .75rem 0 .5rem; }
.ct-band p { margin: 0; color: var(--wooa-gray-600); }
.ct-wide { max-width: 1000px; margin: 0 auto; }
.services-grid--3 .service-card { display: flex; flex-direction: column; }
.services-grid--3 .service-link { margin-top: auto; }

/* ---------- Índice de conteúdos ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.post-card { display: flex; flex-direction: column; background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: var(--wooa-teal-lt); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-cover { height: 140px; background: linear-gradient(135deg, var(--wooa-navy), #0e4a5e); position: relative; display: flex; align-items: flex-end; padding: 1.25rem 1.5rem; }
.post-cover::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(42,191,170,.35), rgba(42,191,170,0) 70%); }
.post-cover b { position: relative; z-index: 1; font-size: 2.25rem; font-weight: 800; color: #7ee8da; line-height: 1; }
.post-body { display: flex; flex-direction: column; gap: .625rem; padding: 1.5rem; flex: 1; }
.post-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wooa-teal-dk); }
.post-card h2 { font-size: 1.25rem; margin: 0; color: var(--wooa-navy); line-height: 1.35; }
.post-card p { font-size: .9375rem; margin: 0; color: var(--wooa-gray-600); line-height: 1.6; }
.post-more { margin-top: auto; padding-top: .75rem; font-weight: 700; font-size: .875rem; color: var(--wooa-teal-dk); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .ct-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 2rem; }
  .ct-aside { display: none; }
  .ct-toc-mobile { display: block; background: var(--wooa-gray-50); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-md); margin: 1.75rem 0 0; }
  .ct-toc-mobile summary { list-style: none; cursor: pointer; padding: .875rem 1.125rem; font-weight: 700; font-size: .875rem; color: var(--wooa-navy); display: flex; justify-content: space-between; }
  .ct-toc-mobile summary::-webkit-details-marker { display: none; }
  .ct-toc-mobile summary::after { content: '+'; color: var(--wooa-teal-dk); font-size: 1.125rem; line-height: 1; }
  .ct-toc-mobile[open] summary::after { content: '−'; }
  .ct-toc-mobile .ct-toc { border-left: 0; padding: 0 1.125rem 1rem; }
  .ct-body { max-width: none; }
  .ct-split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .ct-cards { grid-template-columns: 1fr; }
  .ct-inline-cta { flex-direction: column; align-items: flex-start; }
  .ct-formula-groups { grid-template-columns: 1fr; }
  .ct-band { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .ct-body p, .ct-body li { font-size: 1rem; }
  .ct-lead { font-size: 1.125rem !important; }
  .ct-body > h2 { margin-top: 2.5rem; padding-top: 1.75rem; }
  .ct-table th, .ct-table td { padding: .7rem .5rem; font-size: .8125rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.calc-in, .calc-out { border-radius: var(--radius-lg); padding: 1.75rem; }
.calc-in { background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); box-shadow: var(--shadow-md); }
.calc-out { background: var(--wooa-navy); color: #fff; display: flex; flex-direction: column; gap: 1rem; }
.calc-field { margin-bottom: 1.5rem; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label, .calc-label { display: block; font-weight: 700; color: var(--wooa-navy); font-size: .9375rem; margin-bottom: .5rem; }
.calc-money { display: flex; border: 1.5px solid var(--wooa-gray-200); border-radius: var(--radius-md); overflow: hidden; }
.calc-money:focus-within { border-color: var(--wooa-teal); }
.calc-money span { padding: 0 .875rem; display: flex; align-items: center; background: var(--wooa-gray-50); color: var(--wooa-gray-400); font-weight: 700; }
.calc-money input { border: 0; outline: 0; padding: .75rem 1rem; font: inherit; font-size: 1.125rem; font-weight: 700; color: var(--wooa-navy); width: 100%; min-width: 0; }
.calc-field select { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--wooa-gray-200); border-radius: var(--radius-md); font: inherit; color: var(--wooa-navy); background: var(--wooa-white); }
.calc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.calc-seg button { font: inherit; font-size: .875rem; font-weight: 600; padding: .7rem .5rem; border-radius: var(--radius-md); border: 1.5px solid var(--wooa-gray-200); background: var(--wooa-white); color: var(--wooa-gray-600); cursor: pointer; }
.calc-seg button.on { border-color: var(--wooa-teal-cta); background: var(--wooa-teal-lt); color: var(--wooa-teal-dk); }
.calc-seg button:focus-visible { outline: 2px solid var(--wooa-teal); outline-offset: 2px; }
.calc-hint { font-size: .8125rem; color: var(--wooa-gray-400); margin: .5rem 0 0; line-height: 1.5; }
.calc-out-label { font-size: .8125rem; color: rgba(255,255,255,.65); display: block; }
.calc-out-big { font-size: 2.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-out-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-out-row b { font-size: 1.25rem; color: #7ee8da; font-variant-numeric: tabular-nums; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.calc-table td { padding: .45rem 0; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.07); font-variant-numeric: tabular-nums; }
.calc-table td:nth-child(2) { color: rgba(255,255,255,.5); text-align: right; padding-right: 1rem; }
.calc-table td:last-child { text-align: right; color: #fff; }
.calc-table tr.tot td { font-weight: 800; color: #fff; border-bottom: 0; padding-top: .75rem; }
.calc-table tr.tot td:nth-child(2) { font-weight: 400; color: rgba(255,255,255,.6); }
.calc-note { font-size: .75rem; color: rgba(255,255,255,.55); margin: 0; line-height: 1.5; }
.mat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 880px; margin: 0 auto; }
@media (max-width: 700px) { .mat-grid { grid-template-columns: minmax(0, 1fr); } }
.mat-card { display: flex; flex-direction: column; gap: .75rem; background: var(--wooa-white); border: 1px solid var(--wooa-gray-100); border-radius: var(--radius-lg); padding: 1.75rem; transition: box-shadow .2s, transform .2s, border-color .15s; }
.mat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--wooa-teal-lt); }
.mat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--wooa-teal-lt); color: var(--wooa-teal-dk); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8125rem; }
.mat-card h2 { font-size: 1.1875rem; margin: 0; color: var(--wooa-navy); }
.mat-card p { font-size: .9375rem; margin: 0; color: var(--wooa-gray-600); line-height: 1.6; }
.mat-card .post-more { margin-top: auto; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
