/* === Tipografia Apple === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.25;
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.35;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 16px;
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

/* === Eyebrow (Apple pill & status indicator) === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Tag eyebrow vira link para página de tags/tópicos */
.eyebrow-tag-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

.eyebrow-tag-link:hover,
.eyebrow-tag-link:focus-visible {
  color: var(--accent-hover);
}

/* Trecho do título em gradiente de marca */
.ns-grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* === Corpo do post (prose) — Leitura Confortável 720px === */
.prose {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
}

.prose p {
  margin: 1.5em 0;
  color: var(--fg);
}

.prose a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.prose a:not(.btn):hover { color: var(--link-hover); }

/* blockquote (Apple callout style) */
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(0, 113, 227, 0.04);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  margin: 2em 0;
  font-style: normal;
  color: var(--fg);
}

:root[data-theme="dark"] .prose blockquote {
  background: rgba(0, 113, 227, 0.08);
}

.prose blockquote p {
  margin: 0.5em 0;
}

/* dfn — definição de termo técnico */
.prose dfn {
  font-style: normal;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
}

/* code inline + block (Apple Clean & Rounded) */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.05);
  color: var(--fg);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-hair);
}

:root[data-theme="dark"] .prose code {
  background: rgba(255, 255, 255, 0.08);
}

.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 2em 0;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
}

.prose ul, .prose ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.5em 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

.prose img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 2em 0;
}

/* tabela — wrapper .ns-table-wrap injetado pelo render hook _markup/render-table.html */
.ns-table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.5;
}

.prose .ns-table-wrap table { margin: 0; }

.prose thead th {
  text-align: left;
  background: var(--bg-elevated);
  color: var(--fg-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}

.prose th,
.prose td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose tbody tr:last-child td { border-bottom: none; }

.prose tbody tr:nth-child(even) { background: rgba(127, 127, 127, 0.03); }

/* === Cards Apple (brancos, rounded-2xl, borda sutil, sombra suave) === */
.ns-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), 0 12px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* === Ambient Glow (suave estilo Apple, sem borrão agressivo) === */
.ember-glow {
  position: relative;
  overflow: hidden;
}

.ember-glow::before,
.ember-glow::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.ember-glow::before {
  background: rgba(0, 113, 227, 0.08);
  top: -240px;
  right: -160px;
  opacity: 0.8;
}

.ember-glow::after {
  background: rgba(88, 86, 214, 0.06);
  bottom: -240px;
  left: -160px;
  opacity: 0.8;
}

:root[data-theme="dark"] .ember-glow::before {
  background: rgba(0, 113, 227, 0.12);
}

:root[data-theme="dark"] .ember-glow::after {
  background: rgba(88, 86, 214, 0.10);
}

.ember-glow > * { position: relative; z-index: 1; }

/* === Botões Apple (pills refinadas com azul #0071e3 e texto branco) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  line-height: 1.4;
}

.btn-primary {
  background: #0071e3 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
  background: #0077ed !important;
  color: #ffffff !important;
  transform: translateY(-0.5px);
  box-shadow: 0 3px 8px rgba(0, 113, 227, 0.3);
}

.btn-primary * {
  color: #ffffff !important;
  stroke: #ffffff;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-ghost:hover {
  border-color: var(--fg-muted);
  background: var(--bg-elevated);
  color: var(--fg);
  transform: translateY(-0.5px);
}

/* === Header (navbar) com efeito frosted glass Apple === */
.ns-header {
  border-bottom: 1px solid var(--header-border, rgba(0, 0, 0, 0.06));
  background: var(--header-bg, rgba(255, 255, 255, 0.80));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 150ms ease, border-color 150ms ease;
}

.ns-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ns-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  transition: color 200ms ease;
}

.ns-wordmark:hover {
  color: var(--accent);
}

.ns-wordmark-svg {
  height: 22px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .ns-wordmark-svg { height: 20px; }
}

.ns-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.ns-nav a {
  color: var(--fg);
  text-decoration: none;
  transition: color 150ms ease;
}

.ns-nav a:hover { color: var(--accent); }

