/* ==========================================================================
   Northwatch website: shared design system
   Dark is the standard. Two colors: Northwatch Black and white.
   Tokens come from brand/tokens.css. Fonts are self-hosted (no Google Fonts).
   Rules: no blue, no gradients, no glow, no shadows, thin lines instead of
   boxes, square corners or 4px radius at most. Signal colors (red, amber,
   green) appear ONLY inside .alert-card, which depicts the product's screen.
   ========================================================================== */

/* ---------- 1. Fonts ---------------------------------------------------- */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- 2. Tokens --------------------------------------------------- */

:root {
  /* brand */
  --nw-black: #131920;
  --nw-white: #FFFFFF;

  /* supporting grays */
  --nw-panel: #1B222B;
  --nw-line: #303A46;
  --nw-quiet: #A0AAB5;

  /* The signal colors (red, amber, green) are not here on purpose. They are
     declared on .alert-card (section 20) so nothing else can use them. */

  /* type */
  --nw-font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --nw-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* shape */
  --nw-radius: 4px;
  --nw-hairline: 1px solid var(--nw-line);

  /* fluid type scale (320px to 1440px) */
  --fs-micro: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.04rem + 0.42vw, 1.375rem);
  --fs-h4: clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.36vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.39rem + 1.79vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.71rem + 2.68vw, 3.75rem);
  --fs-display: clamp(2.5rem, 1.61rem + 4.46vw, 5rem);
  --fs-stat: clamp(2rem, 1.64rem + 1.79vw, 3rem);

  /* spacing scale (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* layout */
  --container: 80rem;                              /* 1280px */
  --gutter: clamp(1.25rem, 0.54rem + 3.57vw, 4rem); /* page side padding */
  --grid-gap: clamp(1rem, 0.64rem + 1.79vw, 2rem);
  --section-pad: clamp(4rem, 2.57rem + 7.14vw, 8rem);
  --header-h: 4.5rem;
}

/* ---------- 3. Base ----------------------------------------------------- */

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

html {
  background: var(--nw-black);
  color: var(--nw-white);
  font-family: var(--nw-font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--nw-black);
  color: var(--nw-white);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--nw-white);
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-size: var(--fs-h4); line-height: 1.35; font-weight: 600; }

p { text-wrap: pretty; }
strong, b { color: var(--nw-white); font-weight: 600; }

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

a {
  color: var(--nw-white);
  text-decoration: underline;
  text-decoration-color: var(--nw-quiet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: var(--nw-white); }

hr { border: 0; border-top: var(--nw-hairline); margin: var(--sp-7) 0; }

code, kbd, samp, .mono {
  font-family: var(--nw-mono);
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--nw-white); color: var(--nw-black); }

/* Focus: always visible, white, never a glow */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--nw-white);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. Utilities ------------------------------------------------ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--nw-white);
  color: var(--nw-black);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--nw-radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.quiet { color: var(--nw-quiet); }
.white { color: var(--nw-white); }
.nowrap { white-space: nowrap; }
.measure { max-width: 42rem; }          /* comfortable reading width */
.measure-wide { max-width: 54rem; }

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }

[hidden] { display: none !important; }

