@charset "utf-8";
/* ==========================================================================
   iSite — shared design system
   --------------------------------------------------------------------------
   Brand colours are unchanged from the original site:
     Monitor  #A61B1F -> #D12A2F
     Display  #0B3D91 -> #1565C0
   They are now used as precision accents (rules, CTAs, status, focus) on an
   ink ground rather than as full-bleed fills, which is what made the old
   header read as a skin instead of a product.

   Typography
     Sora            display / headings   (engineered, calm, not a default)
     IBM Plex Sans   body                 (enterprise heritage, dense-copy legible)
     IBM Plex Mono   data & labels        (versions, latency, specs, eyebrows)

   Sections
     01 Tokens          06 Hero + status panel
     02 Themes          07 Content blocks
     03 Reset & base    08 Release notes / roadmap
     04 Primitives      09 CTA band + footer
     05 Header & nav    10 Motion, a11y, print
   ========================================================================== */

/* ==========================================================================
   01 TOKENS
   ========================================================================== */

:root {
  /* --- Brand primitives (unchanged) ------------------------------------- */
  --monitor-500: #d12a2f;
  --monitor-700: #a61b1f;
  --display-500: #1565c0;
  --display-700: #0b3d91;

  /* Default product is Monitor; [data-product] swaps it. */
  --brand: var(--monitor-500);
  --brand-deep: var(--monitor-700);

  /* Brand tuned for small text against the current ground (contrast-safe). */
  --brand-ink: var(--brand-deep);
  /* Brand tuned for large fills / gradients. */
  --brand-grad: linear-gradient(100deg, var(--brand-deep), var(--brand));

  /* --- Status (functional colour, never decorative) ---------------------
     The -500 tints are text on a 10%-of-themselves pill over a light ground,
     which costs roughly a stop of contrast — hence the deeper values. */
  --ok-500: #046b50;
  --ok-400: #34d399;
  --warn-500: #8a3d06;
  --warn-400: #fbbf24;
  --info-500: #04568a;
  --info-400: #60a5fa;

  /* --- Surfaces & text : LIGHT is the base ------------------------------ */
  --ground: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --surface-3: #e4eaf3;
  --surface-inv: #0b0f17;

  --fg: #0b1220;
  --fg-2: #4a5872;
  --fg-3: #5c6a83;   /* 5.0:1 on --ground — the lightest tint that still clears AA */
  --fg-on-brand: #ffffff;

  --line: #dbe2ec;
  --line-2: #c6d0de;
  --line-strong: #a9b6c8;

  /* Header ground: ink carrying a whisper of brand so Monitor still reads
     "the red site" and Display "the blue site" at a glance. */
  --header-bg: color-mix(in oklab, #0d1220 92%, var(--brand) 8%);
  --header-fg: #eef2f9;
  --header-fg-2: #a9b6cc;
  --header-line: color-mix(in oklab, #ffffff 12%, transparent);
  --header-hover: color-mix(in oklab, #ffffff 8%, transparent);

  /* Panel = the hero device mock; always dark in both themes (it is a screen). */
  --panel-bg: #0c111c;
  --panel-bg-2: #131a29;
  --panel-line: #232d42;
  --panel-fg: #e9eef8;
  --panel-fg-2: #93a1ba;

  /* --- Elevation --------------------------------------------------------- */
  --shadow-sm: 0 1px 2px hsl(220 40% 12% / .06), 0 1px 1px hsl(220 40% 12% / .04);
  --shadow-md: 0 2px 4px hsl(220 40% 12% / .04), 0 8px 20px hsl(220 40% 12% / .08);
  --shadow-lg: 0 4px 8px hsl(220 40% 12% / .05), 0 20px 48px hsl(220 40% 12% / .12);
  --shadow-panel: 0 24px 70px hsl(220 45% 8% / .28), 0 4px 12px hsl(220 45% 8% / .16);
  --ring: 0 0 0 3px color-mix(in oklab, var(--brand) 35%, transparent);

  /* --- Type -------------------------------------------------------------- */
  --font-display: "Sora", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;

  --t-2xs: .6875rem;   /* 11 — mono micro labels only */
  --t-xs: .75rem;      /* 12 */
  --t-sm: .8125rem;    /* 13 */
  --t-md: .9375rem;    /* 15 */
  --t-base: 1rem;      /* 16 */
  --t-lg: clamp(1.0625rem, 1.01rem + .24vw, 1.1875rem);
  --t-xl: clamp(1.1875rem, 1.11rem + .34vw, 1.375rem);
  --t-2xl: clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --t-3xl: clamp(1.75rem, 1.48rem + 1.18vw, 2.5rem);
  --t-4xl: clamp(2.125rem, 1.63rem + 2.16vw, 3.5rem);

  --lh-tight: 1.08;
  --lh-snug: 1.28;
  --lh-body: 1.62;

  /* --- Space (4/8 rhythm) ------------------------------------------------ */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5rem;   --s-11: 6rem;   --s-12: 7.5rem;

  --section-y: clamp(3.5rem, 2.4rem + 4.6vw, 6.5rem);
  --gutter: clamp(1.125rem, .55rem + 2.4vw, 2.5rem);
  --shell: 1200px;
  --measure: 68ch;

  /* --- Shape ------------------------------------------------------------- */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px; --r-pill: 999px;

  /* --- Motion ------------------------------------------------------------ */
  --dur-1: 140ms; --dur-2: 220ms; --dur-3: 380ms; --dur-4: 620ms;
  --ease: cubic-bezier(.22, .68, .16, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* --- Layers ------------------------------------------------------------ */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-drawer: 90; --z-top: 100;

  --header-h: 68px;
}

:root[data-product="display"] {
  --brand: var(--display-500);
  --brand-deep: var(--display-700);
}

/* Company-level pages carry both products: accents stay Monitor red, but every
   brand rule and gradient sweeps red -> blue so the pair reads as one company. */
:root[data-product="suite"] {
  --brand: var(--monitor-500);
  --brand-deep: var(--monitor-700);
  --brand-grad: linear-gradient(100deg,
    var(--monitor-700) 0%, var(--monitor-500) 34%,
    var(--display-500) 66%, var(--display-700) 100%);
  --header-bg: #0b0f18;
}

/* ==========================================================================
   02 THEMES
   ========================================================================== */

/* Shared dark palette, applied for explicit dark and for auto+OS-dark. */
html[data-theme="dark"],
html[data-theme="auto"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --ground: #080b12;
  --surface: #0e131e;
  --surface-2: #141b29;
  --surface-3: #1c2436;
  --surface-inv: #f4f6fa;

  --fg: #e8eef8;
  --fg-2: #a4b1c8;
  --fg-3: #7d8ba3;

  --line: #1e2637;
  --line-2: #2a344a;
  --line-strong: #3a465f;

  --brand-ink: color-mix(in oklab, var(--brand) 58%, #ffffff 42%);

  --header-bg: color-mix(in oklab, #070a11 90%, var(--brand) 10%);
  --header-line: color-mix(in oklab, #ffffff 9%, transparent);

  --shadow-sm: 0 1px 2px hsl(220 60% 2% / .5);
  --shadow-md: 0 2px 6px hsl(220 60% 2% / .45), 0 10px 26px hsl(220 60% 2% / .4);
  --shadow-lg: 0 4px 10px hsl(220 60% 2% / .5), 0 24px 56px hsl(220 60% 2% / .5);
  --shadow-panel: 0 28px 80px hsl(220 60% 1% / .7), 0 4px 14px hsl(220 60% 1% / .5);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;

    --ground: #080b12;
    --surface: #0e131e;
    --surface-2: #141b29;
    --surface-3: #1c2436;
    --surface-inv: #f4f6fa;

    --fg: #e8eef8;
    --fg-2: #a4b1c8;
    --fg-3: #7d8ba3;

    --line: #1e2637;
    --line-2: #2a344a;
    --line-strong: #3a465f;

    --brand-ink: color-mix(in oklab, var(--brand) 58%, #ffffff 42%);

    --header-bg: color-mix(in oklab, #070a11 90%, var(--brand) 10%);
    --header-line: color-mix(in oklab, #ffffff 9%, transparent);

    --shadow-sm: 0 1px 2px hsl(220 60% 2% / .5);
    --shadow-md: 0 2px 6px hsl(220 60% 2% / .45), 0 10px 26px hsl(220 60% 2% / .4);
    --shadow-lg: 0 4px 10px hsl(220 60% 2% / .5), 0 24px 56px hsl(220 60% 2% / .5);
    --shadow-panel: 0 28px 80px hsl(220 60% 1% / .7), 0 4px 14px hsl(220 60% 1% / .5);
  }
}

/* ==========================================================================
   03 RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: var(--s-4); }

a { color: inherit; text-decoration: none; }

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

ul, ol { margin: 0; padding: 0; }

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

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s-6) 0;
}

::selection {
  background: color-mix(in oklab, var(--brand) 82%, transparent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* Icon sprite host — present but never rendered. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  inline-size: 1.25em;
  block-size: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  inset-block-start: -100%;
  z-index: var(--z-top);
  padding: .75rem 1.25rem;
  border-radius: var(--r-2);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: inset-block-start var(--dur-2) var(--ease);
}
.skip-link:focus-visible { inset-block-start: var(--s-3); }

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

/* ==========================================================================
   04 PRIMITIVES
   ========================================================================== */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section.is-tight { padding-block: calc(var(--section-y) * .62); }
.section.is-flush-top { padding-block-start: 0; }
.section.is-alt { background: var(--surface-2); }
.section.is-bordered { border-block-start: 1px solid var(--line); }

/* --- Section heading group -------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: "";
  inline-size: 22px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.section-head { max-width: 46rem; margin-block-end: var(--s-7); }
.section-head h2 { font-size: var(--t-3xl); }
.section-head > p {
  margin-block-start: var(--s-4);
  font-size: var(--t-lg);
  color: var(--fg-2);
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
  color: var(--fg-2);
  font-size: var(--t-lg);
}
.prose strong { color: var(--fg); }

/* Inline link inside body copy — underlined, because colour alone is not a cue. */
.link {
  color: var(--brand-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-2) var(--ease);
}
.link:hover { color: var(--brand); text-decoration-thickness: 2px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-block-size: 44px;
  padding: .625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  font-family: var(--font-body);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  color: inherit;
  transition:
    background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.btn .icon { inline-size: 1.05em; block-size: 1.05em; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--fg-on-brand);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--brand) 88%, #fff 12%);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn-ghost { color: var(--fg-2); border-color: transparent; }
.btn-ghost:hover { color: var(--fg); background: var(--surface-2); }

.btn-lg { min-block-size: 50px; padding: .75rem 1.5rem; font-size: var(--t-base); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-block-start: var(--s-6);
}

/* --- Badges & pills ----------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .625rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--fg-2);
  white-space: nowrap;
}
.badge-brand {
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  color: var(--brand-ink);
}
.badge .dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Status pill — colour is always paired with a label, never colour alone. */
.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .625rem;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .03em;
  border: 1px solid;
  white-space: nowrap;
}
.status .dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-ok {
  color: var(--ok-500);
  border-color: color-mix(in oklab, var(--ok-500) 36%, transparent);
  background: color-mix(in oklab, var(--ok-500) 10%, transparent);
}
.status-warn {
  color: var(--warn-500);
  border-color: color-mix(in oklab, var(--warn-500) 36%, transparent);
  background: color-mix(in oklab, var(--warn-500) 10%, transparent);
}
.status-info {
  color: var(--info-500);
  border-color: color-mix(in oklab, var(--info-500) 36%, transparent);
  background: color-mix(in oklab, var(--info-500) 10%, transparent);
}
.status-idle { color: var(--fg-3); border-color: var(--line-2); background: var(--surface-2); }

html[data-theme="dark"] .status-ok { color: var(--ok-400); }
html[data-theme="dark"] .status-warn { color: var(--warn-400); }
html[data-theme="dark"] .status-info { color: var(--info-400); }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .status-ok { color: var(--ok-400); }
  html[data-theme="auto"] .status-warn { color: var(--warn-400); }
  html[data-theme="auto"] .status-info { color: var(--info-400); }
}
/* The device panel is a screen: always dark, so it always needs the light tints
   whatever the page theme is. */
.panel .status-ok { color: var(--ok-400); }
.panel .status-warn { color: var(--warn-400); }
.panel .status-info { color: var(--info-400); }
.panel .status-idle { color: var(--panel-fg-2); border-color: var(--panel-line); background: hsl(0 0% 100% / .04); }

/* ==========================================================================
   05 HEADER & NAV
   ========================================================================== */

.header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  background: var(--header-bg);
  color: var(--header-fg);
  border-block-end: 1px solid var(--header-line);
  transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
/* The brand keeps a permanent, precise presence: a 2px gradient rule. */
.header::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline: 0;
  block-size: 2px;
  background: var(--brand-grad);
}
.header.is-stuck { box-shadow: 0 12px 34px hsl(220 50% 4% / .34); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-block-size: var(--header-h);
  padding-block: .625rem;
}

/* --- Brand lockup ------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
  border-radius: var(--r-2);
  padding: .25rem;
  margin-inline-start: -.25rem;
}
.brand img { inline-size: 34px; block-size: 34px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--header-fg);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--header-fg-2);
}

/* --- Product switcher: replaces the old folder tabs -------------------- */
.switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: hsl(0 0% 100% / .07);
  border: 1px solid var(--header-line);
  flex: none;
}
.switcher a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .375rem .75rem;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--header-fg-2);
  white-space: nowrap;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.switcher a:hover { color: var(--header-fg); background: var(--header-hover); }
.switcher a[aria-current] {
  background: hsl(0 0% 100% / .14);
  color: #fff;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .16);
}
.switcher .dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 18%, transparent);
}
.switcher .dot-monitor { background: var(--monitor-500); }
.switcher .dot-display { background: var(--display-500); }

/* --- Primary nav -------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  margin-inline-start: auto;
}
.nav a {
  position: relative;
  padding: .5rem .75rem;
  border-radius: var(--r-2);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--header-fg-2);
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav a:hover { color: var(--header-fg); background: var(--header-hover); }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-block-end: -.5rem;
  inset-inline: .75rem;
  block-size: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--r-2);
  border: 1px solid var(--header-line);
  background: hsl(0 0% 100% / .05);
  color: var(--header-fg);
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.icon-btn:hover { background: hsl(0 0% 100% / .12); }
.icon-btn .icon { inline-size: 18px; block-size: 18px; }

/* Theme toggle swaps which glyph is visible. */
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .theme-toggle .icon-moon { display: block; }
  html[data-theme="auto"] .theme-toggle .icon-sun { display: none; }
}

.header .btn-login {
  border-color: hsl(0 0% 100% / .22);
  background: hsl(0 0% 100% / .06);
  color: var(--header-fg);
  box-shadow: none;
}
.header .btn-login:hover { background: hsl(0 0% 100% / .14); border-color: hsl(0 0% 100% / .34); }

.nav-toggle { display: none; }

/* --- Mobile drawer ------------------------------------------------------ */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: hsl(220 45% 4% / .58);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: calc(var(--z-drawer) + 1);
  inline-size: min(90vw, 380px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(101%);
  transition: transform var(--dur-3) var(--ease-out);
  overscroll-behavior: contain;
}
body.is-drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
body.is-drawer-open .drawer { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-block-end: 1px solid var(--line);
  background: var(--surface-2);
}
.drawer-head .brand-name { color: var(--fg); }
.drawer-head .brand-tagline { color: var(--fg-3); }
.drawer-close {
  inline-size: 40px; block-size: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  flex: none;
}
.drawer-close:hover { background: var(--surface-3); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.drawer-label {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-block-end: var(--s-3);
}
.drawer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.drawer-links a {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-block-size: 48px;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  font-weight: 500;
  color: var(--fg);
}
.drawer-links a:hover { background: var(--surface-2); border-color: var(--line-2); }
.drawer-links a[aria-current="page"] {
  border-color: color-mix(in oklab, var(--brand) 45%, transparent);
  background: color-mix(in oklab, var(--brand) 9%, transparent);
  color: var(--brand-ink);
  font-weight: 600;
}
.drawer-links .icon { color: var(--fg-3); }
.drawer-links a[aria-current="page"] .icon { color: var(--brand); }

.drawer-foot {
  padding: var(--s-5);
  border-block-start: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.drawer-foot .btn { inline-size: 100%; }

/* Cross-product card inside the drawer keeps the sibling product one tap away. */
.drawer-cross {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}
.drawer-cross img { inline-size: 32px; block-size: 32px; flex: none; }
.drawer-cross .t { font-weight: 600; font-size: var(--t-md); }
.drawer-cross .s { font-size: var(--t-xs); color: var(--fg-3); }
.drawer-cross .icon { margin-inline-start: auto; color: var(--fg-3); }

@media (max-width: 980px) {
  .nav, .header .btn-login, .switcher { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
/* Small phones: the demo CTA would squeeze out the menu button, and it is the
   first thing in both the hero and the drawer, so the header can drop it. */
@media (max-width: 560px) {
  .header .header-actions .btn-primary { display: none; }
}
@media (max-width: 420px) {
  .brand-tagline { display: none; }
  .brand img { inline-size: 30px; block-size: 30px; }
  .brand-name { font-size: 1rem; }
}

/* ==========================================================================
   06 HERO + STATUS PANEL  (the signature)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 1.9rem + 4.4vw, 5.5rem) clamp(3.5rem, 2.4rem + 4.6vw, 6rem);
  background: var(--ground);
  border-block-end: 1px solid var(--line);
}
/* Brand atmosphere: the page still reads red / blue without a flat fill. */
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -46%;
  inset-inline-end: -14%;
  inline-size: min(1000px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 26%, transparent) 0%, transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklab, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000 10%, transparent 72%);
}
.hero > .shell { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}

.hero h1 {
  font-size: var(--t-4xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -.035em;
  max-width: 18ch;
}
.hero-lede {
  margin-block-start: var(--s-5);
  font-size: var(--t-lg);
  color: var(--fg-2);
  max-width: 46ch;
}

/* Hard facts under the fold line — every claim comes from the product docs. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-block-start: var(--s-6);
  padding-block-start: var(--s-5);
  border-block-start: 1px solid var(--line);
  list-style: none;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .02em;
  color: var(--fg-2);
}
.hero-facts .icon { inline-size: 15px; block-size: 15px; color: var(--brand); stroke-width: 2; }

/* --- The device panel --------------------------------------------------- */
.panel {
  position: relative;
  border-radius: var(--r-4);
  background: linear-gradient(168deg, var(--panel-bg-2), var(--panel-bg));
  border: 1px solid var(--panel-line);
  box-shadow: var(--shadow-panel);
  color: var(--panel-fg);
  font-size: var(--t-sm);
  overflow: hidden;
  isolation: isolate;
}
.panel::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  background: var(--brand-grad);
  z-index: 2;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: .875rem 1.125rem;
  border-block-end: 1px solid var(--panel-line);
  background: hsl(0 0% 100% / .025);
}
.panel-title {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--panel-fg-2);
}
.panel-head .status { margin-inline-start: auto; }

/* Live indicator: pulse ring on a functional status dot. */
.live {
  position: relative;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--ok-400);
  flex: none;
}
.live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ok-400);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