/* CTA da navbar do blog → site institucional (cross-link) */
.ns-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff !important;
  background: #0071e3 !important;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 113, 227, 0.2);
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-nav-cta:hover {
  background: #0077ed !important;
  color: #ffffff !important;
  transform: translateY(-0.5px);
  box-shadow: 0 3px 8px rgba(0, 113, 227, 0.3);
}

@media (max-width: 640px) { .ns-nav-cta { display: none; } }

.ns-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === Lang switcher === */
.ns-lang-switcher {
  display: flex;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ns-lang-current { color: var(--accent); }
.ns-lang { color: var(--fg-muted); text-decoration: none; transition: color 150ms ease; }
.ns-lang:hover { color: var(--fg); }

/* === Search trigger === */
.ns-search-trigger {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ns-search-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Mobile === */
@media (max-width: 720px) {
  .ns-nav { display: none; }
  .ns-header-inner { padding: 12px 16px; }
  h2 { margin-top: 2rem; }
}

/* === Theme toggle === */
.ns-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ns-theme-toggle button {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  padding: 6px;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.ns-theme-toggle button:hover {
  color: var(--fg);
  background: var(--bg-elevated);
}

.ns-theme-toggle button.is-active {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.ns-theme-toggle button.is-active:hover {
  background: var(--accent-hover) !important;
  color: #ffffff !important;
}

.ns-theme-toggle button.is-active * {
  color: #ffffff !important;
  stroke: #ffffff;
}

@media (max-width: 480px) {
  .ns-theme-toggle button[data-theme-set="system"] {
    display: none;
  }
}

/* === Footer === */
.ns-footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  padding: 4rem 24px 2rem;
  background: var(--bg-surface);
}

.ns-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}

.ns-footer-logo {
  display: inline-block;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.ns-footer-logo .ns-wordmark-svg {
  height: 22px;
  width: auto;
  display: block;
}

.ns-footer-brand p {
  max-width: 340px;
  color: var(--fg-muted);
  margin: 0 0 1.5rem;
  font-size: 16px;
  line-height: 1.6;
}

.ns-footer-cta {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  background: var(--bg-surface);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 150ms ease;
}

.ns-footer-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 113, 227, 0.04);
}

.ns-footer-col .eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0;
}

.ns-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.ns-footer-col li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.ns-footer-col a {
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  transition: color 150ms ease;
}

.ns-footer-col a:hover {
  color: var(--accent);
}

.ns-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--fg-soft);
  font-size: 13px;
  font-family: var(--font-ui);
}

.ns-footer-bottom a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ns-footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .ns-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ns-footer {
    padding: 3rem 20px 1.5rem;
  }
}

/* === Post (single) === */
.ns-post-hero {
  padding: 3.5rem 0 2rem;
}

.ns-post-hero .eyebrow {
  margin-bottom: 1.25rem;
}

/* Linha de meta do post (categoria · data · tempo) */
.ns-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ns-post-meta-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.ns-post-meta-cat::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.ns-post-meta-cat:hover,
.ns-post-meta-cat:focus-visible { color: var(--accent-hover); }

.ns-post-meta-sep { color: var(--border-strong); }
.ns-post-meta-info { color: var(--fg-soft); }

/* Mobile: categoria na 1ª linha, data · tempo quebram pra 2ª */
@media (max-width: 720px) {
  .ns-post-meta-sep { display: none; }
  .ns-post-meta-info { flex-basis: 100%; }
}

.ns-post-deck {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 1rem 0 1.75rem;
  max-width: 640px;
  font-style: normal;
}

/* Régua de utilidade no rodapé do hero: byline esquerda + ask-ai direita */
.ns-post-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  line-height: 0;
}

.ns-post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.ns-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.ns-post-byline a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-ui);
  line-height: 1.3;
}

.ns-byline-name {
  font-weight: 600;
  font-size: 15px;
}

.ns-byline-role {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 1px;
}

.ns-post-body { padding: 2rem var(--content-padding) 4rem; }