/* ---------- 5. Layout: container and 12 column grid --------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Mobile first: every column is full width. Spans apply from 900px.
   .col-t-N applies from 600px for tablet layouts. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--sp-6);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 600px) {
  .col-t-4 { grid-column: auto / span 4; }
  .col-t-6 { grid-column: auto / span 6; }
  .col-t-8 { grid-column: auto / span 8; }
}
@media (min-width: 900px) {
  .col-1 { grid-column: auto / span 1; }
  .col-2 { grid-column: auto / span 2; }
  .col-3 { grid-column: auto / span 3; }
  .col-4 { grid-column: auto / span 4; }
  .col-5 { grid-column: auto / span 5; }
  .col-6 { grid-column: auto / span 6; }
  .col-7 { grid-column: auto / span 7; }
  .col-8 { grid-column: auto / span 8; }
  .col-9 { grid-column: auto / span 9; }
  .col-10 { grid-column: auto / span 10; }
  .col-11 { grid-column: auto / span 11; }
  .col-12 { grid-column: 1 / -1; }
  .col-start-2 { grid-column-start: 2; }
  .col-start-3 { grid-column-start: 3; }
  .col-start-4 { grid-column-start: 4; }
  .col-start-5 { grid-column-start: 5; }
  .col-start-6 { grid-column-start: 6; }
  .col-start-7 { grid-column-start: 7; }
  .col-start-8 { grid-column-start: 8; }
  .col-start-9 { grid-column-start: 9; }
}

/* ---------- 6. Site header and navigation ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nw-black);
  border-bottom: var(--nw-hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}
.site-logo {
  display: block;
  flex: none;
  padding: var(--sp-3) 0;
  text-decoration: none;
}
/* The logo is the official white file with a clear background
   (northwatch-logo-white.svg). Its shapes are unchanged. Only the frame of
   this copy is 16 units wider (1367 x 166.3), because the frame of the file in
   brand/ cuts off the right edge of the last letter. It sits straight on the
   page ground. Never show it below 120px wide.
   The numbers: 1rem per 1367 / 10.5 = 130.19 units, the same size as before. */
.site-logo__crop { display: block; width: 10.5rem; height: 1.2774rem; }
.site-logo__crop img { display: block; width: 100%; height: 100%; max-width: none; }

.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.site-nav__list { display: flex; align-items: center; gap: var(--sp-6); margin: 0; }
.site-nav__link {
  position: relative;
  display: block;
  padding: var(--sp-2) 0;
  color: var(--nw-quiet);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav__link:hover { color: var(--nw-white); }
.site-nav__link[aria-current="page"] { color: var(--nw-white); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: calc((var(--header-h) - 2.4rem) / -2 - 1px);
  height: 1px;
  background: var(--nw-white);
}

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-4);
  background: transparent;
  color: var(--nw-white);
  border: var(--nw-hairline);
  border-radius: var(--nw-radius);
  font: 500 0.9375rem/1 var(--nw-font);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--nw-quiet); }

/* Below 960px the nav collapses behind the Menu button.
   Without JavaScript (no .js on <html>) the nav simply stays visible. */
@media (max-width: 959.98px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--sp-5);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-top: var(--nw-hairline); }
  .site-nav__link { padding: var(--sp-4) 0; font-size: 1.0625rem; color: var(--nw-white); }
  .site-nav__link[aria-current="page"]::after { display: none; }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 0.5rem; height: 0.5rem;
    margin-right: var(--sp-3);
    background: var(--nw-white);
    vertical-align: 0.08em;
  }
  .site-nav .btn { margin-top: var(--sp-4); }
  .js .site-header:has(.site-nav.is-open) {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }
}

