/* Blog gomailer.ai: extensão editorial da landing */
.blog-main { min-height: 70vh; }
.blog-topbar .brand { flex: none; }
.blog-topbar .nav { margin-left: auto; }
.blog-topbar .theme-toggle { margin-left: 8px; }

.blog-hero {
  padding: 88px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(80,217,251,.18), transparent 32%),
    linear-gradient(145deg, #180526, var(--purple-deep) 58%, #2a0f47);
}
.blog-hero .eyebrow { color: var(--cyan-light); }
.blog-hero h1 { max-width: 820px; font-size: clamp(42px, 7vw, 72px); }
.blog-hero p { max-width: 690px; margin: 20px 0 0; color: #cdd8e6; font-size: 19px; }

.blog-list { padding: 68px 0 92px; }
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 22px 54px var(--shadow);
}
.post-card-media { min-height: 360px; background: var(--purple-deep); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.post-card-copy .post-kicker, .article-kicker {
  color: var(--cyan);
  font: 600 12px/1.4 var(--ff-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.post-card-copy h2 { margin: 10px 0 14px; font-size: clamp(28px, 4vw, 40px); }
.post-card-copy p { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font: 500 12px/1.5 var(--ff-mono); }
.post-card-copy .btn { align-self: flex-start; margin-top: 24px; }
.post-grid-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.post-card-compact { grid-template-columns: 1fr; }
.post-card-compact .post-card-media { min-height: 240px; }
.post-card-compact .post-card-copy { justify-content: flex-start; padding: 30px; }
.post-card-compact .post-card-copy h2 { font-size: clamp(25px, 3vw, 31px); }
.post-card-compact .post-meta { margin-top: auto; padding-top: 12px; }
.post-card-compact .text-link { margin-top: 20px; color: var(--purple); font-weight: 700; }
[data-theme="dark"] .post-card-compact .text-link { color: var(--cyan-light); }

.breadcrumb { padding: 22px 0; color: var(--muted); font: 500 12px/1.5 var(--ff-mono); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--cyan); }

.article-head { padding: 54px 0 42px; text-align: center; }
.article-head h1 { max-width: 970px; margin: 12px auto 18px; font-size: clamp(38px, 6vw, 66px); }
.article-deck { max-width: 760px; margin: 0 auto 22px; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }
.article-head .post-meta { justify-content: center; }
.article-hero { width: min(1200px, calc(100% - 36px)); margin: 0 auto; overflow: hidden; border-radius: 24px; box-shadow: 0 30px 70px var(--shadow-strong); }
.article-hero img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.article-hero figcaption { padding: 9px 14px; color: var(--muted); background: var(--card); font-size: 12px; text-align: center; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 230px;
  justify-content: center;
  gap: 64px;
  padding: 66px 24px 96px;
}
.article-toc { align-self: start; position: sticky; top: 92px; padding-left: 18px; border-left: 1px solid var(--line); }
.article-toc strong { display: block; margin-bottom: 10px; font: 700 12px/1.4 var(--ff-mono); text-transform: uppercase; }
.article-toc ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.article-toc a { color: var(--muted); font-size: 13px; line-height: 1.35; }
.article-toc a:hover { color: var(--cyan); }

.prose { min-width: 0; font-size: 17px; line-height: 1.78; }
.prose > p:first-child { font-size: 20px; color: var(--txt); }
.prose p { margin: 0 0 1.35em; }
.prose h2 { margin: 2.05em 0 .7em; font-size: clamp(28px, 4vw, 38px); scroll-margin-top: 92px; }
.prose h3 { margin: 1.7em 0 .6em; font-size: 22px; scroll-margin-top: 92px; }
.prose a { color: var(--purple); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
[data-theme="dark"] .prose a { color: var(--purple-light); }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose strong { color: var(--txt); }

.takeaways, .article-callout {
  margin: 32px 0 40px;
  padding: 24px 26px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
}
.takeaways h2, .article-callout h3 { margin: 0 0 12px; font-size: 20px; }
.takeaways ul { margin-bottom: 0; }
.article-callout p:last-child { margin-bottom: 0; }
.article-callout.cyan { border-color: rgba(80,217,251,.38); background: rgba(80,217,251,.09); }

.article-figure { margin: 34px 0 42px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 16px 38px var(--shadow); }
.article-figure figcaption { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 40px; }
.stat-grid:has(.stat-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { padding: 22px 18px; border: 1px solid var(--accent-line); border-radius: 15px; background: linear-gradient(145deg, var(--accent-soft), var(--card)); }
.stat-card strong { display: block; margin-bottom: 8px; color: var(--purple); font: 800 clamp(25px, 4vw, 36px)/1 var(--ff-display); }
[data-theme="dark"] .stat-card strong { color: var(--cyan-light); }
.stat-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.metric-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 40px; }
.metric-ladder > div { position: relative; padding: 18px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.metric-ladder > div:not(:last-child)::after { content: "→"; position: absolute; top: 22px; right: -11px; z-index: 2; color: var(--cyan); font-weight: 800; }
.metric-ladder span { display: grid; width: 25px; height: 25px; place-items: center; margin-bottom: 12px; border-radius: 50%; color: #0b1220; background: var(--cyan-light); font: 800 12px/1 var(--ff-mono); }
.metric-ladder strong, .metric-ladder small { display: block; }
.metric-ladder small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.delivery-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: center; }
.delivery-flow .flow-step { position: relative; padding: 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); text-align: center; }
.delivery-flow .flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -18px; color: var(--cyan); font-weight: 800; transform: translateY(-50%); }
.delivery-flow b { display: block; font-family: var(--ff-display); }
.delivery-flow span { color: var(--muted); font-size: 12px; }

.threshold-chart { display: grid; gap: 20px; }
.threshold-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.threshold-row > b { font-family: var(--ff-display); }
.threshold-track { position: relative; height: 34px; overflow: hidden; border-radius: 999px; background: var(--bg-alt); }
.threshold-safe, .threshold-risk { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; padding-left: 12px; color: #fff; font: 700 12px/1 var(--ff-mono); }
.threshold-safe { width: 33.33%; background: var(--green); }
.threshold-risk { left: 33.33%; width: 66.67%; background: linear-gradient(90deg, #d49a26, var(--red)); }

.prose table { width: 100%; margin: 30px 0 40px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); font-family: var(--ff-display); }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-alt) 62%, transparent); }
.table-wrap { overflow-x: auto; }

.checklist { counter-reset: blog-check; display: grid; gap: 14px; margin: 28px 0 38px; padding: 0 !important; list-style: none; }
.checklist li { position: relative; padding: 17px 18px 17px 54px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.checklist li::before { counter-increment: blog-check; content: counter(blog-check); position: absolute; top: 16px; left: 16px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #0b1220; background: var(--cyan-light); font: 800 12px/1 var(--ff-mono); }

.article-sources { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-sources h2 { margin-top: 0; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 42px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.author-mark { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--purple-deep); font: 800 20px/1 var(--ff-display); }
.author-box p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.article-cta { margin-top: 50px; padding: 34px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--purple-deep), #3a1760); }
.article-cta h2 { margin: 0 0 10px; font-size: 30px; }
.article-cta p { color: #cdd8e6; }
.article-cta .btn { margin-top: 8px; text-decoration: none; }

.info-page { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 56px 0 96px; }
.info-page .article-kicker { display: block; margin-bottom: 10px; }
.info-page > h1 { font-size: clamp(38px, 6vw, 58px); }
.info-page .lead { margin: 18px 0 40px; color: var(--muted); font-size: 20px; }
.info-page h2 { margin: 42px 0 12px; font-size: 30px; }
.info-page p, .info-page li { font-size: 17px; line-height: 1.75; }
.info-page a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .info-page a { color: var(--purple-light); }
.info-page .author-box { margin-top: 36px; }

@media (max-width: 900px) {
  .post-card { grid-template-columns: 1fr; }
  .post-grid-secondary { grid-template-columns: 1fr; }
  .post-card-media { min-height: 280px; }
  .article-layout { grid-template-columns: minmax(0, 760px); gap: 0; }
  .article-toc { display: none; }
  .stat-grid, .stat-grid:has(.stat-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .blog-hero { padding: 66px 0 58px; }
  .blog-hero h1 { font-size: 42px; }
  .post-card-copy { padding: 28px 24px; }
  .article-head { padding: 34px 0 28px; }
  .article-head h1 { font-size: 38px; }
  .article-layout { padding: 44px 18px 72px; }
  .prose { font-size: 16px; }
  .prose > p:first-child { font-size: 18px; }
  .article-figure { padding: 18px; }
  .delivery-flow { grid-template-columns: 1fr; gap: 12px; }
  .delivery-flow .flow-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -17px; transform: translateX(50%); }
  .threshold-row { grid-template-columns: 1fr; gap: 7px; }
  .stat-grid, .stat-grid:has(.stat-card:nth-child(4)) { grid-template-columns: 1fr; }
  .metric-ladder { grid-template-columns: 1fr; }
  .metric-ladder > div:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -17px; transform: translateX(50%); }
  .article-cta { padding: 26px 22px; }
}