.panel-rows { list-style: none; }
.panel-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .75rem;
  padding: .6875rem 1.125rem;
  border-block-end: 1px solid color-mix(in oklab, var(--panel-line) 60%, transparent);
}
.panel-row:last-child { border-block-end: 0; }
.panel-row .dot {
  inline-size: 8px; block-size: 8px; border-radius: 50%;
  background: var(--ok-400);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok-400) 16%, transparent);
}
.panel-row.is-warn .dot { background: var(--warn-400); box-shadow: 0 0 0 3px color-mix(in oklab, var(--warn-400) 16%, transparent); }
.panel-row .node {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .02em;
  color: var(--panel-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-row .meta {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  color: var(--panel-fg-2);
  font-variant-numeric: tabular-nums;
  min-inline-size: 5.5ch;
  text-align: end;
}

/* Sparkline built from bars so it needs no library and scales cleanly. */
.spark { display: flex; align-items: flex-end; gap: 2px; block-size: 18px; inline-size: 46px; }
.spark i {
  flex: 1;
  block-size: 100%;
  border-radius: 1px;
  background: color-mix(in oklab, var(--ok-400) 62%, transparent);
  transform-origin: bottom;
  animation: breathe 3.2s var(--ease) infinite;
}
.panel-row.is-warn .spark i { background: color-mix(in oklab, var(--warn-400) 62%, transparent); }
@keyframes breathe {
  0%, 100% { transform: scaleY(var(--h, .5)); }
  50% { transform: scaleY(calc(var(--h, .5) * 1.5)); }
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8125rem 1.125rem;
  border-block-start: 1px solid var(--panel-line);
  background: hsl(0 0% 100% / .025);
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: .04em;
  color: var(--panel-fg-2);
}
.panel-foot .icon { inline-size: 14px; block-size: 14px; color: var(--ok-400); }

/* --- Display variant: a wall-mounted signage screen -------------------- */
.panel-screen { padding: 0; }
.screen-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: .75rem 1.125rem;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .06em;
}
.screen-bar .clock { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.screen-body { padding: .5rem 0; background: #05070c; }
.screen-call {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .875rem;
  padding: .8125rem 1.125rem;
  border-inline-start: 3px solid transparent;
  transition: background var(--dur-3) var(--ease);
}
.screen-call .room {
  font-family: var(--font-mono);
  font-size: var(--t-base);
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.screen-call .what { font-size: var(--t-sm); color: var(--panel-fg-2); }
.screen-call .age {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--panel-fg-2);
  font-variant-numeric: tabular-nums;
}
.screen-call.is-active {
  border-inline-start-color: var(--warn-400);
  background: color-mix(in oklab, var(--warn-400) 10%, transparent);
}
.screen-call.is-active .age { color: var(--warn-400); }

/* Wall mount: reads as hardware, not a browser window. Fixed slate values —
   a physical bracket does not change colour with the page theme. */
.panel-mount { display: flex; flex-direction: column; align-items: center; }
.panel-mount .panel { inline-size: 100%; }
.panel-mount .arm {
  inline-size: 64px;
  block-size: 17px;
  background: linear-gradient(180deg, #2f3c55, #1a2231);
  border: 1px solid #3c4a65;
  border-block-start: 0;
  border-radius: 0 0 4px 4px;
}
.panel-mount .base {
  inline-size: 152px;
  block-size: 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #3c4a65, #202a3c);
  border: 1px solid #4a5872;
  box-shadow: 0 14px 30px hsl(220 60% 4% / .45);
}

/* ==========================================================================
   07 CONTENT BLOCKS
   ========================================================================== */

/* --- Metric rail -------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1px;
  list-style: none;
  /* 1px gap over a line-coloured ground draws the hairline dividers. */
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  overflow: hidden;
}
.metric { padding: var(--s-5) var(--s-5); background: var(--surface); }
.metric .v {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.28rem + .95vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.metric .v .u { font-size: .55em; font-weight: 600; color: var(--brand-ink); margin-inline-start: .15em; }
.metric .k {
  margin-block-start: .5rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: var(--fg-3);
}

/* --- Feature cards ------------------------------------------------------ */
.grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.grid.is-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
/* Brand hairline reveals on hover — restraint over a permanent coloured bar. */
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-out);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--r-2);
  background: color-mix(in oklab, var(--brand) 16%, transparent);
  color: var(--brand-ink);
  border: 1px solid color-mix(in oklab, var(--brand) 32%, transparent);
}
.card-icon .icon { inline-size: 20px; block-size: 20px; }
.card h3 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -.015em; }
.card p { color: var(--fg-2); font-size: var(--t-md); }

