/* NVX website. Tokens from NavColors.kt / NavTheme.kt / Theme.kt.
   Website-specific reading scale, steel CTAs and homepage layout:
   docs/handovers/2026-09-05-website-visual-redesign.md. */

/* ── Fonts ────────────────────────────────────────────────────────────
   Barlow Condensed, self-hosted from app/src/main/res/font/.
   It is both the UI family and the numeric family in the app.
   Only four weights exist — there is no bold. 600 is the top. */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow_condensed_light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow_condensed_regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow_condensed_medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow_condensed_semibold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* ── Surface ladder — NavColors.kt (cool graphite, hue ≈215°) ── */
  --canvas:      #000000;   /* page / void                            */
  --header:      #0A0C0F;   /* header bar, dock, action bar           */
  --card:        #0E1114;   /* card / row / strip default             */
  --card-alt:    #14171B;   /* app-wide graphite anchor, face shell   */
  --card-deep:   #1C2026;   /* deepest tier — instrument wells, chips */
  --inset:       #181C21;   /* recessed well tile                     */
  --night-sky:   #0C1322;   /* twilight backdrop                      */
  --paper:       #06080A;   /* chart-paper stage base                 */

  /* ── Gauge chrome — NavTheme.Gauge ── */
  --gauge-bg:          #0A0C10;
  --gauge-inner-disk:  #07090C;
  --gauge-inner-rim:   #2E3139;
  --gauge-bezel-dark:  #22252D;
  --gauge-bezel-light: #3A3D45;

  /* ── Text ladder — never raw white ── */
  --hi:    rgba(255,255,255,.90);   /* primary readouts, titles       */
  --md:    rgba(255,255,255,.68);   /* secondary, labels              */
  --lo:    rgba(255,255,255,.56);   /* tertiary, captions, blank ink  */
  --glyph: rgba(255,255,255,.70);   /* pinned glyph ink — never dims  */

  /* ── Hairlines ── */
  --outline:      rgba(255,255,255,.16);
  --outline-soft: rgba(255,255,255,.08);   /* the default hairline    */
  --outline-ctl:  #3A3E42;
  --b-thin:     .5px;
  --b-hairline: 1px;
  --b-thick:    1.5px;

  /* ── Radius — ONE radius, app-wide (Border.radiusSmall = 6dp) ── */
  --r:      6px;
  --r-chip: 2px;
  --r-tick: 1px;

  /* ── Alpha ladder — NavTheme.Alpha ── */
  --a-disabled: .38;  --a-secondary: .60;  --a-medium:  .70;
  --a-subtle:   .08;  --a-divider:   .16;  --a-soft:    .122;
  --a-border:   .549; --a-selected:  .20;

  /* ── Accent · STEEL — the library spine, the site's one accent ── */
  --steel:        #4A7FA0;
  --steel-on:     #C2D8E8;
  --steel-dim:    #243848;
  --steel-soft:   rgba(74,127,160,.122);
  --steel-border: rgba(74,127,160,.549);
  --steel-sel:    rgba(74,127,160,.20);

  /* ── Accent · ACTIVE NAV — only where live navigation is depicted ── */
  --nav-live:        #4488FF;
  --nav-live-on:     #B8D4FF;
  --nav-live-soft:   rgba(68,136,255,.122);
  --nav-live-border: rgba(68,136,255,.549);

  /* ── Accent · STREAM — weather / GRIB ── */
  --stream:        #4A5860;
  --stream-on:     #C0C8D0;
  --stream-soft:   rgba(74,88,96,.122);
  --stream-border: rgba(74,88,96,.549);

  /* ── Accent · NEUTRAL — settings / secondary chrome ── */
  --neutral:        #9097A0;
  --neutral-on:     #D8DCE2;
  --neutral-soft:   rgba(144,151,160,.122);
  --neutral-border: rgba(144,151,160,.549);

  /* ── Accent · ANCHOR (bronze armed / amber pending) ── */
  --anchor:        #A67C3D;
  --anchor-on:     #E5D0A8;
  --anchor-soft:   rgba(166,124,61,.122);
  --anchor-border: rgba(166,124,61,.549);
  --amber:         #FBBF24;
  --amber-on:      #FCD34D;

  /* ── Control chrome — one documented step off steel ── */
  --ctl:       #3D89AC;
  --ctl-light: #4D99BC;
  --ctl-on:    #C2D8E8;

  /* Material action (Palette.action). Website CTAs use steel, not this pair. */
  --action:    #0284C7;
  --action-on: #001825;
  --charts:    #0369A1;
  --sky:       #38BDF8;

  /* ── Status ── */
  --ok:         #2C5A40;
  --ok-on:      #B4D0BE;
  --ok-soft:    rgba(44,90,64,.122);
  --ok-border:  rgba(44,90,64,.549);
  --caution:    #C08A50;
  --caution-on: #DDB287;
  --warn:       #F59E0B;
  --alarm:      #DC2626;
  --alarm-on:   #FFCCCC;
  --alarm-soft: rgba(220,38,38,.122);
  --alarm-border: rgba(220,38,38,.549);
  --idle:       #6A6E72;

  /* ── Marine instrument hues ── */
  --port:      #CC4444;
  --starboard: #44AA66;
  --north:     #DD4422;

  /* ── Spacing — NavTheme.Spacing ── */
  --s-xxs: 2px;  --s-xs: 4px;   --s-sm: 6px;   --s-md: 8px;
  --s-lg: 10px;  --s-xl: 12px;  --s-xxl: 14px; --s-xxxl: 16px;
  --s-section: 20px; --s-block: 24px;

  /* ── Chrome sizes — NavTheme.Size ── */
  --tap:        44px;   /* the touch floor — explicitly NOT 48 */
  --header-h:   64px;
  --navstrip-h: 40px;
  --row-h:      56px;
  --band-h:     28px;
  --field-h:    40px;
  --icon-tiny: 12px; --icon-compact: 14px;
  --icon-sm:  16px; --icon-md: 18px; --icon-std: 20px;
  --icon-lg:  22px; --icon-section: 32px;
  --dot:      8px;

  /* ── Type ── */
  --f-ui:  'Barlow Condensed','Roboto Condensed','Arial Narrow',system-ui,sans-serif;
  --f-num: 'Barlow Condensed','Roboto Condensed','Arial Narrow',system-ui,sans-serif;

  /* InstrumentType ladder */
  --t-nano: 7px;  --t-micro: 8px;  --t-tiny: 9px;   --t-cardinal: 12px;
  --t-unit-sm: 13px; --t-caption: 17px; --t-header: 20px; --t-unit-hero: 18px;
  --t-body: 16px; --t-data-compact: 18px; --t-body-lg: 20px;
  --t-data-name: 22px; --t-data-md: 24px; --t-data-lg: 28px;
  --t-data-xl: 32px; --t-data-2xl: 36px; --t-hero: 56px;

  /* Letter spacing — labels positive, numerals negative */
  --ls-subtle: .5px; --ls-compact: .8px; --ls-standard: 1px;
  --ls-wide: 1.5px;  --ls-heading: 2px;  --ls-extra: 2.5px;
  --ls-tight-num: -.4px; --ls-tight-data: -.5px; --ls-tight-hero: -1.5px;

  /* Weights actually shipped — there is no 700 */
  --w-light: 300; --w-regular: 400; --w-medium: 500; --w-semibold: 600;

  /* ── Motion — instrument panels do not animate layout ── */
  --m-fast: 150ms; --m-fold: 200ms; --m-cross: 400ms;

  /* ── Layout ── */
  --wrap: 1240px;

  /* Mask alpha stop only — never painted, never used as a text or fill
     colour. Lives here so no hex literal escapes the :root block. */
  --mask-opaque: #000;
}

