/* --- Fonts: self-hosted, woff2, swap (VISUAL-DESIGN §10.3) ---------------- */

@font-face {
  font-family: 'Inclusive Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/InclusiveSans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inclusive Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/InclusiveSans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Base ------------------------------------------------------------------ */

:root {
  --night: #05070F;
  --panel: #0C1120;
  --panel-2: #121932;
  --panel-3: #182244;
  --panel-4: #232A44;
  --well: #070B16;
  --chrome: rgba(7,11,22,.9);
  --chrome-soft: rgba(7,11,22,.75);
  --chrome-dense: rgba(7,11,22,.97);
  --line: rgba(255,255,255,.10);
  --hair: rgba(255,255,255,.055);
  --bright: #FFFFFF;
  --near: #F2F4F9;
  --mist: #C9CFDD;
  --dim: #8A92A8;
  --faint: #828AA4;
  --volt: #FFE600;
  --volt-soft: rgba(255,230,0,.5);
  --volt-wash: rgba(255,230,0,.055);
  --volt-ink: #171503;
  --leak: #FF5040;
  --leak-soft: rgba(255,80,64,.45);
  --leak-wash: rgba(255,80,64,.06);
  --true: #3CE08F;
  --face: 'Inclusive Sans', 'Segoe UI', system-ui, sans-serif;

  --fs-3xs: 10px;
  --fs-2xs: 11px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 15px;
  --fs-base: 16px;
  --fs-xl: 19px;
  --fs-2xl: 23px;

  --h-hero: clamp(30px, 4.4vw, 56px);
  --h-sec: calc(var(--h-hero) / 1.3);
  --h-display: clamp(52px, 7vw, 92px);
  --h-display-lg: clamp(60px, 8vw, 108px);
  --h-figure: clamp(36px, 4vw, 54px);
  --h-drawer: clamp(24px, 6.5vw, 38px);
  --ease: cubic-bezier(.75, 0, .25, 1);
  --t-fast: .15s;
  --t: .25s;
  --t-slow: .4s;
  --t-slower: .6s;

  --scrim: rgba(3,5,10,.72);

  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 1000;
  --z-banner: 10000;
  --pad: 44px;
  --sec: clamp(96px, 13vw, 190px);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html {
  color-scheme: dark;
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

img, svg { display: block; }
img { max-width: 100%; }

h1, h2, h3, p, dl, dd, dt, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ==========================================================================
   Console — Night-Watch operations-room skin, full-bleed like the landing.
   Deep-space ground, volt accent, tracked display type, keyline panels,
   corner-ticked buttons. Same tokens as .nw-page; the console is a second
   room in the same building, not a different product.
   ========================================================================== */


/* Fixed instrument layers: same grid + vignette grammar as the landing */
.nw-grid {
  position: fixed; inset: 0; z-index: var(--z-base); pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
}
.nw-vignette {
  position: fixed; inset: 0; z-index: calc(var(--z-base) + 1); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,15,.85), rgba(5,7,15,0) 16%),
    linear-gradient(0deg, rgba(5,7,15,.88), rgba(5,7,15,0) 20%),
    linear-gradient(90deg, rgba(5,7,15,.72), rgba(5,7,15,0) 15%),
    linear-gradient(270deg, rgba(5,7,15,.72), rgba(5,7,15,0) 15%);
}

.nw-meta {
  font: 500 var(--fs-2xs)/1.6 var(--face); letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim); margin: 0;
}
.nw-meta--volt { color: var(--volt); }
.nw-meta--head { margin-bottom: 16px; }
.nw-meta--lead { margin: 20px 0 12px; }
.nw-meta--gap { margin-bottom: 24px; }
.nw-statement {
  font-family: var(--face); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; line-height: 1.2; color: var(--near); margin: 0;
}
.nw-statement .em { color: var(--volt); }

/* Shell: rail left, viewport right */
.nw-shell {
  position: relative; z-index: var(--z-raised);
  display: flex; min-height: 100vh; min-height: 100dvh;
}
.nw-viewport { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Left rail: volt brand mark, keyline icon buttons, active = volt wash */
.nw-rail {
  width: 64px; min-width: 64px;
  border-right: 1px solid var(--hair);
  background: var(--chrome);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; gap: 20px;
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: calc(var(--z-sticky) + 1);
}
.nw-rail__brand {
  display: grid; place-items: center;
  width: 44px; height: 44px; color: var(--volt);
  border: 1px solid var(--volt-soft); text-decoration: none;
}
.nw-rail__stack { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.nw-rail__btn {
  width: 44px; min-height: 44px; display: grid; place-items: center;
  color: var(--dim); text-decoration: none; position: relative;
  border: 1px solid transparent;
  transition: color var(--t), background var(--t), border-color var(--t);
}
.nw-rail__btn:hover, .nw-rail__btn:focus-visible { color: var(--bright); background: var(--volt-wash); }
.nw-rail__btn.is-active { color: var(--volt); background: var(--volt-wash); border-color: var(--volt-soft); }
.nw-rail__btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: 12px; padding: 4px 8px;
  background: var(--panel-2); border: 1px solid var(--hair);
  color: var(--mist); font: 500 var(--fs-3xs)/1 var(--face); letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast); z-index: calc(var(--z-sticky) + 2);
}
.nw-rail__btn:hover[data-tooltip]::after, .nw-rail__btn:focus-visible[data-tooltip]::after { opacity: 1; }

