/* ============================================================
   NessisOne Marketing Site: pages.css
   Components added for the multi-page site. Loaded after style.css
   and built only from its tokens, so the visual language is unchanged.
   ============================================================ */

/* ── Accessibility helpers ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container--narrow { max-width: 820px; }
.btn-block { width: 100%; justify-content: center; }

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-code);
}
.demo-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-code);
  line-height: 1.7;
}

/* ── Navigation: active state and dropdown ──────────────────── */
.nav__link.is-active { color: var(--text-primary); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__item { position: relative; }

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.nav__dropdown-toggle svg { transition: transform 0.25s var(--ease-out); }
.nav__item--dropdown.open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 300px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
}
/* Invisible bridge so the pointer can travel from toggle to menu. */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
.nav__item--dropdown.open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav__dropdown-link:hover,
.nav__dropdown-link[aria-current="page"] { background: var(--teal-dim); }
.nav__dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.nav__dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.nav__mobile-group {
  padding: 14px 16px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav__mobile-link--child { padding-left: 28px; }
.nav__mobile-link[aria-current="page"] {
  color: var(--text-primary);
  background: var(--teal-dim);
}

@media (max-width: 1100px) {
  .nav__links, .nav__actions .btn-outline-teal { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Inner page hero ────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.page-hero__label,
.page-hero__title,
.page-hero__lead,
.page-hero__actions,
.dev-stats {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.9s var(--ease-out) forwards;
}
.page-hero__label { animation-delay: 0.1s; }
.page-hero__title { margin-bottom: 24px; animation-delay: 0.25s; }
.page-hero__lead { max-width: 680px; animation-delay: 0.4s; }
.page-hero__actions { margin-top: 36px; animation-delay: 0.55s; }

.dev-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  animation-delay: 0.55s;
}

/* ── ps-list icons outside the problem/solution block ───────── */
.ps-item__icon--teal { background: var(--teal-dim); color: var(--teal-light); }
.ps-item__icon--red { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* ── Home hero: organization card ───────────────────────────── */
.org-card__officer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}
.org-card__avatar {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
}
.org-card__avatar--gold {
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}
.org-card__name { font-size: 0.92rem; font-weight: 700; }
.org-card__role { font-size: 0.75rem; color: var(--text-secondary); }

.org-card__depts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.org-card__dept {
  position: relative;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.org-card__dept::before {
  /* connector up to the officer */
  content: '';
  position: absolute;
  top: -13px; left: 50%;
  width: 1px; height: 12px;
  background: var(--border-teal);
}
.org-card__dept--busy { border-color: var(--border-teal); }
.org-card__dept--ask { border-color: var(--border-gold); }
.org-card__dept-name { font-size: 0.78rem; font-weight: 700; margin-bottom: 2px; }
.org-card__dept-meta { font-size: 0.68rem; color: var(--text-secondary); margin-bottom: 8px; }
.org-card__dept-state {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.org-card__dept--busy .org-card__dept-state { color: var(--teal-light); }
.org-card__dept--ask .org-card__dept-state { color: var(--gold-light); }

.org-card__budget { margin-bottom: 16px; }
.org-card__budget-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.org-card__budget-row strong { color: var(--gold-light); }

.meter {
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform-origin: left;
  animation: meter-grow 1.6s var(--ease-out) 1.2s both;
}
@keyframes meter-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── Path cards (links to the main sections) ────────────────── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.path-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.path-card:hover { border-color: var(--border-teal); transform: translateY(-4px); }
.path-card--gold:hover { border-color: var(--border-gold); }
.path-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.path-card__desc {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}
.path-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-light);
}
.path-card--gold .path-card__link { color: var(--gold-light); }

/* ── Lifecycle (only for content that really is a sequence) ── */
.lifecycle {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: none;
}
.lifecycle--four { grid-template-columns: repeat(4, 1fr); }
.lifecycle--stack { grid-template-columns: 1fr; }

.lifecycle__step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.lifecycle--four .lifecycle__step:not(:last-child)::after {
  /* arrow connector to the next step */
  content: '';
  position: absolute;
  top: 44px; right: -13px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--border-teal);
  border-right: 2px solid var(--border-teal);
  transform: rotate(45deg);
  z-index: 1;
}
.lifecycle__num {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  color: var(--teal-light);
  font-weight: 800;
  font-size: 0.9rem;
}
.lifecycle__step--gold { border-color: var(--border-gold); }
.lifecycle__step--gold .lifecycle__num {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-light);
}
.lifecycle__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.lifecycle__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.lifecycle--stack .lifecycle__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 18px;
  padding: 22px 24px;
}
.lifecycle--stack .lifecycle__num { grid-row: span 2; margin-bottom: 0; }