/* ---------- 7. Buttons and links ---------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--nw-radius);
  font: 500 1rem/1.2 var(--nw-font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--nw-white); color: var(--nw-black); border-color: var(--nw-white); }
.btn--primary:hover { background: var(--nw-black); color: var(--nw-white); }
.btn--secondary { background: transparent; color: var(--nw-white); border-color: var(--nw-line); }
.btn--secondary:hover { border-color: var(--nw-white); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
@media (max-width: 479.98px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* A text link with an arrow, for "read more" style links */
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  color: var(--nw-white);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--nw-quiet);
  padding-bottom: 0.15em;
  transition: border-color 0.15s ease;
}
.text-link::after { content: "\2192"; font-family: var(--nw-mono); transition: transform 0.15s ease; }
.text-link:hover { border-color: var(--nw-white); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- 8. Text components ------------------------------------------ */

/* Small mono label that sits above a heading */
.eyebrow {
  display: block;
  margin-bottom: var(--sp-5);
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Opening paragraph, larger than body text */
.lead {
  color: var(--nw-white);
  font-size: var(--fs-lead);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* Long-form text: spacing between paragraphs, headings and lists */
.prose > * + * { margin-top: var(--sp-5); }
.prose > h2 { margin-top: var(--sp-8); }
.prose > h3 { margin-top: var(--sp-7); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--sp-4); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--sp-2); }
.prose li::marker { color: var(--nw-quiet); }

/* ---------- 8b. The slogan ---------------------------------------------- */

/* "Defense for a new era in cyber warfare". The owner chose this on 2026-11-22:
   name and slogan both in capitals, with the name slightly larger than the
   slogan. It is set the way the name is set in the logo: IBM Plex Sans capitals
   with wide letter spacing, one weight lighter than the name. The LinkedIn
   covers and the share picture use the same treatment (brand/covers.html).
   The words are typed in normal case and shown as capitals, so screen readers
   and search engines read a normal sentence. */
.slogan {
  color: var(--nw-white);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- 9. Heroes --------------------------------------------------- */

/* Home page hero */
.hero { padding-top: clamp(4rem, 1.5rem + 12.5vw, 10rem); padding-bottom: clamp(3rem, 1.93rem + 5.36vw, 6rem); }
.hero__title {
  max-width: 14em;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__title span { display: block; }
/* A longer headline, such as the owner's one-line description of the product */
.hero__title--long { max-width: 19em; font-size: clamp(1.875rem, 1.2rem + 3vw, 3.75rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero__slogan { margin-bottom: var(--sp-5); font-size: clamp(0.875rem, 0.79rem + 0.42vw, 1.1875rem); line-height: 1.6; }
/* On a phone the slogan does not fit on one line, so it breaks after "era". */
@media (max-width: 30rem) { .hero__slogan span { display: block; } }
.hero__lead { max-width: 34rem; margin-top: var(--sp-6); color: var(--nw-white); }
.hero .btn-row { margin-top: var(--sp-7); }

/* Inner page hero: eyebrow, h1, lead */
.page-hero { padding-top: clamp(3.5rem, 2.25rem + 6.25vw, 7rem); padding-bottom: clamp(3rem, 2.29rem + 3.57vw, 5rem); }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { max-width: 44rem; margin-top: var(--sp-6); color: var(--nw-white); }
.page-hero .btn-row { margin-top: var(--sp-7); }

/* Row of short facts under a hero, divided by hairlines */
.fact-strip { display: grid; grid-template-columns: 1fr; border-top: var(--nw-hairline); border-bottom: var(--nw-hairline); }
.fact-strip__item { padding: var(--sp-5) 0; }
.fact-strip__item + .fact-strip__item { border-top: var(--nw-hairline); }
.fact-strip__label {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fact-strip__value { color: var(--nw-white); font-weight: 500; }
@media (min-width: 720px) {
  .fact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact-strip__item { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; }
  .fact-strip__item + .fact-strip__item { border-top: 0; border-left: var(--nw-hairline); padding-left: var(--sp-5); }
}

/* ---------- 10. Sections ------------------------------------------------ */

.section { padding-block: var(--section-pad); border-top: var(--nw-hairline); }
.section--flush { border-top: 0; }                  /* no top line */
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--panel { background: var(--nw-panel); }    /* slightly lighter block */

/* Heading block at the top of a section */
.section-head { margin-bottom: var(--sp-8); }
.section-head h2 { max-width: 20em; }
.section-head .lead, .section-head p:not(.eyebrow) { max-width: 42rem; margin-top: var(--sp-5); }
.section-head p:not(.eyebrow):not(.lead) { color: var(--nw-white); }

/* Stack helper: consistent vertical rhythm inside a column */
.stack > * + * { margin-top: var(--sp-5); }
.stack-lg > * + * { margin-top: var(--sp-7); }

/* ---------- 11. Feature list (hairline divided) ------------------------- */

/* Each item: optional mono index, a title, a short text.
   Default is one column of rows. --cols-2 / --cols-3 lay items side by side. */
.feature-list { display: grid; grid-template-columns: 1fr; border-top: var(--nw-hairline); }
.feature-list__item { padding: var(--sp-6) 0; border-bottom: var(--nw-hairline); }
.feature-list__index {
  display: block;
  margin-bottom: var(--sp-4);
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-small);
  font-weight: 500;
}
.feature-list__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; color: var(--nw-white); }
.feature-list__text { margin-top: var(--sp-3); max-width: 38rem; color: var(--nw-white); }

/* Row layout on wide screens: title left, text right */
@media (min-width: 900px) {
  .feature-list--rows .feature-list__item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--grid-gap);
    align-items: baseline;
  }
  .feature-list--rows .feature-list__index { margin-bottom: 0; }
  .feature-list--rows .feature-list__text { margin-top: 0; }
}
@media (min-width: 720px) {
  .feature-list--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); }
}
@media (min-width: 900px) {
  .feature-list--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; border-bottom: var(--nw-hairline); }
  .feature-list--cols-3 .feature-list__item { border-bottom: 0; padding: var(--sp-6) var(--sp-6) var(--sp-7) 0; }
  .feature-list--cols-3 .feature-list__item + .feature-list__item { border-left: var(--nw-hairline); padding-left: var(--sp-6); }
}