@media (max-width: 720px) {
  .ns-post-hero { padding: 2.5rem 0 1.5rem; }
  .ns-post-deck { font-size: 19px; margin: 1rem 0 1.5rem; }
}

/* === CTA boxes (Apple keynote card style) === */
.ns-cta {
  max-width: var(--reading-width);
  margin: 3.5rem auto;
  padding: 38px 34px;
  background: var(--grad-cta);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Marca d'água sutil */
.ns-cta::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 220px;
  height: 220px;
  background: url("/brand/symbol.svg") no-repeat center / contain;
  opacity: 0.10;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.ns-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ns-cta > * { position: relative; z-index: 1; }

.ns-cta .eyebrow {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.ns-cta .eyebrow::before {
  background: #0071e3;
}

.ns-cta-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
  color: #ffffff;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.ns-cta-title::before { display: none; }

.ns-cta-meta {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.ns-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Botões sobre o CTA Apple: primário azul #0071e3 + texto branco */
.ns-cta .btn-primary {
  background: #0071e3 !important;
  color: #ffffff !important;
}

.ns-cta .btn-primary:hover {
  background: #0077ed !important;
  color: #ffffff !important;
  transform: translateY(-0.5px);
}

.ns-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: transparent;
}

.ns-cta .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ns-cta-mid .ns-cta-title {
  font-size: clamp(19px, 2.2vw, 22px);
}

@media (max-width: 720px) {
  .ns-cta { padding: 26px 20px; margin: 2.5rem auto; border-radius: 16px; }
  .ns-cta-actions { gap: 8px; }
  .ns-cta-actions .btn { flex: 1; justify-content: center; }
}

/* === Home === */
.ns-home-hero {
  padding: 4.5rem 24px 3.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.04) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.ns-home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ns-home-hero-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.ns-home-title {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 1.25rem;
  font-weight: 700;
}

.ns-home-deck {
  font-family: var(--font-body);
  max-width: 520px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
  font-style: normal;
}

/* Marca d'água "N" do hero */
.ns-home-symbol {
  width: 100%;
  max-width: 340px;
  opacity: 0.06;
  justify-self: end;
  pointer-events: none;
  filter: grayscale(0.5);
}

:root[data-theme="dark"] .ns-home-symbol { opacity: 0.09; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ns-home-symbol { opacity: 0.09; }
}

.ns-home-posts {
  padding: 3.5rem 24px 4rem;
}

.ns-home-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-home-posts .eyebrow {
  margin-bottom: 1.75rem;
  display: block;
}

.ns-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Cards de post brancos, rounded-2xl, borda sutil, tags minimalistas */
.ns-post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-post-card-tag {
  margin: 0 0 0.5rem;
}

.ns-post-card-tag::before {
  display: none !important;
}

.ns-post-card-tag .eyebrow-tag-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.12);
  color: var(--accent);
  text-decoration: none;
  transition: all 150ms ease;
}

:root[data-theme="dark"] .ns-post-card-tag .eyebrow-tag-link {
  background: rgba(0, 113, 227, 0.14);
  border-color: rgba(0, 113, 227, 0.28);
  color: #2997ff;
}

.ns-post-card-tag .eyebrow-tag-link:hover {
  background: rgba(0, 113, 227, 0.12);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.ns-post-card h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.ns-post-card h2::before { display: none; }

.ns-post-card h2 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 150ms ease;
}

.ns-post-card h2 a:hover { color: var(--accent); }

.ns-post-card-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--fg-soft);
  margin: 4px 0 0;
  letter-spacing: 0.01em;
}

.ns-post-card-desc {
  color: var(--fg-muted);
  margin: 6px 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ns-post-card-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 150ms ease;
}

.ns-post-card-link:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .ns-home-hero { padding: 3rem 20px 2.5rem; }
  .ns-home-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .ns-home-symbol { max-width: 180px; opacity: 0.06; justify-self: center; }
  .ns-home-deck { font-size: 18px; }
  .ns-home-posts { padding: 3rem 20px; }
  .ns-post-list { grid-template-columns: 1fr; }
}

/* === List page === */
.ns-list-hero {
  padding: 3.5rem 24px 1.5rem;
}