/* --- Numbered steps: used only where order genuinely matters ----------- */
.steps {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  counter-reset: step;
  list-style: none;
}
.step { position: relative; padding-block-start: var(--s-5); border-block-start: 2px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-block-start: calc(-.75rem - 1px);
  inset-inline-start: 0;
  padding-inline-end: .625rem;
  background: var(--ground);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand-ink);
}
.section.is-alt .step::before { background: var(--surface-2); }
.step h3 { font-size: var(--t-lg); margin-block-end: var(--s-2); }
.step p { color: var(--fg-2); font-size: var(--t-md); }

/* --- Split: prose + checklist ------------------------------------------ */
.split {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.checklist { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--t-md); color: var(--fg-2); }
.checklist .icon {
  inline-size: 22px; block-size: 22px;
  flex: none;
  margin-block-start: .1rem;
  padding: 3px;
  border-radius: 50%;
  color: var(--brand);
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  stroke-width: 2.4;
}
.checklist strong { display: block; color: var(--fg); font-weight: 600; margin-block-end: .1rem; }

/* --- Spec table --------------------------------------------------------- */
.specs {
  inline-size: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface);
  font-size: var(--t-md);
}
.specs caption {
  caption-side: top;
  text-align: start;
  padding-block-end: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.specs th, .specs td { padding: .875rem 1.125rem; text-align: start; border-block-end: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-block-end: 0; }
.specs th {
  inline-size: 42%;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface-2);
  white-space: nowrap;
}
.specs td { color: var(--fg-2); font-family: var(--font-mono); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Note / callout ----------------------------------------------------- */
.note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid color-mix(in oklab, var(--brand) 26%, var(--line));
  border-inline-start-width: 3px;
  border-inline-start-color: var(--brand);
  border-radius: var(--r-2);
  background: color-mix(in oklab, var(--brand) 6%, var(--surface));
  font-size: var(--t-md);
  color: var(--fg-2);
}
.note .icon { flex: none; inline-size: 20px; block-size: 20px; color: var(--brand); margin-block-start: .15rem; }
.note strong { color: var(--fg); }

