/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Neoma website. Tokens come from /brand/tokens.css; nothing here invents a colour. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--nm-bg);
  color: var(--nm-text);
  font-family: var(--nm-font-sans);
  font-size: var(--nm-text-md);
  line-height: var(--nm-leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--nm-selection);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--nm-accent);
  text-decoration: underline;
  text-decoration-color: var(--nm-accent-line);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: none;
  box-shadow: var(--nm-focus-ring);
  border-radius: var(--nm-radius-sm);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--nm-tracking-tight);
  line-height: var(--nm-leading-tight);
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code,
kbd,
pre,
.mono {
  font-family: var(--nm-font-mono);
  font-size: 0.875em;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--nm-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--nm-radius-sm);
  background: var(--nm-surface);
  color: var(--nm-text-muted);
  font-size: 0.78em;
  line-height: 1.6;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--nm-text);
  color: var(--nm-bg);
  border-radius: var(--nm-radius-sm);
}
.skip:focus {
  top: 12px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 760px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--nm-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--nm-medium) var(--nm-ease);
}
.site-header.scrolled,
.site-header.solid {
  border-bottom-color: var(--nm-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--nm-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand-tile {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--nm-accent);
  -webkit-mask: url('/brand/logo/icon-knockout.svg') center / contain no-repeat;
  mask: url('/brand/logo/icon-knockout.svg') center / contain no-repeat;
}
/* The outlined wordmark (brand/logo/wordmark.svg), tinted by the text colour. */
.wordmark {
  display: inline-block;
  width: 64px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url('/brand/logo/wordmark.svg') no-repeat center / contain;
  mask: url('/brand/logo/wordmark.svg') no-repeat center / contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav a {
  padding: 6px 10px;
  border-radius: var(--nm-radius-sm);
  color: var(--nm-text-muted);
  text-decoration: none;
  font-size: var(--nm-text-sm);
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--nm-text);
  background: var(--nm-hover);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--nm-text-muted);
  font-size: var(--nm-text-sm);
  text-decoration: none;
  border-radius: var(--nm-radius-sm);
}
.gh-link:hover {
  color: var(--nm-text);
  background: var(--nm-hover);
}
.gh-link .count {
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  color: var(--nm-text-faint);
}
.menu-btn {
  display: none;
}
@media (max-width: 860px) {
  .site-header .wrap {
    gap: 12px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--nm-bg);
    border-bottom: 1px solid var(--nm-border);
  }
  .nav a {
    padding: 12px 8px;
    font-size: var(--nm-text-md);
    border-bottom: 1px solid var(--nm-border);
    border-radius: 0;
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .site-header[data-open='true'] .nav {
    display: flex;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nm-border);
    border-radius: var(--nm-radius-md);
    background: var(--nm-surface);
    color: var(--nm-text);
    cursor: pointer;
  }
  .gh-link .label {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--nm-border-strong);
  border-radius: var(--nm-radius-md);
  background: var(--nm-surface);
  color: var(--nm-text);
  font: 500 var(--nm-text-sm) / 1 var(--nm-font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--nm-fast) var(--nm-ease),
    border-color var(--nm-fast) var(--nm-ease),
    transform var(--nm-fast) var(--nm-ease);
}
.btn:hover {
  border-color: var(--nm-text-faint);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--nm-text);
  border-color: var(--nm-text);
  color: var(--nm-bg);
}
.btn.primary:hover {
  background: color-mix(in srgb, var(--nm-text) 86%, var(--nm-bg));
}
.btn.quiet {
  border-color: transparent;
  background: none;
  color: var(--nm-text-muted);
}
.btn.quiet:hover {
  color: var(--nm-text);
  background: var(--nm-hover);
}
.btn.sm {
  height: 32px;
  padding: 0 12px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Section rhythm ---------- */
.section {
  padding: var(--nm-space-9) 0;
  border-top: 1px solid var(--nm-border);
}
.section.tight {
  padding: var(--nm-space-8) 0;
}
.section.flush {
  border-top: 0;
}
@media (max-width: 640px) {
  .section {
    padding: var(--nm-space-8) 0;
  }
  .section.tight {
    padding: var(--nm-space-7) 0;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  letter-spacing: var(--nm-tracking-mono);
  text-transform: uppercase;
  color: var(--nm-text-faint);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--nm-accent);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: var(--nm-space-7);
}
.section-head h2 {
  font-size: var(--nm-text-2xl);
}
.section-head p:not(.eyebrow) {
  color: var(--nm-text-muted);
  font-size: var(--nm-text-lg);
  max-width: 34em;
}
@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.lede {
  font-size: var(--nm-text-lg);
  color: var(--nm-text-muted);
  max-width: 36em;
}
.muted {
  color: var(--nm-text-muted);
}
.faint {
  color: var(--nm-text-faint);
}

/* Two-line statements: "Plain Markdown. / Nothing proprietary." */
.statement {
  font-size: var(--nm-text-2xl);
}
.statement span {
  display: block;
  color: var(--nm-text-faint);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: var(--nm-space-8) 0 var(--nm-space-7);
}
.page-hero h1 {
  font-size: var(--nm-text-3xl);
  max-width: 16em;
}
.page-hero .lede {
  margin-top: 18px;
}
.page-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- Panels, cards, lists ---------- */
.panel {
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.split.even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.split.top {
  align-items: start;
}
@media (max-width: 920px) {
  .split,
  .split.even {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.split h2 {
  font-size: var(--nm-text-2xl);
}
.split h2 + p,
.split .lede {
  margin-top: 16px;
}

/* A quiet list of facts: label on the left, value on the right. */
.facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--nm-border);
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--nm-border);
  font-size: var(--nm-text-sm);
}
.facts dt,
.facts span {
  color: var(--nm-text-muted);
}
.facts dd,
.facts b {
  margin: 0;
  font-family: var(--nm-font-mono);
  font-weight: 500;
  font-size: var(--nm-text-xs);
  text-align: right;
}

/* Check-style claim list: "No account. No telemetry." */
.claims {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.claims li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--nm-border);
}
.claims li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0.95em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--nm-accent);
  border-bottom: 1.5px solid var(--nm-accent);
  transform: rotate(-45deg);
}
.claims b {
  margin-right: 0.35em;
}
.claims b {
  font-weight: 600;
}
.claims span {
  color: var(--nm-text-muted);
}