.ns-list-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-list-title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
}

.ns-list-title::before { display: none; }

.ns-list-deck {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0.5rem 0 0;
  font-style: normal;
  line-height: 1.5;
}

.ns-list-posts {
  padding: 2rem 24px 5rem;
}

.ns-list-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-list-empty {
  color: var(--fg-muted);
  font-style: normal;
  text-align: center;
  padding: 4rem 0;
}

/* === Tag list (taxonomy index) === */
.ns-tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 150ms ease;
}

.ns-tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 113, 227, 0.04);
  transform: translateY(-1px);
}

.ns-tag-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-soft);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 999px;
}

.ns-tag-chip:hover .ns-tag-count {
  color: var(--accent);
}

@media (max-width: 720px) {
  .ns-list-hero { padding: 2.5rem 20px 1.5rem; }
  .ns-list-deck { font-size: 17px; }
  .ns-list-posts { padding: 1.5rem 20px 3rem; }
}

/* === Related posts === */
.ns-related {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1rem;
}

.ns-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ns-related .eyebrow {
  margin-bottom: 1rem;
  display: block;
}

.ns-related-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 2rem;
  font-weight: 700;
}

.ns-related-title::before { display: none; }

.ns-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ns-related-list a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-related-list a:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06);
}

.ns-related-list a:hover h3 { color: var(--accent); }

.ns-related-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.ns-related-list h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  margin: 4px 0 4px;
  letter-spacing: -0.01em;
  font-weight: 600;
  transition: color 150ms ease;
}

.ns-related-list h3::before { display: none; }

.ns-related-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.01em;
}

.ns-related-desc {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
}

@media (max-width: 720px) {
  .ns-related { padding: 2rem 0 0.5rem; margin-top: 3rem; }
  .ns-related-list { grid-template-columns: 1fr; gap: 16px; }
}

/* === Standalone pages (/sobre/, /about/) === */
.ns-page-hero {
  padding: 3.5rem 0 1.5rem;
}

.ns-page-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.ns-page-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ns-page-deck {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 1rem 0 0;
  max-width: 580px;
  font-style: normal;
}

.ns-page-body { padding: 2rem 0 4rem; }

@media (max-width: 720px) {
  .ns-page-hero { padding: 2.5rem 0 1rem; }
  .ns-page-deck { font-size: 17px; }
}

/* === Author page === */
.ns-author-hero {
  padding: 3.5rem 24px 2.5rem;
  border-bottom: 1px solid var(--border);
}

.ns-author-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.ns-author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.ns-author-meta {
  flex: 1;
  min-width: 0;
}

.ns-author-meta .eyebrow {
  margin-bottom: 0.5rem;
}

.ns-author-meta h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin: 0.25rem 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ns-author-bio {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 0 1.25rem;
  max-width: 580px;
  font-style: normal;
}

.ns-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ns-author-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: all 150ms ease;
}

.ns-author-links a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Skills / topics — pílulas Apple leves */
.ns-author-skills {
  padding: 2rem 24px 0;
}

.ns-author-skills-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-author-skills .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.ns-author-skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-author-skill {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 150ms ease, color 150ms ease;
}

.ns-author-skill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.04);
}

.ns-author-about {
  padding: 2rem 24px 1rem;
}

.ns-author-about-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-author-posts {
  padding: 3rem 24px 4rem;
}

.ns-author-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-author-posts .eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}

.ns-author-empty {
  color: var(--fg-muted);
  font-style: normal;
  padding: 1rem 0;
}

.ns-author-back {
  margin: 2.5rem 0 0;
}

@media (max-width: 720px) {
  .ns-author-hero { padding: 2.5rem 20px 1.5rem; }
  .ns-author-hero-inner { flex-direction: column; gap: 20px; }
  .ns-author-avatar { width: 88px; height: 88px; }
  .ns-author-bio { font-size: 17px; }
  .ns-author-skills { padding: 1.5rem 20px 0; }
  .ns-author-about { padding: 1.5rem 20px 0.5rem; }
  .ns-author-posts { padding: 2rem 20px 3rem; }
}