/* ==========================================================================
   08 RELEASE NOTES / ROADMAP
   ========================================================================== */

.timeline { list-style: none; position: relative; padding-inline-start: 0; }
.release {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-block-start: 1px solid var(--line);
}
.release:first-child { border-block-start: 0; padding-block-start: 0; }
@media (min-width: 860px) {
  .release { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-7); }
}
.release-meta { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.release-version {
  font-family: var(--font-mono);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--fg);
}
.release-date { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.release-notes { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.release-notes li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: var(--t-md);
  color: var(--fg-2);
}
.release-notes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .6em;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--brand) 55%, transparent);
}

.roadmap { display: flex; flex-direction: column; gap: var(--s-4); list-style: none; }
.roadmap-item {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 800px) {
  .roadmap-item { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s-5); }
}
/* h2, not h3: these sit directly under the page h1 with no section heading
   between them, so h3 would skip a level. */
.roadmap-item h2 { font-size: var(--t-lg); letter-spacing: -.015em; margin-block-end: var(--s-2); }
.roadmap-item p { color: var(--fg-2); font-size: var(--t-md); }
.roadmap-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-block-end: var(--s-6);
  padding-block-end: var(--s-5);
  border-block-end: 1px solid var(--line);
}
.legend-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* --- Async states ------------------------------------------------------- */
.skeleton {
  border-radius: var(--r-1);
  background:
    linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%) 0 0 / 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.skeleton-line { block-size: .75rem; margin-block-end: .625rem; }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-9) var(--s-5);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-3);
  text-align: center;
  color: var(--fg-2);
}
.state .icon { inline-size: 32px; block-size: 32px; color: var(--fg-3); }
.state h2 { font-size: var(--t-lg); letter-spacing: -.015em; color: var(--fg); }
.state p { max-width: 42ch; font-size: var(--t-md); }