/* ---------- 12. Numbered step list -------------------------------------- */

/* <ol class="steps"> numbers itself with CSS counters: 01, 02, 03 */
.steps { counter-reset: step; display: grid; grid-template-columns: 1fr; border-top: var(--nw-hairline); }
.steps__item {
  counter-increment: step;
  position: relative;
  padding: var(--sp-6) 0 var(--sp-6) 3.5rem;
  border-bottom: var(--nw-hairline);
}
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: var(--sp-6);
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: calc(var(--fs-h3) * 1.25);
}
.steps__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; color: var(--nw-white); }
.steps__text { margin-top: var(--sp-3); max-width: 38rem; color: var(--nw-white); }

/* Side by side on wide screens, e.g. a three or four step flow */
@media (min-width: 900px) {
  .steps--cols-3, .steps--cols-4 { column-gap: 0; border-bottom: var(--nw-hairline); }
  .steps--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--cols-3 .steps__item, .steps--cols-4 .steps__item { border-bottom: 0; padding: var(--sp-6) var(--sp-6) var(--sp-7) 0; }
  .steps--cols-3 .steps__item + .steps__item, .steps--cols-4 .steps__item + .steps__item { border-left: var(--nw-hairline); padding-left: var(--sp-6); }
  .steps--cols-3 .steps__item::before, .steps--cols-4 .steps__item::before { position: static; display: block; margin-bottom: var(--sp-5); line-height: 1.4; }
}

/* ---------- 13. Stat row (mono numerals) -------------------------------- */

.stat-row { display: grid; grid-template-columns: 1fr; border-top: var(--nw-hairline); border-bottom: var(--nw-hairline); }
.stat { padding: var(--sp-6) 0; }
.stat + .stat { border-top: var(--nw-hairline); }
.stat__label {
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat__value {
  margin-top: var(--sp-4);
  color: var(--nw-white);
  font-family: var(--nw-mono);
  font-size: var(--fs-stat);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
  min-height: 1.05em;
}
.stat__unit { color: var(--nw-quiet); font-size: 0.45em; letter-spacing: 0; white-space: nowrap; }
.stat__note { margin-top: var(--sp-4); color: var(--nw-quiet); font-size: var(--fs-small); line-height: 1.5; }
.stat__note .mono, .stat__note [data-nw] { font-family: var(--nw-mono); color: var(--nw-white); }

@media (min-width: 600px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: var(--sp-6) var(--sp-5) var(--sp-6) 0; }
  .stat:nth-child(even) { border-left: var(--nw-hairline); padding-left: var(--sp-5); }
  .stat:nth-child(2) { border-top: 0; }
}
@media (min-width: 1000px) {
  .stat-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-row--3 .stat, .stat-row--4 .stat { border-top: 0; }
  .stat-row--3 .stat + .stat, .stat-row--4 .stat + .stat { border-left: var(--nw-hairline); padding-left: var(--sp-5); }
}

/* Small line of source text under numbers */
.source-note { margin-top: var(--sp-5); color: var(--nw-quiet); font-size: var(--fs-small); line-height: 1.6; max-width: 54rem; }
.source-note a { color: var(--nw-white); }

/* Empty data slots keep their height while results load */
[data-nw]:empty::before { content: "\00a0"; }

/* If the lab numbers cannot be loaded, or JavaScript is off, every block that
   holds a number slot is hidden, so no sentence shows with a hole in it.
   The data-nw-error note (or the noscript note) explains instead. */
