/* =========================================================================
   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; } }
  }
}

/* =========================================================================
   Portal Assimetrias Cranianas · componentes de portal (fase 4)
   ========================================================================= */
:root { --c-on-dark: #F7F3F1; --c-on-dark-muted: #E6DCEB; --c-lavender: #CDB9E6; --c-dark-2: #4A3156; --c-dark-line: #6B4F7C; }

/* eyebrow com ponto (design system) */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-muted); letter-spacing: .14em; font-size: .75rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); flex: none; }
.section-dark .eyebrow { color: var(--c-lavender); }
.section-dark .eyebrow::before { background: var(--c-accent); }

/* cores escuras da marca no lugar das genéricas */
.topbar { background: var(--c-dark); color: var(--c-on-dark-muted); }
.topbar .container > span, .topbar-links > span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .i { color: var(--c-lavender); }
.section-dark { color: var(--c-on-dark-muted); }
.section-dark .lead, .section-dark .muted, .section-dark p { color: var(--c-on-dark-muted); }
.cta-band { color: var(--c-on-dark-muted); }
.cta-band .lead { color: var(--c-on-dark-muted); }
.site-footer { color: var(--c-on-dark-muted); }
.site-footer a, .footer-bottom button { color: var(--c-on-dark-muted); }
.footer-title { color: var(--c-lavender); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-brand { display: grid; gap: 14px; max-width: 560px; margin-bottom: 40px; }
.footer-brand img { height: 40px; width: auto; }
.footer-review, .footer-disclaimer { margin-top: 28px; font-size: .875rem; }
.footer-disclaimer { margin-top: 6px; color: var(--c-lavender); }

/* header do portal */
.nav-link-soft { color: var(--c-text-muted); }
.mega-sm { width: min(680px, calc(100vw - 40px)); grid-template-columns: minmax(0, 1fr); }
.mega-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-feature .btn { min-height: 48px; padding: 12px 18px; font-size: .9375rem; }
.mega-feature .btn-ghost { justify-content: flex-start; font-weight: 600; text-decoration: none; }
.mega-bar a .i { width: 16px; height: 16px; }
@media (max-width: 1023px) { .nav-cta { display: none; } .mega-list-2 { grid-template-columns: minmax(0, 1fr); } }

/* hero do portal: busca em destaque */
.hero-portal { position: relative; overflow: hidden; padding-block: clamp(56px, 6vw + 24px, 104px) clamp(48px, 5vw, 80px); background:
  radial-gradient(60% 80% at 85% 10%, var(--c-primary-soft) 0%, transparent 60%),
  radial-gradient(50% 70% at 0% 100%, #F3ECF6 0%, transparent 60%), var(--c-surface); }
.hero-portal .container { position: relative; z-index: 1; }
.hero-portal-inner { max-width: 880px; }
.hero-portal h1 { max-width: 20ch; }
.hero-portal .lead { margin-top: 18px; }
.hero-watermark { position: absolute; right: -60px; top: 50%; translate: 0 -50%; width: min(520px, 46vw); opacity: .5; pointer-events: none; }
@media (max-width: 899px) { .hero-watermark { display: none; } }
.search-bar { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 8px; padding: 8px; background: var(--c-surface-alt); border: 1px solid var(--c-border); border-radius: 28px; box-shadow: 0 1px 2px rgba(58,36,67,.04), 0 12px 32px rgba(58,36,67,.08); }
.search-field { display: grid; gap: 2px; padding: 8px 16px; border-radius: 20px; }
.search-field + .search-field { border-left: 1px solid var(--c-border); }
.search-field label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); }
.search-field select, .search-field input { border: 0; background: transparent; padding: 4px 0; min-height: 36px; font-size: 1.0625rem; color: var(--c-text); width: 100%; }
.search-field select:focus, .search-field input:focus { outline: none; }
.search-field:focus-within { background: var(--c-primary-soft); }
.search-bar .btn { align-self: stretch; border-radius: 22px; }
@media (max-width: 767px) { .search-bar { grid-template-columns: minmax(0, 1fr); border-radius: 22px; } .search-field + .search-field { border-left: 0; border-top: 1px solid var(--c-border); } }
.popular { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.popular > span { font-size: .875rem; color: var(--c-text-muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-full); background: var(--c-surface-alt); border: 1px solid var(--c-border); color: var(--c-text); font-size: .875rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary-hover); }
.chip-soft { background: var(--c-primary-soft); border-color: transparent; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* faixa de contadores */
.stats-portal { margin-top: -1px; }

/* blocos de especialidade */
.tile { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); transition: border-color .2s ease, transform .2s ease; }
.tile:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.tile .icon-box { width: 56px; height: 56px; }
.tile h3 { font-size: 1.1875rem; }
.tile p { margin-top: 6px; color: var(--c-text-muted); font-size: .9375rem; }
.tile .card-link { padding-top: 10px; }

/* mapa do Brasil */
.map-section { background: var(--c-dark); color: var(--c-on-dark); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 899px) { .map-grid { grid-template-columns: minmax(0, 1fr); } }
.map-section h2 { color: #fff; }
.map-section .lead { color: var(--c-on-dark-muted); margin-top: 14px; }
.mapa-br { width: 100%; height: auto; }
.mapa-br .uf { fill: var(--c-dark-2); stroke: var(--c-dark-line); stroke-width: 1.2; transition: fill .25s ease; }
.mapa-br .uf:hover { fill: #57396A; }
.mapa-br .dot .core { fill: var(--c-accent); transition: fill .2s ease; }
.mapa-br .dot .glow { fill: var(--c-accent); opacity: .55; transform-box: fill-box; transform-origin: center; animation: brilho 2.6s ease-out infinite; animation-delay: var(--d); }
.mapa-br .dot:hover .core, .mapa-br .dot:focus .core { fill: #fff; }
.mapa-br .dot:focus { outline: none; }
.mapa-br .dot:focus-visible .glow { opacity: 1; animation: none; transform: scale(2.2); }
@keyframes brilho { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mapa-br .dot .glow { animation: none; opacity: .25; transform: scale(1.8); } }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 28px; }
.region-title { margin: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-lavender); }
.region ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: var(--r-full); border: 1px solid var(--c-dark-line); color: var(--c-on-dark); font-size: .875rem; text-decoration: none; }
.region a:hover, .region a:focus-visible { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-dark); }
.map-section .btn-light { background: var(--c-on-dark); color: var(--c-dark); margin-top: 28px; }
.map-section .btn-light:hover { background: #fff; }

/* especial (matéria de capa) */
.special { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: stretch; }
@media (max-width: 899px) { .special { grid-template-columns: minmax(0, 1fr); } }
.special-main .card-media img { aspect-ratio: 16 / 10; }
.special-main h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.special-list { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.special-item { display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); }
.special-item:hover { border-color: var(--c-primary); }
.special-item h3 { font-size: 1.125rem; }
.special-item p { margin-top: 4px; color: var(--c-text-muted); font-size: .9375rem; }
.special-item .i { color: var(--c-primary); }

/* editorias (guias por categoria) */
.editoria { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.editoria h3 { font-size: 1.1875rem; }
.editoria ul { list-style: none; padding: 0; display: grid; gap: 0; }
.editoria li + li { border-top: 1px solid var(--c-border); }
.editoria li a { display: block; padding: 12px 0; color: var(--c-text); text-decoration: none; font-weight: 500; line-height: 1.4; }
.editoria li a:hover { color: var(--c-primary-hover); }
.editoria li small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--c-text-muted); font-weight: 400; }
.editoria .card-link { margin-top: auto; }