/* ═══ Reset & base ═══════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Global bans. Depth is surface tier + hairline, never shadow. */
*, *::before, *::after { box-shadow: none; text-shadow: none; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--f-ui);
  font-weight: var(--w-regular);
  background: var(--canvas);
  color: var(--hi);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--steel-on); text-decoration: none; transition: color var(--m-fast); }
a:hover { color: var(--hi); }

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

::selection { background: var(--steel-sel); color: var(--hi); }

:focus-visible {
  outline: var(--b-hairline) solid var(--steel-border);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══ Recipes — the app's repeating motifs ═══════════════════════════ */

/* House divider: a gradient hairline. Never a solid rule. */
.sep {
  height: var(--b-hairline);
  border: 0;
  background: linear-gradient(90deg, transparent, var(--outline-soft), transparent);
}

/* Micro label — uppercase, wide-tracked. The only way status is stated. */
.micro {
  font-family: var(--f-ui);
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--md);
  line-height: 1;
}

/* Header pill — soft fill + 8px dot + on-tint. The most repeated motif. */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-md);
  padding: var(--s-sm) var(--s-xl);
  border-radius: var(--r);
  background: var(--steel-soft);
  border: var(--b-hairline) solid var(--steel-border);
  font-family: var(--f-num);
  font-size: var(--t-unit-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--steel-on);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pill::before {
  content: '';
  width: var(--dot); height: var(--dot);
  border-radius: var(--r);
  background: var(--steel);
  flex: 0 0 auto;
}
.pill--nav    { background: var(--nav-live-soft);  border-color: var(--nav-live-border);  color: var(--nav-live-on); }
.pill--nav::before    { background: var(--nav-live); }
.pill--anchor { background: var(--anchor-soft);    border-color: var(--anchor-border);    color: var(--anchor-on); }
.pill--anchor::before { background: var(--anchor); }
.pill--ok     { background: var(--ok-soft);        border-color: var(--ok-border);        color: var(--ok-on); }
.pill--ok::before     { background: var(--ok); }
.pill--stream { background: var(--stream-soft);    border-color: var(--stream-border);    color: var(--stream-on); }
.pill--stream::before { background: var(--stream); }
.pill--alarm  { background: var(--alarm-soft);     border-color: var(--alarm-border);     color: var(--alarm-on); }
.pill--alarm::before  { background: var(--alarm); }
.pill--nodot::before  { display: none; }