/* Cards that link somewhere */
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  color: inherit;
  text-decoration: none;
}
a.card:hover {
  border-color: var(--nm-border-strong);
}
.card h3 {
  font-size: var(--nm-text-lg);
}
.card p {
  color: var(--nm-text-muted);
  font-size: var(--nm-text-sm);
}
.card .meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--nm-font-mono);
  font-size: var(--nm-text-xs);
  color: var(--nm-text-faint);
}
.card .icon {
  width: 20px;
  height: 20px;
  color: var(--nm-text-muted);
}

/* ---------- Code / terminal ---------- */
.term {
  overflow: hidden;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  font-family: var(--nm-font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--nm-border);
  background: var(--nm-surface-2);
  color: var(--nm-text-faint);
  font-size: 12px;
}
.term-bar .dots {
  display: flex;
  gap: 6px;
  margin-right: 6px;
}
.term-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nm-border-strong);
}
.term pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
}
.term .p {
  color: var(--nm-text-faint);
  user-select: none;
}
.term .c {
  color: var(--nm-text-faint);
}
.term .k {
  color: var(--nm-accent);
}
.term .h {
  color: var(--nm-text);
  font-weight: 500;
}
.term .d {
  color: var(--nm-text-muted);
}
pre.code {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-md);
  font-size: 13px;
  line-height: 1.65;
}
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-sm);
  background: var(--nm-surface);
  color: var(--nm-text-muted);
  font: 500 11px/1 var(--nm-font-mono);
  cursor: pointer;
}
.copy:hover {
  color: var(--nm-text);
}

/* ---------- Diagram: vertical flow (Files ↓ Neoma ↓ Search) ---------- */
.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--nm-font-mono);
  font-size: 13px;
}
.flow li {
  position: relative;
  padding: 12px 16px;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-md);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.flow li + li {
  margin-top: 26px;
}
.flow li + li::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -26px;
  height: 26px;
  border-left: 1px dashed var(--nm-border-strong);
}
.flow li + li::after {
  content: '';
  position: absolute;
  left: calc(50% - 4px);
  top: -7px;
  border: 4px solid transparent;
  border-top-color: var(--nm-text-faint);
}
.flow li.hl {
  border-color: var(--nm-accent-line);
  box-shadow: 0 0 0 3px var(--nm-accent-subtle);
}
.flow small {
  color: var(--nm-text-faint);
  font-size: 12px;
}
.flow.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.flow.horizontal li {
  flex: 1 1 0;
  min-width: 110px;
  flex-direction: column;
  gap: 2px;
}
.flow.horizontal li + li {
  margin-top: 0;
  margin-left: 26px;
}
.flow.horizontal li + li::before {
  left: -26px;
  top: 50%;
  width: 26px;
  height: 0;
  border-left: 0;
  border-top: 1px dashed var(--nm-border-strong);
}
.flow.horizontal li + li::after {
  left: -7px;
  top: calc(50% - 4px);
  border-top-color: transparent;
  border-left-color: var(--nm-text-faint);
}
@media (max-width: 720px) {
  .flow.horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .flow.horizontal li + li {
    margin-left: 0;
    margin-top: 26px;
  }
  .flow.horizontal li + li::before {
    left: 50%;
    top: -26px;
    width: 0;
    height: 26px;
    border-top: 0;
    border-left: 1px dashed var(--nm-border-strong);
  }
  .flow.horizontal li + li::after {
    left: calc(50% - 4px);
    top: -7px;
    border-left-color: transparent;
    border-top-color: var(--nm-text-faint);
  }
}