/* Topbar: meta eyebrow left, search + preview + avatar right */
.nw-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 28px;
  border-bottom: 1px solid var(--hair);
  background: var(--chrome-soft);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: var(--z-sticky);
}
.nw-topbar__right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nw-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--well); border: 1px solid var(--hair);
  color: var(--faint); font: 400 var(--fs-xs)/1 var(--face); letter-spacing: .06em;
  padding: 8px 12px; min-height: 44px; min-width: 0; width: 230px; max-width: 100%;
  cursor: pointer; transition: border-color var(--t), color var(--t);
}
.nw-search:hover, .nw-search:focus-visible { border-color: var(--line); color: var(--mist); }
.nw-kbd {
  display: inline-flex; align-items: center; padding: 4px 8px;
  font: 500 var(--fs-3xs)/1.4 var(--face); color: var(--volt);
  border: 1px solid var(--volt-soft); margin-left: auto; white-space: nowrap;
}
.nw-kbd--btn { cursor: pointer; }
.nw-preview {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--fs-3xs)/1 var(--face); letter-spacing: .22em; text-transform: uppercase;
  color: var(--volt); border: 1px solid var(--volt-soft); padding: 8px 12px; min-height: 44px;
  white-space: nowrap; transition: background var(--t);
}
.nw-preview:hover, .nw-preview:focus-visible { background: var(--volt-wash); color: var(--volt); }
.nw-user { position: relative; }
.nw-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--volt); color: var(--volt-ink);
  font: 700 var(--fs-sm)/1 var(--face); border: 0; padding: 0; overflow: hidden;
}
.nw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nw-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 250px;
  background: var(--panel); border: 1px solid var(--hair);
  padding: 8px; display: none; flex-direction: column; z-index: calc(var(--z-sticky) + 2);
}
.nw-menu.is-open { display: flex; }
.nw-menu__head { padding: 8px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.nw-menu__name {
  font-size: var(--fs-sm); font-weight: 600; color: var(--near);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nw-menu__email, .nw-menu__uid {
  font: 400 var(--fs-2xs)/1.6 var(--face); color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nw-menu__link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; min-height: 44px;
  font: 500 var(--fs-2xs)/1.4 var(--face); letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); background: transparent; border: 0; width: 100%;
  text-align: left; cursor: pointer; transition: color var(--t-fast), background var(--t-fast);
}
.nw-menu__link:hover, .nw-menu__link:focus-visible { background: var(--volt-wash); color: var(--volt); }
.nw-menu__logout { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--hair); }
.nw-menu__signout { color: var(--leak); }
.nw-menu__signout:hover, .nw-menu__signout:focus-visible { color: var(--leak); background: var(--leak-wash); }

/* Content: chapter grammar — numbered head, intro, panels */
.nw-content { padding: 56px 44px 96px; max-width: 1180px; width: 100%; margin: 0 auto; min-width: 0; }
.nw-content > * { min-width: 0; }
.nw-chapter-head {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 44px;
  align-items: start; margin-bottom: 44px;
}
.nw-ix {
  font: 300 var(--h-display)/0.92 var(--face);
  color: var(--volt); letter-spacing: .06em;
}
.nw-intro { max-width: 62ch; color: var(--dim); margin: 12px 0 0; font-size: var(--fs-base); }

/* Panels: same language as .nw-artifact */
.nw-panel { background: var(--panel); border: 1px solid var(--hair); margin-bottom: 24px; }
.nw-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 20px 28px; background: var(--panel-2); border-bottom: 1px solid var(--hair);
}
.nw-panel__head h2, .nw-panel__head h3 {
  font: 300 var(--fs-sm)/1.4 var(--face); letter-spacing: .3em;
  text-transform: uppercase; color: var(--bright); margin: 0;
}
.nw-panel__head > h2, .nw-panel__head > h3 { margin-right: auto; }
.nw-panel__head--lead > h3 { margin-right: 0; }
.nw-panel__body { padding: 28px; }
.nw-panel__body > :last-child { margin-bottom: 0; }
.nw-panel__body p { color: var(--dim); font-size: var(--fs-sm); line-height: 1.7; margin: 0 0 12px; }
.nw-panel__body p strong { color: var(--mist); }
.nw-tag {
  font: 700 var(--fs-3xs)/1 var(--face); letter-spacing: .18em; text-transform: uppercase;
  color: var(--volt-ink); background: var(--volt); padding: 4px 8px; white-space: nowrap;
}
.nw-tag--ghost { background: transparent; color: var(--volt); border: 1px solid var(--volt-soft); }
.nw-tag--dim { background: transparent; color: var(--dim); border: 1px solid var(--line); }
.nw-empty {
  border: 1px dashed var(--line); color: var(--faint);
  text-align: center; padding: 32px 20px; font-size: var(--fs-sm); margin: 0;
}
.nw-error {
  color: var(--leak); font-size: var(--fs-sm); font-weight: 500;
  border-left: 2px solid var(--leak); padding-left: 12px; margin: 0 0 16px;
}

/* Rows: same grammar as .nw-krow — index cell, main, end action */
.nw-rows { border-bottom: 1px solid var(--volt-soft); margin: 4px 0 0; }
.nw-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px; align-items: center; text-align: left;
  border-top: 1px solid var(--volt-soft); padding: 16px 4px 16px 0;
  transition: background var(--t); min-width: 0;
}
a.nw-row:hover, a.nw-row:focus-visible { background: var(--volt-wash); }
.nw-row__main { min-width: 0; }
.nw-row__title { font-weight: 600; font-size: var(--fs-md); color: var(--near); letter-spacing: .02em; word-break: break-word; }
.nw-row__title a { color: var(--near); }
.nw-row__title a:hover, .nw-row__title a:focus-visible { color: var(--volt); }
/* Row title links + inline status links: inline text look, 44px target */
.nw-row__link, a.nw-row__link {
  display: inline-block; padding: 8px 4px; margin: -8px -4px;
  min-height: 44px; line-height: 24px;
}
.nw-inline-link { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; font: inherit; cursor: pointer; }
.nw-inline-link:hover, .nw-inline-link:focus-visible { color: var(--bright); }
a.nw-inline-link, button.nw-inline-link {
  display: inline-block; padding: 8px 4px; margin: -8px -4px;
  min-height: 44px; line-height: 24px;
}
.nw-row__sub { color: var(--dim); font-size: var(--fs-xs); line-height: 1.6; margin-top: 4px; }
.nw-row__sub a { color: var(--volt); }
.nw-row__end { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* Buttons: reuse the landing .nw-btn voice via shared classes.
   Console keeps its text labels; corners + slide come free. */
.nw-page .nw-btn { text-decoration: none; }

/* Forms: well-grounded inputs, volt focus, mono labels */
.nw-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 20px; }
.nw-inline-form { display: inline; }
.nw-field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 12rem; min-width: 0; }
.nw-field > span {
  font: 500 var(--fs-3xs)/1.4 var(--face); letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint);
}
.nw-field input, .nw-field select, .nw-field textarea {
  background: var(--well); border: 1px solid var(--hair);
  color: var(--mist); font: 400 var(--fs-sm)/1.4 var(--face);
  padding: 12px 12px; min-height: 46px; width: 100%; border-radius: 0;
}
.nw-field input::placeholder, .nw-field textarea::placeholder { color: var(--faint); }
.nw-field input:focus, .nw-field select:focus, .nw-field textarea:focus {
  outline: none; border-color: var(--volt-soft); box-shadow: 0 0 0 1px var(--volt-soft);
}
.nw-field select {
  appearance: none; -webkit-appearance: none; height: 46px; cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23FFE600' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.nw-field textarea { resize: vertical; min-height: 88px; }
.nw-field input:disabled, .nw-field select:disabled, .nw-field textarea:disabled {
  background: var(--night); border-color: var(--hair);
  color: var(--faint); cursor: not-allowed; resize: none;
}
.nw-field:has(:disabled) > span { color: var(--faint); opacity: .75; }

/* Setup-continuation banner on /app: volt left rule, well ground */
.nw-setup {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--well); border: 1px solid var(--hair);
  border-left: 2px solid var(--volt);
  padding: 20px 24px; margin-bottom: 24px;
}
.nw-setup__text { color: var(--mist); font-size: var(--fs-md); margin: 8px 0 0; }