/* Hero numeral — the brand signature. Tabular, negatively tracked. */
.hero-num {
  font-family: var(--f-num);
  font-size: var(--t-data-2xl);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight-hero);
  color: var(--hi);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
}
.hero-num .unit {
  font-family: var(--f-ui);
  font-size: var(--t-unit-hero);
  font-weight: var(--w-semibold);
  letter-spacing: 0;
  color: var(--md);
  margin-left: var(--s-xs);
}

/* Lens chip — filter/tag vocabulary */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  padding: var(--s-sm) var(--s-xl);
  border-radius: var(--r);
  background: var(--card-alt);
  border: var(--b-hairline) solid var(--outline-soft);
  font-size: var(--t-cardinal);
  font-weight: var(--w-regular);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--md);
  line-height: 1;
}
.chip--on {
  background: var(--steel-soft);
  border-color: var(--steel-border);
  color: var(--steel-on);
  font-weight: var(--w-semibold);
}

/* ═══ Navigation — the app's 52px header bar ═════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--header);
  border-bottom: var(--b-hairline) solid var(--outline-soft);
}

.nav-inner {
  max-width: var(--wrap); height: 100%; margin: 0 auto;
  padding: 0 var(--s-section);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-xxl);
}

.nav-brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--f-ui);
  font-size: var(--t-data-compact);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-extra);
  text-transform: uppercase;
  color: var(--hi);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--hi); }


.nav-links { display: flex; align-items: center; gap: var(--s-xs); list-style: none; }
.nav-links a {
  display: flex; align-items: center;
  height: var(--navstrip-h);
  padding: 0 var(--s-xl);
  border-radius: var(--r);
  font-size: var(--t-unit-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--md);
  transition: background var(--m-fast), color var(--m-fast);
}
.nav-links a:hover { color: var(--hi); background: var(--card); }
/* Selected segment: soft fill + on-tint. No border, no candy bar. */
.nav-links a[aria-current="page"] {
  background: var(--steel-soft);
  color: var(--steel-on);
}

.nav-hamburger {
  display: none;
  width: var(--tap); height: var(--tap);
  background: var(--card);
  border: var(--b-hairline) solid var(--outline-soft);
  border-radius: var(--r);
  cursor: pointer;
  padding: 0 12px;
  flex-direction: column;
  justify-content: center;
}
.nav-hamburger span {
  display: block; height: var(--b-hairline);
  background: var(--hi);
  margin: 4px 0;
}

/* ═══ Page scaffolding ═══════════════════════════════════════════════ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-section); }

section { padding: 88px 0; }
section + section { border-top: var(--b-hairline) solid var(--outline-soft); }

.section-label {
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--steel-on);
  margin-bottom: var(--s-xl);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-subtle);
  line-height: 1.12;
  color: var(--hi);
  margin-bottom: var(--s-xxl);
}
.section-title strong { font-weight: var(--w-semibold); color: var(--steel-on); }

.section-lede {
  font-size: var(--t-body);
  font-weight: var(--w-light);
  line-height: 1.7;
  color: var(--md);
  max-width: 68ch;
  margin-bottom: 40px;
}

.section-head { margin-bottom: 40px; }

/* ═══ Hero ═══════════════════════════════════════════════════════════ */
.hero {
  padding: calc(var(--header-h) + 96px) 0 88px;
  border-bottom: var(--b-hairline) solid var(--outline-soft);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 56px; align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-subtle);
  line-height: 1.06;
  color: var(--hi);
  margin: var(--s-section) 0 var(--s-section);
}
.hero h1 strong { font-weight: var(--w-semibold); color: var(--steel-on); }

