/* ─── Nexxou Editorial CSS — light mode editorial ───────────────────────── */
/* Brand tokens: nexxou.com design system                                     */
/* Light background para leitura. Indigo→Cyan para acentos.                  */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --nx-bg:           #ffffff;
  --nx-bg-off:       #f9fafb;
  --nx-bg-card:      #ffffff;
  --nx-bg-sidebar:   #f4f5ff;
  --nx-bg-img:       #0D1B3E;
  --nx-tx:           #0D1B3E;
  --nx-tx2:          #374151;
  --nx-tx3:          #6B7280;
  --nx-tx4:          #9CA3AF;
  --nx-indigo:       #4F46E5;
  --nx-indigo-dk:    #3730A3;
  --nx-indigo-lt:    #6366F1;
  --nx-cyan:         #06B6D4;
  --nx-cyan-lt:      #22D3EE;
  --nx-border:       #e5e7eb;
  --nx-border-ind:   rgba(79,70,229,0.2);
  --nx-border-cyan:  rgba(6,182,212,0.3);
  --nx-lav:          #EEF0FF;
  --nx-lav2:         #F4F5FF;
  --nx-grad-brand:   linear-gradient(135deg, #3730A3 0%, #4F46E5 45%, #06B6D4 100%);
  --nx-grad-btn:     linear-gradient(135deg, #3730A3 0%, #4F46E5 50%, #6366F1 100%);
  --nx-sh:           0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --nx-sh-ind:       0 8px 32px rgba(79,70,229,.2);
  --nx-r-sm:         6px;
  --nx-r-md:         12px;
  --nx-r-lg:         18px;
  --nx-r-full:       9999px;
  --nx-font-head:    'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --nx-font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --nx-ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --nx-dur:          180ms;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nx-blog-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,0.6);
}
.nx-blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nx-blog-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nx-font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--nx-indigo);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}
.nx-blog-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nx-blog-nav-links a {
  font-family: var(--nx-font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--nx-tx3);
  padding: 6px 12px;
  border-radius: var(--nx-r-sm);
  text-decoration: none;
  transition: color var(--nx-dur) var(--nx-ease), background var(--nx-dur) var(--nx-ease);
}
.nx-blog-nav-links a:hover,
.nx-blog-nav-links a.active {
  color: var(--nx-tx);
  background: var(--nx-lav2);
}
.nx-blog-nav-btn {
  background: var(--nx-indigo);
  color: #fff !important;
  font-family: var(--nx-font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease), transform var(--nx-dur) var(--nx-ease);
}
.nx-blog-nav-btn:hover {
  background: var(--nx-indigo-dk);
  box-shadow: var(--nx-sh-ind);
  transform: translateY(-1px);
}
@media (max-width: 680px) {
  .nx-blog-nav-links { display: none; }
  .nx-blog-nav-inner { padding: 0 16px; }
}

/* ─── Reset global para blog ─────────────────────────────────────────────── */
body {
  background: #fff !important;
  color: var(--nx-tx) !important;
  font-family: var(--nx-font-body) !important;
}

