@charset "UTF-8";

/* Estilos do Blog e Artigos — herda tokens, fontes, tema e header/footer de styles.css */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.breadcrumbs span[aria-hidden] {
  opacity: 0.6;
}

/* Cabeçalho do Blog (/blog) */
.blog-hero {
  position: relative;
  isolation: isolate;
  padding-block: 4.5rem 3.5rem;
  border-bottom: 1px solid var(--line);
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 35%, var(--hero-blue), transparent 60%),
    radial-gradient(ellipse at 20% 80%, var(--hero-gold), transparent 50%);
}
.blog-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  text-wrap: balance;
}
.blog-hero-lead {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Grade de artigos */
.blog-list-section {
  padding-block: 3.5rem 5rem;
}
.blog-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.blog-section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-wrap: balance;
}
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.post-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.post-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--blue);
  font-weight: 600;
}
.post-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.post-card h3 a {
  text-decoration: none;
}
.post-card h3 a:hover {
  color: var(--blue);
}
.post-card-excerpt {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.post-card-points {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.post-card-points li + li {
  margin-top: 0.35rem;
}
.post-card-actions {
  margin-top: 1.75rem;
}
.post-card-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--chat-bg);
  border: 1px solid var(--line);
}
.post-card-visual .chat-preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.post-card-visual .bubble {
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* Banner de conversão no Blog e no fim do artigo */
.blog-cta-wrap {
  padding-bottom: 5rem;
}

/* Página de Artigo */
.article-shell {
  padding-block: 3.5rem 5rem;
}
.article-header {
  max-width: 52rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.article-deck {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 65ch;
  text-wrap: pretty;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.article-meta strong {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(240px, 320px);
  justify-content: space-between;
  align-items: start;
  gap: 4rem;
  margin-top: 3rem;
}

.article-prose {
  min-width: 0;
  max-width: 68ch;
  overflow-wrap: break-word;
}
.article-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.0625rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  scroll-margin-top: 1.5rem;
  text-wrap: balance;
}
.article-prose h3 {
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 1.5rem;
  text-wrap: balance;
}
.article-prose p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-top: 1rem;
  text-wrap: pretty;
}
.article-prose p:first-child {
  margin-top: 0;
}
.article-prose ul,
.article-prose ol {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
  line-height: 1.8;
  color: var(--ink);
}
.article-prose li {
  text-wrap: pretty;
}
.article-prose li + li {
  margin-top: 0.5rem;
}
.article-prose a {
  color: var(--blue);
  font-weight: 600;
}
.article-prose a:hover {
  text-decoration-thickness: 2px;
}
.article-prose strong {
  font-weight: 700;
}
.article-prose blockquote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.35rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--surface-muted);
  color: var(--ink);
}
.article-prose blockquote p {
  margin-top: 0;
  font-style: italic;
}

/* Caixa de Resposta Rápida (AEO / GEO) */
.answer-box {
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 2.25rem;
}
.answer-box-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.answer-box p {
  margin-top: 0.5rem;
  font-size: 0.96875rem;
  line-height: 1.75;
}
.answer-box ul {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Exemplo de conversa inline no artigo */
.article-chat {
  margin-top: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--chat-bg);
  overflow: hidden;
}
.article-chat-head {
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.article-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
}
.article-chat-body .bubble p {
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 1.65;
}
.article-chat-body .bubble p + p {
  margin-top: 0.65rem;
}

/* Nota / Callout transparente */
.callout-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.callout-note p {
  margin-top: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.callout-note strong {
  color: var(--ink);
}

/* Tabela comparativa responsiva */
.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.comparison-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
}
.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.comparison-table thead th {
  background: var(--surface-muted);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--ink);
  text-wrap: balance;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.comparison-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.comparison-table td {
  color: var(--muted);
}
.comparison-table .col-julius {
  color: var(--ink);
  font-weight: 600;
}

/* FAQ dentro do artigo */
.article-faq {
  margin-top: 1.5rem;
}

/* Sidebar (Índice + CTA) */
.article-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.toc-card,
.sidebar-cta {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.toc-card h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.toc-list a {
  text-decoration: none;
  color: var(--muted);
}
.toc-list a:hover {
  color: var(--blue);
}
.sidebar-cta {
  background: #071731;
  border-color: #243b60;
  color: #f0f5ff;
}
.sidebar-cta h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  text-wrap: balance;
}
.sidebar-cta p {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #b2c4df;
}
.sidebar-cta .button {
  width: 100%;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}
.sidebar-cta-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #b2c4df;
  text-align: center;
}

/* Links relacionados no rodapé do artigo */
.article-footer-nav {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 980px) {
  .post-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  .blog-hero {
    padding-block: 3rem 2.5rem;
  }
  .blog-list-section {
    padding-block: 2.5rem 3.5rem;
  }
  .article-shell {
    padding-block: 2.25rem 3.5rem;
  }
  .answer-box {
    padding: 1.25rem;
  }
  .post-card {
    padding: 1.35rem;
  }
}