/* Small tag/badge */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-sm);
  background: var(--nm-surface);
  color: var(--nm-text-muted);
  font: 500 11px/1 var(--nm-font-mono);
  letter-spacing: var(--nm-tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.accent {
  color: var(--nm-accent);
  border-color: var(--nm-accent-line);
  background: var(--nm-accent-subtle);
}
.tag.ok::before,
.tag.beta::before,
.tag.planned::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nm-success);
}
.tag.beta::before {
  background: var(--nm-warning);
}
.tag.planned::before {
  background: var(--nm-text-faint);
}

/* ---------- Prose (policy pages, long-form) ---------- */
.prose {
  font-size: 1rem;
  line-height: 1.7;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h1 {
  font-size: var(--nm-text-3xl);
  margin-bottom: 0.4em;
}
.prose h2 {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--nm-border);
  font-size: var(--nm-text-xl);
}
.prose h3 {
  margin-top: 1.8em;
  font-size: var(--nm-text-lg);
}
.prose p,
.prose li {
  color: color-mix(in srgb, var(--nm-text) 86%, var(--nm-bg));
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose code {
  padding: 0.1em 0.35em;
  background: var(--nm-bg-sunken);
  border-radius: var(--nm-radius-sm);
}
.prose pre {
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-md);
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose blockquote {
  margin-left: 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--nm-accent);
  color: var(--nm-text-muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--nm-text-sm);
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--nm-border);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-weight: 600;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--nm-border);
  margin: 2em 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--nm-border);
  padding: 40px 0 48px;
  font-size: var(--nm-text-sm);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer a {
  color: var(--nm-text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--nm-text);
}
.site-footer .legal {
  width: 100%;
  color: var(--nm-text-faint);
  font-size: var(--nm-text-xs);
  font-family: var(--nm-font-mono);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.more {
  margin-top: 28px;
  font-size: var(--nm-text-sm);
}
.more a {
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Inner-page components ---------- */
.small-h {
  font-size: var(--nm-text-lg);
  margin-bottom: 12px;
}
.small {
  font-size: var(--nm-text-sm);
}
p.small,
p.muted {
  margin-top: 14px;
}
.plain {
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--nm-text-muted);
}
.plain li + li {
  margin-top: 6px;
}
.small-list {
  font-size: var(--nm-text-sm);
  margin-top: 20px;
}
.stack {
  display: grid;
  gap: 12px;
}
.facts.tall > div {
  padding: 14px 0;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  background: var(--nm-surface);
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--nm-text-sm);
}
.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--nm-border);
  text-align: left;
  vertical-align: top;
}
.compare tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  font-weight: 600;
  background: var(--nm-surface-2);
}
.compare tbody th {
  width: 140px;
  font-weight: 500;
  color: var(--nm-text-muted);
}
.why {
  margin-top: 32px;
}
.why h3,
.who h3 {
  font-size: var(--nm-text-lg);
  margin-bottom: 8px;
}

/* Numbered steps */
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  border-top: 1px solid var(--nm-border);
}
.steps-list li {
  counter-increment: s;
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--nm-border);
}
.steps-list li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font: 12px var(--nm-font-mono);
  color: var(--nm-text-faint);
}
.steps-list b {
  margin-right: 0.35em;
}
.steps-list span {
  color: var(--nm-text-muted);
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 6px 12px;
  border: 1px solid var(--nm-accent-line);
  border-radius: 999px;
  background: var(--nm-accent-subtle);
  color: var(--nm-accent);
  font-size: var(--nm-text-sm);
  font-weight: 500;
}
.note-panel {
  padding: 24px;
}
.note-panel h3 {
  margin-top: 12px;
  font-size: var(--nm-text-lg);
}

