/* ──────────────────────────────────────────────────────────────
   benefisa · blog · layout compartilhado
   Herda os tokens de colors_and_type.css (carregar ANTES deste).
   Fraunces (serifada) nos títulos editoriais · Manrope no corpo.
   ────────────────────────────────────────────────────────────── */

:root { --f-serif: "Fraunces", Georgia, "Times New Roman", serif; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; overflow-x: hidden; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--off); padding: 10px 16px;
  border-radius: 0 0 var(--r-md) 0; border: 0; font-family: var(--f-display); font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

/* ═════════ BARRA DE PROGRESSO DE LEITURA ═════════ */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--coral-deep));
  z-index: 120; transition: width 90ms linear;
}

/* ═════════ NAV ═════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled { border-bottom-color: var(--rule); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav-logo { display: block; height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink); border: 0; padding: 4px 0; position: relative; opacity: 0.82;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.nav-links a:hover { opacity: 1; color: var(--indigo); }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--coral-deep); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  background: var(--ink); color: var(--off); border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: var(--r-pill);
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
}
.nav-cta:hover { background: var(--coral); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-coral); }
.nav-cta .arrow { transition: transform var(--t-base); }
.nav-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { padding: 10px 14px; }
}

/* ═════════ BREADCRUMB ═════════ */
.crumbs { padding-top: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs a, .crumbs span {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); border: 0;
}
.crumbs a:hover { color: var(--coral-deep); }
.crumbs li[aria-current] span { color: var(--ink); }
.crumbs .sep { color: var(--gray-2); }

/* ═════════ HUB / ÍNDICE ═════════ */
.blog-hero { padding: 40px 0 8px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral-deep); background: var(--coral-mist); padding: 6px 12px; border-radius: var(--r-pill);
}
.blog-hero h1 {
  font-family: var(--f-serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(34px, 6vw, 58px); margin: 20px 0 0; max-width: 16ch;
}
.blog-hero .lead {
  font-family: var(--f-text); font-size: clamp(17px, 2.4vw, 21px); line-height: 1.5; color: var(--gray);
  max-width: 54ch; margin: 18px 0 0; letter-spacing: -0.01em;
}

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding: 44px 0 24px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; border-bottom: 1px solid var(--rule);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--coral-mist); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 10px;
}
.card h2, .card h3 {
  font-family: var(--f-serif); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); margin: 0;
}
.card p { font-family: var(--f-text); font-size: 15px; line-height: 1.55; color: var(--gray); margin: 10px 0 0; max-width: none; }
.card-meta { margin-top: auto; padding-top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--gray-2); text-transform: uppercase; }

/* card em destaque (pillar) ocupa a fileira inteira */
.card-feature { grid-column: 1 / -1; flex-direction: row; }
.card-feature .card-media { flex: 0 0 46%; aspect-ratio: auto; }
.card-feature .card-body { padding: 40px 44px; justify-content: center; }
.card-feature h2 { font-size: clamp(26px, 3.4vw, 36px); }
.card-feature p { font-size: 17px; max-width: 46ch; }
@media (max-width: 760px) { .card-feature { flex-direction: column; } .card-feature .card-media { flex: none; aspect-ratio: 16 / 10; } .card-feature .card-body { padding: 24px 22px 28px; } }

/* ═════════ ARTIGO ═════════ */
.article-header { padding: 8px 0 0; }
.article-tag {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral-deep);
}
.article-header h1 {
  font-family: var(--f-serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(30px, 5vw, 50px); margin: 16px 0 0;
}
.article-dek {
  font-family: var(--f-text); font-size: clamp(18px, 2.6vw, 22px); line-height: 1.5; color: var(--gray);
  letter-spacing: -0.015em; margin: 20px 0 0; max-width: 60ch;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 26px 0 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--gray);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-2); }
.article-meta strong { color: var(--ink); font-weight: 500; }

.article-figure { margin: 36px 0 0; }
.article-figure img {
  width: 100%; height: auto; display: block; border-radius: var(--r-lg);
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper);
}
.article-figure figcaption { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--gray-2); margin-top: 10px; text-align: center; }

/* corpo editorial */
.prose { margin: 44px 0 0; }
.prose > * { max-width: 68ch; }
.prose p { font-family: var(--f-text); font-size: 18px; line-height: 1.72; color: #26262c; margin: 0 0 22px; letter-spacing: -0.005em; }
.prose p:first-of-type { font-size: 19px; }
.prose h2 {
  font-family: var(--f-serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.18;
  letter-spacing: -0.02em; color: var(--ink); margin: 48px 0 16px; scroll-margin-top: 90px;
}
.prose h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--ink); margin: 34px 0 12px;
}
.prose a { color: var(--indigo); border-bottom: 1.5px solid var(--coral-mist); transition: border-color var(--t-fast), color var(--t-fast); font-weight: 500; }
.prose a:hover { color: var(--coral-deep); border-bottom-color: var(--coral); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 24px; padding: 0; }
.prose li { font-family: var(--f-text); font-size: 18px; line-height: 1.65; color: #26262c; margin: 0 0 10px 0; padding-left: 30px; position: relative; list-style: none; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--coral); transform: rotate(45deg);
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--coral-deep);
  background: var(--coral-mist); border-radius: 50%; display: grid; place-items: center;
}
.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--coral);
  font-family: var(--f-serif); font-size: 22px; line-height: 1.4; font-style: italic; color: var(--indigo-deep);
}

