/* Noventrix · estilos proprios (carregado depois do assets/main.css, que e o Tailwind pre-compilado do template).
 * Aqui entra o que o template nao tem: seletor de idioma, ancoras e fonte para chines. */

/* ---- ancoras do menu: nao deixa o cabecalho fixo cobrir o titulo da secao ---- */
#solucoes,
#como-fazemos {
  scroll-margin-top: 6rem;
}

/* ---- tema claro: o template nao pinta o fundo do body (conta com o branco padrao do navegador).
   Em navegadores/paineis com fundo escuro por tras, o hero ficava com texto escuro sobre fundo escuro. ---- */
html:not(.dark) body {
  background-color: #fff;
}

/* ---- cores da marca: troca o roxo do template pelo azul Noventrix (Manual de Marca, pag. 11) ----
   O template pinta texto, icones, botoes, foco e hover com a escala --color-primary-*. Redefinir as variaveis aqui
   troca tudo de uma vez (este arquivo vem depois do main.css e, sem camada, ganha dele).
   500 = azul eletrico #1E6BFF. 400 = o azul claro que o manual usa sobre fundo escuro (#5C93FF).
   Nada de roxo ou violeta. */
:root {
  --color-primary-50: #f2f6ff;
  --color-primary-200: #c4d8ff;
  --color-primary-400: #5c93ff;
  --color-primary-500: #1e6bff;
  --color-primary-600: #1558e8;
}

/* valores literais do template que nao passam pelas variaveis (estrelas e gradientes) */
.fill-\[\#864FFE\] {
  fill: #1e6bff;
}

.hero-text-color-1 {
  background-image: linear-gradient(45deg, #1e6bff, #58b4ff, #1e6bff);
}

.bg-linear-\[135deg\,\#ffffff_0\%\,\#a585ff_100\%\] {
  background-image: linear-gradient(135deg, #fff 0%, #5c93ff 100%);
}

.bg-linear-\[156deg\,_\#FFF_32\.92\%\,_\#A585FF_91\%\] {
  background-image: linear-gradient(156deg, #fff 32.92%, #5c93ff 91%);
}

/* ---- botoes do manual (pag. 15): principal em azul eletrico; secundario so com contorno ----
   Usados junto com .btn (tamanho, raio e animacao de hover do template). */
.btn.nx-btn-primary {
  border-color: var(--color-primary-600);
  background-color: var(--color-primary-500);
  color: #fff;
}

.btn.nx-btn-primary:hover {
  background-color: var(--color-primary-600);
}

.btn.nx-btn-primary:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
}

.btn.nx-btn-outline {
  border-color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 28%, transparent);
  background-color: transparent;
  color: var(--color-secondary, #1a1a1c);
  box-shadow: none;
}

.btn.nx-btn-outline:hover {
  border-color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 55%, transparent);
  background-color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 6%, transparent);
}