/* Seletor de Categorias / ICP (Pills Apple) */
.ns-filter-wrapper {
  margin: 1.5rem 0 1.25rem 0;
}

.ns-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

@media (max-width: 720px) {
  .ns-filter-container { justify-content: center; }
}

.ns-filter-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--fg);
  background: var(--bg-elevated);
}

.ns-filter-btn.active {
  background: #0071e3 !important;
  border-color: #0071e3 !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

/* Suavização de visibilidade dos cards filtrados */
.ns-post-card-container {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ns-post-card-container.ns-post-hidden {
  opacity: 0;
  transform: scale(0.96);
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: none;
  pointer-events: none;
}

/* --- Card em destaque (1º post da home) --- */
.ns-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.ns-featured-media {
  position: relative;
  display: block;
  min-height: 280px;
  background:
    radial-gradient(120% 120% at 78% 18%, rgba(0, 113, 227, 0.16), transparent 55%),
    radial-gradient(120% 120% at 20% 92%, rgba(88, 86, 214, 0.10), transparent 55%),
    var(--bg-elevated);
  overflow: hidden;
}

:root[data-theme="dark"] .ns-featured-media {
  background:
    radial-gradient(120% 120% at 78% 18%, rgba(0, 113, 227, 0.25), transparent 55%),
    radial-gradient(120% 120% at 20% 92%, rgba(88, 86, 214, 0.18), transparent 55%),
    #151517;
}

.ns-featured-media::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 72%;
  height: 128%;
  background: url("/brand/symbol-color.svg") no-repeat center / contain;
  opacity: 0.14;
  pointer-events: none;
}

.ns-featured-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #0071e3 !important;
  color: #ffffff !important;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
}

.ns-featured-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-featured-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  font-weight: 700;
}

.ns-featured-body h2::before { display: none; }

.ns-featured-body h2 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 150ms ease;
}

.ns-featured-body h2 a:hover { color: var(--accent); }

.ns-featured-desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 4px 0 14px;
}

.ns-featured .ns-post-card-link { margin-top: auto; }

@media (max-width: 860px) {
  .ns-featured { grid-template-columns: 1fr; }
  .ns-featured-media { min-height: 168px; }
  .ns-featured-body { padding: 24px 20px; }
}

/* --- CTA gradiente da home (full-width Apple keynote card) --- */
.ns-home-cta-wrap {
  padding: 0 24px 4rem;
}

.ns-home-cta {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad-cta);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.ns-home-cta::before {
  content: "";
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: url("/brand/symbol.svg") no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.ns-home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ns-home-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.ns-home-cta-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}

.ns-home-cta-title::before { display: none; }

.ns-home-cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 520px;
}

.ns-home-cta .btn-primary {
  background: #0071e3 !important;
  color: #ffffff !important;
}

.ns-home-cta .btn-primary:hover {
  background: #0077ed !important;
  color: #ffffff !important;
  transform: translateY(-0.5px);
}