/* enciclopédia A a Z */
.az { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; height: 100%; padding: 22px 24px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); }
.az:hover { border-color: var(--c-primary); }
.az-letter { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-dark); color: var(--c-on-dark); font-family: var(--f-heading); font-weight: 700; font-size: 1.5rem; }
.az h3 { font-size: 1.1875rem; }
.az p { margin-top: 4px; color: var(--c-text-muted); font-size: .9375rem; }

/* ferramentas */
.tool { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; height: 100%; padding: 30px; border-radius: var(--r-lg); background: var(--c-primary-soft); }
.tool .icon-box { width: 64px; height: 64px; background: var(--c-surface-alt); }
.tool h3 { font-size: 1.3125rem; }
.tool p { margin-top: 8px; color: var(--c-text); }
.tool .btn { margin-top: 18px; }

/* faixa editorial (escura) */
.section-dark .feature { background: var(--c-dark-2); border-color: var(--c-dark-line); }
.section-dark .feature h3 { color: #fff; }
.section-dark .feature p { color: var(--c-on-dark-muted); }
.section-dark .icon-box { background: var(--c-dark); color: var(--c-accent); }
.section-dark a:not(.btn) { color: var(--c-lavender); }

/* formulário dentro da faixa escura */
.cta-band .form-card .consent { color: var(--c-text-muted); }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 479px) { .form-row-2 { grid-template-columns: minmax(0, 1fr); } }
.section-tight { padding-block: 0 clamp(24px, 3vw, 40px); }
.section-foot { margin-top: 32px; }