.nw-results-failed [data-nw-block],
html:not(.js) [data-nw-block] { display: none !important; }

/* ---------- 14. Data table ---------------------------------------------- */

/* Wrap every table in .table-wrap so narrow screens scroll the table, not the page */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: var(--nw-hairline); }
.data-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.data-table caption { caption-side: bottom; padding-top: var(--sp-4); color: var(--nw-quiet); text-align: left; }
.data-table th, .data-table td { padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; border-bottom: var(--nw-hairline); text-align: left; vertical-align: top; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table thead th {
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody th { color: var(--nw-white); font-weight: 500; }
.data-table tbody th.num { font-weight: 400; }
.data-table .num { font-family: var(--nw-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--nw-white); }
.data-table thead .num { color: var(--nw-quiet); }
.data-table tr.is-best td, .data-table tr.is-best th { background: var(--nw-panel); }
.data-table tr.is-muted td, .data-table tr.is-muted th { color: var(--nw-quiet); }
.data-table tr.is-muted .num { color: var(--nw-quiet); }

/* Small text tag for a state, e.g. Kept / Reverted. No color. */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: var(--nw-hairline);
  border-radius: 2px;
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--solid { background: var(--nw-white); border-color: var(--nw-white); color: var(--nw-black); }
.tag--strong { border-color: var(--nw-quiet); color: var(--nw-white); }

/* ---------- 15. Definition list ----------------------------------------- */

.def-list { border-top: var(--nw-hairline); }
.def-list__row { padding: var(--sp-5) 0; border-bottom: var(--nw-hairline); }
.def-list dt { color: var(--nw-white); font-weight: 500; }
.def-list dd { margin-top: var(--sp-2); color: var(--nw-white); max-width: 42rem; }
@media (min-width: 720px) {
  .def-list__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--grid-gap); }
  .def-list dd { margin-top: 0; }
}

/* ---------- 16. Ladder / timeline --------------------------------------- */

/* Five rungs. Vertical on small screens, a horizontal line on wide ones.
   The current rung gets .is-current (filled marker + "We are here" tag). */
.ladder { counter-reset: rung; display: grid; grid-template-columns: 1fr; }
.ladder__rung {
  counter-increment: rung;
  position: relative;
  padding: 0 0 var(--sp-6) 2.5rem;
}
.ladder__rung::before {            /* the line */
  content: "";
  position: absolute;
  left: 0.3125rem; top: 0.5rem; bottom: -0.5rem;
  width: 1px;
  background: var(--nw-line);
}
.ladder__rung:last-child { padding-bottom: 0; }
.ladder__rung:last-child::before { display: none; }
.ladder__rung::after {             /* the marker */
  content: "";
  position: absolute;
  left: 0; top: 0.4rem;
  width: 0.6875rem; height: 0.6875rem;
  background: var(--nw-black);
  border: 1px solid var(--nw-quiet);
}
.ladder__rung.is-current::after { background: var(--nw-white); border-color: var(--nw-white); }
.ladder__rung.is-done::after { background: var(--nw-quiet); }
.ladder__num {
  display: block;
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5rem;
  text-transform: uppercase;
}
.ladder__num::before { content: "Rung " counter(rung); }
.ladder__title { margin-top: var(--sp-2); font-size: var(--fs-h4); font-weight: 500; line-height: 1.3; color: var(--nw-white); }
.ladder__text { margin-top: var(--sp-2); color: var(--nw-quiet); font-size: var(--fs-small); line-height: 1.55; max-width: 34rem; }
.ladder__rung.is-current .ladder__text { color: var(--nw-white); }
.ladder__here { margin-top: var(--sp-3); }
.ladder__rung:not(.is-current):not(.is-done) .ladder__title { color: var(--nw-white); }

@media (min-width: 1000px) {
  .ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ladder__rung { padding: 2.25rem var(--sp-5) 0 0; }
  .ladder__rung:last-child { padding-right: 0; }
  .ladder__rung::before { left: 0; right: 0; top: 0.3125rem; bottom: auto; width: auto; height: 1px; }
  .ladder__rung:last-child::before { display: block; }
  .ladder__rung::after { top: 0; }
}