/* Growth-brief step list on the business page: one row per step */
.nw-steplist { list-style: none; margin: 20px 0; padding: 0; border-bottom: 1px solid var(--volt-soft); }
.nw-steplist__row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px; align-items: center; padding: 16px 4px 16px 0;
  border-top: 1px solid var(--volt-soft); transition: background var(--t);
}
a.nw-steplist__row:hover, a.nw-steplist__row:focus-visible { background: var(--volt-wash); }
.nw-steplist__ix {
  font: 500 var(--fs-3xs)/1.4 var(--face); letter-spacing: .22em;
  text-transform: uppercase; color: var(--volt);
}
.nw-steplist__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nw-steplist__q { font-weight: 600; font-size: var(--fs-md); color: var(--near); }
.nw-steplist__st { font-size: var(--fs-xs); color: var(--faint); }
.nw-steplist__go { color: var(--volt); font-size: var(--fs-base); }

/* Wizard page: actions row + progress dots */
.nw-wizard__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.nw-wizard__actions .nw-tlink--back { margin-bottom: 0; }
.nw-wizard__steps { margin-top: 28px; }
.nw-wizard__steps ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.nw-wizard__steps li a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--hair); color: var(--faint);
  font: 500 var(--fs-3xs)/1 var(--face); letter-spacing: .14em; text-transform: uppercase;
}
.nw-wizard__steps li a:hover, .nw-wizard__steps li a:focus-visible { border-color: var(--volt-soft); color: var(--volt); }
.nw-wizard__steps li[aria-current="step"] a {
  border-color: var(--volt); color: var(--volt-ink); background: var(--volt);
}
.nw-file { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 20px; }
.nw-file input[type="file"] { color: var(--dim); font-size: var(--fs-xs); }
.nw-file input[type="file"]::file-selector-button {
  font: 500 var(--fs-3xs)/1 var(--face); letter-spacing: .14em; text-transform: uppercase;
  background: transparent; color: var(--volt); border: 1px solid var(--volt-soft);
  padding: 12px 16px; margin-right: 12px; cursor: pointer; border-radius: 0;
}

/* Facts / claims */
.nw-fact { border-left: 1px solid var(--line); padding-left: 20px; }
.nw-panel__body .nw-fact { margin-bottom: 20px; }
.nw-panel__body .nw-fact:last-child { margin-bottom: 0; }
.nw-fact h3 {
  font: 500 var(--fs-3xs)/1.6 var(--face); letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: var(--true);
}
.nw-fact--suggested h3, .nw-fact--suggested h5 { color: var(--volt); }
.nw-fact__text { color: var(--mist); font-size: var(--fs-md); line-height: 1.6; margin: 0 0 8px; }
.nw-fact__chip {
  display: inline-block; font: 500 var(--fs-2xs)/1.6 var(--face); letter-spacing: .06em;
  color: var(--volt-ink); background: var(--volt); padding: 4px 8px; margin-bottom: 8px;
}
.nw-src { font: 400 var(--fs-3xs)/1.7 var(--face); letter-spacing: .06em; color: var(--faint); margin: 0; }
.nw-foot {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hair);
  font: 400 var(--fs-3xs)/1.8 var(--face); letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); display: flex; flex-direction: column; gap: 4px;
}
.nw-danger { margin-top: 32px; border: 1px solid var(--leak-soft); background: var(--leak-wash); }
.nw-danger summary {
  cursor: pointer; color: var(--leak); font: 500 var(--fs-2xs)/1.4 var(--face);
  letter-spacing: .22em; text-transform: uppercase; list-style: none;
  display: flex; align-items: center; min-height: 44px; padding: 12px 20px; gap: 8px;
}
.nw-danger summary::-webkit-details-marker { display: none; }
.nw-danger[open] .nw-danger__body { padding: 0 20px 20px; }
.nw-danger__body p { color: var(--dim); font-size: var(--fs-sm); margin: 0 0 16px; }
.nw-confirm { margin-top: 0; max-width: 34rem; }
.nw-confirm .nw-field > span b { color: var(--mist); font-weight: 500; letter-spacing: 0; text-transform: none; }
.nw-confirm .nw-field input:focus {
  border-color: var(--leak-soft); box-shadow: 0 0 0 1px var(--leak-soft);
}