/* ── Split layout (text beside a visual) ────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split--top { align-items: start; }
.split__content .display-md { margin-bottom: 16px; }
.split__note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.app-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.app-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.app-chip svg { color: var(--teal-light); flex-shrink: 0; }
.app-chip--gold { border-color: var(--border-gold); color: var(--text-primary); }
.app-chip--gold svg { color: var(--gold-light); }

/* ── Proof band (statement beside before/after numbers) ─────── */
.proof {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.proof__body .display-md { margin-bottom: 16px; }
.proof__numbers { margin-bottom: 0; }
.ba-card--gold { border-color: var(--border-gold); }
.ba-card--gold .ba-label,
.ba-card--gold .ba-value { color: var(--gold-light); }

/* ── Developer / info band ──────────────────────────────────── */
.dev-band {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.dev-band .bento-card__icon { margin-bottom: 0; flex-shrink: 0; }
.dev-band__text { flex: 1; }
.dev-band__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.dev-band__text p { font-size: 0.9rem; color: var(--text-secondary); }

.cta-section__label { justify-content: center; }

/* ── Interactive org chart ──────────────────────────────────── */
.org-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.org-chart__tree {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.org-chart__chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.org-chart__chain .seat-node { position: relative; }
.org-chart__chain .seat-node:not(:last-child)::after {
  /* horizontal connector along the chain */
  content: '';
  position: absolute;
  top: 50%; right: -29px;
  width: 28px; height: 1px;
  background: var(--border-teal);
}
.org-chart__chain .seat-node:last-child::before {
  /* drop from the officer to the departments */
  content: '';
  position: absolute;
  bottom: -41px; left: 50%;
  width: 1px; height: 40px;
  background: var(--border-teal);
}

.org-chart__depts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-teal);
}

.dept-col {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dept-col__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.dept-col__name { font-size: 0.95rem; font-weight: 700; }
.dept-col__cap { font-size: 0.72rem; font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.dept-col__seats { display: flex; flex-direction: column; gap: 6px; }
.dept-col__seats li:not(:first-child) .seat-node:not(.seat-node--guard) { margin-left: 16px; width: calc(100% - 16px); }

.seat-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.seat-node:hover { border-color: var(--border-teal); background: var(--bg-highlight); }
.seat-node__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.seat-node__sub { font-size: 0.72rem; color: var(--text-secondary); }

.seat-node--manager { border-left: 2px solid var(--teal); }
.seat-node--officer { border-color: var(--border-gold); }
.seat-node--officer .seat-node__title { color: var(--gold-light); }
.seat-node--person { border-style: dashed; }
.seat-node--guard { background: transparent; }
.seat-node--guard .seat-node__title { color: var(--text-secondary); font-size: 0.78rem; }
.seat-node--compact { padding: 7px 12px; }

.seat-node.is-selected {
  border-color: var(--teal);
  background: var(--teal-dim);
  box-shadow: 0 0 0 1px var(--teal), 0 0 24px var(--teal-glow);
}
.seat-node--officer.is-selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px var(--gold-glow);
}

.org-chart__panel {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.seat-panel {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg);
}
.seat-panel[hidden] { display: none; }
.seat-panel__head { margin-bottom: 18px; }
.seat-panel__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.seat-panel__meta { font-size: 0.8rem; color: var(--text-secondary); }
.seat-panel__block { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
.seat-panel__label { font-size: 0.75rem; font-weight: 700; color: var(--teal-light); margin-bottom: 6px; }
.seat-panel__text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.seat-panel__tags { margin-top: 0; }
.seat-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.seat-panel__cap { font-size: 1.2rem; font-weight: 800; color: var(--gold-light); }
.seat-panel__cap span { font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }

.seat-kind {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--teal-dim);
  color: var(--teal-light);
  border: 1px solid var(--border-teal);
}
.seat-kind--officer { background: var(--gold-dim); color: var(--gold-light); border-color: var(--border-gold); }
.seat-kind--guard,
.seat-kind--person { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border-color: var(--border); }

.perm-list { display: flex; flex-direction: column; gap: 4px; }
.perm-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trust-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid;
}
.trust-chip--auto { background: rgba(74, 222, 128, 0.1); color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }
.trust-chip--ask { background: var(--gold-dim); color: var(--gold-light); border-color: var(--border-gold); }
.trust-chip--no { background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); border-color: var(--border); }