/* Downloads */
.downloads {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nm-border);
}
.dl {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--nm-border);
  scroll-margin-top: 80px;
}
.dl:target {
  background: var(--nm-accent-subtle);
  box-shadow:
    -16px 0 0 var(--nm-accent-subtle),
    16px 0 0 var(--nm-accent-subtle);
}
.dl-name {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dl-name svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--nm-text-muted);
}
.dl-name h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--nm-text-lg);
}
.dl-name p {
  margin-top: 2px;
  color: var(--nm-text-muted);
  font-size: var(--nm-text-sm);
}
.dl-file {
  display: grid;
  gap: 2px;
  font-size: var(--nm-text-sm);
}
.dl-file .faint {
  font-size: var(--nm-text-xs);
}
.dl-file code {
  font-size: 1em;
}
@media (max-width: 760px) {
  .dl {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dl-file {
    padding-left: 36px;
  }
  .dl-act {
    padding-left: 36px;
  }
}

/* Policy box */
.policy-box {
  overflow: hidden;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  background: var(--nm-surface);
}
.policy-box pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.policy-box b {
  color: var(--nm-accent);
  font-weight: 500;
}

/* Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.arch {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  background: var(--nm-surface-2);
}
.arch header {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.arch h2 {
  font-size: var(--nm-text-lg);
}
.arch > p {
  margin-top: auto;
  color: var(--nm-text-muted);
  font-size: var(--nm-text-sm);
}
@media (max-width: 1000px) {
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}
.big-flow li {
  padding: 18px;
}

/* Support tiers: editorial columns, not a pricing table */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--nm-border);
  border-bottom: 1px solid var(--nm-border);
}
.tiers article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 28px 32px 0;
  scroll-margin-top: 80px;
}
.tiers article + article {
  padding-left: 28px;
  border-left: 1px solid var(--nm-border);
}
.tiers h3 {
  font-size: var(--nm-text-xl);
}
.tiers .price {
  font-weight: 500;
}
.tiers .muted {
  margin: 0 0 8px;
  font-size: var(--nm-text-sm);
}
.tiers .btn {
  margin-top: auto;
}
@media (max-width: 860px) {
  .tiers {
    grid-template-columns: 1fr;
  }
  .tiers article,
  .tiers article + article {
    padding: 24px 0;
    border-left: 0;
  }
  .tiers article + article {
    border-top: 1px solid var(--nm-border);
  }
}
.who {
  margin-top: 36px;
}
.help-cards .card svg,
.grid-3 > .card > svg {
  width: 20px;
  height: 20px;
  color: var(--nm-text-muted);
}

/* Product mocks */
.palette-mock,
.search-mock {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--nm-shadow-md);
}
.pm-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nm-border);
  color: var(--nm-text-faint);
}
.pm-input .q {
  color: var(--nm-text);
}
.palette-mock ul,
.search-mock ul {
  margin: 0;
  padding: 6px;
  list-style: none;
}
.palette-mock li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--nm-radius-md);
  font-size: var(--nm-text-sm);
}
.palette-mock li span:last-child {
  display: flex;
  gap: 3px;
}
.palette-mock li.on,
.search-mock li.on {
  background: var(--nm-active);
}
.sm-filters {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--nm-border);
}
.search-mock li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--nm-radius-md);
  font-size: var(--nm-text-sm);
}
.search-mock li b {
  font-family: var(--nm-font-mono);
  font-weight: 500;
  font-size: 12.5px;
}
.search-mock li span {
  color: var(--nm-text-muted);
}
.search-mock mark {
  background: var(--nm-accent-subtle);
  color: var(--nm-accent);
  border-radius: 2px;
}
.graph-mock {
  margin: 0;
  padding: 20px;
}
.graph-mock svg {
  width: 100%;
  height: auto;
}
.graph-mock .e line {
  stroke: var(--nm-border-strong);
}
.graph-mock .on line {
  stroke: var(--nm-accent);
  stroke-width: 1.5;
}
.graph-mock .n circle {
  fill: var(--nm-text-muted);
}
.graph-mock circle.act {
  fill: var(--nm-accent);
}
.graph-mock .l text {
  fill: var(--nm-text-muted);
  font: 12px var(--nm-font-sans);
}
.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}
.feature-groups h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nm-border);
  font-size: var(--nm-text-lg);
}
.feature-groups h3 svg {
  width: 18px;
  height: 18px;
  color: var(--nm-accent);
}
.feature-groups ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: var(--nm-text-sm);
  color: var(--nm-text-muted);
}
.feature-groups a {
  color: var(--nm-text);
  font-weight: 500;
}
@media (max-width: 860px) {
  .feature-groups {
    grid-template-columns: 1fr;
  }
}
.notfound pre a {
  color: var(--nm-accent);
}
.notfound .actions {
  margin-top: 24px;
}