/* Command palette: dark inspector voice */
.nw-palette {
  position: fixed; inset: 0; z-index: calc(var(--z-overlay) + 4);
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center; padding: 15vh 16px 16px;
}
.nw-palette.is-open { display: flex; }
.nw-palette__modal {
  width: 540px; max-width: 100%;
  background: var(--panel); border: 1px solid var(--hair);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.nw-palette__box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.nw-palette__box svg { color: var(--volt); flex: none; }
.nw-palette__input {
  border: 0; outline: none; background: transparent;
  font: 400 var(--fs-md)/1.4 var(--face); color: var(--near); width: 100%;
}
.nw-palette__input::placeholder { color: var(--faint); }
.nw-palette__results { max-height: 320px; overflow-y: auto; padding: 8px; }
.nw-palette__group {
  font: 500 var(--fs-3xs)/1 var(--face); letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); padding: 8px 12px 4px;
}
.nw-palette__group--gap { margin-top: 8px; }
.nw-palette__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; min-height: 44px; color: var(--mist);
  font-size: var(--fs-sm); transition: background var(--t-fast), color var(--t-fast);
}
.nw-palette__item svg { color: var(--volt); flex: none; }
.nw-palette__item:hover, .nw-palette__item:focus-visible, .nw-palette__item.is-active { background: var(--volt-wash); color: var(--volt); }
.nw-palette__foot {
  padding: 8px 16px; border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between;
  font: 400 var(--fs-2xs)/1.6 var(--face); color: var(--faint);
}
.nw-palette__foot kbd {
  font-family: var(--face); background: var(--well);
  padding: 4px 8px; border: 1px solid var(--hair); border-radius: 2px; color: var(--dim);
}

/* Demo banner (devserver.go only, never production): volt strip, dark ink */
.demo-banner {
  position: relative; z-index: calc(var(--z-overlay) + 5);
  background: var(--volt); color: var(--volt-ink);
  font: 500 var(--fs-3xs)/1.6 var(--face);
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
  padding: 8px 16px;
}
.nw-page .demo-banner { background: var(--volt); color: var(--volt-ink); }

/* Skip link: first Tab stop */
.nw-skip {
  position: absolute; left: 12px; top: -60px; z-index: calc(var(--z-overlay) + 6);
  background: var(--volt); color: var(--volt-ink);
  font: 500 var(--fs-2xs)/1 var(--face);
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 12px 16px; transition: top var(--t-fast);
}
.nw-skip:focus-visible { top: 12px; outline: 3px solid var(--bright); }

/* --- Console layouts -------------------------------------------------------
   Laptop ≥1101px is the default above. Tablet keeps the left rail. Mobile
   (≤640px) moves navigation to a bottom tab bar — an app pattern, not a
   squashed laptop rail. The page itself never scrolls sideways. */

/* Tablet ≤ 1100px: condensed operations room, rail stays left */
@media (max-width: 1100px) {
  .nw-content { padding: 44px 24px 80px; }
  .nw-topbar { padding: 12px 16px; }
  .nw-search { width: 180px; }
  .nw-search span { display: none; }
  .nw-search .nw-kbd { display: none; }
  .nw-chapter-head { gap: 12px 28px; }
}

/* Mobile ≤640px: bottom tab bar + icon-only topbar + stacked content */
@media (max-width: 640px) {
  .nw-shell { flex-direction: column; }
  .nw-viewport { padding-bottom: 80px; }
  .nw-content { padding: 32px 16px 48px; }
  .nw-chapter-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }

  /* Rail → bottom fixed tab bar */
  .nw-rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; min-width: 0; height: auto;
    flex-direction: row; align-items: stretch;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--hair);
    background: var(--chrome-dense); z-index: calc(var(--z-sticky) + 3);
  }
  .nw-rail__brand { display: none; }
  .nw-rail__stack {
    flex-direction: row; justify-content: space-around;
    align-items: stretch; width: 100%; flex: 1;
  }
  .nw-rail__btn { flex: 1 1 0; min-width: 0; min-height: 52px; }
  .nw-rail__btn[data-tooltip]::after { display: none; }

  /* Topbar → compact: eyebrow hides, search icon-only */
  .nw-topbar { padding: 8px 12px; gap: 8px; }
  .nw-topbar > .nw-meta { display: none; }
  .nw-topbar__right { gap: 8px; margin-left: auto; width: 100%; justify-content: flex-end; }
  .nw-search { width: 44px; padding: 8px; flex: none; }
  .nw-search span { display: none; }
  .nw-preview { padding: 8px 8px; }
  .nw-menu {
    position: fixed; top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px; right: 12px; width: auto;
  }

  /* Content → single column */
  .nw-panel__head { padding: 16px 16px; }
  .nw-panel__body { padding: 20px 16px; }
  .nw-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nw-row__end { justify-content: flex-start; flex-wrap: wrap; }
  .nw-row__end .nw-btn { width: 100%; }
  .nw-form .nw-field { flex: 1 1 100%; }
  .nw-form .nw-btn { width: 100%; }
  .nw-file .nw-btn { width: 100%; }

  /* Palette → full-width sheet */
  .nw-palette { align-items: flex-end; padding: 12px; }
  .nw-palette__modal { width: 100%; max-height: 82vh; }
  .nw-palette__foot { display: none; }
}


/* ==========================================================================
   Marketing site — "Night Watch"
   Orano-inspired operations-room skin for the landing page only. Deep-space
   ground, one electric volt accent, thin tracked display type, fixed corner
   chrome, numbered chapter grammar. App pages above remain Sovereign/bone.
   ========================================================================== */

.nw-page {
  margin: 0;
  color-scheme: dark;
  background: var(--night);
  color: var(--mist);
  font: 400 var(--fs-base)/1.7 var(--face);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  scrollbar-color: var(--panel-4) var(--night);
}

.nw-page a { text-decoration: none; }
:where(.nw-page) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.nw-page :focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.nw-page ::selection { background: var(--volt); color: var(--volt-ink); }

/* --- Fixed instrument layers ---------------------------------------------- */

.nw-grid--sweep::before, .nw-grid--sweep::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,.14);
}
.nw-grid--sweep::before { top: 28%; animation: nw-sweep 15s linear infinite; }
.nw-grid--sweep::after { top: 72%; animation: nw-sweep 21s linear infinite reverse; }
@keyframes nw-sweep { from { transform: translateY(-45vh); } to { transform: translateY(145vh); } }
.nw-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-sticky) + 3);
  background: var(--volt); transform-origin: 0 50%; transform: scaleX(0);
}