/* ==========================================================================
   09 CTA BAND + FOOTER
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad);
  color: #fff;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(0 0% 100% / .07) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 100% at 78% 50%, #000, transparent 74%);
  pointer-events: none;
}
.cta > .shell { position: relative; z-index: 1; }
.cta-inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } }
.cta h2 { font-size: var(--t-3xl); color: #fff; }
.cta p { margin-block-start: var(--s-3); color: hsl(0 0% 100% / .84); font-size: var(--t-lg); max-width: 52ch; }
.cta .eyebrow { color: hsl(0 0% 100% / .82); }
.cta .eyebrow::before { background: hsl(0 0% 100% / .6); }
.cta .btn-row { margin-block-start: 0; }
.cta .btn-primary { background: #fff; color: var(--brand-deep); }
.cta .btn-primary:hover { background: hsl(0 0% 100% / .9); }
.cta .btn-secondary {
  background: hsl(0 0% 100% / .1);
  border-color: hsl(0 0% 100% / .38);
  color: #fff;
  box-shadow: none;
}
.cta .btn-secondary:hover { background: hsl(0 0% 100% / .2); border-color: hsl(0 0% 100% / .6); }
.cta :focus-visible { outline-color: #fff; }

.footer {
  background: var(--surface);
  border-block-start: 1px solid var(--line);
  padding-block: var(--s-9) var(--s-6);
  font-size: var(--t-md);
}
.footer-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }

.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); max-width: 34ch; }
.footer-brand .lockup { display: flex; align-items: center; gap: .625rem; }
.footer-brand img { inline-size: 32px; block-size: 32px; }
.footer-brand .n { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; }
.footer-brand p { color: var(--fg-3); font-size: var(--t-sm); }

.footer h2 {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-block-end: var(--s-4);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer ul a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--fg-2);
  transition: color var(--dur-2) var(--ease);
}
.footer ul a:hover { color: var(--brand-ink); }
.footer ul a .icon { inline-size: 13px; block-size: 13px; color: var(--fg-3); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-block-start: var(--s-8);
  padding-block-start: var(--s-5);
  border-block-start: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-3);
}
.footer-bottom .products { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
/* Padding lifts these to the 24px WCAG 2.2 minimum target size. */
.footer-bottom .products a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-block: .3rem;
  min-block-size: 24px;
}
.footer-bottom .products .dot { inline-size: 7px; block-size: 7px; border-radius: 50%; }
.footer-bottom .products a:hover { color: var(--fg); }