/* Muted tags read too faintly on the darker panels; lift them to secondary text. */
.tag--muted { color: var(--text-secondary); }

/* ── Grids of cards ─────────────────────────────────────────── */
.bento--three .bento-card { grid-column: span 1; }

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.template-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}
.template-card:hover { border-color: var(--border-teal); }
.template-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.template-card__top .template-card__icon + .template-card__name { flex: 1; }
.template-card__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  color: var(--teal-light);
}
.template-card__name { font-size: 1.05rem; font-weight: 700; }
.template-card__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.pack-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.pack-row__label { font-size: 0.9rem; color: var(--text-secondary); }
.pack-row .bento-card__tags { margin-top: 0; }

.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.family-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius);
}
.family-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.family-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.family-card__teams { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

.models-table__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; text-align: center; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.ai-chat-demo .table-wrap { border: none; border-radius: 0; background: transparent; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-light);
  background: var(--bg-elevated);
}
.data-table tbody th { font-weight: 600; color: var(--text-primary); }
.data-table td { color: var(--text-secondary); }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tfoot th,
.data-table tfoot td { font-weight: 700; color: var(--text-primary); border-top: 1px solid var(--border-teal); border-bottom: none; }
.data-table--compact { font-size: 0.8rem; }
.data-table--compact th,
.data-table--compact td { padding: 10px 16px; }
.trust-table td { white-space: nowrap; }

.demo-footnote {
  padding: 10px 16px 14px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.trust-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.trust-legend__item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-legend__item p { margin-top: 10px; font-size: 0.85rem; color: var(--text-secondary); }

.arch-callouts--three { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.arch-callouts--three:first-child { margin-top: 0; }
.arch-callout__desc { color: var(--text-secondary); }

/* ── Principle statement ────────────────────────────────────── */
.principle {
  max-width: 860px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 3px solid var(--gold);
}
.principle__title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.principle__text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75; }

/* ── Unified command "doors" ────────────────────────────────── */
.doors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.doors__core {
  position: relative;
  padding: 18px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius);
  box-shadow: 0 0 40px var(--teal-glow);
}
.doors__core::after {
  content: '';
  position: absolute;
  bottom: -29px; left: 50%;
  width: 1px; height: 28px;
  background: var(--border-teal);
}
.doors__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--border-teal);
}
.doors__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.doors__item svg { color: var(--teal-light); }
.doors__item--gold { border-color: var(--border-gold); color: var(--text-primary); }
.doors__item--gold svg { color: var(--gold-light); }
.doors__note {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Customer case studies ──────────────────────────────────── */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.case--reverse .case__intro { order: 2; }
.case__intro .display-md { margin-bottom: 16px; }
.case__numbers { margin-top: 28px; margin-bottom: 10px; }
.case__note { font-size: 0.8rem; color: var(--text-secondary); }
.case__modules { display: grid; gap: 12px; }

/* ── Pricing: how AI cost works ─────────────────────────────── */
.cost-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cost-step {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cost-step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.cost-step__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--border-teal); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal-light);
  transition: transform 0.25s var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Verdict / three-check cards ────────────────────────────── */