/* --- Chrome: wordmark TL, menu TR, index rail right ------------------------ */

.nw-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: calc(var(--z-sticky) + 2);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) calc(var(--pad) + env(safe-area-inset-right)) 20px calc(var(--pad) + env(safe-area-inset-left));
}
.nw-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bright); padding: 16px 0; }
.nw-brand svg { color: var(--volt); flex: none; }
.nw-brand b { font: 300 var(--fs-md)/1 var(--face); letter-spacing: .42em; text-transform: uppercase; }
.nw-chrome-links { display: flex; align-items: center; gap: 28px; }
.nw-menu-link {
  position: relative; font: 500 var(--fs-3xs)/1 var(--face);
  letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
  padding: 8px 0; transition: color var(--t);
}
.nw-menu-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 44px; transform: translateY(-50%);
}
.nw-menu-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
  background: var(--volt); transition: right var(--t) var(--ease);
}
.nw-menu-link:hover, .nw-menu-link:focus-visible { color: var(--bright); }
.nw-menu-link:hover::after, .nw-menu-link:focus-visible::after { right: 0; }

.nw-menu-toggle { display: none; position: relative; z-index: calc(var(--z-overlay) + 3); width: 44px; height: 44px; margin-right: -8px; }
.nw-menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--bright);
  transition: transform var(--t-slow) var(--ease);
}
.nw-menu-toggle span:nth-child(1) { top: 17px; }
.nw-menu-toggle span:nth-child(2) { top: 26px; }
.nw-menu-toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nw-menu-toggle.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nw-drawer {
  position: fixed; inset: 0; z-index: calc(var(--z-overlay) + 2); background: var(--night);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: env(safe-area-inset-top) calc(var(--pad) + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(var(--pad) + env(safe-area-inset-left));
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility 0s var(--t-slow);
}
.nw-drawer.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-slow) var(--ease); }
.nw-drawer a {
  display: flex; justify-content: space-between; align-items: center;
  font: 500 var(--h-drawer)/1.4 var(--face);
  letter-spacing: .14em; text-transform: uppercase; color: var(--bright);
  padding: 12px 0; border-top: 1px solid var(--hair);
}
.nw-drawer a i { font: 500 var(--fs-2xs)/1 var(--face); color: var(--volt); letter-spacing: .22em; font-style: normal; }
.nw-drawer-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.nw-index {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: var(--z-sticky);
  display: flex; flex-direction: column; align-items: flex-end;
}
.nw-index a {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--faint); font: 400 var(--fs-3xs)/1 var(--face); letter-spacing: .18em;
  transition: color var(--t);
}
.nw-index a span { opacity: 0; transition: opacity var(--t); }
.nw-index a::after {
  content: ""; width: 18px; height: 1px; background: currentColor;
  transition: width var(--t) var(--ease);
}
.nw-index a:hover span, .nw-index a:focus-visible span, .nw-index a.is-active span { opacity: 1; }
.nw-index a.is-active { color: var(--volt); }
.nw-index a.is-active::after { width: 34px; background: var(--volt); }

/* --- Type helpers ----------------------------------------------------------- */

/* --- Layout ------------------------------------------------------------------ */

.nw-main { position: relative; z-index: var(--z-raised); }
.nw-sec { position: relative; padding: var(--sec) var(--pad); }
.nw-sec-head { margin-bottom: 56px; }
.nw-sec-head--center { text-align: center; }
.nw-wrap { max-width: 1180px; margin: 0 auto; }

.nw-legal { padding-block: var(--sec) 80px; }
.nw-legal h1 { font-size: var(--h-sec); margin: 0 0 8px; }
.nw-legal .nw-meta { margin-bottom: 48px; }
.nw-legal section { margin-bottom: 56px; }
.nw-legal h2 { font-size: var(--fs-2xl); margin: 0 0 16px; color: var(--bright); }
.nw-legal h3 { font-size: var(--fs-md); margin: 28px 0 8px; color: var(--bright); }
.nw-legal p, .nw-legal li { color: var(--dim); font-size: var(--fs-md); line-height: 1.7; }
.nw-legal ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.nw-legal a { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }
.nw-legal a:hover, .nw-legal a:focus-visible { color: var(--bright); }

.nw-gate-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
  padding:
    calc(var(--pad) + env(safe-area-inset-top))
    calc(var(--pad) + env(safe-area-inset-right))
    calc(var(--pad) + env(safe-area-inset-bottom))
    calc(var(--pad) + env(safe-area-inset-left));
}
.nw-gate {
  position: relative; z-index: var(--z-raised);
  width: 100%; max-width: 30rem;
  background: var(--panel); border: 1px solid var(--hair);
  padding: 44px 40px;
}
.nw-gate__brand {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; color: var(--bright); margin-bottom: 32px;
}
.nw-gate__brand svg { color: var(--volt); flex: none; }
.nw-gate__brand b { font: 300 var(--fs-md)/1 var(--face); letter-spacing: .42em; text-transform: uppercase; }
.nw-gate__title { font-size: var(--fs-2xl); margin: 0 0 8px; }
.nw-gate__sub { color: var(--dim); font-size: var(--fs-sm); line-height: 1.7; margin: 0 0 28px; }
.nw-gate .nw-btn { width: 100%; }
.nw-gate__err {
  color: var(--leak); font-size: var(--fs-sm); font-weight: 500;
  margin: 16px 0 0; min-height: 1.4em; word-break: break-word;
}
.nw-gate__foot { margin: 24px 0 0; color: var(--faint); }

/* --- Buttons & links ---------------------------------------------------------- */