.hero-lede {
  font-size: var(--t-body-lg);
  font-weight: var(--w-light);
  line-height: 1.6;
  color: var(--md);
  max-width: 52ch;
  margin-bottom: var(--s-block);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-lg); }

.hero-meta {
  margin-top: var(--s-block);
  display: flex; flex-wrap: wrap; gap: var(--s-lg) var(--s-section);
}

/* ═══ Buttons ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-md);
  min-height: var(--tap);
  padding: 0 var(--s-block);
  border-radius: var(--r);
  border: var(--b-hairline) solid transparent;
  font-family: var(--f-ui);
  font-size: var(--t-caption);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--m-fast), border-color var(--m-fast), color var(--m-fast);
}
.btn i { font-size: var(--icon-md); }

.btn-primary {
  background: var(--steel-dim);
  color: var(--steel-on);
  border-color: var(--steel-border);
}
.btn-primary:hover { background: var(--steel); color: var(--steel-on); }

/* Soft CTA — the app's own recipe: soft fill, accent border, on-tint */
.btn-soft {
  background: var(--steel-soft);
  border-color: var(--steel-border);
  color: var(--steel-on);
}
.btn-soft:hover { background: var(--steel-sel); color: var(--hi); }

.btn-outline {
  background: transparent;
  border-color: var(--outline);
  color: var(--hi);
}
.btn-outline:hover { background: var(--card); border-color: var(--steel-border); }

/* ═══ Instrument strip — hairlines are 1px GAPS, not borders ═════════ */
.inst-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--b-hairline);
  background: var(--steel-border);
  border: var(--b-thin) solid var(--steel-border);
  border-radius: var(--r);
  overflow: hidden;
}
.inst-cell {
  background: var(--card-deep);
  padding: var(--s-xxl) var(--s-xxl) var(--s-xl);
  display: flex; flex-direction: column; gap: var(--s-sm);
  min-width: 0;
}
.inst-cell .lab {
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-compact);
  text-transform: uppercase;
  color: var(--md);
  line-height: 1;
}
.inst-cell .val {
  font-family: var(--f-num);
  font-size: var(--t-data-md);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight-data);
  color: var(--hi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.inst-cell .val .unit {
  font-family: var(--f-ui);
  font-size: var(--t-unit-sm);
  font-weight: var(--w-regular);
  letter-spacing: 0;
  color: var(--md);
  margin-left: 3px;
}
.inst-cell .sub {
  font-size: var(--t-unit-sm);
  font-weight: var(--w-regular);
  color: var(--lo);
  line-height: 1.35;
}

/* ═══ Card — fill only, no border. cardAlt separates on its own. ═════ */
.card {
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
}
.card-title {
  display: flex; align-items: center; gap: var(--s-md);
  padding: var(--s-lg) var(--s-xxl);
  border-bottom: var(--b-hairline) solid var(--outline-soft);
}
.card-title i { font-size: var(--icon-sm); color: var(--glyph); }
.card-title h3 {
  font-size: var(--t-caption);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--md);
  flex: 1 1 auto;
}
.card-title .status {
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--steel-on);
}
.card-body { padding: var(--s-xxl); }
.card-body p {
  font-size: var(--t-caption);
  font-weight: var(--w-regular);
  line-height: 1.65;
  color: var(--md);
}
.card-body p + p { margin-top: var(--s-lg); }

/* ═══ Domain grid — feature cards ════════════════════════════════════ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
}
.domain {
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  border: var(--b-hairline) solid transparent;
  transition: background var(--m-fast), border-color var(--m-fast);
}
a.domain:hover { background: var(--steel-sel); border-color: var(--steel-border); }

.domain-head {
  display: flex; align-items: center; gap: var(--s-lg);
  padding: var(--s-xl) var(--s-xxl);
  min-height: 48px;
}
.domain-head i { font-size: var(--icon-lg); color: var(--glyph); flex: 0 0 auto; }
.domain-head h3 {
  font-size: var(--t-unit-hero);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-subtle);
  color: var(--hi);
  flex: 1 1 auto;
}
.domain-body { padding: 0 var(--s-xxl) var(--s-xxl); }
.domain-body p {
  font-size: var(--t-caption);
  line-height: 1.65;
  color: var(--md);
}
.domain-meta {
  margin-top: var(--s-xl);
  padding-top: var(--s-xl);
  border-top: var(--b-hairline) solid var(--outline-soft);
  display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-md);
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--lo);
}
.domain-meta span::after { content: ' ·'; color: var(--lo); }
.domain-meta span:last-child::after { content: ''; }

/* ═══ Face — the drawer hero card ════════════════════════════════════
   identity row → meta → gradient hairline → hero numeral → triad */