@media (max-width: 720px) {
  .ns-home-cta {
    padding: 32px 20px;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .ns-home-cta::before { opacity: 0.08; right: -4%; }
  .ns-home-cta-wrap { padding: 0 20px 2.5rem; }
}

/* --- CTA mid: variante sutil --- */
.ns-cta-mid {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}

.ns-cta-mid::before,
.ns-cta-mid::after { display: none; }

.ns-cta-mid .eyebrow { color: var(--fg-soft); }
.ns-cta-mid .eyebrow::before { background: var(--accent); }
.ns-cta-mid .ns-cta-title { color: var(--fg); font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; }
.ns-cta-mid .ns-cta-meta { color: var(--fg-muted); }
.ns-cta-mid .btn-primary { background: #0071e3 !important; color: #ffffff !important; }
.ns-cta-mid .btn-primary:hover { background: #0077ed !important; color: #ffffff !important; }
.ns-cta-mid .btn-ghost { border-color: var(--border-strong); color: var(--fg); background: var(--bg-surface); }
.ns-cta-mid .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 113, 227, 0.04); }

/* --- Card de autor no fim do post (E-E-A-T + Apple card) --- */
.ns-post-author-wrap {
  max-width: var(--reading-width);
  margin: 3.5rem auto 0;
  padding: 0 var(--content-padding);
}

.ns-post-author {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.ns-post-author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.ns-post-author-info { min-width: 0; }
.ns-post-author-info .eyebrow { margin-bottom: 6px; }

.ns-post-author-name {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2px 0 6px;
  font-weight: 600;
}

.ns-post-author-name::before { display: none; }

.ns-post-author-name a {
  color: var(--fg);
  text-decoration: none;
  transition: color 150ms ease;
}

.ns-post-author-name a:hover { color: var(--accent); }

.ns-post-author-bio {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ns-post-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ns-post-author-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

.ns-post-author-links a:hover { color: var(--accent-hover); }

@media (max-width: 720px) {
  .ns-post-author { flex-direction: column; gap: 14px; padding: 20px; }
  .ns-post-author-avatar { width: 56px; height: 56px; }
}

/* === Menu mobile (hambúrguer) com efeito frosted glass Apple === */
.ns-menu-toggle { display: none; }
.ns-mobile-menu { display: none; }

@media (max-width: 720px) {
  .ns-header-actions .ns-lang-switcher { display: none; }

  .ns-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--fg);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  }
  .ns-menu-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: background 0.2s ease;
  }
  .ns-menu-icon::before,
  .ns-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
  }
  .ns-menu-icon::before { top: -5px; }
  .ns-menu-icon::after { top: 5px; }
  .ns-header.is-menu-open .ns-menu-icon { background: transparent; }
  .ns-header.is-menu-open .ns-menu-icon::before { transform: translateY(5px) rotate(45deg); }
  .ns-header.is-menu-open .ns-menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

  .ns-header.is-menu-open .ns-mobile-menu { display: block; }
  .ns-mobile-menu {
    border-top: 1px solid var(--border);
    background: var(--header-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px 20px;
  }
  .ns-mobile-nav { display: flex; flex-direction: column; }
  .ns-mobile-nav a {
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--fg);
    text-decoration: none;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .ns-mobile-nav a:last-child { border-bottom: none; }
  .ns-mobile-cta { color: var(--accent) !important; font-weight: 600; }
  .ns-mobile-menu .ns-lang-switcher {
    display: flex;
    gap: 16px;
    padding: 16px 4px 4px;
    font-size: 13px;
  }
  .ns-mobile-menu .ns-lang { padding: 4px 2px; }
}

/* === Acessibilidade & foco visível Apple === */
:where(a, button, .btn, .ns-filter-btn, .ns-lang, .ns-menu-toggle,
       .ns-theme-toggle button, .ns-post-card-link):focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
  border-radius: 6px;
}

.eyebrow-tag-link,
.ns-post-card-link,
.ns-related-tag,
.ns-post-author-links a { color: var(--accent); }

@media (max-width: 720px) {
  .ns-filter-btn { min-height: 38px; }
  .ns-theme-toggle button { min-width: 36px; min-height: 36px; }
}

/* ── Regra mandatória: CTA com fundo primary / blue SEMPRE tem texto branco ── */
[class*="bg-[#0071e3]"]:not([class*="/"]),
[class*="bg-[#0077ed]"]:not([class*="/"]),
[class*="bg-[#0062c4]"]:not([class*="/"]),
[class*="bg-accent"]:not([class*="/"]),
.btn-primary,
.ns-nav-cta,
.ns-featured-chip,
.ns-filter-btn.active {
  background-color: #0071e3 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.ns-nav-cta:hover {
  background-color: #0077ed !important;
  color: #ffffff !important;
}

[class*="bg-[#0071e3]"]:not([class*="/"]) *,
[class*="bg-[#0077ed]"]:not([class*="/"]) *,
[class*="bg-[#0062c4]"]:not([class*="/"]) *,
[class*="bg-accent"]:not([class*="/"]) *,
.btn-primary *,
.ns-nav-cta * {
  color: #ffffff !important;
  stroke: #ffffff;
}