.nw-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; height: 54px; padding: 0 28px;
  background-color: var(--well); color: var(--volt);
  font: 500 var(--fs-2xs)/1 var(--face); letter-spacing: .22em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--volt-soft);
  overflow: hidden; white-space: nowrap;
  background-image:
    linear-gradient(var(--volt), var(--volt)), linear-gradient(var(--volt), var(--volt)),
    linear-gradient(var(--volt), var(--volt)), linear-gradient(var(--volt), var(--volt));
  background-repeat: no-repeat;
  background-size: 3px 3px;
  background-position: 6px 6px, calc(100% - 6px) 6px, 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px);
  transition: color var(--t);
}
.nw-btn > * { position: relative; z-index: var(--z-base); }
.nw-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--volt);
  transform: translateX(-101%); transition: transform var(--t-slow) var(--ease);
}
.nw-btn::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(23,21,3,.4) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: 0; transition: opacity var(--t);
}
.nw-btn:hover::before, .nw-btn:focus-visible::before { transform: translateX(0); }
.nw-btn:hover::after, .nw-btn:focus-visible::after { opacity: 1; }
.nw-btn:hover, .nw-btn:focus-visible { color: var(--volt-ink); }
.nw-btn .nw-arr { transition: transform var(--t) var(--ease); }
.nw-btn:hover .nw-arr, .nw-btn:focus-visible .nw-arr { transform: translateX(5px); }
.nw-btn--ghost { color: var(--bright); box-shadow: inset 0 0 0 1px var(--line); }
.nw-btn--ghost::before { background: var(--bright); }
.nw-btn--danger { color: var(--leak); box-shadow: inset 0 0 0 1px var(--leak-soft); }
.nw-btn--danger::before { background: var(--leak); }
.nw-btn--danger:hover, .nw-btn--danger:focus-visible { color: var(--bright); }
.nw-btn:disabled, .nw-btn[aria-disabled="true"] {
  color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed;
}
.nw-btn:disabled::before, .nw-btn[aria-disabled="true"]::before { transform: translateX(-101%); }
.nw-btn:disabled::after, .nw-btn[aria-disabled="true"]::after { opacity: 0; }
.nw-btn:disabled .nw-arr, .nw-btn[aria-disabled="true"] .nw-arr { transform: none; }
.nw-btn--sm {
  height: 44px; padding: 0 16px; font-size: var(--fs-3xs); letter-spacing: .18em;
  background-size: 2px 2px;
  background-position: 5px 5px, calc(100% - 5px) 5px, 5px calc(100% - 5px), calc(100% - 5px) calc(100% - 5px);
}

.nw-tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 500 var(--fs-2xs)/1 var(--face); letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); transition: color var(--t);
}
.nw-tlink::after {
  content: ""; width: 26px; height: 1px; background: var(--volt);
  transform: scaleX(.4); transform-origin: 0 50%; transition: transform var(--t) var(--ease);
}
.nw-tlink:hover, .nw-tlink:focus-visible { color: var(--bright); }
.nw-tlink:hover::after, .nw-tlink:focus-visible::after { transform: scaleX(1); }
.nw-tlink--back { margin-bottom: 24px; }
.nw-tlink--back::after { order: -1; transform-origin: 100% 50%; }

/* --- Hero ---------------------------------------------------------------------- */

.nw-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px var(--pad) 96px;
}
.nw-hero-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 48px; align-items: center; width: 100%; max-width: 1320px; margin: 0 auto;
}
.nw-hero-copy { max-width: 660px; }
.nw-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--volt); flex: none;
  animation: nw-pulse 2.2s ease-out infinite;
}
.nw-pulse--true { background: var(--true); }
@keyframes nw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,230,0,.45); }
  70% { box-shadow: 0 0 0 9px rgba(255,230,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,230,0,0); }
}
.nw-hero-title { font-size: var(--h-hero); margin: 0 0 32px; max-width: 17ch; }
.nw-hero-title .w {
  display: inline-block; opacity: 0; transform: translateY(.45em);
  transition: opacity var(--t-slower) ease, transform var(--t-slower) var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.nw-hero-title.is-live .w { opacity: 1; transform: none; }
.nw-hero-title .em.glitch { animation: nw-glitch 2.8s steps(2, jump-none) 1.4s 2; }
@keyframes nw-glitch {
  0%, 18%, 44%, 100% { text-shadow: none; }
  8% { text-shadow: 2px -2px 0 rgba(255,80,64,.8), -2px 2px 0 rgba(60,224,143,.7); }
  34% { text-shadow: -2px 1px 0 rgba(255,80,64,.8), 2px -1px 0 rgba(60,224,143,.7); }
}
.nw-hero-sub { max-width: 560px; font-size: var(--fs-base); line-height: 1.8; color: var(--dim); margin: 0 0 40px; }
.nw-hero-sub strong { color: var(--mist); font-weight: 600; }
.nw-hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 56px; }
.nw-hero-meta { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.nw-hero-meta span { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); }
.nw-hero-meta i { font-style: normal; color: var(--volt); }

/* Loading wave — ported from Loading V2 (diagonal square cascade, 46-frame loop) */
.nw-wave { display: block; line-height: 0; }
.nw-wave rect {
  fill: var(--volt); transform-box: fill-box; transform-origin: center;
  transform: scale(0);
  animation: nw-dot-wave 1.533s cubic-bezier(.667, 0, .333, 1) infinite;
  animation-delay: calc(var(--r, 0) * .1s);
}
@keyframes nw-dot-wave {
  0% { transform: scale(0); }
  21.7% { transform: scale(1); }
  39.1% { transform: scale(1); }
  60.9% { transform: scale(0); }
  100% { transform: scale(0); }
}

/* Page preloader — the wave plays, then the watch begins */
.nw-preload {
  position: fixed; inset: 0; z-index: calc(var(--z-overlay) + 7);
  display: flex; align-items: center; justify-content: center;
  background: var(--night); pointer-events: none;
  animation: nw-preload-out .55s ease 1.75s forwards;
}
.nw-preload-box { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nw-preload .nw-wave { width: 58px; height: 58px; }
.nw-preload-box p {
  font: 500 var(--fs-3xs)/1 var(--face); letter-spacing: .42em;
  color: var(--faint); text-transform: uppercase;
}
@keyframes nw-preload-out { to { opacity: 0; visibility: hidden; } }

/* --- Sample run strip ------------------------------------------------------------ */

.nw-runbar {
  position: relative; z-index: var(--z-raised);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  margin: 0 calc(var(--pad) + env(safe-area-inset-right)) 0 calc(var(--pad) + env(safe-area-inset-left));
  padding: 16px 0;
  display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
  font: 400 var(--fs-3xs)/1.6 var(--face); letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint);
}
.nw-runbar b { color: var(--volt); font-weight: 500; }

