/* =========================================================================
   Biblioteca IAgo · componentes base
   Regras: simetria, respiro, contraste AA, sem emoji, sem "cara de IA"
   (nada de borda lateral colorida, sombra de enfeite ou paleta de alerta).
   As cores e fontes vêm de tokens.css.
   ========================================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.65;
  color: var(--c-text); background: var(--c-surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--c-primary); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--c-dark); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- tipografia ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--f-heading); line-height: 1.15; letter-spacing: -.02em; color: var(--c-text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
h4, h5, h6 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
strong { font-weight: 650; }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--c-text-muted); max-width: 62ch; }
.eyebrow { display: inline-block; font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.muted { color: var(--c-text-muted); }

/* ---------- layout ---------- */
.container { width: min(100% - 40px, var(--w-max)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.section { padding-block: clamp(64px, 5vw + 40px, 120px); }
.section-alt { background: var(--c-surface-alt); }
.section-dark { background: var(--c-dark); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: #cbd5e1; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 3vw + 20px, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 + p { margin-top: 16px; }
.answer { font-size: 1.0625rem; color: var(--c-text); max-width: 70ch; }

/* Grades simétricas: o número de colunas é fixo; os cards esticam até a mesma altura. */
.grid { display: grid; gap: clamp(16px, 1.5vw + 8px, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media img { background: var(--c-surface-alt); border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--r-full); border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-secondary { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-secondary:hover { border-color: var(--c-text); }
.section-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost { background: transparent; color: var(--c-primary); padding-inline: 4px; min-height: 44px; }
.btn-whatsapp { background: #128c4b; color: #fff; }
.btn-whatsapp:hover { background: #0e7a40; }
.btn-lg { min-height: 58px; padding-inline: 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- ícones (Lucide, SVG inline) ---------- */
.i { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-box { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--c-primary-soft); color: var(--c-primary); }

/* ---------- topbar e header ---------- */
.topbar { background: var(--c-dark); color: #cbd5e1; font-size: var(--fs-small); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.topbar .i { width: 16px; height: 16px; }
.topbar-links { display: flex; gap: 20px; }
@media (max-width: 767px) { .topbar-area { display: none; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-surface) 94%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--c-border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-heading); font-weight: 700; font-size: 1.25rem; color: var(--c-text); text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--c-text); font-weight: 550; text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--c-primary); }
.mega-toggle { display: inline-grid; place-items: center; width: 32px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--c-text); margin-left: -10px; }
.mega-toggle .i { width: 18px; height: 18px; transition: transform .2s ease; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-surface); cursor: pointer; place-items: center; }

/* Mega menu: abre no hover e no foco do teclado (sem JS); o JS só cuida do toque e do Esc. */
.mega {
  position: absolute; top: 100%; left: 50%; translate: -50% 0; z-index: 60;
  width: min(1040px, calc(100vw - 40px)); padding: 28px; margin-top: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .18);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 280px; gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.open > .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover .mega-toggle .i, .has-mega.open .mega-toggle .i { transform: rotate(180deg); }
.mega-col-title { display: block; font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); text-decoration: none; margin-bottom: 10px; }
.mega-col-title:hover { color: var(--c-primary); }
.mega-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: var(--c-text); min-height: 44px; }
.mega-item:hover { background: var(--c-surface-alt); }
.mega-item .icon-box { width: 36px; height: 36px; border-radius: 10px; }
.mega-item .i { width: 18px; height: 18px; }
.mega-item strong { display: block; font-size: .9375rem; line-height: 1.3; }
.mega-item small { display: block; color: var(--c-text-muted); font-size: .8125rem; line-height: 1.35; }
.mega-feature { background: var(--c-surface-alt); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mega-feature img { border-radius: var(--r-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.mega-feature p { font-size: .9375rem; color: var(--c-text-muted); }
.mega-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--c-border); font-size: .9375rem; color: var(--c-text-muted); }
.mega-bar a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

@media (max-width: 1023px) {
  /* backdrop-filter cria um bloco de contenção e prenderia o menu fixo dentro do header */
  .site-header { backdrop-filter: none; background: var(--c-surface); }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 0; z-index: 70; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-surface); padding: 88px 20px 120px; overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; animation: menu-entra .2s ease; }
  @keyframes menu-entra { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--c-border); }
  .nav-link { flex: 1; min-height: 56px; font-size: 1.0625rem; padding-inline: 0; }
  .mega-toggle { width: 56px; height: 56px; margin: 0; }
  .mega { position: static; translate: none; width: 100%; margin: 0 0 12px; padding: 0; border: 0; box-shadow: none; display: none; grid-template-columns: minmax(0, 1fr); opacity: 1; visibility: visible; transform: none; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { display: none; }
  .has-mega.open > .mega { display: grid; }
  .mega-feature, .mega-bar { display: none; }
  .nav .btn { margin-top: 24px; }
  .nav-close { position: absolute; top: 16px; right: 16px; }
  .nav-whatsapp { position: fixed; left: 20px; right: 20px; bottom: 20px; }
}
@media (min-width: 1024px) { .nav-close, .nav-whatsapp { display: none; } }

/* ---------- breadcrumb ---------- */
.breadcrumb { width: min(100% - 40px, var(--w-max)); margin-inline: auto; padding-block: 18px; font-size: var(--fs-small); color: var(--c-text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-border); }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 6vw + 24px, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 20px; }
.hero-media img { background: var(--c-surface-alt); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
.hero-proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-border); list-style: none; padding-left: 0; }
.hero-proofs li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.4; }
.hero-proofs .i { color: var(--c-primary); width: 22px; height: 22px; margin-top: 1px; }
@media (max-width: 899px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: none; } }
@media (max-width: 639px) { .hero-proofs { grid-template-columns: minmax(0, 1fr); } }