.face {
  background: var(--card-alt);
  border-radius: var(--r);
  padding: var(--s-xl);
}
.face-id {
  display: flex; align-items: center; gap: var(--s-md);
  min-height: 30px;
}
.face-id i { font-size: var(--icon-compact); color: var(--glyph); }
.face-id .name {
  font-size: var(--t-unit-hero);
  font-weight: var(--w-semibold);
  color: var(--hi);
  flex: 1 1 auto;
  letter-spacing: var(--ls-subtle);
}
.face-meta {
  min-height: 16px;
  display: flex; align-items: center;
  font-family: var(--f-num);
  font-size: var(--t-unit-sm);
  color: var(--md);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-subtle);
}
.face-sep {
  height: var(--b-hairline);
  margin: var(--s-lg) 0;
  background: linear-gradient(90deg, transparent, var(--outline-soft), transparent);
}
.face-hero {
  min-height: 52px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-md);
}
.face-hero .tick {
  font-size: var(--t-tiny);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--lo);
  padding-bottom: var(--s-xs);
}
.face-triad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  min-height: 48px;
  align-items: center;
}
.face-triad > div {
  padding: var(--s-md) var(--s-sm);
  display: flex; flex-direction: column; gap: var(--s-xs);
  min-width: 0;
}
.face-triad > div + div { border-left: var(--b-thin) solid var(--outline-soft); }
.face-triad .lab {
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-compact);
  text-transform: uppercase;
  color: var(--md);
  line-height: 1;
}
.face-triad .val {
  font-family: var(--f-num);
  font-size: var(--t-data-compact);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-tight-num);
  color: var(--hi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.face-triad .val .unit {
  font-family: var(--f-ui);
  font-size: var(--t-cardinal);
  font-weight: var(--w-regular);
  color: var(--md);
  letter-spacing: 0;
  margin-left: 2px;
}

/* ═══ Ledger rows — NO left rail. Severity is a fixed micro column. ══ */
.ledger { display: flex; flex-direction: column; gap: var(--s-sm); }

.row {
  display: flex; align-items: center; gap: var(--s-xl);
  min-height: var(--row-h);
  padding: var(--s-xl) var(--s-xxl);
  background: var(--card);
  border-radius: var(--r);
  border: var(--b-hairline) solid transparent;  /* never border-left only */
}
.row .key {
  flex: 0 0 132px;
  font-family: var(--f-num);
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--steel-on);
  line-height: 1.3;
}
.row .body { flex: 1 1 auto; min-width: 0; }
.row .body .name {
  font-size: var(--t-header);
  font-weight: var(--w-semibold);
  color: var(--hi);
  letter-spacing: var(--ls-subtle);
}
.row .body .note {
  margin-top: var(--s-xxs);
  font-size: var(--t-caption);
  font-weight: var(--w-regular);
  line-height: 1.6;
  color: var(--md);
}
.row .body .micro-line {
  margin-top: var(--s-sm);
  font-size: var(--t-cardinal);
  font-weight: var(--w-regular);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--lo);
}
.row .hero-val {
  flex: 0 0 auto; text-align: right;
  font-family: var(--f-num);
  font-size: var(--t-body-lg);
  font-weight: var(--w-semibold);
  color: var(--hi);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight-num);
}
.row .hero-val .unit {
  font-family: var(--f-ui);
  font-size: var(--t-unit-sm);
  font-weight: var(--w-regular);
  text-transform: uppercase;
  color: var(--md);
  letter-spacing: 0;
  margin-left: 3px;
}

/* Sticky band header above a ledger */
.band {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--band-h);
  padding: var(--s-sm) var(--s-md);
  background: var(--card-alt);
  border-radius: var(--r);
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--lo);
}

/* ═══ Spec table ═════════════════════════════════════════════════════ */
.spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
}
.spec th, .spec td {
  text-align: left;
  padding: var(--s-xl) var(--s-xxl);
  border-bottom: var(--b-hairline) solid var(--outline-soft);
  vertical-align: top;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th {
  width: 240px;
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--md);
}
.spec td {
  font-family: var(--f-num);
  font-size: var(--t-caption);
  font-weight: var(--w-regular);
  color: var(--hi);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

/* Device captures retain their original aspect ratio. */
.shot { display: flex; flex-direction: column; gap: var(--s-lg); }

.shot-frame {
  position: relative;
  aspect-ratio: var(--ar, 1080 / 2400);
  background: var(--card-deep);
  border: var(--b-hairline) solid var(--outline-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: grid; place-items: center;
}
.shot-frame img { width: 100%; height: auto; object-fit: contain; }

.shot figcaption {
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--lo);
}

.shot--wide { --ar: 16 / 10; }
.shot--tablet { --ar: 1200 / 800; }
.shot--phone { width: 100%; max-width: 340px; margin-inline: auto; }

/* ═══ Split — text beside a visual ═══════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 56px; align-items: center;
}
.split--narrow-right { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }

.check { list-style: none; display: flex; flex-direction: column; gap: var(--s-xl); }
.check li {
  display: flex; align-items: flex-start; gap: var(--s-lg);
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--md);
}
.check li i { font-size: var(--icon-sm); color: var(--steel-on); margin-top: 2px; flex: 0 0 auto; }
.check li strong {
  display: block;
  font-size: var(--t-header);
  font-weight: var(--w-semibold);
  color: var(--hi);
  letter-spacing: var(--ls-subtle);
  margin-bottom: 2px;
}

/* ═══ CTA ════════════════════════════════════════════════════════════ */
.cta { text-align: center; }
.cta .section-lede { margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-lg); justify-content: center; }