/* ---------- 17. Callout note -------------------------------------------- */

/* A plain statement that must not be missed, e.g. the lab numbers caveat */
.callout {
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-5);
  border-left: 1px solid var(--nw-white);
  max-width: 54rem;
}
.callout__title {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--nw-white);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.callout p { color: var(--nw-white); }
.callout p + p { margin-top: var(--sp-3); }
.callout--boxed { padding: var(--sp-5); border: var(--nw-hairline); border-radius: var(--nw-radius); }

/* ---------- 18. Call to action band ------------------------------------- */

.cta-band { padding-block: var(--section-pad); border-top: var(--nw-hairline); }
.cta-band h2 { max-width: 16em; }
.cta-band p { max-width: 38rem; margin-top: var(--sp-5); color: var(--nw-white); }
.cta-band .btn-row { margin-top: var(--sp-7); }

/* ---------- 19. Forms --------------------------------------------------- */

.form { display: grid; gap: var(--sp-5); max-width: 40rem; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: block; min-width: 0; }
.field__label { display: block; margin-bottom: var(--sp-2); color: var(--nw-white); font-size: var(--fs-small); font-weight: 500; }
.field__optional { color: var(--nw-quiet); font-weight: 400; }
.field__hint { display: block; margin-bottom: var(--sp-2); color: var(--nw-quiet); font-size: var(--fs-small); line-height: 1.5; }
.field__input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.875rem;
  background: var(--nw-black);
  color: var(--nw-white);
  border: 1px solid var(--nw-quiet);   /* quiet gray, not line gray: a field edge must be easy to see */
  border-radius: var(--nw-radius);
  font: 400 1rem/1.4 var(--nw-font);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}
.section--panel .field__input { background: var(--nw-black); }
.field__input::placeholder { color: var(--nw-quiet); opacity: 0.7; }
.field__input:hover { border-color: var(--nw-white); }
.field__input:focus-visible { border-color: var(--nw-white); outline-offset: 0; outline-width: 1px; }
textarea.field__input { min-height: 9rem; resize: vertical; }
select.field__input {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A0AAB5' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
}
select.field__input option { background: var(--nw-panel); color: var(--nw-white); }

/* Error state. Brand rule: no red outside the product screen, so errors
   use a white border, a filled marker and plain words. */
.field__error { display: none; margin-top: var(--sp-2); color: var(--nw-white); font-size: var(--fs-small); font-weight: 500; line-height: 1.5; }
.field__error::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: var(--sp-2);
  background: var(--nw-white);
  vertical-align: 0.05em;
}
.field--error .field__input { border-color: var(--nw-white); border-width: 2px; padding: calc(0.7rem - 1px) calc(0.875rem - 1px); }
.field--error .field__error { display: block; }

/* Checkbox line */
.check { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--nw-white); font-size: var(--fs-small); line-height: 1.5; }
.check input {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  margin: 0.05rem 0 0;
  -webkit-appearance: none;
  appearance: none;
  background: var(--nw-black);
  border: 1px solid var(--nw-quiet);
  border-radius: 2px;
  cursor: pointer;
}
/* Ticked: a white square inside a white outline. The gap is the padding. */
.check input:checked { padding: 3px; background: var(--nw-white); background-clip: content-box; border-color: var(--nw-white); }

/* Form-level message: summary of errors, success, or "not open yet" */
.form-status { display: none; padding: var(--sp-5); border: var(--nw-hairline); border-radius: var(--nw-radius); color: var(--nw-white); }
.form-status.is-visible { display: block; }
.form-status__title { display: block; margin-bottom: var(--sp-2); color: var(--nw-white); font-weight: 600; }
.form-status--success { border-color: var(--nw-white); }
.form-status--error { border-color: var(--nw-white); border-width: 2px; }
.form-status--notice { background: var(--nw-panel); }
.form-status ul { margin: var(--sp-2) 0 0; padding-left: 1.25rem; }
.form-status a { color: var(--nw-white); }

/* Honeypot field for bots. Hidden from people and from screen readers. */
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 20. Alert card ---------------------------------------------- */