.verdicts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.verdict {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid;
  border-radius: var(--radius);
}
.verdict--clean { border-top-color: #4ade80; }
.verdict--suspicious { border-top-color: var(--gold); }
.verdict--injected { border-top-color: #f87171; }
.verdict__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.verdict--clean .verdict__name svg { color: #4ade80; }
.verdict--suspicious .verdict__name svg { color: var(--gold-light); }
.verdict--injected .verdict__name svg { color: #f87171; }
.verdict__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.guard-detail { margin-top: 56px; }

/* ── Defense layers ─────────────────────────────────────────── */
.layers {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.layer {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}
.layer:nth-child(2) { margin-left: 16px; }
.layer:nth-child(3) { margin-left: 32px; }
.layer:nth-child(4) { margin-left: 48px; }
.layer:nth-child(5) { margin-left: 64px; }
.layer--gold { border-left-color: var(--gold); }
.layer__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--teal-dim);
  color: var(--teal-light);
}
.layer--gold .layer__icon { background: var(--gold-dim); color: var(--gold-light); }
.layer__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.layer__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.path-grid--two { grid-template-columns: repeat(2, 1fr); }
.template-grid--four { grid-template-columns: repeat(4, 1fr); }
.template-card .trust-chip { margin-top: 14px; }
.template-card__desc a { text-decoration: underline; }

.arch-callouts--stack { grid-template-columns: 1fr; }

/* ── Timeline inside a demo window ──────────────────────────── */
.timeline { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.timeline__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.timeline__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f87171;
}
.timeline__item--teal .timeline__time { color: var(--teal-light); }
.timeline__item--gold .timeline__time { color: var(--gold-light); }

/* ── AI suggestion demo ─────────────────────────────────────── */
.sg-demo {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.sg-demo__chat { position: sticky; top: calc(var(--nav-h) + 16px); }
.sg-demo__reset { margin: 0 20px 20px; width: calc(100% - 40px); }

.sg-form {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sg-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-gold);
  background: var(--gold-dim);
  border-radius: var(--radius);
}
.sg-bar__count { font-size: 0.875rem; font-weight: 700; color: var(--gold-light); }
.sg-bar__actions { display: flex; gap: 8px; }
.sg-bar.is-done { border-color: rgba(74, 222, 128, 0.25); background: rgba(74, 222, 128, 0.08); }
.sg-bar.is-done .sg-bar__count { color: #4ade80; }
.sg-bar.is-done .sg-bar__actions { display: none; }
.sg-btn { padding: 8px 16px; font-size: 0.82rem; }

.sg-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.sg-input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
}
.sg-field.is-pending .sg-input {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim), 0 0 22px var(--teal-glow);
  opacity: 0.7;
}
.sg-field.is-accepted .sg-input { border-color: rgba(74, 222, 128, 0.45); }

.sg-suggestion {
  display: none;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  border-radius: 8px;
}
.sg-field.is-pending .sg-suggestion { display: block; }
.sg-suggestion__value { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 6px; }
.sg-suggestion__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal-light);
  border: 1px solid var(--border-teal);
}
.sg-suggestion__why {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.sg-suggestion__why svg { flex-shrink: 0; margin-top: 2px; color: var(--teal-light); }
.sg-suggestion__actions { display: flex; gap: 8px; }
.sg-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
  transition: background 0.2s;
}
.sg-act--accept { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.sg-act--accept:hover { background: rgba(74, 222, 128, 0.18); }
.sg-act--reject { color: var(--text-secondary); border-color: var(--border); }
.sg-act--reject:hover { background: rgba(255, 255, 255, 0.06); }
.sg-result { font-size: 0.78rem; margin-top: 6px; color: var(--text-secondary); }
.sg-field.is-accepted .sg-result { color: #4ade80; }

.sg-styles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sg-style {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sg-style__sample {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 18px;
}
.sg-sample-input {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: var(--bg-elevated);
  border: 1px solid var(--teal);
  border-radius: 6px;
  box-shadow: 0 0 14px var(--teal-glow);
}
.sg-sample-split {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--teal-light);
  background: var(--teal-dim);
  border: 1px dashed var(--border-teal);
  border-radius: 6px;
}
.sg-sample-pill {
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-light);
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
}
.sg-sample-btns { display: flex; gap: 4px; }
.sg-sample-btns span {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.sg-sample-btns span:first-child { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
.sg-sample-ghost { color: var(--text-muted); }
.sg-style__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.sg-style__desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Dev Workbench mock window ──────────────────────────────── */
.wb-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wb-window__body { display: grid; grid-template-columns: 170px 1fr; min-height: 260px; }
.wb-tree {
  padding: 16px;
  border-right: 1px solid var(--border);
  background: #060e18;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wb-tree__mod, .wb-tree__new { padding-left: 12px; }
.wb-tree__mod { color: var(--gold-light); }
.wb-tree__new { color: #4ade80; }
.wb-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wb-ask { color: var(--gold-light); font-weight: 600; }

/* ── Home: what only NessisOne does ─────────────────────────── */
.unique-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .sg-demo { grid-template-columns: 1fr; }
  .sg-demo__chat { position: static; }
  .sg-styles, .template-grid--four, .unique-grid { grid-template-columns: repeat(2, 1fr); }
  .verdicts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .path-grid--two, .sg-styles, .template-grid--four, .unique-grid { grid-template-columns: 1fr; }
  .layer:nth-child(n) { margin-left: 0; }
  .wb-window__body { grid-template-columns: 1fr; }
  .wb-tree { border-right: none; border-bottom: 1px solid var(--border); }
  .sg-form { padding: 18px; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .org-chart { grid-template-columns: 1fr; }
  .org-chart__panel { position: static; max-height: none; overflow: visible; }
  .lifecycle--four { grid-template-columns: repeat(2, 1fr); }
  .lifecycle--four .lifecycle__step::after { display: none; }
  .split, .proof, .case { grid-template-columns: 1fr; gap: 40px; }
  .case--reverse .case__intro { order: 0; }
  .path-grid, .template-grid { grid-template-columns: repeat(2, 1fr); }
  .family-grid, .cost-steps { grid-template-columns: repeat(2, 1fr); }
  .arch-callouts--three { grid-template-columns: repeat(2, 1fr); }
  .doors__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .org-chart__tree { padding: 20px; }
  .org-chart__chain { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .org-chart__chain .seat-node:not(:last-child)::after { top: auto; bottom: -13px; right: auto; left: 50%; width: 1px; height: 12px; }
  .org-chart__chain .seat-node:last-child::before { bottom: -25px; height: 24px; }
  .org-chart__depts { grid-template-columns: 1fr; }
  .org-card__depts { grid-template-columns: 1fr; }
  .org-card__dept::before { display: none; }
  .lifecycle--four, .path-grid, .template-grid, .family-grid, .cost-steps,
  .trust-legend, .arch-callouts--three { grid-template-columns: 1fr; }
  .app-chips { grid-template-columns: repeat(2, 1fr); }
  .doors__list { grid-template-columns: repeat(2, 1fr); }
  .proof { padding: 28px; }
  .dev-band { flex-direction: column; align-items: flex-start; }
  .dev-stats { gap: 24px; flex-wrap: wrap; }
  .principle { padding-left: 20px; }
  .bento--three { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__label, .page-hero__title, .page-hero__lead, .page-hero__actions, .dev-stats { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