/* nota / callout */
.note {
  max-width: 68ch; margin: 30px 0; padding: 20px 24px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--rule);
}
.note.note-coral { background: var(--coral-mist); border-color: #ffc4b2; }
.note .note-title { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-deep); margin: 0 0 8px; }
.note p { font-size: 16px; line-height: 1.6; margin: 0; }
.note p + p { margin-top: 10px; }

/* tabela comparativa */
.table-scroll { max-width: 68ch; overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--rule); }
table.cmp { width: 100%; border-collapse: collapse; font-family: var(--f-text); font-size: 15px; background: var(--white); min-width: 460px; }
table.cmp th, table.cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cmp thead th { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: -0.01em; color: var(--ink); background: var(--paper); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 600; color: var(--ink); }
table.cmp .yes { color: var(--success); font-weight: 700; }
table.cmp .no { color: var(--gray-2); }

/* takeaways */
.takeaways { max-width: 68ch; margin: 40px 0; padding: 26px 28px; border-radius: var(--r-lg); background: var(--indigo); color: #EDEDFB; }
.takeaways h2 { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
.takeaways ul { margin: 0; padding: 0; }
.takeaways li { list-style: none; padding-left: 28px; position: relative; margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: #EDEDFB; }
.takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--coral); font-weight: 700; }
.takeaways li:last-child { margin-bottom: 0; }

/* ═════════ FAQ ═════════ */
.faq { max-width: 68ch; margin: 52px 0 0; }
.faq h2 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; margin: 0 0 8px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 24px; width: 12px; height: 12px;
  border-right: 2px solid var(--coral-deep); border-bottom: 2px solid var(--coral-deep);
  transform: rotate(45deg); transition: transform var(--t-base);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { font-family: var(--f-text); font-size: 16px; line-height: 1.65; color: var(--gray); margin: 0 0 20px; max-width: none; }

/* ═════════ CTA ═════════ */
.cta-card {
  margin: 56px 0 0; padding: 40px; border-radius: var(--r-xl); text-align: center;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 60%, #14153f 100%);
  position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,122,89,.4), transparent 70%); }
.cta-card > * { position: relative; }
.cta-card .eyebrow-pill { background: rgba(255,255,255,.12); color: var(--coral-mist); }
.cta-card h2 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; color: var(--white); margin: 16px 0 0; }
.cta-card p { font-family: var(--f-text); font-size: 17px; line-height: 1.55; color: #C9C9EC; margin: 12px auto 0; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-pill); transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-coral); background: #ff8a6d; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--coral); color: var(--coral-mist); }
.btn .arrow { transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(3px); }

/* aviso de conformidade */
.compliance {
  max-width: 68ch; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--f-text); font-size: 13px; line-height: 1.6; color: var(--gray-2);
}
.compliance strong { color: var(--gray); font-weight: 600; }

/* relacionados */
.related { border-top: 1px solid var(--rule); margin-top: 64px; padding: 48px 0 8px; }
.related h2 { font-family: var(--f-serif); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 24px; }

/* ═════════ FOOTER ═════════ */
footer { background: var(--ink); color: #C9C9CF; margin-top: 88px; padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { height: 24px; width: auto; display: block; }
footer .about { font-family: var(--f-text); font-size: 14px; line-height: 1.6; color: #9A9AA2; margin: 16px 0 18px; max-width: 34ch; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; color: #C9C9CF; border: 0; font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.foot-social:hover { color: var(--coral); }
footer h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #6E6E78; margin: 0 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 11px; }
footer li a { font-family: var(--f-text); font-size: 14px; color: #C9C9CF; border: 0; }
footer li a:hover { color: var(--coral); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.foot-bottom span { font-family: var(--f-text); font-size: 12px; line-height: 1.5; color: #7A7A84; max-width: 52ch; }
.foot-bottom strong { color: #A8A8B0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* reveal · só entra em ação quando há JS (html.js). sem JS, o conteúdo aparece normalmente */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ═════════ IMPRESSÃO ═════════ */
@media print {
  .nav, .read-progress, .cta-card, .related, footer, .nav-cta { display: none !important; }
  body { background: #fff; }
  .prose p, .prose li { font-size: 12pt; color: #000; }
  a { border: 0 !important; color: #000 !important; }
}