/* Hero com imagem de fundo tratada (degradê sobre a foto para garantir contraste). */
.hero-cover { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 760px); display: grid; align-items: center; }
.hero-cover > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 13, 26, .9) 0%, rgba(8, 13, 26, .72) 45%, rgba(8, 13, 26, .25) 100%); }
.hero-cover h1, .hero-cover .lead { color: #fff; }
.hero-cover .lead { color: #e2e8f0; }
.hero-cover .hero-proofs { border-color: rgba(255,255,255,.2); }
.hero-cover .hero-proofs .i { color: #fff; }

/* Hero de serviço com formulário ao lado. */
.hero-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 999px) { .hero-form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faixa de confiança (números) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--c-border); }
.stat strong { display: block; overflow-wrap: anywhere; font-family: var(--f-heading); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; color: var(--c-text); }
.stat span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--c-text-muted); }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--c-border); } }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; height: 100%; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); transform: translateY(-2px); }
.card-media { background: var(--c-surface-alt); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.card-body p { color: var(--c-text-muted); font-size: 1rem; }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.card-link .i { width: 18px; height: 18px; transition: transform .2s ease; }
.card:hover .card-link .i { transform: translateX(3px); }
.card-icon .card-body { padding-top: 28px; }

/* Cards de diferencial / sinais (só ícone, sem imagem). */
.feature { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.feature p { color: var(--c-text-muted); }
.section-alt .feature, .section-alt .card { background: var(--c-surface); }

/* ---------- etapas ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: passo; list-style: none; padding: 0; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.step::before { counter-increment: passo; content: counter(passo, decimal-leading-zero); display: block; font-family: var(--f-heading); font-weight: 700; font-size: 1rem; color: var(--c-primary); margin-bottom: 18px; }
.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.step p { color: var(--c-text-muted); font-size: 1rem; }
.step small { display: inline-block; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--c-text); background: var(--c-surface-alt); padding: 4px 10px; border-radius: var(--r-full); }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- listas de verificação ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist .i { color: var(--c-primary); width: 22px; height: 22px; margin-top: 2px; }
.checklist-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 639px) { .checklist-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tabela comparativa ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { caption-side: top; text-align: left; padding: 18px 20px 6px; font-weight: 650; color: var(--c-text); }
th, td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
thead th { background: var(--c-surface-alt); font-weight: 650; font-size: .875rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }

/* ---------- destaque / resumo / Information Gain ---------- */
.callout { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--c-primary-soft); }
.callout h2, .callout h3 { margin-bottom: 12px; }
.summary-box { padding: 24px 28px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-alt); }
.summary-box ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- depoimentos ---------- */
.quote { display: flex; flex-direction: column; gap: 20px; height: 100%; padding: 30px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.quote blockquote { font-size: 1.0625rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { display: block; font-size: .9375rem; }
.quote figcaption span { display: block; font-size: .8125rem; color: var(--c-text-muted); }

/* ---------- FAQ (details/summary, sem JS) ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.0625rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 24px 22px; color: var(--c-text-muted); }

/* ---------- faixa de CTA ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(32px, 4vw, 64px); border-radius: var(--r-lg); background: var(--c-dark); color: #e2e8f0; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #cbd5e1; margin-top: 14px; }
@media (max-width: 899px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- formulários ---------- */
.form-card { padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .25); }
.form-card h2, .form-card h3 { font-size: 1.375rem; margin-bottom: 6px; }
.form-card > p { color: var(--c-text-muted); font-size: .9375rem; margin-bottom: 18px; }
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-surface); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent); }
.field-error { font-size: .8125rem; color: var(--c-error); min-height: 0; }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .8125rem; color: var(--c-text-muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; }
.iago-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9375rem; }
.form-status[data-tipo="erro"] { color: var(--c-error); }

