/* ==========================================================================
   JeeBoard — industrial signage software
   Design system. Hand-written, no framework, no build step.

   Structure
     01  Fonts
     02  Tokens (colour, type, space)
     03  Reset & base
     04  Layout primitives
     05  Typography
     06  Rules, eyebrows, ornaments
     07  Buttons & links
     08  Panels, cards, grids
     09  Data display (specs, tables, chips, matrices)
     10  Screen mock
     11  Header & navigation
     12  Footer
     13  Forms
     14  Page sections
     15  Motion & responsive
   ========================================================================== */

/* ── 01  Fonts ─────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-latin-italic.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations');
  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: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400-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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 02  Tokens ────────────────────────────────────────────────────────────
   Two surface families run through the whole site: PAPER (warm, editorial)
   and INK (deep, instrument-panel). Sections alternate between them.

   Contrast rules, all measured (see tools/contrast.py):
     · Brass #C89B3C is 2.35:1 on paper — NEVER text on light.
       On light surfaces use --accent-text (#8A6516, 4.88:1).
     · Petrol #0F4C4F is 8.90:1 on paper — safe for text and headings.
       On dark surfaces use --tint (#4CBFC2, 8.80:1) instead.
     · Status colours are specified for dark surfaces only, and are used for
       small state indicators rather than for text.
   ------------------------------------------------------------------------ */

:root {
  color-scheme: light;

  /* raw ramp — do not use directly in components, use the roles below */
  --paper:        #f7f5f1;
  --paper-2:      #f1eee8;
  --paper-3:      #e9e5dd;
  --white:        #ffffff;
  --ink:          #0a0e11;
  --ink-2:        #111820;
  --ink-3:        #1a2229;
  --petrol:       #0f4c4f;
  --petrol-600:   #17787c;
  --petrol-300:   #4cbfc2;
  --petrol-200:   #8fdfe0;
  --brass:        #c89b3c;
  --brass-700:    #8a6516;
  --grey-900:     #1d242a;
  --grey-700:     #3a4249;
  --grey-600:     #57626a;
  --grey-400:     #8b959c;
  --grey-300:     #b2bbc1;
  --grey-200:     #c3cbd0;

  /* roles — light (paper) context */
  --bg:            var(--paper);
  --bg-raised:     var(--white);
  --bg-sunken:     var(--paper-2);
  --bg-inverse:    var(--ink);
  --text:          var(--ink);
  --text-body:     var(--grey-700);
  --text-muted:    var(--grey-600);
  --text-brand:    var(--petrol);
  --accent-text:   var(--brass-700);
  --ornament:      #c9a35a;
  --line:          rgba(10, 14, 17, 0.13);
  --line-strong:   rgba(10, 14, 17, 0.26);
  --line-faint:    rgba(10, 14, 17, 0.07);
  --focus:         var(--petrol);
  --shadow-sm:     0 1px 2px rgba(10, 14, 17, .05);
  --shadow-md:     0 2px 4px rgba(10, 14, 17, .04), 0 12px 28px -18px rgba(10, 14, 17, .35);

  /* status — used inside dark diagrams */
  --st-ok:    #35b37e;
  --st-warn:  #e2a925;
  --st-stop:  #e5675a;
  --st-stale: #8b959c;

  /* type */
  --f-display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype',
               'Book Antiqua', Georgia, serif;
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo,
            Consolas, monospace;

  --t-display-xl: clamp(2.6rem, 1.5rem + 4.4vw, 5rem);
  --t-display-l:  clamp(2.35rem, 1.45rem + 3.6vw, 4.4rem);
  --t-display-m:  clamp(1.9rem, 1.35rem + 2.2vw, 3.1rem);
  --t-display-s:  clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --t-h4:         clamp(1.05rem, 1rem + 0.28vw, 1.24rem);
  --t-body:       1.0625rem;
  --t-body-lg:    clamp(1.125rem, 1.03rem + 0.4vw, 1.32rem);
  --t-small:      0.9075rem;
  --t-micro:      0.78rem;
  --t-mono:       0.7525rem;

  /* space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.75rem; --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8.5rem;

  --gutter: clamp(1.15rem, 0.4rem + 3vw, 3.25rem);
  --measure: 68ch;
  --max: 1260px;
  --max-wide: 1440px;

  --radius: 3px;
  --radius-lg: 6px;
  --band: clamp(3.75rem, 2rem + 7vw, 7.5rem); /* vertical section padding */
}