/* ==========================================================================
   09b INTERIOR PAGE HEAD + PRODUCT CHOOSER
   ========================================================================== */

/* Compact hero for release notes / roadmap — same atmosphere, no device mock. */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.8rem + 2.8vw, 4rem);
  border-block-end: 1px solid var(--line);
  background: var(--ground);
}
.page-head::before {
  content: "";
  position: absolute;
  inset-block-start: -70%;
  inset-inline-end: -6%;
  inline-size: min(720px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 20%, transparent) 0%, transparent 66%);
  pointer-events: none;
}
.page-head > .shell { position: relative; z-index: 1; }
.page-head h1 { font-size: var(--t-3xl); max-width: 20ch; }
.page-head p {
  margin-block-start: var(--s-4);
  color: var(--fg-2);
  font-size: var(--t-lg);
  max-width: 56ch;
}

/* On company pages the hero carries both brands rather than just Monitor red. */
:root[data-product="suite"] .hero::before { display: none; }
:root[data-product="suite"] .hero,
:root[data-product="suite"] .page-head {
  background-image:
    radial-gradient(58% 72% at 90% -14%, color-mix(in oklab, var(--monitor-500) 24%, transparent), transparent 68%),
    radial-gradient(52% 66% at 4% 112%, color-mix(in oklab, var(--display-500) 24%, transparent), transparent 68%);
}
:root[data-product="suite"] .page-head::before { display: none; }