/* --- Chapter grammar --------------------------------------------------------------- */

.nw-chapter-head--lg { margin-bottom: 64px; }
.nw-chapter-head--lg .nw-ix { font-size: var(--h-display-lg); }
.nw-chapter-head--lg .nw-intro { margin: 0; font-size: var(--fs-base); }
.nw-ch-title { font-size: var(--h-sec); margin: 0 0 20px; max-width: var(--mw, none); }
.nw-ch-title--center { margin: 0 auto; }

/* Numbered keyline list */
.nw-klist { border-bottom: 1px solid var(--volt-soft); }
.nw-krow {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 20px; align-items: center; text-align: left;
  border-top: 1px solid var(--volt-soft); transition: background var(--t);
}
.nw-krow:hover, .nw-krow:focus-visible { background: var(--volt-wash); }
.nw-krow-ix {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-right: 1px solid var(--volt-soft); border-bottom: 1px solid var(--volt-soft);
  font: 500 var(--fs-xs)/1 var(--face); color: var(--volt);
}
.nw-krow-main { padding: 16px 0; min-width: 0; }
.nw-krow-title { font-weight: 600; font-size: var(--fs-md); color: var(--near); letter-spacing: .02em; }
.nw-krow-desc { color: var(--dim); font-size: var(--fs-sm); line-height: 1.6; margin-top: 4px; }
.nw-krow-end {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  padding: 16px 4px 16px 0; min-width: 118px;
}
.nw-krow-amt { font: 500 var(--fs-xs)/1 var(--face); color: var(--volt); letter-spacing: .06em; }
.nw-krow-act { font: 400 var(--fs-3xs)/1 var(--face); letter-spacing: .22em; color: var(--faint); text-transform: uppercase; }

/* Spec panel */
.nw-panel__head--lead { justify-content: flex-start; }
.nw-panel__head svg { color: var(--volt); flex: none; }
.nw-panel__body--cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px; padding: 36px 28px 40px;
}
.nw-spec-item { border-left: 1px solid var(--line); padding-left: 20px; }
.nw-spec-item h3, .nw-spec-item h4 {
  font: 500 var(--fs-2xs)/1.6 var(--face); letter-spacing: .18em;
  text-transform: uppercase; color: var(--volt); margin: 0 0 8px;
}
.nw-spec-item p { color: var(--dim); font-size: var(--fs-sm); line-height: 1.7; margin: 0; }

/* Sample artifact */
.nw-artifact { background: var(--panel); border: 1px solid var(--hair); max-width: 980px; margin: 0 auto; }
.nw-artifact-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 32px; border-bottom: 1px solid var(--hair);
}
.nw-artifact-top-right {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 400 var(--fs-3xs)/1.6 var(--face); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.nw-verdict {
  display: inline-block; background: var(--volt); color: var(--volt-ink);
  font: 700 var(--fs-2xs)/1 var(--face); letter-spacing: .14em; padding: 8px 12px;
}
.nw-artifact-body { padding: 32px; }
.nw-artifact-claim {
  font-size: var(--fs-xl); line-height: 1.6; color: var(--near);
  margin: 0 0 28px; max-width: 58ch;
}
.nw-artifact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nw-fact p { color: var(--dim); font-size: var(--fs-sm); line-height: 1.7; margin: 0 0 8px; }
.nw-artifact-cta { text-align: center; padding: 4px 32px 36px; }

/* Pricing */
.nw-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.nw-price { background: var(--panel); border: 1px solid var(--hair); display: flex; flex-direction: column; }
.nw-price--pop { border-color: var(--volt-soft); }
.nw-price-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 28px; background: var(--panel-2); border-bottom: 1px solid var(--hair);
}
.nw-price-head .nw-meta { color: var(--bright); }
.nw-price--pop .nw-price-head .nw-meta { color: var(--volt); }
.nw-price-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.nw-price-figure { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 8px; }
.nw-price-figure b { font: 500 var(--h-figure)/1 var(--face); color: var(--bright); letter-spacing: .02em; }
.nw-price-figure span { font: 400 var(--fs-2xs)/1 var(--face); letter-spacing: .22em; color: var(--faint); }
.nw-price-desc { color: var(--dim); font-size: var(--fs-sm); margin: 0 0 24px; }
.nw-price-list { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.nw-price-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--hair);
  font-size: var(--fs-sm); color: var(--mist);
}
.nw-price-list i { font: 500 var(--fs-3xs)/1.4 var(--face); color: var(--volt); font-style: normal; letter-spacing: .1em; }
.nw-guarantee {
  max-width: 760px; margin: 44px auto 0;
  border: 1px solid var(--hair); border-left: 2px solid var(--volt);
  padding: 20px 28px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--well);
}
.nw-guarantee svg { color: var(--volt); flex: none; margin-top: 4px; }
.nw-guarantee b { color: var(--bright); display: block; margin-bottom: 4px; font-size: var(--fs-sm); }
.nw-guarantee p { margin: 0; color: var(--dim); font-size: var(--fs-xs); line-height: 1.6; }
.nw-plain-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }
.nw-plain-link:hover, .nw-plain-link:focus-visible { color: var(--bright); }