/* ---------- blog ---------- */
.post-card .card-body { gap: 10px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8125rem; color: var(--c-text-muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--c-primary); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.article-body { max-width: 74ch; }
.article-body h2 { margin-top: 2em; margin-bottom: .6em; }
.article-body h3 { margin-top: 1.6em; margin-bottom: .5em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-block: 1em; display: grid; gap: .4em; }
.article-body blockquote { margin-block: 1.6em; padding: 20px 24px; border-radius: var(--r-md); background: var(--c-surface-alt); font-size: 1.0625rem; }
.article-body figure { margin-block: 2em; }
.article-body figure img { border-radius: var(--r-md); }
.article-body figcaption { font-size: .875rem; color: var(--c-text-muted); margin-top: 8px; }
.article-body .table-wrap { margin-block: 1.6em; }
.toc { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--c-border); border-radius: var(--r-lg); font-size: .9375rem; }
.toc ol { padding-left: 1.1em; display: grid; gap: 8px; margin-top: 10px; }
.toc a { color: var(--c-text-muted); text-decoration: none; }
.toc a:hover { color: var(--c-primary); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--c-surface-alt); margin-top: 48px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--r-md); background: var(--c-primary-soft); margin-block: 2em; }
@media (max-width: 1023px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
@media (max-width: 639px) { .inline-cta { flex-direction: column; align-items: flex-start; } }

/* ---------- rodapé ---------- */
.site-footer { background: var(--c-dark); color: #cbd5e1; padding-top: clamp(56px, 5vw, 88px); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; }
.footer-bottom button { background: none; border: 0; color: #cbd5e1; cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #128c4b; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.wa-float .i { width: 28px; height: 28px; }

/* ---------- aviso de cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; padding: 22px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: 0 24px 48px -16px rgba(15,23,42,.3); font-size: .9375rem; }
.cookie[hidden] { display: none; }
.cookie p { color: var(--c-text-muted); margin-top: 6px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cookie-actions .btn { min-height: 44px; padding: 10px 12px; font-size: .875rem; }
.cookie-prefs { display: grid; gap: 10px; margin-top: 14px; }
.cookie-prefs label { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--c-border); }
@media (max-width: 479px) { .cookie-actions { grid-template-columns: minmax(0, 1fr); } }

/* ---------- animação sutil de entrada (só CSS, respeita reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: surgir linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes surgir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
}