.store-badge {
  display: inline-flex; align-items: center; gap: var(--s-xl);
  min-height: var(--tap);
  padding: var(--s-md) var(--s-block);
  border-radius: var(--r);
  background: var(--card-alt);
  border: var(--b-hairline) solid var(--outline);
  color: var(--hi);
}
.store-badge i { font-size: var(--icon-section); color: var(--glyph); }
.store-badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-badge-text small {
  font-size: var(--t-tiny);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--lo);
}
.store-badge-text strong {
  font-size: var(--t-body);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-subtle);
}

.cta-note {
  margin-top: var(--s-block);
  font-size: var(--t-unit-sm);
  letter-spacing: var(--ls-subtle);
  color: var(--lo);
}

/* ═══ Footer ═════════════════════════════════════════════════════════ */
.footer {
  background: var(--header);
  border-top: var(--b-hairline) solid var(--outline-soft);
  padding: 56px 0 0;
}
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-section);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand h4 {
  font-size: var(--t-body);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-extra);
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: var(--s-xl);
}

.footer-brand p {
  font-size: var(--t-caption);
  line-height: 1.65;
  color: var(--md);
  max-width: 42ch;
}
.footer-links h5 {
  font-size: var(--t-cardinal);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--lo);
  margin-bottom: var(--s-xl);
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-lg); }
.footer-links a { font-size: var(--t-caption); color: var(--md); }
.footer-links a:hover { color: var(--hi); }

.footer-bottom {
  max-width: var(--wrap); margin: 40px auto 0; padding: var(--s-section);
  border-top: var(--b-hairline) solid var(--outline-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-xl);
  font-size: var(--t-unit-sm);
  letter-spacing: var(--ls-subtle);
  color: var(--lo);
}

/* ═══ Legal pages ════════════════════════════════════════════════════ */
.legal { padding: calc(var(--header-h) + 64px) var(--s-section) 80px; min-height: 100vh; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-subtle);
  color: var(--hi);
  margin-bottom: var(--s-md);
}
.legal .last-updated {
  font-family: var(--f-num);
  font-size: var(--t-unit-sm);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--lo);
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}
.legal h2 {
  font-size: var(--t-unit-hero);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--steel-on);
  margin: 40px 0 var(--s-xl);
  padding-bottom: var(--s-lg);
  border-bottom: var(--b-hairline) solid var(--outline-soft);
}
.legal p, .legal li {
  font-size: var(--t-caption);
  line-height: 1.8;
  color: var(--md);
  margin-bottom: var(--s-xl);
}
.legal strong { color: var(--hi); font-weight: var(--w-semibold); }
.legal ul { padding-left: var(--s-block); margin-bottom: var(--s-xxxl); }
.legal li { margin-bottom: var(--s-md); }
.legal a { color: var(--steel-on); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--hi); }

/* ═══ Reveal — opacity only. Layout must not animate. ════════════════ */
.fade-in { opacity: 1; }
.fade-in.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; } }

/* ═══ Responsive — re-rhythm, not redesign ═══════════════════════════ */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .split, .split--narrow-right { grid-template-columns: 1fr; gap: 40px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--s-block); }
  .shot-frame { max-width: 420px; }
  .spec th { width: 180px; }
}