/* ajustes da revisão visual da home (26/10) */
.nav-link, .nav .btn { white-space: nowrap; }
@media (min-width: 1024px) { .nav { gap: 16px; } .nav-link { padding-inline: 10px; font-size: .9688rem; } .nav-cta { min-height: 46px; padding: 10px 20px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .nav-link-soft { display: none; } .logo img { height: 34px; } }
.map-section .eyebrow { color: var(--c-lavender); }
.map-section .eyebrow::before { background: var(--c-accent); }
.map-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.regions { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.region { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start; padding-top: 14px; border-top: 1px solid var(--c-dark-line); }
.region-title { margin: 8px 0 0; }
@media (max-width: 479px) { .region { grid-template-columns: minmax(0, 1fr); } }
.editoria-head { display: flex; align-items: center; gap: 12px; }
.editoria-head .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.cta-band .eyebrow { color: var(--c-lavender); }
.cta-band .eyebrow::before { background: var(--c-accent); }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,.4); margin-top: 24px; }
.cta-band .btn-secondary:hover { border-color: #fff; }
.footer-review a { text-decoration: underline; }
@media (max-width: 899px) { .map-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .topbar .container > .topbar-area { display: inline-flex; } .topbar-links { display: none; } }

/* =========================================================================
   Contraste (26/10): verde-petróleo + mel ao lado do ameixa, como na referência
   ========================================================================= */
:root { --c-green: #1F4A44; --c-green-2: #2A5C55; --c-green-soft: #E3EEEA; --c-green-line: #3B6D65; --c-honey-soft: #F6E7BF; }
.hl { background: linear-gradient(transparent 62%, var(--c-honey-soft) 62%, var(--c-honey-soft) 92%, transparent 92%); padding-inline: .08em; }
.section-dark .hl, .section-green .hl, .map-section .hl { background: linear-gradient(transparent 70%, rgba(233,185,73,.45) 70%, rgba(233,185,73,.45) 92%, transparent 92%); }

/* hero com painel de cor */
.hero-portal { background: radial-gradient(55% 70% at 0% 100%, #F3ECF6 0%, transparent 60%), var(--c-surface); }
.hero-portal-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 999px) { .hero-portal-grid { grid-template-columns: minmax(0, 1fr); } .hero-panel { display: none; } }
.hero-panel { position: relative; aspect-ratio: 4 / 4.6; border-radius: 32px; background: var(--c-green); overflow: hidden; display: grid; place-items: center; }
.hero-panel::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -14%; background: var(--c-primary); opacity: .9; }
.hero-panel::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: -10%; bottom: -8%; background: var(--c-accent); }
.hero-panel > svg { position: relative; z-index: 1; width: 58%; height: auto; }
.panel-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--c-surface-alt); color: var(--c-text); font-size: .875rem; line-height: 1.3; box-shadow: 0 12px 32px rgba(15,30,28,.22); max-width: 230px; }
.panel-chip strong { display: block; font-family: var(--f-heading); font-size: 1rem; }
.panel-chip .icon-box { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.panel-chip.c1 { left: 7%; top: 9%; }
.panel-chip.c2 { right: 6%; bottom: 10%; }
.panel-chip.c2 .icon-box { background: var(--c-green-soft); color: var(--c-green); }

/* contadores numa faixa verde */
.stats-band { background: var(--c-green); color: var(--c-on-dark); }
.stats-band .stats { border: 0; background: transparent; }
.stats-band .stat + .stat { border-left-color: var(--c-green-line); }
.stats-band .stat strong { color: var(--c-accent); }
.stats-band .stat span { color: #D7E6E0; }
@media (max-width: 767px) { .stats-band .stat:nth-child(n+3) { border-top-color: var(--c-green-line); } }
.section-tight.stats-band { padding-block: clamp(16px, 2vw, 28px); }

/* ícones em três tons, alternados */
.grid > :nth-child(3n+2) .icon-box { background: var(--c-green-soft); color: var(--c-green); }
.grid > :nth-child(3n+3) .icon-box { background: var(--c-honey-soft); color: #7A5600; }
.section-dark .grid > * .icon-box, .section-green .grid > * .icon-box { background: rgba(255,255,255,.08); color: var(--c-accent); }

/* seção verde (escura) e verde-clara */
.section-green { background: var(--c-green); color: #D7E6E0; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green .eyebrow { color: #D7E6E0; }
.section-green .eyebrow::before { background: var(--c-accent); }
.section-green .answer, .section-green p { color: #D7E6E0; }
.section-green .feature { background: var(--c-green-2); border-color: var(--c-green-line); }
.section-green .feature p { color: #D7E6E0; }
.section-green a:not(.btn) { color: var(--c-accent); }
.section-mint { background: var(--c-green-soft); }
.section-mint .special-item, .section-mint .card { background: var(--c-surface-alt); }
.section-mint .eyebrow::before { background: var(--c-green); }
.section-mint .tag { color: var(--c-green); }

/* letras A a Z alternando ameixa e verde */
.grid > :nth-child(even) .az-letter { background: var(--c-green); }

/* ferramentas em verde escuro */
.tool { background: var(--c-green); color: var(--c-on-dark); }
.tool h3 { color: #fff; }
.tool p { color: #D7E6E0; }
.tool .icon-box { background: rgba(255,255,255,.1) !important; color: var(--c-accent) !important; }
.tool .btn-primary { background: var(--c-accent); color: var(--c-text); }
.tool .btn-primary:hover { background: #F2CB6E; }

/* faixa de editorias: topo colorido em cada card */
.editoria { border-top: 0; position: relative; overflow: hidden; padding-top: 30px; }
.editoria::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c-primary); }
.grid > .editoria:nth-child(2)::before { background: var(--c-green); }
.grid > .editoria:nth-child(3)::before { background: var(--c-accent); }
.grid > .editoria:nth-child(4)::before { background: var(--c-dark); }

/* botão claro sobre verde/ameixa */
.btn-honey { background: var(--c-accent); color: var(--c-text); }
.btn-honey:hover { background: #F2CB6E; }
.search-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 767px) { .search-bar { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================================
   Modelo hub (fase 4)
   ========================================================================= */
.breadcrumb { padding-block: 16px 0; }
.breadcrumb li + li::before { content: "›"; color: var(--c-text-muted); }
.hero-hub { padding-block: clamp(28px, 3vw, 48px) clamp(48px, 5vw, 80px); background: radial-gradient(50% 70% at 100% 0%, var(--c-green-soft) 0%, transparent 65%), var(--c-surface); }
.hero-hub-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 999px) { .hero-hub-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-hub h1 { max-width: 20ch; }
.hero-hub .lead { margin-top: 18px; }
.review-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: .875rem; color: var(--c-text-muted); }
.review-line .i { width: 18px; height: 18px; color: var(--c-green); margin-top: 2px; }
.shapes-card { background: var(--c-green); border-radius: 28px; padding: clamp(22px, 3vw, 32px); color: #D7E6E0; }
.shapes-title { font-family: var(--f-heading); font-weight: 600; color: #fff; font-size: 1.125rem; }
.shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 479px) { .shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shape { display: grid; gap: 8px; justify-items: center; background: var(--c-green-2); border-radius: 16px; padding: 14px 8px 12px; }
.shape svg { width: 100%; max-width: 96px; height: auto; }
.shape-head { fill: rgba(247,243,241,.1); stroke: #F7F3F1; stroke-width: 3; stroke-linejoin: round; }
.shape-ear { stroke: #F7F3F1; stroke-width: 4; stroke-linecap: round; fill: none; }
.shape-axis { stroke: var(--c-accent); stroke-width: 2; stroke-dasharray: 3 6; fill: none; }
.shape-nose { stroke: #F7F3F1; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shape figcaption { font-size: .8125rem; font-weight: 600; color: #fff; text-align: center; }
.shapes-note { margin-top: 14px; font-size: .8125rem; }
.toc-bar { position: sticky; top: 77px; z-index: 30; background: color-mix(in srgb, var(--c-surface) 96%, transparent); border-block: 1px solid var(--c-border); }
.toc-bar .container { display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.toc-bar span { flex: none; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); }
.toc-bar ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.toc-bar a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; white-space: nowrap; color: var(--c-text); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.toc-bar a:hover { color: var(--c-primary-hover); }
@media (max-width: 1023px) { .toc-bar { top: 0; position: relative; } }
.compare { display: grid; gap: 16px; }
.compare-item { padding: 26px; border-radius: var(--r-lg); background: var(--c-primary-soft); }
.compare-item h3 { margin: 6px 0 12px; }
.compare-alt { background: var(--c-dark); color: var(--c-on-dark-muted); }
.compare-alt h3 { color: #fff; }
.compare-alt .tag { color: var(--c-accent); }
.compare-alt .checklist .i { color: var(--c-accent); }
.table-note { margin-top: 14px; font-size: .875rem; color: var(--c-text-muted); }
.section-mint .feature { background: var(--c-surface-alt); }
.myth { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.myth-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary-hover); }
.myth-label.myth-true { margin-top: 10px; color: var(--c-green); }
.myth h3 { font-size: 1.125rem; }
.myth p:last-child { color: var(--c-text-muted); font-size: .9688rem; }
.search-band .search-bar { max-width: 920px; margin-inline: auto; }
.search-band .section-head { margin-bottom: 28px; }
.sources h2 { font-size: 1.375rem; margin-top: 32px; }
.review-box { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; background: var(--c-green-soft); }
.review-box .i { color: var(--c-green); }
.sources-list { margin-top: 14px; padding-left: 1.3em; display: grid; gap: 10px; font-size: .9375rem; color: var(--c-text-muted); }
.sources-list a { white-space: nowrap; }
.disclaimer { margin-top: 24px; font-size: .875rem; color: var(--c-text-muted); }
@media (min-width: 480px) { .shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .shape svg { max-width: 120px; } .shape { padding: 18px 12px 14px; } }
.hero-figure img { width: 100%; aspect-ratio: 1200 / 990; object-fit: cover; border-radius: 28px; background: var(--c-green-soft); }
.hero-figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--c-text-muted); }

/* =========================================================================
   Modelo página de conteúdo (servico)
   ========================================================================= */
.hero-servico .hero-proofs { margin-top: 28px; padding-top: 22px; }
.search-card { display: grid; gap: 12px; align-content: start; border-top: 6px solid var(--c-green); }
.search-card .icon-box { width: 52px; height: 52px; background: var(--c-green-soft); color: var(--c-green); }
.search-card-title { font-size: 1.375rem; }
.search-card > p { margin: 0; color: var(--c-text-muted); font-size: .9375rem; }
.search-card .card-link { padding-top: 0; }
.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .steps-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .steps-6 { grid-template-columns: minmax(0, 1fr); } }
.evidence { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; border-radius: var(--r-lg); background: var(--c-green-2); border: 1px solid var(--c-green-line); }
.evidence strong { font-family: var(--f-heading); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; color: var(--c-accent); }
.evidence p { color: #fff !important; font-size: .9688rem; }
.evidence small { margin-top: auto; padding-top: 8px; font-size: .8125rem; color: #D7E6E0; }
.evidence-text { margin-top: 36px; max-width: 860px; padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid var(--c-green-line); }
.evidence-text h3 { margin-bottom: 10px; }
.evidence-text a { display: inline-block; margin-top: 14px; font-weight: 600; }
.split-top { align-items: start; }
.table-title { font-size: 1.25rem; margin-bottom: 14px; }
.chips-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin-inline: auto; }
.chip-dark { background: transparent; border-color: var(--c-dark-line); color: var(--c-on-dark); min-height: 44px; padding-inline: 16px; }
.chip-dark:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-text); }
.center-cta { text-align: center; margin-top: 32px; }
.guides-row .special-item h3 { margin-top: 4px; }
.guides-row .special-item p { color: var(--c-primary); font-weight: 600; }

/* =========================================================================
   Refino de design (26/10): menos cores competindo, mais acabamento
   ========================================================================= */
:root { --shadow-soft: 0 1px 2px rgba(58,36,67,.04), 0 12px 32px -8px rgba(58,36,67,.10); --shadow-hover: 0 2px 4px rgba(58,36,67,.05), 0 20px 40px -12px rgba(58,36,67,.18); }

/* ícones em uma cor só */
.icon-box, .grid > :nth-child(3n+2) .icon-box, .grid > :nth-child(3n+3) .icon-box { background: var(--c-primary-soft); color: var(--c-primary); }
.section-dark .grid > * .icon-box, .section-green .grid > * .icon-box { background: rgba(255,255,255,.08); color: var(--c-accent); }

/* cards brancos com sombra suave, sem borda */
.card, .feature, .tile, .myth, .editoria, .az, .special-item, .step, .quote, .faq details, .compare-item:not(.compare-alt) {
  background: #fff; border-color: transparent; box-shadow: var(--shadow-soft);
}
.card:hover, .tile:hover, .az:hover, .special-item:hover { border-color: transparent; box-shadow: var(--shadow-hover); }
.section-alt { background: #FBF9F7; }
.section-dark .feature, .section-green .feature { box-shadow: none; }
.faq details { border: 0; }
.faq details[open] summary { color: var(--c-primary-hover); }

/* passos com número em círculo */
.step::before { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary-hover); font-size: .9375rem; margin-bottom: 16px; }
.step small { background: var(--c-surface); }

/* tabelas mais leves */
.table-wrap { border: 0; box-shadow: var(--shadow-soft); background: #fff; }
thead th { background: #F4EFF7; color: var(--c-text); }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #FCFAFB; }
caption { color: var(--c-text-muted); font-weight: 600; font-size: .875rem; }

/* imagens: fundo neutro enquanto não há foto */
.card-media, .split-media img, .hero-figure img, .hero-media img { background: #EEE8E3; }
.split-media img { border-radius: 24px; }

/* página de conteúdo: hero limpo, cartão de busca com a cor da marca */
.hero-servico { background: var(--c-surface); }
.search-card { border-top: 0; box-shadow: var(--shadow-hover); border: 0; }
.search-card .icon-box { background: var(--c-primary-soft); color: var(--c-primary); }

/* estudos: seção clara, números grandes */
.section-evidence { background: #fff; }
.section-evidence .evidence { background: var(--c-surface); border: 0; box-shadow: none; }
.section-evidence .evidence strong { color: var(--c-primary-hover); position: relative; padding-bottom: 12px; }
.section-evidence .evidence strong::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--c-accent); }
.section-evidence .evidence p { color: var(--c-text) !important; }
.section-evidence .evidence small { color: var(--c-text-muted); }
.section-evidence .evidence-text { background: var(--c-dark); border: 0; color: var(--c-on-dark-muted); max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.section-evidence .evidence-text h3 { color: #fff; }
.section-evidence .evidence-text p { color: var(--c-on-dark-muted); }
.section-evidence .evidence-text a { color: var(--c-accent); }
.section-alt .feature, .section-alt .card, .section-alt .tile, .section-alt .myth { background: #fff; }
.split h2 + .answer, .split h2 + p { margin-top: 16px; }
.split .answer + p { margin-top: 16px; }

/* bloco "Direitos e cobertura" da home */
.rights-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--c-primary-soft); }
@media (max-width: 899px) { .rights-panel { grid-template-columns: minmax(0, 1fr); } }
.rights-panel h2 { margin: 6px 0 14px; }
.rights-panel .btn { margin-top: 26px; }
.rights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; grid-auto-rows: 1fr; }
@media (max-width: 559px) { .rights-list { grid-template-columns: minmax(0, 1fr); } }
.rights-list .special-item { align-items: start; }

/* =========================================================================
   Paleta enxuta (27/10), na lógica da referência: verde quase preto nas
   faixas escuras, bege quente nos fundos suaves, ameixa como única cor de
   destaque, mel só nos pontos do mapa e nos números. Sem tons pastel.
   ========================================================================= */
:root {
  --c-dark: #142220; --c-dark-2: #1C2C2A; --c-dark-line: #2D3F3C;
  --c-green: #142220; --c-green-2: #1C2C2A; --c-green-line: #2D3F3C;
  --c-primary-soft: #F1EDE6; --c-green-soft: #F1EDE6; --c-honey-soft: transparent;
  --c-lavender: #CFC8BC; --c-on-dark-muted: #D9D4CB;
  --c-beige: #F1EDE6;
}
/* sem abinhas coloridas nos cards */
.editoria::before { display: none; }
.editoria { padding-top: 24px; }
/* destaque de palavra: só a cor, sem marca-texto */
.hl, .section-dark .hl, .section-green .hl, .map-section .hl { background: none; padding: 0; color: var(--c-primary); }
.section-dark .hl, .section-green .hl, .map-section .hl { color: var(--c-accent); }
/* ícones: bege com traço ameixa */
.icon-box, .grid > :nth-child(3n+2) .icon-box, .grid > :nth-child(3n+3) .icon-box, .search-card .icon-box, .panel-chip.c2 .icon-box { background: var(--c-beige); color: var(--c-primary); }
.section-dark .grid > * .icon-box, .section-green .grid > * .icon-box, .tool .icon-box { background: rgba(255,255,255,.07) !important; color: var(--c-accent) !important; }
/* mapa sobre verde quase preto */
.map-section { background: var(--c-dark); }
.mapa-br .uf { fill: #1E302D; stroke: #34504B; }
.mapa-br .uf:hover { fill: #26403C; }
.region a { border-color: var(--c-dark-line); }
/* contadores, calculadoras e faixa editorial no mesmo verde */
.stats-band .stat span { color: var(--c-on-dark-muted); }
.section-green, .section-green .answer, .section-green p { color: var(--c-on-dark-muted); }
.section-green .eyebrow, .map-section .eyebrow, .section-dark .eyebrow, .cta-band .eyebrow { color: var(--c-lavender); }
.section-green .eyebrow::before, .map-section .eyebrow::before, .section-dark .eyebrow::before, .cta-band .eyebrow::before { background: var(--c-primary); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.section-green .feature p, .tool p { color: var(--c-on-dark-muted); }
/* painel do hero da home: verde quase preto com círculo ameixa e ponto mel */
.hero-panel { background: var(--c-dark); }
.hero-panel::before { opacity: 1; }
/* letras A a Z: ameixa e verde quase preto */
.az-letter { background: var(--c-primary); }
.grid > :nth-child(even) .az-letter { background: var(--c-dark); }
/* tabelas e passos em bege */
thead th { background: var(--c-beige); }
.step::before { background: var(--c-beige); color: var(--c-primary-hover); }
.compare-item { background: var(--c-beige); }
.compare-alt { background: var(--c-dark); }
/* painel de direitos e seções "suaves" em bege */
.rights-panel, .section-mint { background: var(--c-beige); }
.chip-soft { background: var(--c-beige); }
.search-field:focus-within { background: var(--c-beige); }
.hero-portal, .hero-hub { background: var(--c-surface); }

/* =========================================================================
   ESTILO FINAL (27/10): branco + ameixa (escolhido pela Bruna Câmara)
   Fundo branco, seções em cinza bem claro e neutro, faixas escuras em ameixa
   quase preto, ameixa como cor da marca, mel só como ponto de luz.
   ========================================================================= */
:root {
  --c-surface: #FFFFFF; --c-surface-alt: #FFFFFF; --c-border: #E6E4EA;
  --c-beige: #F4F4F7; --c-primary-soft: #F4F4F7; --c-green-soft: #F4F4F7;
  --c-dark: #23172C; --c-dark-2: #2F2139; --c-dark-line: #45354F;
  --c-green: #23172C; --c-green-2: #2F2139; --c-green-line: #45354F;
  --c-lavender: #D8CCE4; --c-on-dark-muted: #E4DCEA; --c-section: #F6F6F8;
}
body { background: #fff; }
.section-alt, .section-mint { background: var(--c-section); }
.site-header { background: rgba(255,255,255,.96); }
.hero-portal, .hero-hub, .hero-servico { background: #fff; }
.card, .feature, .tile, .editoria, .az, .special-item, .step, .faq details, .myth, .search-card { border: 1px solid var(--c-border); box-shadow: 0 1px 2px rgba(20,20,40,.04); }
.card:hover, .tile:hover, .az:hover, .special-item:hover { border-color: #D6D1DE; box-shadow: 0 2px 4px rgba(20,20,40,.05), 0 16px 32px -14px rgba(35,23,44,.18); }
.section-dark .feature, .section-green .feature { border-color: var(--c-dark-line); box-shadow: none; }
.card-media, .split-media img, .hero-figure img, .hero-media img { background: #EEEEF2; }
.stats-band .stat strong { color: #F2C14E; }
.mapa-br .uf { fill: #36263F; stroke: #4E3D59; }
.mapa-br .uf:hover { fill: #423049; }
.rights-panel { background: var(--c-section); }
.section-evidence .evidence { background: var(--c-section); }

/* =========================================================================
   Diretório (busca, especialidade e perfil)
   ========================================================================= */
.dir-hero { padding-block: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 40px); background: #fff; border-bottom: 1px solid var(--c-border); }
.dir-hero h1 { max-width: 24ch; }
.dir-hero .lead { margin-top: 14px; }
.dir-hero .search-bar { max-width: 900px; }
.dir-section { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 6vw, 96px); background: var(--c-section); }
.dir-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1023px) { .dir-layout { grid-template-columns: minmax(0, 1fr); } }
.dir-aside { position: sticky; top: 100px; }
@media (max-width: 1023px) { .dir-aside { position: static; } }
.dir-filters { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-border); }
.dir-filters-title { display: flex; align-items: center; gap: 8px; font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem; }
.dir-filters-title .i { width: 18px; height: 18px; color: var(--c-primary); }
.dir-filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.dir-filters legend { font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.dir-filters .field select { min-height: 46px; }
.dir-count { margin-bottom: 16px; color: var(--c-text-muted); font-size: .9375rem; }
.dir-count strong { color: var(--c-text); font-size: 1.125rem; }
.dir-list { display: grid; gap: 16px; }
.dir-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .dir-list-3 { grid-template-columns: minmax(0, 1fr); } }
.prof-card { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-border); box-shadow: 0 1px 2px rgba(20,20,40,.04); }
.prof-card[hidden] { display: none; }
.prof-top { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; }
.prof-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--c-section); }
.prof-avatar-ini { display: grid; place-items: center; background: var(--c-dark); color: #fff; font-family: var(--f-heading); font-weight: 700; font-size: 1.375rem; letter-spacing: .02em; }
.prof-top h3 { font-size: 1.1875rem; line-height: 1.25; }
.prof-top h3 a { color: var(--c-text); text-decoration: none; }
.prof-top h3 a:hover { color: var(--c-primary); }
.prof-role { margin-top: 2px; color: var(--c-primary-hover); font-weight: 600; font-size: .9375rem; }
.prof-clinic { margin-top: 0; font-size: .9375rem; color: var(--c-text); }
.prof-reg { margin-top: 2px; font-size: .8125rem; color: var(--c-text-muted); }
.prof-badge { display: inline-block; padding: 4px 10px; border-radius: var(--r-full); background: #FFF4D6; color: #6A4A00; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.prof-city { display: flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--c-text-muted); margin: 0; }
.prof-city .i { width: 18px; height: 18px; color: var(--c-primary); }
.prof-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.prof-tags li { padding: 5px 12px; border-radius: var(--r-full); background: var(--c-section); border: 1px solid var(--c-border); font-size: .8125rem; font-weight: 500; }
.prof-tags li.more { background: #fff; color: var(--c-text-muted); }
.prof-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.prof-actions .btn { min-height: 46px; padding: 10px 18px; font-size: .9375rem; }
.prof-actions .btn .i { width: 18px; height: 18px; }
@media (max-width: 559px) { .prof-top { grid-template-columns: 56px 1fr; } .prof-top .prof-badge { grid-column: 1 / -1; justify-self: start; } .prof-avatar { width: 56px; height: 56px; } .prof-actions .btn { flex: 1 1 100%; } }
.dir-empty { display: grid; justify-items: start; gap: 12px; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px dashed #CFC8D8; }
.dir-empty[hidden] { display: none; }
.dir-empty p { color: var(--c-text-muted); max-width: 60ch; }
.dir-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* perfil */
.profile-hero { padding-block: clamp(24px, 3vw, 40px) clamp(48px, 5vw, 80px); background: #fff; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 999px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.profile-id { display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--c-border); }
@media (max-width: 559px) { .profile-id { grid-template-columns: minmax(0, 1fr); } }
.profile-id .prof-avatar { width: 128px; height: 128px; font-size: 2.25rem; }
.profile-id h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-top: 4px; }
.profile-clinic { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.profile-clinic .i { width: 18px; height: 18px; color: var(--c-primary); }
.profile-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--c-text-muted); font-size: .9375rem; }
.profile-meta .i { width: 18px; height: 18px; color: var(--c-primary); }
.profile-check { display: inline-flex; align-items: center; gap: 6px; margin: 10px 10px 0 0; font-size: .875rem; font-weight: 600; color: var(--c-text); }
.profile-check .i { width: 18px; height: 18px; color: var(--c-primary); }
.profile-block { padding-block: 28px; border-bottom: 1px solid var(--c-border); }
.profile-block:last-child { border-bottom: 0; }
.profile-block h2 { font-size: 1.375rem; margin-bottom: 14px; }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 559px) { .profile-facts { grid-template-columns: minmax(0, 1fr); } }
.profile-facts > div { padding: 18px; border-radius: var(--r-md); background: var(--c-section); }
.fact-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); }
.profile-facts p + p { margin-top: 4px; }
.profile-list { padding-left: 1.2em; display: grid; gap: 6px; }
.profile-address { list-style: none; padding: 0; display: grid; gap: 10px; }
.profile-address li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-section); }
.profile-address .i { width: 20px; height: 20px; color: var(--c-primary); }
.profile-address a { font-weight: 600; font-size: .875rem; white-space: nowrap; }
.profile-contact { position: sticky; top: 100px; }
@media (max-width: 999px) { .profile-contact { position: static; } }
.contact-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-border); box-shadow: 0 16px 40px -18px rgba(35,23,44,.25); }
.contact-title { font-family: var(--f-heading); font-weight: 700; font-size: 1.25rem; }
.contact-note { font-size: .875rem; color: var(--c-text-muted); margin-bottom: 6px; }
.contact-card .btn { min-height: 50px; }
.profile-foot { margin-top: 28px; font-size: .875rem; color: var(--c-text-muted); }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-actions p { font-size: .875rem; color: var(--c-on-dark-muted); }

/* =========================================================================
   Calculadoras
   ========================================================================= */
.tool-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.calc-card { box-shadow: 0 16px 40px -18px rgba(35,23,44,.25); }
.input-unit { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: #fff; }
.input-unit:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent); }
.input-unit input { border: 0 !important; box-shadow: none !important; min-height: 48px; padding: 10px 12px; width: 100%; background: transparent; }
.input-unit span { padding-right: 12px; color: var(--c-text-muted); font-size: .875rem; }
.field-help { font-size: .75rem; color: var(--c-text-muted); }
.calc-result { display: grid; gap: 12px; margin-top: 18px; outline: none; }
.calc-out { padding: 16px 18px; border-radius: var(--r-md); background: var(--c-section); border: 1px solid var(--c-border); }
.calc-out-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); }
.calc-out-value { font-family: var(--f-heading); font-weight: 700; font-size: 2rem; line-height: 1.1; margin-top: 2px; }
.calc-out-band { font-weight: 700; margin-top: 2px; }
.calc-out p + p { margin-top: 4px; font-size: .9375rem; }
.calc-ok .calc-out-band { color: var(--c-text); }
.calc-leve .calc-out-band, .calc-mod .calc-out-band, .calc-grave .calc-out-band { color: var(--c-primary-hover); }
.calc-note, .calc-msg { font-size: .875rem; color: var(--c-text-muted); }
.steps-list { grid-template-columns: minmax(0, 1fr); }

/* página Para profissionais */
.pro-grid { align-items: start; }
.pro-form { box-shadow: 0 16px 40px -18px rgba(35,23,44,.25); }
.pro-form > p { color: var(--c-text-muted); font-size: .9375rem; margin-bottom: 8px; }
.form-step { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--c-border); font-family: var(--f-heading); font-weight: 600; font-size: 1rem; }
.form-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-grid fieldset.field { border: 0; padding: 0; margin: 0; }
.form-grid fieldset.field legend { font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
@media (max-width: 479px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }
.radio-row { display: flex; gap: 18px; }
.pro-preview { margin-top: 32px; display: grid; gap: 10px; }
.pro-preview .prof-actions .btn { pointer-events: none; }
.contact-hours { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--c-text-muted); font-size: .9375rem; }
.contact-hours .i { width: 18px; height: 18px; color: var(--c-primary); }
.contact-alert { margin-top: 22px; padding: 18px 22px; }
.feature .card-link { overflow-wrap: anywhere; margin-top: auto; }
.dir-list-3 .prof-top { grid-template-columns: 56px 1fr; }
.dir-list-3 .prof-top .prof-badge { grid-column: 1 / -1; justify-self: start; grid-row: 1; }
.dir-list-3 .prof-avatar { width: 56px; height: 56px; }
.dir-list-3 .prof-actions .btn { flex: 1 1 100%; }
.nap { font-style: normal; display: grid; gap: 6px; margin: 18px 0 24px; }

/* =========================================================================
   Blog, artigo, institucional, obrigado e 404
   ========================================================================= */
.cat-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chip-active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.chip-active:hover { color: #fff; }
.feature-post { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--c-border); }
@media (max-width: 899px) { .feature-post { grid-template-columns: minmax(0, 1fr); } }
.feature-post .card-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-post-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 3vw, 48px); }
.feature-post h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.feature-post h2 a, .post-card h3 a { color: var(--c-text); text-decoration: none; }
.feature-post p { color: var(--c-text-muted); }
.stretched::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card h3 { font-size: 1.1875rem; }
.post-card:hover h3 a, .feature-post:hover h2 a { color: var(--c-primary-hover); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--c-border); background: #fff; text-decoration: none; color: var(--c-text); font-weight: 600; }
.pagination span[aria-current] { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.cat-callout { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--c-section); }
.post-header { padding-block: clamp(28px, 3vw, 44px) 0; }
.post-header .tag { margin-bottom: 10px; }
.post-header h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.post-header .lead { margin-top: 16px; max-width: none; }
.post-header .post-meta { margin-top: 16px; }
.post-cover { margin-top: 32px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: #EEEEF2; }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px) clamp(56px, 6vw, 96px); align-items: start; }
@media (max-width: 1023px) { .post-layout { grid-template-columns: minmax(0, 1fr); } }
.post-aside .toc { top: 100px; }
.article-body { max-width: 72ch; }
.article-body > h2:first-of-type { margin-top: 1.2em; }
.article-body .summary-box { margin-bottom: 8px; }
.article-faq { margin-top: 2.4em; }
.article-faq h2 { margin-top: 0; }
.legal-note { margin-top: 10px; font-size: .875rem; color: var(--c-primary-hover); font-weight: 600; }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.thanks-icon .i { width: 30px; height: 30px; }
.tile-sm { grid-template-columns: 48px 1fr; align-items: center; padding: 18px 22px; }
.tile-sm .icon-box { width: 48px; height: 48px; }
.prof-name { font-family: var(--f-heading); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.rights-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }

/* Páginas de condição (lote 1): títulos de card cabem na grade de 4 sem quebrar palavras */
.grid-4 .feature h3 { font-size: 1.125rem; overflow-wrap: normal; word-break: normal; hyphens: none; }

/* Pré-cadastro de profissionais (pop-up antes do cadastro completo) */
.pre-gate { display: grid; gap: 18px; margin-top: 8px; }
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--c-surface); color: var(--c-text); box-shadow: 0 30px 80px -20px rgba(35,23,44,.45); }
.modal::backdrop { background: rgba(35,23,44,.62); }
.modal-body { position: relative; padding: clamp(24px, 4vw, 36px); }
.modal-body h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin-top: 6px; }
.modal-lead { color: var(--c-text-muted); }
.modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-section); color: var(--c-text); cursor: pointer; }
.modal-close:hover { background: var(--c-border); }
.modal-close:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* Diretório: desenho da profissão no lugar das iniciais */
.prof-avatar-ico { display: grid; place-items: center; background: var(--c-dark); color: var(--c-accent); flex: none; }
.prof-avatar-ico .i { width: 46%; height: 46%; stroke-width: 1.6; }
.prof-avatar-fisioterapeuta-pediatrico, .prof-avatar-osteopata-pediatrico { background: var(--c-primary); color: #fff; }
.prof-avatar-clinica-de-ortese-craniana { background: var(--c-section); color: var(--c-primary); border: 1px solid var(--c-border); }

/* Blocos de texto e imagem: a imagem fica parada enquanto o texto rola (computador) */
@media (min-width: 900px) {
  .split > .split-media, .split > .shapes-card { position: sticky; top: 140px; align-self: start; }
}

/* Home: imagem da órtese craniana no topo */
.hero-panel-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #EEEEF2; }
@media (max-width: 999px) { .hero-panel { display: grid; aspect-ratio: 4 / 3; } .panel-chip { display: none; } }

/* Assimetrias de A a Z com imagem */
.az.az-img { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.az-media { position: relative; display: block; }
.az-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #EEEEF2; }
.az-body { display: block; padding: 22px; }

/* Topo da home: a foto da órtese aparece inteira, sem selos por cima */
.hero-panel .panel-chip { display: none; }

/* Cadastro de profissionais: resumo dos dados do pré-cadastro */
.pre-resumo { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-section); border: 1px solid var(--c-border); }
.pre-resumo p[data-resumo] { font-weight: 600; overflow-wrap: anywhere; }
.btn-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--c-primary); font: inherit; font-size: .9375rem; text-decoration: underline; cursor: pointer; min-height: 44px; }
.dir-filters-nota { margin: 0 0 6px; font-size: .8125rem; line-height: 1.45; color: var(--c-text-muted); }