/* Product chooser on the company landing. Each card owns its brand locally,
   so every brand-driven token inside it recolours without extra rules. */
.chooser {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) { .chooser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.product-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  background: var(--brand-grad);
}
.product-card::after {
  content: "";
  position: absolute;
  inset-block-start: -55%;
  inset-inline-end: -30%;
  inline-size: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 16%, transparent), transparent 68%);
  pointer-events: none;
}
.product-card > * { position: relative; z-index: 1; }
.product-card:hover {
  border-color: color-mix(in oklab, var(--brand) 34%, var(--line));
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
/* --brand-grad must be re-derived here: the suite value is a literal red->blue
   sweep, so without this each card would fly the company rule, not its own. */
.product-card[data-brand] { --brand-grad: linear-gradient(100deg, var(--brand-deep), var(--brand)); }
.product-card[data-brand="monitor"] { --brand: var(--monitor-500); --brand-deep: var(--monitor-700); }
.product-card[data-brand="display"] { --brand: var(--display-500); --brand-deep: var(--display-700); }
html[data-theme="dark"] .product-card[data-brand="monitor"],
html[data-theme="dark"] .product-card[data-brand="display"] { --brand-ink: color-mix(in oklab, var(--brand) 58%, #fff 42%); }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .product-card[data-brand="monitor"],
  html[data-theme="auto"] .product-card[data-brand="display"] { --brand-ink: color-mix(in oklab, var(--brand) 58%, #fff 42%); }
}
.product-card .lockup { display: flex; align-items: center; gap: .75rem; }
.product-card .lockup img { inline-size: 44px; block-size: 44px; }
.product-card h2 { font-size: var(--t-2xl); letter-spacing: -.025em; }
.product-card .tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: var(--brand-ink);
}
.product-card > p { color: var(--fg-2); font-size: var(--t-md); }
.product-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.product-card ul li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: var(--t-md);
  color: var(--fg-2);
}
.product-card ul .icon {
  inline-size: 17px; block-size: 17px; flex: none;
  margin-block-start: .28rem; color: var(--brand); stroke-width: 2.4;
}
.product-card .btn-row { margin-block-start: auto; padding-block-start: var(--s-2); }

/* ==========================================================================
   09c PRODUCT-SWITCH CURTAIN
   --------------------------------------------------------------------------
   Monitor <-> Display is a change of product, not just another page, so it gets
   a transition the internal links do not. A curtain in the DESTINATION brand
   sweeps across in the direction of travel, then keeps travelling the same way
   on the page that receives it — the two halves read as one continuous move
   rather than two separate animations.

   It is drawn as html::after, so it needs no markup and the arriving page can
   paint it from the inline <head> script before the first frame. No flash.
   ========================================================================== */

html[data-leaving]::after,
html[data-arriving]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  /* Leaving pages get the destination gradient set inline by app.js; arriving
     pages already are the destination, so the brand token is correct. */
  background: var(--curtain-grad, var(--brand-grad));
  will-change: transform;
  animation: curtain-sweep var(--curtain-dur, 320ms) var(--curtain-ease, cubic-bezier(.65, 0, .35, 1)) forwards;
}

html[data-leaving="right"]::after { --curtain-from: -100%; --curtain-to: 0%; }
html[data-leaving="left"]::after  { --curtain-from: 100%;  --curtain-to: 0%; }

html[data-arriving="right"]::after,
html[data-arriving="left"]::after {
  --curtain-from: 0%;
  --curtain-dur: 440ms;
  --curtain-ease: cubic-bezier(.16, 1, .3, 1);
}
html[data-arriving="right"]::after { --curtain-to: 100%; }
html[data-arriving="left"]::after  { --curtain-to: -100%; }

@keyframes curtain-sweep {
  from { transform: translate3d(var(--curtain-from), 0, 0); }
  to   { transform: translate3d(var(--curtain-to), 0, 0); }
}

/* ==========================================================================
   10 MOTION, A11Y, PRINT
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-4) var(--ease-out),
    transform var(--dur-4) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .live::after { display: none; }
  /* Never draw the curtain here: with animations forced to ~0ms a filled
     `forwards` state could strand a covering panel on screen. */
  html[data-leaving]::after,
  html[data-arriving]::after { content: none; }
}

@media print {
  .header, .drawer, .drawer-scrim, .cta, .panel, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