/* ─── Bloco wrapper ──────────────────────────────────────────────────────── */
.nx-blog-wrap,
.nx-article-wrap {
  background: #fff;
  font-family: var(--nx-font-body);
  color: var(--nx-tx);
  padding: 48px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ─── Blog header ────────────────────────────────────────────────────────── */
.nx-blog-header {
  text-align: center;
  margin-bottom: 48px;
}
.nx-blog-header h1 {
  font-family: var(--nx-font-head);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--nx-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
}
.nx-blog-header p {
  font-size: 1rem;
  color: var(--nx-tx3);
  margin: 0;
}

/* ─── Filtros ────────────────────────────────────────────────────────────── */
.nx-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.nx-cat-btn {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--nx-r-full);
  font-family: var(--nx-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--nx-border);
  background: #fff;
  color: var(--nx-tx3);
  text-decoration: none;
  transition: all var(--nx-dur) var(--nx-ease);
}
.nx-cat-btn:hover,
.nx-cat-btn.active {
  border-color: var(--nx-indigo);
  color: var(--nx-indigo);
  background: var(--nx-lav2);
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.nx-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .nx-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nx-posts-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ─── Card ───────────────────────────────────────────────────────────────── */
.nx-post-card {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--nx-sh);
  transition: border-color var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease), transform var(--nx-dur) var(--nx-ease);
}
.nx-post-card:hover {
  border-color: var(--nx-border-ind);
  box-shadow: var(--nx-sh-ind);
  transform: translateY(-2px);
}
.nx-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.nx-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0D1B3E 0%, #1a1a40 50%, #1c1c2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.nx-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Category badges ────────────────────────────────────────────────────── */
.nx-card-cat,
.nx-article-cat-badge {
  display: inline-block;
  font-family: var(--nx-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--nx-r-full);
  background: var(--nx-lav);
  color: var(--nx-indigo);
  border: 1px solid var(--nx-border-ind);
}
.nx-cat-dor-do-gestor  { background: #fff7ed; color: #c2410c; border-color: rgba(194,65,12,.2); }
.nx-cat-whatsapp       { background: #f0fdf4; color: #16a34a; border-color: rgba(22,163,74,.2); }
.nx-cat-ia-comercial   { background: var(--nx-lav); color: var(--nx-indigo); border-color: var(--nx-border-ind); }
.nx-cat-comparativos   { background: #fdf4ff; color: #9333ea; border-color: rgba(147,51,234,.2); }
.nx-cat-nichos         { background: #ecfeff; color: #0891b2; border-color: rgba(8,145,178,.2); }

/* ─── Card título ────────────────────────────────────────────────────────── */
.nx-card-title {
  font-family: var(--nx-font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}
.nx-card-title a {
  color: var(--nx-tx);
  text-decoration: none;
  transition: color var(--nx-dur) var(--nx-ease);
}
.nx-card-title a:hover { color: var(--nx-indigo); }

.nx-card-excerpt {
  font-size: 0.875rem;
  color: var(--nx-tx3);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.nx-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--nx-border);
  font-size: 0.75rem;
  color: var(--nx-tx4);
}
.nx-card-footer a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-indigo);
  text-decoration: none;
}
.nx-card-footer a:hover { color: var(--nx-indigo-dk); }

/* ─── Paginação ──────────────────────────────────────────────────────────── */
.nx-pagination {
  text-align: center;
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.nx-pagination a,
.nx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--nx-r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nx-tx3);
  border: 1px solid var(--nx-border);
  text-decoration: none;
  transition: all var(--nx-dur) var(--nx-ease);
}
.nx-pagination a:hover { border-color: var(--nx-indigo); color: var(--nx-indigo); background: var(--nx-lav2); }
.nx-pagination .current { background: var(--nx-indigo); color: #fff; border-color: var(--nx-indigo); }

/* ──────────────────────────────────────────────────────────────────────────── */
/* ARTIGO INDIVIDUAL                                                            */
/* ──────────────────────────────────────────────────────────────────────────── */

/* Progress bar */
#nx-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--nx-grad-brand);
  z-index: 10000;
  width: 0;
  transition: width 80ms linear;
}

.nx-article-wrap {
  display: flex;
  gap: 0;
}

/* ─── Main article ───────────────────────────────────────────────────────── */
.nx-article-main {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

/* ─── Article header ─────────────────────────────────────────────────────── */
.nx-article-header {
  margin-bottom: 32px;
}
.nx-article-title {
  font-family: var(--nx-font-head);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--nx-tx);
  margin: 16px 0 12px;
}
@media (max-width: 600px) { .nx-article-title { font-size: 1.75rem; } }

.nx-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--nx-tx4);
}

/* ─── Featured image ─────────────────────────────────────────────────────── */
.nx-article-img {
  width: 100%;
  border-radius: var(--nx-r-lg);
  margin-bottom: 36px;
  display: block;
}

/* ─── Article content ────────────────────────────────────────────────────── */
.nx-article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--nx-tx2);
}
.nx-article-content h2 {
  font-family: var(--nx-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nx-tx);
  margin: 2.5rem 0 1rem;
  padding-top: 8px;
  border-top: 1px solid var(--nx-border);
}
.nx-article-content h3 {
  font-family: var(--nx-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nx-tx);
  margin: 2rem 0 0.75rem;
}
.nx-article-content p { margin: 0 0 1.25rem; }
.nx-article-content ul,
.nx-article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}
.nx-article-content li { margin-bottom: 0.5rem; }
.nx-article-content strong { color: var(--nx-tx); font-weight: 700; }
.nx-article-content em { color: var(--nx-tx2); }
.nx-article-content a {
  color: var(--nx-indigo);
  text-decoration: underline;
  text-decoration-color: rgba(79,70,229,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--nx-dur);
}
.nx-article-content a:hover { text-decoration-color: var(--nx-indigo); }
.nx-article-content blockquote {
  margin: 1.5rem 0;
  padding: 16px 20px;
  border-left: 3px solid var(--nx-indigo);
  background: var(--nx-lav2);
  border-radius: 0 var(--nx-r-sm) var(--nx-r-sm) 0;
  color: var(--nx-tx2);
  font-style: italic;
}
.nx-article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 0.875em;
  background: var(--nx-lav2);
  border: 1px solid var(--nx-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--nx-indigo-dk);
}
.nx-article-content pre {
  background: #0D1B3E;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--nx-r-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.nx-article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

/* ─── Inline form block ──────────────────────────────────────────────────── */
.nx-inline-form-block {
  background: var(--nx-lav2);
  border: 1px solid var(--nx-border-ind);
  border-radius: var(--nx-r-lg);
  padding: 28px 24px;
  margin: 48px 0;
  text-align: center;
}
.nx-inline-form-block h3 {
  font-family: var(--nx-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nx-tx);
  margin: 0 0 8px;
}
.nx-inline-form-block p {
  font-size: 0.9rem;
  color: var(--nx-tx3);
  margin: 0 0 20px;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.nx-article-sidebar {
  width: 300px;
  flex-shrink: 0;
  margin-left: 48px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) {
  .nx-article-wrap { flex-direction: column; }
  .nx-article-sidebar { width: 100%; margin-left: 0; position: static; }
}

/* ─── TOC ────────────────────────────────────────────────────────────────── */
.nx-toc-block {
  background: var(--nx-bg-off);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-r-md);
  padding: 20px;
}
.nx-toc-title {
  font-family: var(--nx-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-tx4);
  margin: 0 0 12px;
}
#nx-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#nx-toc-list a {
  display: block;
  font-size: 0.875rem;
  color: var(--nx-tx3);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--nx-r-sm);
  transition: color var(--nx-dur), background var(--nx-dur);
  line-height: 1.4;
}
#nx-toc-list a:hover,
#nx-toc-list a.active {
  color: var(--nx-indigo);
  background: var(--nx-lav2);
}

