/* ═══════════════════════════════════════════════════════════════════════
   NavView — website styles

   The design language is the app's, not a web interpretation of it.
   Tokens are lifted from:
     app/src/main/java/com/navview/ui/theme/NavColors.kt   (surface + text ladders)
     app/src/main/java/com/navview/ui/theme/NavTheme.kt    (palette, alpha, spacing, type)
     app/src/main/java/com/navview/ui/theme/Theme.kt       (uniform 6dp shape)
     app/src/main/java/com/navview/ui/theme/Type.kt        (families)

   House rules carried over from the app — these are not stylistic
   preferences, they are enforced in the codebase:
     · Dark only. There is no light theme.
     · ONE radius: 6px. Everywhere.
     · No box-shadow, no blur, no glow. Depth is surface tier + hairline.
     · Dividers are gradient hairlines fading to transparent, never solid rules.
     · No coloured left rails on rows. Status is a micro label or type colour.
     · Never raw white or black text — only the three-tier text ladder.
     · Numerals are tabular and negatively tracked; labels are uppercase
       and positively tracked.
     · 44px is the touch floor. Not 48.
     · One accent (steel). Action blue is the CTA only.

   Hex literals belong ONLY in :root.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 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,.60);   /* secondary, labels              */
  --lo:    rgba(255,255,255,.38);   /* 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;

  /* ── Action — the CTA blue, and ONLY the CTA ── */
  --action:    #0284C7;
  --action-on: #001825;
  --charts:    #0369A1;
  --sky:       #38BDF8;   /* wordmark dot only, per deploy/assets/SPECS.md */

  /* ── 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:   52px;
  --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: 10px;
  --t-unit-sm: 11px; --t-caption: 12px; --t-header: 13px; --t-unit-hero: 14px;
  --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: 1140px;

  /* 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-brand .dot { color: var(--sky); font-weight: var(--w-semibold); }

.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;
}
.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;
}
/* Faint chart-grid substrate. Flat fill, no glow. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, var(--mask-opaque) 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, var(--mask-opaque) 10%, transparent 72%);
  pointer-events: none;
}
.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(--action); color: var(--action-on); }
.btn-primary:hover { background: var(--sky); color: var(--action-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;
}

/* ═══ Screenshot slots ═══════════════════════════════════════════════
   Placeholder frames. To swap in a real capture, replace the contents
   of .shot-frame with <img src="…" alt="…">. Aspect is held by --ar. */
.shot { display: flex; flex-direction: column; gap: var(--s-lg); }

.shot-frame {
  position: relative;
  aspect-ratio: var(--ar, 390 / 844);
  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: 100%; object-fit: cover; }

/* Placeholder interior — the app's own empty-state vocabulary:
   outlined monotone glyph → uppercase title → centred prose */
.shot-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-lg);
  padding: var(--s-block);
  text-align: center;
}
.shot-empty i { font-size: 44px; color: var(--lo); }
.shot-empty .title {
  font-family: var(--f-num);
  font-size: var(--t-data-name);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--hi);
  line-height: 1.15;
}
.shot-empty .prose {
  max-width: 240px;
  font-size: var(--t-caption);
  line-height: 1.4;
  color: var(--md);
}
.shot-empty .slot {
  margin-top: var(--s-xs);
  font-family: var(--f-num);
  font-size: var(--t-tiny);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-standard);
  text-transform: uppercase;
  color: var(--lo);
}
.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 h4 .dot { color: var(--sky); font-weight: var(--w-semibold); }
.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: 0; transition: opacity var(--m-cross) ease; }
.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 { display: none; }
  .nav-hamburger { display: block; }
  .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);
  }
}