@media (max-width: 768px) {
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--header);
    border-bottom: var(--b-hairline) solid var(--outline-soft);
    padding: var(--s-xl) var(--s-section);
    gap: var(--s-xs);
  }
  .nav-links.open a { height: var(--tap); }

  .inst-strip { grid-template-columns: repeat(2, 1fr); }
  .row { flex-wrap: wrap; gap: var(--s-md); }
  .row .key { flex-basis: 100%; }
  .spec th, .spec td { display: block; width: auto; }
  .spec th { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 560px) {
  .domain-grid { grid-template-columns: 1fr; }
  .inst-strip { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .face-triad { grid-template-columns: 1fr; }
  .face-triad > div + div {
    border-left: 0;
    border-top: var(--b-thin) solid var(--outline-soft);
  }
}

/* Reading scale, accessible navigation and original screenshot proportions. */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; transform: translateY(-160%); padding: 12px 18px; background: var(--card-deep); color: var(--hi); border: 1px solid var(--steel-on); border-radius: var(--r); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--steel-on); outline-offset: 4px; }
.nav-brand, .footer-brand h4 { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.brand-mark { width: 22px; height: 25px; flex: 0 0 auto; }
.nav-links a { min-height: 44px; font-size: 14px; }
.nav-hamburger { display: none; align-items: center; justify-content: center; flex-direction: column; }
.nav-hamburger span { width: 100%; transition: transform var(--m-fast), opacity var(--m-fast); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.section-label { font-size: 13px; color: var(--steel-on); }
.section-title { font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -.4px; }
.section-title strong, .hero h1 strong { color: var(--hi); font-weight: 500; }
.section-lede { font-size: 22px; font-weight: 400; line-height: 1.55; }
.hero-lede { font-weight: 400; }
.support-copy { font-size: 19px; line-height: 1.6; color: var(--md); max-width: 48ch; margin-bottom: 24px; }
.screen-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; color: var(--md); letter-spacing: 1.5px; text-transform: uppercase; padding-bottom: 8px; }
.screen-label a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.shot { gap: 12px; }
.shot-frame { width: 100%; aspect-ratio: auto; border: var(--b-hairline) solid var(--outline-soft); border-radius: var(--r); background: var(--card-alt); }
.shot-frame img { width: 100%; height: auto; }
.shot figcaption { font-size: 14px; line-height: 1.5; font-weight: 400; text-transform: none; letter-spacing: .1px; color: var(--md); }
.showcase-shot { width: 100%; max-width: 320px; margin-inline: auto; }
.plain-check { gap: 0; }
.plain-check li { padding-block: 18px; border-top: 1px solid var(--outline-soft); }
.plain-check strong { font-size: 23px; margin-bottom: 4px; }
.plain-check li span { font-size: 19px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 16px; font-size: 18px; text-decoration: underline; text-underline-offset: 5px; }
.capture-note { margin-top: 32px; font-size: 15px; color: var(--md); }
.row { padding: 18px 14px; }
.row .key { font-size: 12px; line-height: 1.5; }
.row .body .name { font-weight: 500; line-height: 1.3; }
.row .body .note { margin-top: 6px; }
.hero-meta { max-width: 72rem; }
.hero-meta .chip { min-height: 44px; font-size: 13px; }
.btn { font-size: 16px; min-height: 50px; }
.btn-outline { background: transparent; border-color: var(--outline); color: var(--hi); }
.btn-outline:hover { background: var(--card); border-color: var(--steel-border); }
.cta-note { font-size: 16px; line-height: 1.7; }
.footer-links a { display: inline-block; min-height: 32px; padding-block: 4px; }
.footer-links h5 { font-size: 13px; }
.footer-bottom { font-size: 13px; }
.legal p, .legal li { font-size: 18px; }

/* Chart-led homepage. Captures stay complete — no overlay, no object-fit crop. */
.home-page section { padding-block: 104px; }
.home-page .hero { background: var(--header); padding: calc(var(--header-h) + 40px) 0 48px; }
.home-page .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.home-page .hero h1 { font-size: clamp(56px, 6vw, 84px); line-height: .98; letter-spacing: -1.6px; margin: 20px 0 24px; }
.home-page .hero-lede { font-size: 24px; line-height: 1.4; max-width: 34ch; margin-bottom: 28px; }
.hero-actions { align-items: center; gap: 24px; }
.hero-actions .text-link { margin: 0; }
.hero-platform { margin-top: 24px; font-size: 15px; color: var(--md); }
.hero-platform span { margin-inline: 8px; color: var(--lo); }
.hero-footnote { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--outline-soft); max-width: 380px; }
.hero-footnote p { margin-top: 10px; font-size: 20px; line-height: 1.4; color: var(--md); }
.hero-shot { max-width: 400px; width: 100%; margin: 0 0 0 auto; }
.hero-shot figcaption { max-width: 36ch; }
body:not(.home-page) .hero { padding: calc(var(--header-h) + 48px) 0 56px; }
.chart-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 22px; gap: 40px; }
.chart-index a { display: flex; align-items: center; min-height: 44px; gap: 18px; color: var(--hi); font-size: 20px; }
.chart-index a span:first-child { font-size: 13px; color: var(--md); font-variant-numeric: tabular-nums; }
.chart-index a span:last-child { margin-left: auto; color: var(--steel-on); }
.home-page #charts { border-top: 1px solid var(--outline-soft); }
.home-page .showcase { gap: 72px; }
.home-page #charts .section-lede { margin-bottom: 24px; }
.screen-section { background: var(--card); }
.instruments-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); gap: 72px; align-items: start; }
.instruments-layout .section-head { margin: 0; }
.instruments-layout .section-lede { margin-bottom: 24px; }
.screen-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.screen-gallery .shot { max-width: 280px; width: 100%; margin-inline: auto; }
.passage-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 80px; }
.passage-list > a {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--outline);
}
.passage-list > a:first-child { padding-top: 0; border-top: 0; }
.passage-list > a .section-label,
.passage-list > a h3,
.passage-list > a p { grid-column: 1; }
.passage-list h3 { font-size: 29px; font-weight: 500; color: var(--hi); margin: 6px 0; }
.passage-list p { font-size: 19px; color: var(--md); max-width: 49ch; }
.passage-arrow { grid-column: 2; grid-row: 1 / span 3; font-size: 24px; color: var(--steel-on); }
.passage-list > a:hover h3 { color: var(--steel-on); }
.passage-more { display: flex; flex-wrap: wrap; gap: 12px 32px; border-top: 1px solid var(--outline); }
.quiet-section { background: var(--card); }
.home-page .cta { background: var(--header); }
.home-page .cta .section-title { font-size: clamp(48px, 6vw, 76px); }
.home-page .cta .section-lede { max-width: 46ch; margin-bottom: 28px; }
@media (max-width: 1100px) {
  .home-page .hero-inner { gap: 40px; }
  .home-page .hero h1 { font-size: 68px; }
  .hero-shot { max-width: 340px; }
  .instruments-layout { gap: 40px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .home-page .showcase { gap: 48px; }
}
@media (max-width: 960px) {
  .home-page section { padding-block: 72px; }
  .home-page .hero h1 { font-size: 56px; }
  .home-page .hero-inner { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 28px; }
  .home-page .hero-lede { font-size: 22px; }
  .hero-footnote { margin-top: 28px; }
  .hero-platform span { margin-inline: 3px; }
  .home-page .showcase { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 40px; }
  .instruments-layout { grid-template-columns: 1fr; }
  .instruments-layout .section-head { max-width: 560px; }
  .screen-gallery { max-width: 650px; width: 100%; margin: auto; gap: 40px; }
  .passage-layout { gap: 40px; }
  .chart-index { gap: 16px; }
}
@media (max-width: 768px) {
  .chart-index { grid-template-columns: 1fr; gap: 0; padding-block: 12px; }
  .chart-index a { gap: 10px; font-size: 18px; padding-block: 12px; }
  .chart-index a + a { border-top: 1px solid var(--outline-soft); }
}
@media (max-width: 700px) {
  .nav-enhanced .nav-links { display: none; }
  .nav-enhanced .nav-hamburger { display: flex; }
  .nav:not(.nav-enhanced) { position: relative; height: auto; }
  .nav:not(.nav-enhanced) .nav-inner { flex-wrap: wrap; padding-block: 8px; }
  .nav:not(.nav-enhanced) .nav-links { display: flex; flex-wrap: wrap; }
  .nav:not(.nav-enhanced) .nav-hamburger { display: none; }
  .nav-enhanced .nav-links.open { display: flex; }
  .nav-links.open { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding-bottom: 20px; }
  .home-page .hero { padding: calc(var(--header-h) + 28px) 0 32px; }
  .home-page .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .home-page .hero h1 { font-size: clamp(48px, 10vw, 64px); letter-spacing: -.8px; margin: 16px 0 20px; }
  .home-page .hero-lede { font-size: 22px; max-width: 32ch; margin-bottom: 24px; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn { width: auto; padding-inline: 18px; }
  .hero-platform { font-size: 14px; margin-top: 20px; }
  .hero-footnote { display: none; }
  .hero-shot { max-width: 380px; margin-inline: auto; }
  .home-page section { padding-block: 56px; }
  .home-page .showcase, .passage-layout { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 0; }
  .section-lede { font-size: 21px; }
  .showcase-shot { max-width: 300px; }
  .screen-gallery { grid-template-columns: 1fr; gap: 36px; }
  .screen-gallery .shot { max-width: 320px; }
  .home-page #connect .showcase-shot { grid-row: 2; }
  .quiet-section .split { gap: 24px; }
}