/* A depiction of the product's own alert screen. This is the ONLY place the
   signal colors may appear. Always label it as an illustration.
   Variants: .alert-card--threat (red), --look (amber), --clear (green). */
.alert-card {
  --nw-threat: #E5484D;
  --nw-look: #F5A524;
  --nw-clear: #3DD68C;
  --signal: var(--nw-threat);
  background: var(--nw-panel);
  border: var(--nw-hairline);
  border-radius: var(--nw-radius);
  color: var(--nw-white);
  font-size: var(--fs-small);
  line-height: 1.55;
  max-width: 36rem;
}
.alert-card--threat { --signal: var(--nw-threat); }
.alert-card--look { --signal: var(--nw-look); }
.alert-card--clear { --signal: var(--nw-clear); }

.alert-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: var(--nw-hairline);
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
}
.alert-card__bar img { width: 1rem; height: 1rem; }   /* the mark, 16px minimum */
.alert-card__bar span:first-child { display: inline-flex; align-items: center; gap: var(--sp-3); }

.alert-card__head { padding: var(--sp-5); border-bottom: var(--nw-hairline); }
.alert-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--nw-white);       /* the words stay white so they are easy to read; the square carries the color */
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.alert-card__status::before { content: ""; flex: none; width: 0.625rem; height: 0.625rem; background: var(--signal); }
.alert-card__title { margin-top: var(--sp-3); color: var(--nw-white); font-size: var(--fs-h4); font-weight: 500; line-height: 1.35; }
.alert-card__meta { margin-top: var(--sp-2); color: var(--nw-quiet); font-family: var(--nw-mono); font-size: var(--fs-micro); }

.alert-card__body { margin: 0; }
.alert-card__row { padding: var(--sp-4) var(--sp-5); border-bottom: var(--nw-hairline); }
.alert-card__row:last-child { border-bottom: 0; }
.alert-card__row dt {
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.alert-card__row dd { margin-top: var(--sp-1); color: var(--nw-white); }
.alert-card__row--action { background: var(--nw-black); border-radius: 0 0 3px 3px; }

/* Caption that sits under an alert card or any figure */
.figure-caption { margin-top: var(--sp-4); color: var(--nw-quiet); font-size: var(--fs-small); line-height: 1.5; max-width: 36rem; }

/* ---------- 21. Footer -------------------------------------------------- */

.site-footer { border-top: var(--nw-hairline); padding-top: var(--sp-8); padding-bottom: var(--sp-6); color: var(--nw-quiet); font-size: var(--fs-small); }
.site-footer__top { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.site-footer__tagline { margin-top: var(--sp-5); font-size: 0.8125rem; line-height: 1.7; }
.site-footer__tagline span { display: block; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--grid-gap); }
.site-footer__heading {
  margin-bottom: var(--sp-4);
  color: var(--nw-quiet);
  font-family: var(--nw-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer__list li + li { margin-top: var(--sp-1); }
.site-footer__list a { display: inline-block; padding: var(--sp-1) 0; color: var(--nw-white); font-size: 0.9375rem; text-decoration: none; }
.site-footer__list a:hover { color: var(--nw-white); text-decoration: underline; text-decoration-color: var(--nw-quiet); }
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: var(--nw-hairline);
  line-height: 1.6;
}
.site-footer__bottom p:first-child { max-width: 46rem; }
@media (min-width: 720px) {
  .site-footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--grid-gap); }
  .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: baseline; gap: var(--sp-6); }
  .site-footer__bottom p:last-child { flex: none; }
}

/* ---------- 22. Motion preferences -------------------------------------- */

@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;
  }
  .text-link:hover::after { transform: none; }
}

/* ---------- 23. Print --------------------------------------------------- */

@media print {
  :root { --nw-black: #fff; --nw-panel: #fff; --nw-white: #000; --nw-quiet: #000; --nw-line: #000; }
  .site-header, .site-footer__nav, .nav-toggle, .skip-link, .btn { display: none !important; }
  .site-logo__crop, .alert-card__bar img { display: none; }
  .section, .cta-band { padding-block: 1.5rem; }
  a { text-decoration: none; }
}