/* Dark preference — the paper family darkens, the ink family deepens, so the
   alternating rhythm survives without a white flash. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg:          #0e1418;
    --bg-raised:   #151d23;
    --bg-sunken:   #0a0f13;
    --bg-inverse:  #060a0d;
    --text:        #f2f1ed;
    --text-body:   #b8c1c7;
    --text-muted:  #909aa1;
    --text-brand:  var(--petrol-300);
    --accent-text: var(--brass);
    --ornament:    #a2803a;
    --line:        rgba(226, 232, 236, 0.14);
    --line-strong: rgba(226, 232, 236, 0.3);
    --line-faint:  rgba(226, 232, 236, 0.07);
    --focus:       var(--petrol-300);
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .9);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg:          #0e1418;
  --bg-raised:   #151d23;
  --bg-sunken:   #0a0f13;
  --bg-inverse:  #060a0d;
  --text:        #f2f1ed;
  --text-body:   #b8c1c7;
  --text-muted:  #909aa1;
  --text-brand:  var(--petrol-300);
  --accent-text: var(--brass);
  --ornament:    #a2803a;
  --line:        rgba(226, 232, 236, 0.14);
  --line-strong: rgba(226, 232, 236, 0.3);
  --line-faint:  rgba(226, 232, 236, 0.07);
  --focus:       var(--petrol-300);
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:   0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .9);
}

/* Inverse context: any element inside .on-ink flips its roles. Sections use
   this so a single component set works on both surfaces. */
.on-ink {
  --bg:          var(--bg-inverse);
  --bg-raised:   rgba(255, 255, 255, 0.035);
  --bg-sunken:   rgba(0, 0, 0, 0.3);
  --text:        #f7f5f1;
  --text-body:   var(--grey-300);
  --text-muted:  var(--grey-400);
  --text-brand:  var(--petrol-300);
  --accent-text: var(--brass);
  --ornament:    var(--brass);
  --line:        rgba(247, 245, 241, 0.14);
  --line-strong: rgba(247, 245, 241, 0.28);
  --line-faint:  rgba(247, 245, 241, 0.07);
  --focus:       var(--brass);
  background: var(--bg);
  color: var(--text-body);
}

/* ── 03  Reset & base ──────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.68;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'cv05' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--petrol); color: #fff; }
.on-ink ::selection { background: var(--brass); color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #f7f5f1;
  padding: .8rem 1.25rem; font-size: var(--t-small); font-weight: 500;
}
.skip:focus { left: .5rem; top: .5rem; }

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

/* ── 04  Layout primitives ─────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--max-wide); }
.wrap-narrow { max-width: 860px; }

.band { padding-block: var(--band); position: relative; }
.band-sm { padding-block: calc(var(--band) * .62); }
.band-lg { padding-block: calc(var(--band) * 1.3); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose-lg { font-size: var(--t-body-lg); line-height: 1.62; max-width: 40ch; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.stack-xl > * + * { margin-top: var(--sp-8); }

.cols {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-sticky { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); }
  .cols-sticky > :first-child { position: sticky; top: 6.5rem; }
  .cols-lead { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .cols-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); }
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.flow-tight > * + * { margin-top: var(--sp-2); }

/* ── 05  Typography ────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 400; text-wrap: balance; }

.d-xl, .d-l, .d-m, .d-s {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.014em;
  color: var(--text);
  text-wrap: balance;
}
.d-xl { font-size: var(--t-display-xl); line-height: 0.95; letter-spacing: -0.025em; }
.d-l  { font-size: var(--t-display-l);  line-height: 1.0;  letter-spacing: -0.02em; }
.d-m  { font-size: var(--t-display-m);  line-height: 1.08; }
.d-s  { font-size: var(--t-display-s);  line-height: 1.16; }

.d-xl em, .d-l em, .d-m em, .d-s em {
  font-style: italic;
  color: var(--text-brand);
}

h3, .h3 {
  font-family: var(--f-sans);
  font-size: var(--t-h4);
  font-weight: 590;
  letter-spacing: -0.012em;
  line-height: 1.34;
  color: var(--text);
}
h4, .h4 {
  font-family: var(--f-sans);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.45;
  color: var(--text);
}

.lede {
  font-size: var(--t-body-lg);
  line-height: 1.58;
  color: var(--text-body);
  max-width: 46ch;
  text-wrap: pretty;
}
.lede-wide { max-width: 62ch; }

p { text-wrap: pretty; }
.muted { color: var(--text-muted); }
.small { font-size: var(--t-small); line-height: 1.6; }
.micro { font-size: var(--t-micro); line-height: 1.55; }

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  font-variant-ligatures: none;
}

strong, b { font-weight: 600; color: var(--text); }
em { font-style: italic; }

abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

code:not(pre code) {
  font-family: var(--f-mono);
  font-size: .86em;
  background: var(--bg-sunken);
  border: 1px solid var(--line-faint);
  padding: .1em .38em;
  border-radius: 2px;
  white-space: nowrap;
}

.prose ul, .prose ol { padding-left: 1.15rem; }
.prose li + li { margin-top: .4rem; }
.prose h3 { margin-top: 1.9em; }
.prose h4 { margin-top: 1.6em; }

/* bulleted list with hairline markers */
.ticks { list-style: none; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}
.ticks li + li { margin-top: .62rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: .72rem; height: 1px;
  background: var(--ornament);
}