/* FAQ */
.nw-faq { max-width: 860px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.nw-faq-item { border-top: 1px solid var(--line); }
.nw-page .nw-faq-q {
  width: 100%; display: grid; grid-template-columns: 56px 1fr 24px;
  gap: 16px; align-items: center; text-align: left; padding: 20px 0;
}
.nw-faq-q i { font: 400 var(--fs-2xs)/1 var(--face); color: var(--faint); font-style: normal; letter-spacing: .1em; }
.nw-faq-q span { font-size: var(--fs-base); font-weight: 500; color: var(--near); transition: color var(--t); }
.nw-faq-q:hover span, .nw-faq-q:focus-visible span { color: var(--volt); }
.nw-faq-ic { position: relative; width: 16px; height: 16px; justify-self: end; }
.nw-faq-ic::before, .nw-faq-ic::after {
  content: ""; position: absolute; background: var(--dim);
  transition: transform var(--t-slow) var(--ease), background var(--t);
}
.nw-faq-ic::before { left: 0; right: 0; top: 7.5px; height: 1px; }
.nw-faq-ic::after { top: 0; bottom: 0; left: 7.5px; width: 1px; }
.nw-faq-item.is-open .nw-faq-ic::after { transform: scaleY(0); }
.nw-faq-item.is-open .nw-faq-ic::before { background: var(--volt); }
.nw-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.nw-faq-item.is-open .nw-faq-a { grid-template-rows: 1fr; }
.nw-faq-a > div { overflow: hidden; }
.nw-faq-a p { margin: 0 0 24px 64px; color: var(--dim); font-size: var(--fs-sm); line-height: 1.7; max-width: 64ch; }

/* Closing */
.nw-closing { text-align: center; }
.nw-closing .nw-statement { font-size: var(--h-sec); max-width: 18ch; margin: 0 auto 28px; }
.nw-closing .nw-hero-meta { justify-content: center; margin-top: 24px; }

/* Footer */
.nw-footer {
  position: relative; z-index: var(--z-raised);
  border-top: 1px solid var(--hair);
  margin: 0 calc(var(--pad) + env(safe-area-inset-right)) 0 calc(var(--pad) + env(safe-area-inset-left));
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  font: 400 var(--fs-3xs)/1.8 var(--face); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.nw-footer nav { display: flex; gap: 28px 24px; flex-wrap: wrap; }
.nw-footer a { position: relative; color: var(--dim); transition: color var(--t); }
.nw-footer a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 44px; transform: translateY(-50%);
}
.nw-footer a:hover, .nw-footer a:focus-visible { color: var(--volt); }

/* Reveal on scroll */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--t-slower) ease, transform var(--t-slower) var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.rv.is-in { opacity: 1; transform: none; }
.nw-klist > .rv:nth-child(2) { --d: 1; }
.nw-klist > .rv:nth-child(3) { --d: 2; }
.nw-klist > .rv:nth-child(4) { --d: 3; }
.nw-klist > .rv:nth-child(5) { --d: 4; }
.nw-klist > .rv:nth-child(6) { --d: 5; }
.nw-faq > .rv:nth-child(2) { --d: 1; }
.nw-faq > .rv:nth-child(3) { --d: 2; }
.nw-faq > .rv:nth-child(4) { --d: 3; }

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .nw-index { display: none; }
  .nw-hero-grid { gap: 32px; }
}

@media (max-width: 900px) {
  .nw-page { --pad: 28px; }
  .nw-chrome-links { display: none; }
  .nw-menu-toggle { display: block; }
  .nw-chapter-head { grid-template-columns: 1fr; gap: 8px; }
  .nw-panel__body--cols { grid-template-columns: 1fr; gap: 24px; }
  .nw-pricing { grid-template-columns: 1fr; }
  .nw-artifact-grid { grid-template-columns: 1fr; }
  .nw-krow { grid-template-columns: 44px minmax(0, 1fr); }
  .nw-krow-end {
    grid-column: 2; flex-direction: row; align-items: center;
    justify-content: flex-start; gap: 16px; padding: 0 0 16px;
  }
  .nw-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .nw-hero { padding-top: 120px; }
  .nw-hero-copy { max-width: none; }
}

@media (max-width: 640px) {
  .nw-page { --pad: 20px; }
  .nw-hero-actions { gap: 12px; }
  .nw-btn { width: 100%; }
  .nw-drawer-actions .nw-btn { width: auto; flex: 1; }
  .nw-artifact-body, .nw-artifact-top { padding-left: 20px; padding-right: 20px; }
  .nw-runbar span:nth-child(n+4) { display: none; }
  .nw-gate { padding: 28px 20px; }
  .nw-gate__brand { margin-bottom: 24px; }
}

/* Landscape phones and short windows: side-by-side hero instead of a tall stack. */
@media (min-width: 640px) and (max-width: 900px) and (max-height: 560px) {
  .nw-hero { padding: 96px var(--pad) 56px; }
  .nw-hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 36px; }
  .nw-hero-copy { max-width: none; }
  .nw-hero-sub { margin-bottom: 24px; }
  .nw-hero-actions { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-grid--sweep::before, .nw-grid--sweep::after,
  .nw-pulse, .nw-hero-title .em.glitch { animation: none; }
  .nw-wave rect { animation: none; transform: scale(1); }
  .nw-preload { display: none; }
  .rv, .nw-hero-title .w { opacity: 1; transform: none; transition: none; }
  .nw-faq-a, .nw-btn::before, .nw-menu-link::after { transition: none; }
}

body[data-read-only-beta] { padding-top: 56px; }
.beta-banner {
  position: fixed; inset: 0 0 auto; z-index: var(--z-banner);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 56px; padding: 4px 16px;
  background: var(--panel-2); border-bottom: 1px solid var(--volt-soft);
  color: var(--mist); font: 500 var(--fs-xs)/1.4 var(--face);
}
.beta-banner strong {
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--volt);
}
.beta-banner a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--volt); text-decoration: underline; text-underline-offset: 3px;
}
.beta-banner a:hover, .beta-banner a:focus-visible { color: var(--bright); }
[data-read-only-beta] .nw-chrome, [data-read-only-beta] .nw-progress, [data-read-only-beta] .nw-topbar { top: 56px; }
[data-read-only-beta] .nw-skip:focus-visible { top: 68px; }
[data-read-only-beta] .nw-rail { top: 56px; height: calc(100dvh - 56px); }
@media (max-width: 640px) {
  [data-read-only-beta] .nw-rail { top: auto; height: auto; }
}

/* Touch-target checkbox: 44px hit area, ~20px visible box drawn via
   background-clip so small controls never fall under the 44px minimum. */
.nw-checkbox { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); background-clip: content-box; cursor: pointer; flex: none; }
.nw-checkbox:checked { background-color: var(--volt); background-clip: content-box; }
.nw-checkbox:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.nw-checkrow { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--mist); font-size: var(--fs-sm); min-height: 44px; }