/* ─── Sidebar form ───────────────────────────────────────────────────────── */
.nx-sidebar-form {
  background: #fff;
  border: 1px solid var(--nx-border-ind);
  border-radius: var(--nx-r-md);
  padding: 20px;
}
.nx-sidebar-form-title {
  font-family: var(--nx-font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-tx);
  margin: 0 0 4px;
}
.nx-sidebar-form-desc {
  font-size: 0.8125rem;
  color: var(--nx-tx3);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ─── Form inputs ────────────────────────────────────────────────────────── */
.nx-form-field {
  width: 100%;
  background: var(--nx-bg-off);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-r-sm);
  padding: 10px 12px;
  font-family: var(--nx-font-body);
  font-size: 0.875rem;
  color: var(--nx-tx);
  margin-bottom: 10px;
  display: block;
  transition: border-color var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease);
  outline: none;
  -webkit-appearance: none;
}
.nx-form-field::placeholder { color: var(--nx-tx4); }
.nx-form-field:focus {
  border-color: var(--nx-indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: #fff;
}
.nx-form-field.error { border-color: #ef4444; }

.nx-form-btn {
  width: 100%;
  background: var(--nx-grad-btn);
  color: #fff;
  font-family: var(--nx-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 11px 16px;
  border: none;
  border-radius: var(--nx-r-sm);
  cursor: pointer;
  transition: opacity var(--nx-dur), transform var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease);
  letter-spacing: -0.01em;
}
.nx-form-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--nx-sh-ind);
}
.nx-form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── "Leia também" ──────────────────────────────────────────────────────── */
.nx-related-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--nx-border);
}
.nx-related-block h3 {
  font-family: var(--nx-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-tx);
  margin: 0 0 16px;
}
.nx-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.nx-related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-r-md);
  background: var(--nx-bg-off);
  text-decoration: none;
  transition: border-color var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease), transform var(--nx-dur) var(--nx-ease);
}
.nx-related-link:hover {
  border-color: var(--nx-border-ind);
  box-shadow: var(--nx-sh);
  transform: translateY(-1px);
}
.nx-related-link-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nx-indigo);
}
.nx-related-link-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-tx);
  line-height: 1.3;
}

/* ─── Footer do artigo ───────────────────────────────────────────────────── */
.nx-article-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--nx-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.nx-article-nav a {
  color: var(--nx-indigo);
  text-decoration: none;
  font-weight: 500;
  max-width: 45%;
}
.nx-article-nav a:hover { text-decoration: underline; }

/* ─── Tabela comparativa ────────────────────────────────────────────────── */
.nx-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
}
.nx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.nx-table thead tr {
  background: #f8f9ff;
}
.nx-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--nx-tx);
  border-bottom: 2px solid var(--nx-border);
  white-space: nowrap;
}
.nx-table td {
  padding: 10px 14px;
  color: var(--nx-tx2);
  border-bottom: 1px solid var(--nx-border);
}
.nx-table tbody tr:last-child td { border-bottom: none; }
.nx-table tbody tr:hover { background: #fafbff; }

/* ─── FAQ accordion ─────────────────────────────────────────────────────── */
.nx-article-faq {
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--nx-border);
  overflow: hidden;
}
.nx-faq-item {
  border-bottom: 1px solid var(--nx-border);
}
.nx-faq-item:last-child { border-bottom: none; }
.nx-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  background: #fff;
  transition: background .18s;
}
.nx-faq-q:hover { background: #f8f9ff; }
.nx-faq-q span:first-child {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--nx-tx);
  flex: 1;
}
.nx-faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--nx-indigo);
  transition: transform .28s cubic-bezier(0.4,0,0.2,1);
  line-height: 1;
  flex-shrink: 0;
}
.nx-faq-item.open .nx-faq-icon { transform: rotate(45deg); }
.nx-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(0.4,0,0.2,1), padding .28s;
  padding: 0 20px;
  background: #fafbff;
}
.nx-faq-item.open .nx-faq-body {
  max-height: 600px;
  padding: 16px 20px;
}
.nx-faq-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--nx-tx2);
}