.dashes { list-style: none; padding: 0; }
.dashes li { position: relative; padding-left: 1.15rem; }
.dashes li + li { margin-top: .5rem; }
.dashes li::before {
  content: '—';
  position: absolute; left: 0; top: 0;
  color: var(--text-muted);
}

/* ── 06  Rules, eyebrows, ornaments ────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-5);
}
.eyebrow::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
  max-width: 8rem;
}
.eyebrow-num {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.eyebrow-plain { display: block; }
.eyebrow-plain::after { display: none; }

hr, .rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.rule-strong { background: var(--line-strong); }
.rule-brass {
  background: linear-gradient(to right, var(--ornament) 0 3.5rem, var(--line) 3.5rem);
}

/* thin top hairline on a band */
.band-top { border-top: 1px solid var(--line); }
.band-bottom { border-bottom: 1px solid var(--line); }

/* the display-matrix background motif */
.motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 8%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 8%, transparent 68%);
}
.motif-left {
  mask-image: radial-gradient(100% 80% at 8% 0%, #000 5%, transparent 62%);
  -webkit-mask-image: radial-gradient(100% 80% at 8% 0%, #000 5%, transparent 62%);
}
.band > .wrap { position: relative; }

/* ── 07  Buttons & links ───────────────────────────────────────────────── */

a { color: var(--text-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ornament); }
.prose a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  --btn-bd: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .78rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: var(--t-small);
  font-weight: 550;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--petrol);
  --btn-fg: #fff;
  --btn-bd: var(--petrol);
}
.btn-primary:hover { --btn-bg: #0b3d40; --btn-bd: #0b3d40; }
.on-ink .btn-primary { --btn-bg: var(--brass); --btn-fg: #14100a; --btn-bd: var(--brass); }
.on-ink .btn-primary:hover { --btn-bg: #d8ab4a; --btn-bd: #d8ab4a; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover { --btn-bd: var(--text); --btn-bg: color-mix(in srgb, var(--text) 5%, transparent); }

.btn-sm { padding: .55rem 1rem; font-size: var(--t-micro); }

.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btns { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* text link with arrow */
.lnk {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--t-small);
  font-weight: 550;
  color: var(--text-brand);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  padding-bottom: 1px;
  transition: border-color .18s ease, gap .18s ease;
}
.lnk:hover { border-color: currentColor; gap: .65rem; text-decoration: none; }
.lnk .arw { transition: transform .18s ease; }
.lnk:hover .arw { transform: translateX(2px); }

/* ── 08  Panels, cards, grids ──────────────────────────────────────────── */

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 1rem + 1.1vw, 2rem);
  position: relative;
}
.panel-flat { background: transparent; }
.panel-sunken { background: var(--bg-sunken); }
.panel-pad-lg { padding: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); }

.card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 1rem + .9vw, 1.85rem);
  height: 100%;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card p { font-size: var(--t-small); color: var(--text-muted); }
.card .lnk { margin-top: auto; padding-top: .5rem; }