.dark .btn.nx-btn-outline {
  border-color: color-mix(in srgb, var(--color-accent, #fcfcfc) 30%, transparent);
  color: var(--color-accent, #fcfcfc);
}

.dark .btn.nx-btn-outline:hover {
  border-color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
  background-color: color-mix(in srgb, var(--color-accent, #fcfcfc) 8%, transparent);
}

.btn.nx-btn-outline:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* ---- hero: sem o painel de dashboard; o hero ocupa a tela e o padrao de quadrados do template fica maior ---- */
.nx-hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.nx-hero > .main-container {
  width: 100%;
}

.nx-hero .main-container > div:first-child {
  margin-bottom: 0;
}

/* o padrao de quadrados que o template ja tinha (images/ns-img-150.png e ns-img-dark-104.png), reconstruido em SVG
   por .claude/grid-pattern.py para cobrir uma area maior sem mudar a escala (celulas de 48 px) nem o estilo.
   O centro e igual ao PNG original; as bordas do hero esmaecem com a mascara. */
.nx-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  z-index: -1;
  pointer-events: none;
  background: url("../images/nx-grid-light.svg") center top / 4032px 720px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.dark .nx-hero-pattern {
  background-image: url("../images/nx-grid-dark.svg");
}

/* animacao dos quadradinhos (assets/hero-pixels.js): um canvas por cima do padrao, na mesma area e com a mesma mascara */
.nx-hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- paleta: tira o verde-limao, o ciano, o amarelo e o salmao do template (fora do Manual de Marca) ----
   O template usa a familia --color-ns-* nos selos (.badge-*), nas linhas de progresso e em gradientes.
   Aqui ela passa a ser a familia do azul Noventrix; o papel do manual (#F4F4F0) substitui o marfim. */
:root {
  --color-ns-green: #1e6bff;
  --color-ns-green-light: #e5eeff;
  --color-ns-cyan: #58b4ff;
  --color-ns-cyan-light: #d9ecff;
  --color-ns-yellow: #5c93ff;
  --color-ns-yellow-light: #e9f0ff;
  --color-ns-red: #9abcff;
  --color-ns-linen: #b8c4da;
  --color-ns-ivory: #f4f4f0;
}

/* selos no escuro: texto no azul claro que o manual usa sobre a tinta (#5C93FF) */
.badge-green:where(.dark, .dark *),
.badge-green-v2:where(.dark, .dark *),
.badge-cyan:where(.dark, .dark *),
.badge-cyan-v2:where(.dark, .dark *),
.badge-yellow-v2:where(.dark, .dark *) {
  color: var(--color-primary-400);
}

/* gradientes com ciano/limao/amarelo escritos direto no CSS do template */
.bg-linear-\[156deg\,\#83E7EE_2\.92\%\,\#C6F56F_91\%\] {
  background-image: linear-gradient(156deg, #58b4ff 2.92%, #1e6bff 91%);
}

.bg-linear-\[156deg\,\#ffffff_0\%\,\#83E7EE_100\%\] {
  background-image: linear-gradient(156deg, #fff 0%, #58b4ff 100%);
}

.bg-linear-\[180deg\,\#ffffff_0\%\,\#83e7ee_100\%\] {
  background-image: linear-gradient(180deg, #fff 0%, #58b4ff 100%);
}

.hero-text-color-2 {
  background-image: linear-gradient(45deg, #58b4ff, #5c93ff, #58b4ff);
}

/* ---- chines simplificado: pilha de fontes com CJK (o Inter Tight nao tem ideogramas) ---- */
html:lang(zh-CN) body {
  font-family: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

/* ---- seletor de idioma (cabecalho, desktop) ---- */
.nx-lang {
  position: relative;
}

.nx-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.nx-lang__btn:hover,
.nx-lang.is-open .nx-lang__btn {
  color: var(--color-secondary, #1a1a1c);
  border-color: var(--color-stroke-2, #e3e7ed);
}

.nx-lang__chev {
  transition: transform 0.2s;
}

.nx-lang.is-open .nx-lang__chev {
  transform: rotate(180deg);
}

.nx-lang__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border: 1px solid var(--color-stroke-1, #dfe4eb);
  border-radius: 1rem;
  background: #fff;
  color: var(--color-secondary, #1a1a1c);
  box-shadow: 0 12px 32px rgba(11, 11, 16, 0.14);
}

.nx-lang.is-open .nx-lang__menu {
  display: block;
}

.nx-lang__item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.nx-lang__item:hover {
  background: rgba(127, 127, 127, 0.14);
}

/* idioma atual: pequeno bloco azul da marca (o "bloco azul" do manual) */
.nx-lang__item[aria-current="true"] {
  font-weight: 600;
}

.nx-lang__item[aria-current="true"]::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: #1e6bff;
}

.dark .nx-lang__btn {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

.dark .nx-lang__btn:hover,
.dark .nx-lang.is-open .nx-lang__btn {
  color: var(--color-accent, #fcfcfc);
  border-color: var(--color-stroke-7, #2a333e);
}

.dark .nx-lang__menu {
  border-color: var(--color-stroke-7, #2a333e);
  background: var(--color-background-9, #1f252f);
  color: var(--color-accent, #fcfcfc);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ---- lista de idiomas (menu lateral, mobile) ---- */
.nx-lang-list {
  margin-top: 1.75rem;
}

.nx-lang-list__label {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  opacity: 0.6;
}

.nx-lang-list__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nx-lang-list__item {
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 9999px;
  background: transparent;
  /* cor explicita nos dois temas: o menu lateral (aside.sidebar) nao define cor de texto, entao "inherit" dava preto sobre o fundo escuro */
  color: var(--color-secondary, #1a1a1c);
  font-size: 0.875rem;
  cursor: pointer;
}

.dark .nx-lang-list__item {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--color-accent, #fcfcfc);
}

/* o menu lateral no tema escuro tambem passa a herdar texto claro (nada dentro dele fica preto sobre fundo escuro) */
.dark .sidebar {
  color: var(--color-accent, #fcfcfc);
}

.nx-lang-list__item[aria-current="true"] {
  border-color: #1e6bff;
  box-shadow: inset 0 0 0 1px #1e6bff;
  font-weight: 600;
}

/* =====================================================================================================
   Blog (paginas geradas por .claude/blog-build.py; ver blog-src/README.md)
   Reaproveita os cards e o carrossel do template; aqui entram so as pecas novas: assuntos, newsletter,
   migalhas, pagina de assunto e a tipografia do artigo. Cores e raios vem das variaveis do template.
   ===================================================================================================== */

/* "Carregar mais": os cards depois do primeiro lote ficam escondidos so quando ha JavaScript */
.nx-js [data-nx-later] {
  display: none;
}

.nx-card--in {
  animation: nx-card-in 0.5s ease both;
}

@keyframes nx-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-card--in {
    animation: none;
  }
}

/* titulos e textos de apoio (o template zera o tamanho dos h1; aqui fica no porte do h2 dele) */
.nx-title {
  margin: 0;
  padding-bottom: 0;
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.nx-title--left {
  margin-top: 0.25rem;
}

.nx-lead {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  padding-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 62%, transparent);
}

.nx-lead--center {
  margin-inline: auto;
}

.dark .nx-lead {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 62%, transparent);
}

.nx-eyebrow {
  margin: 0 0 0.875rem;
  padding-bottom: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-500);
}

.dark .nx-eyebrow {
  color: var(--color-primary-400);
}

/* chips de assunto */
.nx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.nx-chips-wrap {
  margin-top: 1.75rem;
}

.nx-chips-wrap .nx-chips {
  justify-content: flex-start;
}

.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-stroke-1, #dfe4eb);
  border-radius: 9999px;
  background: transparent;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 80%, transparent);
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.nx-chip:hover {
  border-color: var(--color-primary-500);
  color: var(--color-primary-500);
}

.nx-chip[aria-current="page"] {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: #fff;
}

.nx-chip:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.dark .nx-chip {
  border-color: var(--color-stroke-7, #2a333e);
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 80%, transparent);
}

.dark .nx-chip:hover {
  border-color: var(--color-primary-400);
  color: var(--color-primary-400);
}

.dark .nx-chip[aria-current="page"] {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: #fff;
}

/* resumo dentro dos cards */
.nx-card__excerpt {
  display: -webkit-box;
  margin: 0;
  padding-bottom: 0;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 62%, transparent);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.dark .nx-card__excerpt {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 62%, transparent);
}

/* o template poe os selos em minusculas ("ia aplicada"); no blog o assunto aparece como foi escrito (siglas como IA) */
.nx-card .badge,
.blog-article-swiper .badge,
.nx-post-meta .badge {
  text-transform: none;
}

/* migalhas */
.nx-crumbs {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}

.nx-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
}

.nx-crumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nx-crumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  opacity: 0.6;
}

.nx-crumbs a {
  transition: color 0.2s;
}

.nx-crumbs a:hover {
  color: var(--color-primary-500);
}

.nx-crumbs [aria-current="page"] {
  color: var(--color-secondary, #1a1a1c);
}

.nx-crumbs [aria-current="page"] > span {
  display: block;
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .nx-crumbs ol {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

.dark .nx-crumbs [aria-current="page"] {
  color: var(--color-accent, #fcfcfc);
}

/* cabecalho do artigo */
.nx-post-head {
  max-width: 52rem;
  margin-inline: auto;
}

.nx-post-title {
  margin: 0;
  padding-bottom: 0;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nx-post-lead {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  padding-bottom: 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 65%, transparent);
}

.dark .nx-post-lead {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 65%, transparent);
}

.nx-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
}

.dark .nx-post-meta {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

.nx-author {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-secondary, #1a1a1c);
}

.dark .nx-author {
  color: var(--color-accent, #fcfcfc);
}

.nx-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--color-stroke-1, #dfe4eb);
  border-radius: 0.5rem;
  background: var(--color-background-1, #fcfcfd);
}

.dark .nx-avatar {
  border-color: var(--color-stroke-7, #2a333e);
  background: var(--color-background-5, #13171e);
}

.nx-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nx-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.nx-share__label {
  margin-right: 0.25rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
}

.dark .nx-share__label {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

/* botoes redondos com icone: WhatsApp, Stories do Instagram, LinkedIn e copiar link */
.nx-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-stroke-1, #dfe4eb);
  border-radius: 9999px;
  background: transparent;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 78%, transparent);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.nx-share__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nx-share__btn:hover {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: #fff;
  transform: translateY(-2px);
}

.nx-share__btn:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.nx-share__btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.dark .nx-share__btn {
  border-color: var(--color-stroke-7, #2a333e);
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 80%, transparent);
}

.dark .nx-share__btn:hover {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: #fff;
}

.nx-share__toast {
  flex-basis: 100%;
  max-width: 40rem;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-primary-600);
}

.nx-share__toast[hidden] {
  display: none;
}

.dark .nx-share__toast {
  color: var(--color-primary-400);
}

/* compartilhar de novo no fim do artigo, na largura do texto */
.nx-share--end {
  max-width: 44rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-stroke-1, #dfe4eb);
}

.dark .nx-share--end {
  border-color: var(--color-stroke-7, #2a333e);
}

.nx-post-cover {
  max-width: 68rem;
  margin: 2.5rem auto 3rem;
  overflow: hidden;
  border-radius: 1.25rem;
}

.nx-post-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* texto do artigo (coluna estreita de leitura) */
.nx-prose {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 90%, transparent);
}

.dark .nx-prose {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 88%, transparent);
}

.nx-prose > * {
  margin: 0;
  padding-bottom: 0;
}

.nx-prose > * + * {
  margin-top: 1.25rem;
}

.nx-prose p {
  padding-bottom: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.nx-prose h2 {
  margin-top: 3rem;
  padding-bottom: 0;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  scroll-margin-top: 7rem;
}

.nx-prose h3 {
  margin: 2.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  scroll-margin-top: 7rem;
}

.nx-prose h2 + *,
.nx-prose h3 + * {
  margin-top: 0.875rem;
}

.dark .nx-prose h2,
.dark .nx-prose h3 {
  color: var(--color-accent, #fcfcfc);
}

.nx-prose a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.nx-prose a:hover {
  text-decoration-thickness: 2px;
}

.dark .nx-prose a {
  color: var(--color-primary-400);
}

.nx-prose strong {
  font-weight: 600;
}

.nx-prose ul,
.nx-prose ol {
  padding-left: 0;
  list-style: none;
}

.nx-prose li {
  position: relative;
  padding-left: 1.75rem;
}

.nx-prose li + li {
  margin-top: 0.625rem;
}

/* marcador da lista: o quadradinho azul da marca */
.nx-prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.125rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary-500);
}

.nx-prose ol {
  counter-reset: nx-ol;
}

.nx-prose ol > li {
  counter-increment: nx-ol;
}

.nx-prose ol > li::before {
  content: counter(nx-ol) ".";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-500);
}

.dark .nx-prose ul > li::before {
  background: var(--color-primary-400);
}

.dark .nx-prose ol > li::before {
  color: var(--color-primary-400);
}

.nx-prose blockquote {
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--color-primary-500);
  border-radius: 0;
  font-size: 1.25rem;
  line-height: 1.55;
}

.nx-prose code {
  padding: 0.12em 0.4em;
  border-radius: 0.375rem;
  background: var(--color-background-4, #f0f2f6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.dark .nx-prose code {
  background: var(--color-background-9, #1f252f);
}

.nx-prose pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--color-background-8, #070b10);
  color: #e6e8ec;
  font-size: 0.9rem;
  line-height: 1.6;
}

.nx-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.nx-prose hr {
  margin-block: 2.5rem;
  border: 0;
  border-top: 1px solid var(--color-stroke-1, #dfe4eb);
}

.nx-prose figure {
  margin-block: 2rem;
}

.nx-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.nx-prose figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  text-align: center;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
}

.nx-table {
  overflow-x: auto;
  border: 1px solid var(--color-stroke-1, #dfe4eb);
  border-radius: 0.75rem;
}

.nx-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.nx-table th,
.nx-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-stroke-1, #dfe4eb);
  text-align: left;
  vertical-align: top;
}

.nx-table thead th {
  background: var(--color-background-3, #f4f5f8);
  font-weight: 500;
  white-space: nowrap;
}

.nx-table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.nx-table tr:last-child > * {
  border-bottom: 0;
}

.dark .nx-table,
.dark .nx-table th,
.dark .nx-table td {
  border-color: var(--color-stroke-7, #2a333e);
}

.dark .nx-table thead th {
  background: var(--color-background-9, #1f252f);
}

/* perguntas frequentes (sanfona nativa <details>) */
.nx-faq {
  margin-top: 3.5rem;
}

.nx-prose .nx-faq > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.nx-faq__item {
  border-top: 1px solid var(--color-stroke-1, #dfe4eb);
}

.nx-faq__item:last-child {
  border-bottom: 1px solid var(--color-stroke-1, #dfe4eb);
}

.dark .nx-faq__item {
  border-color: var(--color-stroke-7, #2a333e);
}

.nx-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
}

.nx-faq__item summary::-webkit-details-marker {
  display: none;
}

.nx-faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary-500);
}

.nx-faq__item[open] summary::after {
  content: "–";
}

.nx-faq__item summary:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.nx-faq__a {
  padding: 0 0 1.25rem;
}

.nx-faq__a > * + * {
  margin-top: 0.75rem;
}

/* newsletter */
.nx-news {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--color-stroke-1, #dfe4eb);
  border-radius: 1.5rem;
  background: var(--color-background-1, #fcfcfd);
}

@media (min-width: 900px) {
  .nx-news {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.dark .nx-news {
  border-color: var(--color-stroke-7, #2a333e);
  background: var(--color-background-5, #13171e);
}

.nx-news__title {
  margin: 0;
  padding-bottom: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.nx-news__text {
  margin: 0.75rem 0 0;
  padding-bottom: 0;
  font-size: 1rem;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 62%, transparent);
}

.dark .nx-news__text {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 62%, transparent);
}

.nx-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nx-input {
  flex: 1 1 14rem;
  height: 3rem;
  padding: 0 1.125rem;
  border: 1px solid var(--color-stroke-3, #d7dde5);
  border-radius: 9999px;
  background: #fff;
  color: var(--color-secondary, #1a1a1c);
  font-size: 1rem;
}

.nx-input::placeholder {
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 50%, transparent);
}

.nx-input:focus-visible {
  border-color: var(--color-primary-500);
  outline: 2px solid var(--color-primary-500);
  outline-offset: 1px;
}

.dark .nx-input {
  border-color: var(--color-stroke-7, #2a333e);
  background: var(--color-background-9, #1f252f);
  color: var(--color-accent, #fcfcfc);
}

.dark .nx-input::placeholder {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 50%, transparent);
}

.nx-news__form .btn {
  height: 3rem;
}

.nx-news__fine {
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.nx-news__fine a {
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.dark .nx-news__fine a {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

.nx-news__msg {
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--color-primary-600);
}

.nx-news__msg[hidden] {
  display: none;
}

.dark .nx-news__msg {
  color: var(--color-primary-400);
}

/* artigos relacionados */
.nx-rel__title {
  margin: 0 0 2rem;
  padding-bottom: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}

/* pagina de assunto: lista + coluna "em destaque" */
.nx-cat-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

/* com um unico artigo o card ocupa a coluna inteira; com mais, entram duas colunas */
.nx-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
  align-content: start;
}

@media (min-width: 1024px) {
  .nx-cat-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3.5rem;
  }

  .nx-aside {
    position: sticky;
    top: 7rem;
  }
}

.nx-aside__title {
  margin: 0 0 1.25rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--color-stroke-1, #dfe4eb);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.dark .nx-aside__title {
  border-color: var(--color-stroke-7, #2a333e);
}

.nx-aside__list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-aside__item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.nx-aside__item img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.nx-aside__t {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--color-secondary, #1a1a1c);
  transition: color 0.2s;
}

.dark .nx-aside__t {
  color: var(--color-accent, #fcfcfc);
}

.nx-aside__item:hover .nx-aside__t,
.dark .nx-aside__item:hover .nx-aside__t {
  color: var(--color-primary-500);
}

.nx-aside__d {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 60%, transparent);
}

.dark .nx-aside__d {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

/* =====================================================================================================
   Pagina Sobre: faixa escura "o nome e a marca" (nov- + -trix, a grade, o pingo azul e o bloco azul).
   Os icones sao SVG brancos (images/about/icone-*.svg), a faixa e escura nos dois temas.
   ===================================================================================================== */
.nx-name {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
}

.nx-name__head {
  max-width: 34rem;
}

.nx-name__head h2 {
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  text-wrap: balance;
}

.nx-name__head p {
  padding-bottom: 0;
  color: rgb(255 255 255 / 0.64);
}

.nx-name__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 2rem;
}

.nx-name__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nx-name__icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
}

.nx-name__col h3 {
  margin: 0 0 0.5rem;
  font-size: var(--text-heading-6);
  line-height: var(--text-heading-6--line-height);
  font-weight: 500;
  color: #fff;
}

.nx-name__col p {
  padding-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.64);
}

@media (min-width: 768px) {
  .nx-name {
    padding: 3.5rem 3rem;
  }

  .nx-name__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .nx-name {
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    gap: 4rem;
    align-items: start;
  }
}

/* =====================================================================================================
   Botoes que abrem o WhatsApp (Fale com a gente, Comecar um piloto): o icone vem antes do texto e herda a cor do botao.
   O numero e a mensagem ficam em .claude/i18n-catalog.py (WHATSAPP e a chave wa.link).
   ===================================================================================================== */
.nx-wa-icon {
  display: inline-block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.4rem;
  vertical-align: -0.24em;
}

/* o template poe o texto dos botoes em minusculas; o nome "WhatsApp" mantem as maiusculas */
.nx-keep-case {
  text-transform: none;
}

/* =====================================================================================================
   Aviso de cookies: cartao pequeno no pe da janela, discreto. O markup esta em cada pagina (escondido por padrao);
   assets/cookie-notice.js mostra uma vez e guarda o aceite. Textos em .claude/i18n-catalog.py (chaves cookies.*).
   No celular o cartao para antes do botao de tema (fixo no canto direito, 3rem de largura); de 768px em diante fica centralizado.
   Camada 9990: acima do cabecalho, abaixo do menu lateral e do botao de tema (ambos 9999).
   ===================================================================================================== */
.nx-cookie {
  position: fixed;
  left: 0.75rem;
  right: 4rem;
  bottom: 1.25rem;
  z-index: 9990;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-stroke-2, #e3e7ed);
  border-radius: 1rem;
  background: #fff;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 78%, transparent);
  box-shadow: 0 14px 34px -14px rgba(12, 22, 44, 0.3), 0 2px 8px rgba(12, 22, 44, 0.06);
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nx-cookie[hidden] {
  display: none;
}

.nx-cookie.is-in {
  opacity: 1;
  transform: none;
}

.nx-cookie__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.0625rem;
  color: color-mix(in srgb, var(--color-secondary, #1a1a1c) 55%, transparent);
}

.nx-cookie__text {
  margin: 0;
  min-width: 0;
}

.nx-cookie__text a {
  white-space: nowrap;
  color: var(--color-primary-600, #1558e8);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.nx-cookie__text a:hover {
  text-decoration-thickness: 2px;
}

.nx-cookie__btn {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--color-primary-600, #1558e8);
  border-radius: 999px;
  background: var(--color-primary-500, #1e6bff);
  color: #fff;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nx-cookie__btn:hover {
  background: var(--color-primary-600, #1558e8);
}

.nx-cookie__btn:focus-visible,
.nx-cookie__text a:focus-visible {
  outline: 2px solid var(--color-primary-500, #1e6bff);
  outline-offset: 2px;
}

.dark .nx-cookie {
  border-color: var(--color-stroke-7, #2a333e);
  background: var(--color-background-5, #13171e);
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 82%, transparent);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .nx-cookie__icon {
  color: color-mix(in srgb, var(--color-accent, #fcfcfc) 60%, transparent);
}

.dark .nx-cookie__text a {
  color: var(--color-primary-400, #5c93ff);
}

.dark .nx-cookie__btn:focus-visible,
.dark .nx-cookie__text a:focus-visible {
  outline-color: var(--color-primary-400, #5c93ff);
}

/* a partir de 560px o botao fica ao lado do texto (3 colunas: icone, texto, botao) */
@media (min-width: 560px) {
  .nx-cookie {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.75rem 0.75rem 0.75rem 1.125rem;
  }

  .nx-cookie__icon {
    margin-top: 0;
  }

  .nx-cookie__btn {
    grid-column: auto;
    justify-self: auto;
  }
}

@media (min-width: 768px) {
  .nx-cookie {
    left: 50%;
    right: auto;
    width: min(44rem, calc(100% - 7rem)); /* 3.5rem de cada lado: nao encosta no botao de tema (3rem) */
    transform: translate(-50%, 0.75rem);
  }

  .nx-cookie.is-in {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-cookie {
    transition: none;
  }
}

@media print {
  .nx-cookie {
    display: none;
  }
}

/* paginas legais (termos, privacidade, LGPD): o corpo vem logo depois do cabecalho, sem capa nem barra de compartilhar no meio */
.nx-post-head + .nx-prose {
  margin-top: 2.5rem;
}

/* =====================================================================================================
   "O que entregamos" (home): ilustracoes do Emptykit (UI8; licenca em "Emptykit 3/LICENSE.txt") sobre um palco discreto.
   Cada ilustracao tem versao clara e escura, trocadas por dark:hidden / dark:block no HTML, com o azul de acento trocado pelo azul
   da marca (#1E6BFF). Cartoes largos mostram 3 ilustracoes; abaixo de 1024px, so a primeira.
   ===================================================================================================== */
.nx-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  background: #eaedf2;
  overflow: hidden;
}

.dark .nx-art {
  background: #12151b;
}

.nx-art-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nx-art-card > .nx-art {
  flex: 1 1 auto;
  min-height: 15rem;
}

.nx-art__item {
  display: block;
  flex: 1 1 0;
  max-width: 15rem;
  min-width: 0;
}

.nx-art__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
}

/* palcos maiores (Sobre): grande, dois lado a lado e grade 2x2 */
.nx-art--grow {
  flex: 1 1 0;
  min-width: 0;
}

.nx-art--big {
  min-height: 28rem;
  padding: 2rem 1.5rem;
}

.nx-art--big .nx-art__item {
  max-width: 26rem;
}

.nx-art--2 {
  min-height: 20rem;
}

.nx-art--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 0.75rem;
  min-height: 24rem;
  padding: 1.5rem 1rem;
}

.nx-art--grid .nx-art__item {
  max-width: none;
}

/* colagem de "Por que um piloto" (home): palco com a ilustracao principal e dois cartoes flutuando (movimento do template: data-spring) */
.nx-collage {
  position: relative;
  width: 100%;
  max-width: 18.75rem;
}

@media (min-width: 768px) {
  .nx-collage {
    max-width: 25rem;
    margin-inline-start: 4rem;
  }
}

@media (min-width: 1024px) {
  .nx-collage {
    max-width: 31.25rem;
    margin-inline-start: 0;
  }
}

.nx-collage > .nx-art {
  aspect-ratio: 1;
  padding: 1.5rem;
}

.nx-collage > .nx-art .nx-art__item {
  flex: 0 1 80%;
  max-width: 80%;
}

.nx-art-float {
  position: absolute;
  z-index: 10;
  margin: 0;
  padding: 0.4rem;
  border: 1px solid #dfe4eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 38px -16px rgba(12, 22, 44, 0.35);
}

.dark .nx-art-float {
  border-color: #2a333e;
  background: #181d26;
  box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.7);
}

.nx-art-float img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.nx-art-float--meta {
  top: 4%;
  right: -0.5rem;
  width: 36%;
  rotate: 8deg;
}

.nx-art-float--evo {
  bottom: -5%;
  left: 56%;
  width: 40%;
}

/* cartoes largos: 1 ilustracao no celular/tablet, 2 de 1024px, 3 de 1280px */
.nx-art--3 .nx-art__item:nth-child(n + 2) {
  display: none;
}

@media (min-width: 1024px) {
  .nx-art--3 .nx-art__item:nth-child(2) {
    display: block;
  }
}

@media (min-width: 1280px) {
  .nx-art--3 .nx-art__item:nth-child(3) {
    display: block;
  }
}