.card-num {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

/* numbered step list rendered as hairline-separated rows */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent-text);
  padding-top: .3rem;
  font-variant-numeric: tabular-nums;
}
.step p { font-size: var(--t-small); color: var(--text-muted); margin-top: .35rem; max-width: 62ch; }

/* feature row: icon-free, hairline-led */
.feat { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat p { font-size: var(--t-small); color: var(--text-muted); margin-top: .3rem; }

/* callout */
.note {
  border-left: 2px solid var(--ornament);
  padding: .1rem 0 .1rem 1.15rem;
  font-size: var(--t-small);
  color: var(--text-muted);
}
.note strong { color: var(--text); }

/* ── 09  Data display ──────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--text-body);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .3rem .55rem;
  white-space: nowrap;
}
.chip-accent { color: var(--accent-text); border-color: color-mix(in srgb, var(--ornament) 45%, transparent); }

/* spec list — label left, value right, hairline rows */
.specs { display: grid; gap: 0; }
.spec {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: .35rem 1.5rem;
  padding-block: .82rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.specs .spec:last-child { border-bottom: 1px solid var(--line); }
.spec dt {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec dd { margin: 0; font-size: var(--t-small); color: var(--text-body); }
.spec dd strong { color: var(--text); }
@media (max-width: 34rem) { .spec { grid-template-columns: 1fr; } }

/* comparison / capability table */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--t-small);
}
table.tbl caption {
  text-align: left;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: .9rem;
}
table.tbl th, table.tbl td {
  text-align: left;
  padding: .78rem 1rem .78rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tbl thead th {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
table.tbl tbody th { font-weight: 550; color: var(--text); }
table.tbl td { color: var(--text-muted); }
table.tbl tr:last-child td, table.tbl tr:last-child th { border-bottom: 0; }
.tbl-mono td, td.mono-cell { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .03em; }

.yes { color: var(--text-brand); font-weight: 600; }
.no  { color: var(--text-muted); }

/* pull quote */
.pull {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 22ch;
}
.pull em { font-style: italic; color: var(--text-brand); }

/* status dot */
.dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--st-ok);
  flex: none;
}
.dot-warn { background: var(--st-warn); }
.dot-stop { background: var(--st-stop); }
.dot-stale { background: var(--st-stale); }
.dot-live { position: relative; }
.dot-live::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--st-ok);
  opacity: .4;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.8); opacity: .55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dot-live::after { animation: none; } }

/* screen mock — a rendered "board" used as hero art */
.board {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg-sunken);
  padding: clamp(.7rem, .4rem + .9vw, 1.1rem);
  display: grid;
  gap: .55rem;
  position: relative;
  overflow: hidden;
}
.board-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line);
}
.board-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tile {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .6rem .7rem;
  background: var(--bg-raised);
  min-width: 0;
}
.tile-k {
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-v {
  font-family: var(--f-display); font-size: clamp(1.15rem, .9rem + .9vw, 1.75rem);
  line-height: 1.05; color: var(--text); display: block; margin-top: .2rem;
  font-variant-numeric: tabular-nums;
}
.tile-v small { font-size: .52em; margin-left: .05em; color: var(--text-muted); }
.bar {
  display: block; height: 3px; border-radius: 2px; background: var(--line);
  overflow: hidden; margin-top: .55rem;
}
.bar > i { display: block; height: 100%; background: var(--st-ok); }

/* ── 11  Header & nav ──────────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.hdr[data-stuck='1'] { border-bottom-color: var(--line); }

.hdr-in {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .3rem;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.brand-name {
  font-family: var(--f-display);
  font-size: 1.34rem;
  letter-spacing: -0.012em;
  line-height: 1;
  padding-top: .12em;
}
.brand-name b { font-weight: 400; }

.nav { display: none; margin-left: auto; align-items: center; gap: .15rem; }
@media (min-width: 64rem) { .nav { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .68rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  border-radius: var(--radius);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav-link[aria-current='page'], .nav-link.is-active { color: var(--text); }
.nav-link[aria-current='page']::after,
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: .68rem; right: .68rem; bottom: .1rem;
  height: 1px;
  background: var(--ornament);
}
.nav-link .cv { transition: transform .18s ease; }
.nav-item[data-open='1'] .nav-link .cv { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  min-width: 21rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  display: none;
}
.nav-item[data-open='1'] .menu { display: block; }
.menu-link {
  display: block;
  padding: .6rem .7rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
.menu-link:hover { background: var(--bg-sunken); text-decoration: none; }
.menu-link span {
  display: block;
  font-size: var(--t-small);
  font-weight: 550;
}
.menu-link small {
  display: block;
  font-size: var(--t-micro);
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: .1rem;
}

.hdr-act { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 64rem) { .hdr-act { margin-left: .5rem; } }
.hdr-act .btn { display: none; }
@media (min-width: 74rem) { .hdr-act .btn { display: inline-flex; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--text); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
@media (min-width: 64rem) { .burger { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 4.4rem 0 0;
  z-index: 55;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding: var(--sp-5) var(--gutter) var(--sp-8);
  display: none;
}
.drawer[data-open='1'] { display: block; }
@media (min-width: 64rem) { .drawer { display: none !important; } }
.drawer-grp + .drawer-grp { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.drawer-hd {
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: .7rem;
}
.drawer a {
  display: block; padding: .5rem 0; color: var(--text);
  text-decoration: none; font-size: var(--t-small); font-weight: 500;
}
.drawer a small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--t-micro); }

/* ── 12  Footer ────────────────────────────────────────────────────────── */

.ftr { border-top: 1px solid var(--line); }
.ftr-top {
  display: grid;
  gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}
@media (min-width: 60rem) {
  .ftr-top { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}
.ftr-hd {
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}
.ftr-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.ftr-list a { font-size: var(--t-small); color: var(--text-body); text-decoration: none;
  display: inline-block; padding-block: .1rem; }
.ftr-list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ftr-btm {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: var(--t-micro); color: var(--text-muted);
}
.ftr-btm nav { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; margin-inline: -.25rem; }
.ftr-btm a { color: inherit; text-decoration: none; padding: .34rem .25rem; }
.ftr-btm a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── 13  Forms ─────────────────────────────────────────────────────────── */

.field { display: grid; gap: .4rem; }
.field > label {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field .req { color: var(--accent-text); }
.field-hint { font-size: var(--t-micro); color: var(--text-muted); }

input[type='text'], input[type='email'], input[type='tel'], input[type='url'],
select, textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .68rem .8rem;
  font-size: var(--t-small);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 1.15rem, calc(100% - .75rem) 1.15rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .75; }

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 44rem) { .form-2 { grid-template-columns: 1fr 1fr; } }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--t-micro); color: var(--text-muted); }
.check input { margin-top: .22rem; flex: none; accent-color: var(--petrol); width: 1rem; height: 1rem; }
.check a { color: var(--text-brand); }

.alert {
  border: 1px solid var(--line-strong);
  border-left-width: 2px;
  border-left-color: var(--ornament);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: var(--t-small);
  background: var(--bg-sunken);
}
.alert-bad { border-left-color: var(--st-stop); }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ── 14  Page sections ─────────────────────────────────────────────────── */

.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(3rem, 1.8rem + 5vw, 6rem); }
.hero-in { display: grid; gap: clamp(2.5rem, 1.2rem + 5vw, 4.5rem); }
@media (min-width: 68rem) {
  .hero-in { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; }
}

.page-hd { padding-block: clamp(3rem, 1.8rem + 5vw, 5.5rem) clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.page-hd .d-l { max-width: 18ch; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: .45rem;
  font-family: var(--f-mono); font-size: var(--t-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.4rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

.cta-band { position: relative; overflow: hidden; }
.cta-in { display: grid; gap: var(--sp-6); align-items: end; }
@media (min-width: 58rem) { .cta-in { grid-template-columns: minmax(0, 1fr) auto; } }

.next-nav {
  display: grid; gap: 0; border-top: 1px solid var(--line);
}
.next-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: padding-left .18s ease;
}
.next-nav a:hover { padding-left: .5rem; text-decoration: none; }
.next-nav a span:last-child { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-align: right; flex: none; }

/* on-ink band needs its own background because .on-ink sets --bg */
.on-ink.band, .on-ink.hero, .on-ink.cta-band { background: var(--bg-inverse); }

/* ── 15  Motion & responsive ───────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn, .card, .lnk, .next-nav a { transition: none !important; }
}

@media print {
  .hdr, .drawer, .cta-band, .btn, .motif { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding-block: 1.5rem; }
}
