/* ============================================================
   Prohod — Landing Styles (Unslopped DS v3.1 «Obsidian & Apple Light»)
   Quiet horological precision instrument:
   - Obsidian Graphite (Dark) & Apple Light (Light)
   - Strict 4px spacing scale, sentence-case meta, weight 400–500 display
   - Quiet hairline architecture, zero ambient color washes, 0Hz idle
   - Credit: unslop methodology by Damir Sokolovsky (@heydamir), CC BY 4.0
   ============================================================ */

:root {
  color-scheme: dark;

  /* ── Neutral Graphite Ramp (L0–L4) ── */
  --bg-cavity: #0A0D13;
  --bg-base: #0E1117;
  --bg-rail: #10141C;
  --bg-card-top: #171C26;
  --bg-card-bottom: #141821;
  --bg-pass-top: #171C27;
  --bg-pass-bottom: #151A24;
  --bg-dock-top: #12161F;
  --bg-dock-bottom: #12161F;
  --bg-dock-well: #0B0E14;
  --bg-elevated: #1D2330;
  --bg-elevated-hover: #242B3B;
  --bg-floating-top: #1B212E;
  --bg-floating-bottom: #1B212E;

  /* ── Three Text Roles (WCAG AAA / AA+) ── */
  --ink-primary: #F4F6FA;
  --ink-muted: #A3AEBF;
  --ink-tertiary: #7D8799;

  /* ── Semantic Roles (used sparingly for live signal & states) ── */
  --status-success-fill: #20BC66;
  --status-success-text: #32DA7E;
  --status-success-soft: rgba(32, 188, 102, 0.11);
  --status-success-border: rgba(54, 207, 126, 0.24);
  --status-warning-fill: #D99B26;
  --status-warning-text: #E5AE44;
  --status-warning-soft: rgba(217, 155, 38, 0.12);
  --status-error-fill: #DC4E4E;
  --status-error-text: #E86E6E;
  --status-error-soft: rgba(220, 78, 78, 0.12);
  --status-error-border: rgba(232, 110, 110, 0.24);
  --accent-sky: #65BEE0;
  --status-info-text: #65BEE0;
  --accent-sky-soft: rgba(101, 190, 224, 0.11);
  --accent-sky-border: rgba(101, 190, 224, 0.24);
  --focus-ring: #65BEE0;

  /* ── Vitality / Horizon Trace ── */
  --vitality-healthy: #32A168;
  --vitality-head: #44BD7E;
  --vitality-wash: rgba(50, 161, 104, 0.11);
  --vitality-planned: rgba(125, 135, 153, 0.56);
  --vitality-baseline: rgba(161, 170, 184, 0.22);
  --vitality-node-cutout: #0B0E14;

  /* ── Goodwood Chronometer Dial Tokens ── */
  --champagne-gold: #D6BA84;
  --champagne-gold-soft: rgba(214, 186, 132, 0.14);
  --dial-bezel-0: #2C3445;
  --dial-bezel-1: #1C222F;
  --dial-bezel-2: #12161F;
  --dial-bezel-rim-0: rgba(255, 255, 255, 0.26);
  --dial-bezel-rim-1: rgba(255, 255, 255, 0.04);
  --dial-bezel-rim-2: rgba(0, 0, 0, 0.28);
  --dial-face-0: #131822;
  --dial-face-1: #0D1016;
  --dial-track: rgba(242, 244, 248, 0.10);
  --dial-tick: rgba(214, 224, 240, 0.58);
  --dial-tick-minor: rgba(168, 186, 214, 0.30);
  --dial-needle-light: #F2F4F8;
  --dial-needle-dark: #97A3B8;

  /* ── Quiet Hairlines (8% ramp tint, zero noisy multi-stop border hacks) ── */
  --border: rgba(242, 244, 248, 0.09);
  --border-strong: rgba(242, 244, 248, 0.18);
  --hairline: rgba(242, 244, 248, 0.075);
  --rim-top: rgba(255, 255, 255, 0.08);
  --rim-bottom: rgba(0, 0, 0, 0.24);
  --card-rim-border: linear-gradient(180deg, rgba(242, 244, 248, 0.10), rgba(242, 244, 248, 0.06));
  --card-rim-hover: linear-gradient(180deg, rgba(242, 244, 248, 0.18), rgba(242, 244, 248, 0.11));
  --cavity-rim-top: rgba(0, 0, 0, 0.28);
  --cavity-rim-bottom: rgba(255, 255, 255, 0.04);
  --card-shadow: none;
  --float-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  --seg-thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --flag-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
  --flag-rim: rgba(255, 255, 255, 0.16);
  --mark-outer-border: rgba(255, 255, 255, 0.22);
  --backdrop-scrim: rgba(7, 9, 14, 0.60);

  /* ── Buttons (flat solid surfaces + subtle top highlight on dark) ── */
  --cta-primary-bg: #F2F4F8;
  --cta-primary-hover: #FFFFFF;
  --cta-primary-ink: #0D1016;
  --cta-primary-rim: inset 0 1px 0 rgba(255, 255, 255, 0.90);
  --cta-secondary-bg: #181D28;
  --cta-secondary-hover: #202635;
  --cta-secondary-ink: #F2F4F8;
  --seg-thumb-bg: #1F2533;

  /* ── Flat Icon Containers ── */
  --well-idle-bg: #181D28;
  --well-glyph-idle: #A1AAB8;
  --well-glyph-active: #F2F4F8;
  --well-rim-outer: rgba(242, 244, 248, 0.08);
  --well-rim-inner: rgba(255, 255, 255, 0.06);

  /* ── Nav, Plinth, Orb & Routing ── */
  --nav-bg-scrolled: rgba(13, 16, 22, 0.88);
  --plinth-kerf: rgba(242, 244, 248, 0.08);
  --plinth-seam: rgba(242, 244, 248, 0.06);
  --plinth-divider: rgba(242, 244, 248, 0.10);
  --plinth-chip-bg: rgba(242, 244, 248, 0.04);

  --orb-well-stop-0: #070A0F;
  --orb-well-stop-1: #101520;
  --orb-well-stop-2: #181F2E;
  --orb-well-stroke: rgba(242, 244, 248, 0.10);
  --orb-flange-stroke: rgba(242, 244, 248, 0.08);
  --orb-moat: rgba(0, 0, 0, 0.62);
  --orb-ring-connected: #6ADCA0;
  --orb-ring-connecting: #8FD5F2;
  --orb-ring-idle: #C8D2E2;
  --orb-ring-alpha-boost: 1;
  --orb-contact-shadow: 0 8px 24px rgba(0, 0, 0, 0.44);
  --orb-ambient-opacity: 0;

  /* ── Zero-CDN Native Typography Stack ── */
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* ── Nested Radius Scale (outer 16 -> inner 12 -> controls 8 -> tags 6) ── */
  --r-card: 16px;
  --r-dock: 12px;
  --r-cta: 10px;
  --r-row: 10px;
  --r-control: 8px;
  --r-badge: 6px;
  --r-pill: 999px;

  /* ── 4px Grid Layout & Single Easing Motion ── */
  --maxw: 1152px;
  --pad: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-screen: 220ms;
  --dur-micro: 160ms;
  --dur-hover: 140ms;
}

/* ── Apple Light (Crisp Neutral Light — #F2F2F7 Canvas, #FFFFFF Cards, Apple Graphite rgba(29, 29, 31, ...), ZERO Pure-Black Shadows) ── */
html[data-theme="light"] {
  color-scheme: light;

  --bg-cavity: #E8E8ED;
  --bg-base: #F2F2F7;
  --bg-rail: #ECECF0;
  --bg-card-top: #FFFFFF;
  --bg-card-bottom: #FAFAFC;
  --bg-pass-top: #FFFFFF;
  --bg-pass-bottom: #FFFFFF;
  --bg-dock-top: #FFFFFF;
  --bg-dock-bottom: #FFFFFF;
  --bg-dock-well: #ECECF0;
  --bg-elevated: #EAEAEF;
  --bg-elevated-hover: #E0E0E6;
  --bg-floating-top: #FFFFFF;
  --bg-floating-bottom: #FFFFFF;

  --ink-primary: #1D1D1F;
  --ink-muted: #515154;
  --ink-tertiary: #6E6E73;

  --status-success-fill: #158046;
  --status-success-text: #116E3B;
  --status-success-soft: rgba(21, 128, 70, 0.09);
  --status-success-border: rgba(21, 128, 70, 0.24);
  --status-warning-fill: #B4690E;
  --status-warning-text: #8F5300;
  --status-warning-soft: rgba(180, 105, 14, 0.10);
  --status-error-fill: #C82834;
  --status-error-text: #B4232E;
  --status-error-soft: rgba(200, 40, 52, 0.09);
  --status-error-border: rgba(200, 40, 52, 0.22);
  --accent-sky: #0E7490;
  --status-info-text: #0B617A;
  --accent-sky-soft: rgba(14, 116, 144, 0.09);
  --accent-sky-border: rgba(14, 116, 144, 0.24);
  --focus-ring: #0B5F77;

  --vitality-healthy: #11723E;
  --vitality-head: #0D5C31;
  --vitality-wash: rgba(17, 114, 62, 0.10);
  --vitality-planned: rgba(81, 81, 84, 0.54);
  --vitality-baseline: rgba(29, 29, 31, 0.18);
  --vitality-node-cutout: #ECECF0;

  --champagne-gold: #826020;
  --champagne-gold-soft: rgba(130, 96, 32, 0.14);
  --dial-bezel-0: #EAEAEF;
  --dial-bezel-1: #DCDCE2;
  --dial-bezel-2: #D1D1D6;
  --dial-bezel-rim-0: transparent;
  --dial-bezel-rim-1: rgba(29, 29, 31, 0.14);
  --dial-bezel-rim-2: rgba(29, 29, 31, 0.24);
  --dial-face-0: #FFFFFF;
  --dial-face-1: #ECECF0;
  --dial-track: rgba(29, 29, 31, 0.12);
  --dial-tick: rgba(29, 29, 31, 0.62);
  --dial-tick-minor: rgba(29, 29, 31, 0.34);
  --dial-needle-light: #3A3A3C;
  --dial-needle-dark: #1D1D1F;

  /* Dual Specular Polarity: Apple Graphite #1D1D1F Hairlines & Shadows (zero pure-black alpha) */
  --border: rgba(29, 29, 31, 0.10);
  --border-strong: rgba(29, 29, 31, 0.20);
  --hairline: rgba(29, 29, 31, 0.08);
  --rim-top: transparent;
  --rim-bottom: rgba(29, 29, 31, 0.06);
  --card-rim-border: linear-gradient(180deg, rgba(29, 29, 31, 0.09), rgba(29, 29, 31, 0.13));
  --card-rim-hover: linear-gradient(180deg, rgba(29, 29, 31, 0.18), rgba(29, 29, 31, 0.22));
  --cavity-rim-top: rgba(29, 29, 31, 0.10);
  --cavity-rim-bottom: rgba(255, 255, 255, 0.65);
  --card-shadow: 0 1px 2px rgba(29, 29, 31, 0.05);
  --float-shadow: 0 10px 28px rgba(29, 29, 31, 0.10);
  --seg-thumb-shadow: 0 1px 2px rgba(29, 29, 31, 0.10);
  --flag-shadow: 0 1px 2px rgba(29, 29, 31, 0.14);
  --flag-rim: rgba(29, 29, 31, 0.18);
  --mark-outer-border: rgba(29, 29, 31, 0.16);
  --backdrop-scrim: rgba(29, 29, 31, 0.26);

  --cta-primary-bg: #1D1D1F;
  --cta-primary-hover: #2C2C2E;
  --cta-primary-ink: #FFFFFF;
  --cta-primary-rim: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --cta-secondary-bg: #F2F2F7;
  --cta-secondary-hover: #E5E5EA;
  --cta-secondary-ink: #1D1D1F;
  --seg-thumb-bg: #FFFFFF;

  --well-idle-bg: #ECECF0;
  --well-glyph-idle: #515154;
  --well-glyph-active: #1D1D1F;
  --well-rim-outer: rgba(29, 29, 31, 0.09);
  --well-rim-inner: transparent;

  --nav-bg-scrolled: rgba(242, 242, 247, 0.88);
  --plinth-kerf: rgba(29, 29, 31, 0.09);
  --plinth-seam: rgba(29, 29, 31, 0.08);
  --plinth-divider: rgba(29, 29, 31, 0.12);
  --plinth-chip-bg: rgba(29, 29, 31, 0.045);

  --orb-well-stop-0: #DCDCE2;
  --orb-well-stop-1: #E8E8ED;
  --orb-well-stop-2: #F2F2F7;
  --orb-well-stroke: rgba(29, 29, 31, 0.14);
  --orb-flange-stroke: rgba(29, 29, 31, 0.10);
  --orb-moat: rgba(29, 29, 31, 0.18);
  --orb-ring-connected: #116E3B;
  --orb-ring-connecting: #0E7490;
  --orb-ring-idle: #6E6E73;
  --orb-ring-alpha-boost: 1.4;
  --orb-contact-shadow: 0 8px 20px rgba(29, 29, 31, 0.12);
  --orb-ambient-opacity: 0;
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.26);
    --hairline: rgba(255, 255, 255, 0.22);
  }
  html[data-theme="light"] {
    --border: rgba(29, 29, 31, 0.34);
    --hairline: rgba(29, 29, 31, 0.28);
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--bg-base);
  color: var(--ink-primary);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-drawer-open,
body.is-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: var(--status-success-soft); color: var(--ink-primary); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.theme-seg__btn:focus-visible,
.apps-tab:focus-visible,
.nav__drawer a:focus-visible,
.drawer__close:focus-visible {
  outline-offset: -2px;
}

.grad { color: inherit; }

.link-accent {
  color: var(--status-info-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-sky-border);
  text-underline-offset: 3px;
  transition: color var(--dur-hover), text-decoration-color var(--dur-hover);
}
.link-accent:hover {
  text-decoration-color: var(--status-info-text);
}

/* ── Skip Link ── */
.skip-link {
  position: fixed;
  top: -100px;
  left: max(16px, env(safe-area-inset-left));
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--cta-primary-bg);
  color: var(--cta-primary-ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--float-shadow);
  transition: top var(--dur-micro) var(--ease);
}
.skip-link:focus {
  top: max(12px, env(safe-area-inset-top));
}

/* ── Scroll Progress ── */
.progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--status-success-fill);
}

.mark__outer-border {
  stroke: var(--mark-outer-border);
}
.mk-bg-0 { stop-color: #FFFFFF; }
.mk-bg-1 { stop-color: #F3F5F8; }
.mk-bg-2 { stop-color: #E3E8EE; }
.mk-sk-0 { stop-color: #FFFFFF; stop-opacity: 0.72; }
.mk-sk-1 { stop-color: #FFFFFF; stop-opacity: 0.18; }
.mk-sk-2 { stop-color: #FFFFFF; stop-opacity: 0; }
.mk-dk-0 { stop-color: #FFFFFF; }
.mk-dk-1 { stop-color: #F5F6F8; }
.mk-dk-2 { stop-color: #E6EAEF; }
.mk-gl-0 { stop-color: #20BC66; stop-opacity: 0.14; }
.mk-gl-1 { stop-color: #20BC66; stop-opacity: 0.05; }
.mk-gl-2 { stop-color: #128F4C; stop-opacity: 0; }
.mk-dt-0 { stop-color: #128F4C; stop-opacity: 0; }
.mk-dt-1 { stop-color: #128F4C; stop-opacity: 0.28; }
.mk-dt-2 { stop-color: #128F4C; stop-opacity: 0; }
.mk-ar-0 { stop-color: #3B4558; }
.mk-ar-1 { stop-color: #222938; }
.mk-ar-2 { stop-color: #10141C; }
.mk-ac-0 { stop-color: #3DE38B; }
.mk-ac-1 { stop-color: #1EA85D; }
.mk-ac-2 { stop-color: #128F4C; }
.mk-rm-0 { stop-color: #FFFFFF; stop-opacity: 0.92; }
.mk-rm-1 { stop-color: #FFFFFF; stop-opacity: 0.35; }
.mk-rm-2 { stop-color: #0E1117; stop-opacity: 0.04; }
.mk-rm-3 { stop-color: #0E1117; stop-opacity: 0.14; }
.mk-border { stroke: #FFFFFF; stroke-opacity: 0.22; }
html[data-theme="light"] .mk-border { stroke: #1D1D1F; stroke-opacity: 0.14; }
.mk-lens-bevel0 { stop-color: #FFFFFF; stop-opacity: 0.70; }
.mk-lens-bevel1 { stop-color: #FFFFFF; stop-opacity: 0.05; }

/* ── Navigation (Quiet 64px top bar, compact icon-only theme switcher) ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    max(var(--pad), env(safe-area-inset-right, 0px))
    12px
    max(var(--pad), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-screen) var(--ease), border-color var(--dur-screen) var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  flex: none;
  border-radius: var(--r-control);
}
.mark { width: 28px; height: 28px; flex: none; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
}
.nav__links a {
  position: relative;
  white-space: nowrap;
  padding: 6px 0;
  border-radius: var(--r-badge);
  transition: color var(--dur-hover);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink-primary);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: var(--r-pill);
  background: var(--ink-primary);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}
.nav__links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.ghost-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color var(--dur-hover);
  white-space: nowrap;
  border-radius: var(--r-badge);
}
.ghost-link:hover { color: var(--ink-primary); }

/* ── Compact Icon-Only 3-Way Segmented Theme Switch (quiet chrome) ── */
.theme-seg {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--r-control);
  background: var(--bg-cavity);
  border: 1px solid var(--hairline);
  gap: 2px;
}
.theme-seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink-tertiary);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 0;
  border-radius: var(--r-badge);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-hover), background-color var(--dur-micro), box-shadow var(--dur-micro);
}
.theme-seg__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.theme-seg__btn:hover { color: var(--ink-primary); }
html[data-theme-pref="dark"] .theme-seg__btn[data-theme-set="dark"],
html[data-theme-pref="light"] .theme-seg__btn[data-theme-set="light"],
html[data-theme-pref="system"] .theme-seg__btn[data-theme-set="system"],
.theme-seg__btn[aria-pressed="true"] {
  background: var(--seg-thumb-bg);
  color: var(--ink-primary);
  box-shadow: var(--seg-thumb-shadow);
}
.theme-seg__btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile menu toggle + backdrop + drawer */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-control);
  border: 1px solid var(--border);
  background: var(--cta-secondary-bg);
  color: var(--ink-primary);
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: border-color var(--dur-hover), background-color var(--dur-hover);
}
.nav__burger:hover { border-color: var(--border-strong); }
.nav__burger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.nav__burger .b-line {
  transform-box: view-box;
  transform-origin: 10px 10px;
  transition: transform var(--dur-micro) var(--ease), opacity var(--dur-micro) var(--ease);
}
.nav__burger[aria-expanded="true"] .b-line--top { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .b-line--mid { opacity: 0; }
.nav__burger[aria-expanded="true"] .b-line--bot { transform: translateY(-4px) rotate(-45deg); }

.nav__backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 88;
  background: var(--backdrop-scrim);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-screen) var(--ease), visibility 0s linear var(--dur-screen);
}
.nav__backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-screen) var(--ease), visibility 0s linear 0s;
}

.nav__drawer {
  display: flex;
  position: fixed;
  top: var(--drawer-top, calc(64px + env(safe-area-inset-top, 0px)));
  left: max(var(--pad), env(safe-area-inset-left, 0px));
  right: max(var(--pad), env(safe-area-inset-right, 0px));
  z-index: 89;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--bg-floating-top);
  border: 1px solid var(--border);
  box-shadow: var(--float-shadow);
  flex-direction: column;
  gap: 4px;
  max-height: calc(100dvh - var(--drawer-top, 72px) - 20px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(16px);
  transition: opacity var(--dur-screen) var(--ease), transform var(--dur-screen) var(--ease), visibility 0s linear var(--dur-screen);
}
.nav__drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity var(--dur-screen) var(--ease), transform var(--dur-screen) var(--ease), visibility 0s linear 0s;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 8px 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}
.drawer__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-tertiary);
}
.drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-control);
  border: 1px solid var(--border);
  background: var(--cta-secondary-bg);
  color: var(--ink-primary);
  cursor: pointer;
  transition: border-color var(--dur-hover), background-color var(--dur-hover);
}
.drawer__close:hover {
  border-color: var(--border-strong);
  background: var(--cta-secondary-hover);
}
.drawer__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__drawer a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-control);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: background-color var(--dur-hover), color var(--dur-hover);
}
.nav__drawer a:not(.btn):hover,
.nav__drawer a:not(.btn).is-active {
  background: var(--bg-elevated);
  color: var(--ink-primary);
}
.nav__drawer .drawer__theme {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px 4px 6px;
  margin-top: 6px;
  border-top: 1px solid var(--hairline);
}
.drawer__theme-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-tertiary);
  padding: 0 8px;
}
.theme-seg--drawer {
  width: 100%;
  justify-content: stretch;
}
.theme-seg--drawer .theme-seg__btn {
  flex: 1 1 0;
  width: auto;
  height: 36px;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}
.theme-seg--drawer .theme-seg__label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  display: inline;
  font-size: 12px;
}
.nav__drawer .drawer__login { display: none; }
.nav__drawer .drawer__cta { margin-top: 8px; min-height: 44px; }

/* ── Buttons (8px control radius, quiet flat surfaces, crisp press) ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-control);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-micro) var(--ease), background-color var(--dur-hover), border-color var(--dur-hover), color var(--dur-hover);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--r-control); }
.btn--lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: var(--r-control); }
.btn--full { width: 100%; }
.btn__arrow { transition: transform var(--dur-micro) var(--ease); display: inline-flex; }
.btn:hover .btn__arrow { transform: translateX(2px); }

.btn--primary {
  color: var(--cta-primary-ink);
  background: var(--cta-primary-bg);
  box-shadow: var(--cta-primary-rim);
}
.btn--primary:hover { background: var(--cta-primary-hover); }

.btn--ghost,
.btn--download {
  color: var(--cta-secondary-ink);
  background: var(--cta-secondary-bg);
  border-color: var(--border);
  box-shadow: var(--card-shadow);
}
.btn--ghost:hover,
.btn--download:hover {
  background: var(--cta-secondary-hover);
  border-color: var(--border-strong);
}

/* ── Calm Line Icons (one stroke 1.5, text-role ink, zero glossy tile clutter) ── */
.well {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-control);
  flex: none;
  background: var(--well-idle-bg);
  border: 1px solid var(--well-rim-outer);
  color: var(--well-glyph-idle);
}
.well--sm {
  width: 28px;
  height: 28px;
  border-radius: var(--r-badge);
}
.well--crimson {
  background: var(--status-error-soft);
  border-color: var(--status-error-border);
  color: var(--status-error-text);
}
.well svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.well--sm svg {
  width: 15px;
  height: 15px;
}

/* Unboxed crisp line icons inside editorial grids */
.card .well,
.arch-pillar .well,
.readiness-row .well {
  width: 20px;
  height: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink-tertiary);
}
.card .well svg,
.arch-pillar .well svg {
  width: 18px;
  height: 18px;
}
.readiness-row .well svg {
  width: 16px;
  height: 16px;
}

/* ── Generic Section & Sentence-Case Overline ── */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px var(--pad);
  scroll-margin-top: 72px;
}
.section--narrow { max-width: 820px; }
.section__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 3.8vw, 44px);
  color: var(--ink-primary);
}
.section__lead {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.58;
}

/* ── HERO (Clean Asymmetric Split: Copy Left + Horological Instrument Right) ── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px var(--pad) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 416px);
  gap: 56px;
  align-items: center;
}
.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(38px, 5.2vw, 64px);
  color: var(--ink-primary);
}
.hero__title .line { display: block; }
.hero__sub {
  margin-top: 20px;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.56;
}
.hero__cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__facts {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-tertiary);
}
.hero__facts span {
  display: inline-flex;
  align-items: center;
}

.chip {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 4px 10px;
  border-radius: var(--r-badge);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
}

/* ── Live Hero Instrument Panel (Quiet Hairline Frame + Signature Power Orb) ── */
.hero-instrument {
  position: relative;
  border-radius: var(--r-card);
  background: var(--bg-pass-top);
  border: 1px solid var(--border);
  box-shadow: var(--float-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.instrument__rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.instrument__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}
.instrument__stamp svg { width: 18px; height: 18px; flex: none; }
.instrument__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-badge);
  color: var(--status-success-text);
  background: var(--status-success-soft);
  border: 1px solid var(--status-success-border);
  transition: color var(--dur-screen), background-color var(--dur-screen), border-color var(--dur-screen);
}
.instrument__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--status-success-fill);
}
.hero-instrument[data-state="connecting"] .instrument__badge {
  color: var(--status-info-text);
  background: var(--accent-sky-soft);
  border-color: var(--accent-sky-border);
}
.hero-instrument[data-state="connecting"] .instrument__badge .dot {
  background: var(--accent-sky);
}
.hero-instrument[data-state="idle"] .instrument__badge {
  color: var(--ink-muted);
  background: var(--bg-cavity);
  border-color: var(--border);
}
.hero-instrument[data-state="idle"] .instrument__badge .dot {
  background: var(--ink-tertiary);
}

.instrument__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 20px;
}
.instrument__ambient {
  display: none;
}

/* Tactile Hero Power Orb Button + Contact Shadow */
.power-orb {
  position: relative;
  width: 208px;
  height: 208px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-micro) var(--ease);
}
.power-orb::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: var(--r-pill);
  box-shadow: var(--orb-contact-shadow);
  pointer-events: none;
  transition: transform var(--dur-micro) var(--ease), opacity var(--dur-micro);
}
.power-orb:active { transform: scale(0.975); }
.power-orb svg { position: relative; z-index: 1; width: 208px; height: 208px; display: block; overflow: visible; }

.orb-rings {
  color: var(--orb-ring-connected);
  transition: color 240ms var(--ease);
}
.hero-instrument[data-state="connecting"] .orb-rings { color: var(--orb-ring-connecting); }
.hero-instrument[data-state="idle"] .orb-rings { color: var(--orb-ring-idle); }

.orb-ring-outer { opacity: calc(0.20 * var(--orb-ring-alpha-boost)); }
.orb-ring-mid { opacity: calc(0.32 * var(--orb-ring-alpha-boost)); }
.orb-ring-inner { opacity: calc(0.50 * var(--orb-ring-alpha-boost)); }
.orb-ticks-fine { opacity: calc(0.30 * var(--orb-ring-alpha-boost)); }
.orb-ticks-major { opacity: calc(0.56 * var(--orb-ring-alpha-boost)); }
.orb-cardinals { opacity: calc(0.64 * var(--orb-ring-alpha-boost)); }

#orb-well-s0 { stop-color: var(--orb-well-stop-0); }
#orb-well-s1 { stop-color: var(--orb-well-stop-1); }
#orb-well-s2 { stop-color: var(--orb-well-stop-2); }
.orb-well { fill: url(#orb-well-grad); stroke: var(--orb-well-stroke); }
.orb-flange { stroke: var(--orb-flange-stroke); }
.orb-moat { stroke: var(--orb-moat); }

.orb-dome-layer { transition: opacity 220ms var(--ease); }
.orb-dome--idle,
.orb-dome--connecting,
.orb-dome--connected { opacity: 0; }
.hero-instrument[data-state="connected"] .orb-dome--connected { opacity: 1; }
.hero-instrument[data-state="connecting"] .orb-dome--connecting { opacity: 1; }
.hero-instrument[data-state="idle"] .orb-dome--idle { opacity: 1; }

.orb-hover-sheen { opacity: 0; transition: opacity var(--dur-hover); }
.power-orb:hover .orb-hover-sheen { opacity: 1; }

.orb-arch-layer { transition: opacity 220ms var(--ease); }
.orb-arch--idle { opacity: 0; }
.orb-arch--connected { opacity: 1; }
.hero-instrument[data-state="idle"] .orb-arch--idle,
.hero-instrument[data-state="connecting"] .orb-arch--idle { opacity: 1; }
.hero-instrument[data-state="idle"] .orb-arch--connected,
.hero-instrument[data-state="connecting"] .orb-arch--connected { opacity: 0; }

.orb-orbits { opacity: 0; transition: opacity 140ms var(--ease); }
.hero-instrument[data-state="connecting"] .orb-orbits { opacity: 1; }
.orb-orbit {
  fill: none;
  stroke: var(--orb-ring-connecting);
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 120px 120px;
}
.hero-instrument[data-state="connecting"] .orb-orbit--cw { animation: orbSpinCw 900ms linear infinite; }
.hero-instrument[data-state="connecting"] .orb-orbit--ccw { animation: orbSpinCcw 1200ms linear infinite; }
@keyframes orbSpinCw { to { transform: rotate(360deg); } }
@keyframes orbSpinCcw { to { transform: rotate(-360deg); } }

.orb-lockin {
  fill: none;
  stroke: var(--orb-ring-connected);
  stroke-width: 1.8;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 120px 120px;
}
.power-orb.is-locking .orb-lockin { animation: orbLockIn 480ms var(--ease) forwards; }
@keyframes orbLockIn {
  0% { opacity: 0.50; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.16); }
}

.instrument__status {
  margin-top: 12px;
  text-align: center;
  width: 100%;
}
.instrument__title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}
.instrument__sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  min-height: 20px;
  color: var(--ink-tertiary);
}

/* 2-Chamber Machined Instrument Plinth */
.plinth {
  position: relative;
  border-top: 1px solid var(--plinth-kerf);
  display: flex;
  flex-direction: column;
}
.plinth__deck {
  background: var(--bg-dock-top);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plinth__route {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.flag-plate {
  width: 30px;
  height: 21px;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
  display: block;
  box-shadow: var(--flag-shadow);
}
.flag-plate__rim { stroke: var(--flag-rim); }
.plinth__route-text b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.25;
  white-space: nowrap;
}
.plinth__route-text span {
  display: block;
  font-size: 12px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}
.plinth__metric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.plinth__metric b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--f-mono);
  color: var(--ink-primary);
  line-height: 1.25;
  white-space: nowrap;
}
.hero-instrument[data-state="connecting"] .plinth__metric b { color: var(--status-info-text); }
.hero-instrument[data-state="idle"] .plinth__metric b { color: var(--ink-muted); }
.plinth__metric span {
  display: block;
  font-size: 12px;
  color: var(--ink-tertiary);
}

.plinth__well {
  background: var(--bg-dock-well);
  border-top: 1px solid var(--plinth-seam);
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plinth__panel {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.hero-instrument[data-state="connected"] .plinth__panel--horizon { display: flex; }
.hero-instrument[data-state="connecting"] .plinth__panel--handshake { display: flex; }
.hero-instrument[data-state="idle"] .plinth__panel--idle { display: flex; }

.horizon-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.horizon-svg { width: 84px; height: 22px; flex: none; display: block; }
.horizon-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--status-success-text);
  white-space: nowrap;
}
.plinth__divider {
  width: 1px;
  height: 14px;
  flex: none;
  background: var(--plinth-divider);
}
.plinth__demo-note {
  font-size: 12px;
  color: var(--ink-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.handshake-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-tertiary);
}
.handshake-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color var(--dur-micro);
}
.handshake-step::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--ink-tertiary);
  opacity: 0.45;
  transition: background-color var(--dur-micro), opacity var(--dur-micro);
}
.handshake-step.is-active { color: var(--status-info-text); font-weight: 500; }
.handshake-step.is-active::before { background: var(--accent-sky); opacity: 1; }
.handshake-step.is-done { color: var(--status-success-text); }
.handshake-step.is-done::before { background: var(--status-success-fill); opacity: 1; }
.handshake-sep { opacity: 0.35; }

.plinth__chips { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: none; }
.plinth__chip {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-muted);
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--plinth-chip-bg);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

/* ── Features (Hairline-divided 3×2 editorial grid — zero card soup) ── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: transparent;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.bento .card:nth-child(3n) { border-right: 0; }
.bento .card:nth-child(n+4) { border-bottom: 0; }
.bento .card:nth-child(3n+1) { padding-left: 0; }
.bento .card:nth-child(3n) { padding-right: 0; }
.card .well { margin-bottom: 16px; }
.card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink-primary);
}
.card p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.58;
}

/* ── Native Apps Showcase (#apps — Goodwood Chronometer, Horizon Trace & Protected DNS) ── */
.apps-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.apps-tablist {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-cta);
  background: var(--bg-cavity);
  border: 1px solid var(--hairline);
  flex-wrap: wrap;
  justify-content: center;
}
.apps-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-badge);
  cursor: pointer;
  transition: color var(--dur-hover), background-color var(--dur-micro);
}
.apps-tab:hover { color: var(--ink-primary); }
.apps-tab[aria-selected="true"] {
  background: var(--seg-thumb-bg);
  color: var(--ink-primary);
  box-shadow: var(--seg-thumb-shadow);
}

.apps-panel[hidden] { display: none; }
.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 16px;
  align-items: stretch;
}

.showcase-card {
  position: relative;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.showcase-card--binnacle {
  background: var(--bg-pass-top);
  padding: 0;
  overflow: hidden;
}
.binnacle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline);
}
.binnacle__overline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}
.binnacle__tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-tertiary);
}
.binnacle__dial-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px 20px 16px;
}
.goodwood-dial {
  width: min(272px, 100%);
  height: auto;
  display: block;
}
.goodwood-dial text {
  font-family: var(--f-body);
  font-variant-numeric: tabular-nums;
}
.gw-bezel-0 { stop-color: var(--dial-bezel-0); }
.gw-bezel-1 { stop-color: var(--dial-bezel-1); }
.gw-bezel-2 { stop-color: var(--dial-bezel-2); }
.gw-bezel-rim-0 { stop-color: var(--dial-bezel-rim-0); }
.gw-bezel-rim-1 { stop-color: var(--dial-bezel-rim-1); }
.gw-bezel-rim-2 { stop-color: var(--dial-bezel-rim-2); }
.gw-face-0 { stop-color: var(--dial-face-0); }
.gw-face-1 { stop-color: var(--dial-face-1); }
.gw-scale-lbl {
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink-muted);
}
.gw-scale-lbl--gold { fill: var(--champagne-gold); }
.gw-val {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  fill: var(--ink-primary);
}
.gw-unit {
  font-size: 12px;
  font-weight: 500;
  fill: var(--ink-muted);
}
.gw-phase {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  fill: var(--status-success-text);
}
.binnacle__foot {
  background: var(--bg-dock-well);
  border-top: 1px solid var(--plinth-seam);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-tertiary);
}
.binnacle__foot b { color: var(--ink-primary); font-weight: 500; }

/* Right Column: Quiet 2×2 Crosshair Telemetry + Task Readiness */
.apps-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.crosshair-card {
  position: relative;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
.metric-cell {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-cell:nth-child(odd) { border-right: 1px solid var(--hairline); }
.metric-cell:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
.metric-cell__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-tertiary);
}
.metric-cell__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--status-success-fill);
  flex: none;
}
.metric-cell__val {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
}
.metric-cell__val small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 4px;
}

.readiness-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.readiness-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.readiness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.readiness-row:last-child { border-bottom: 0; padding-bottom: 0; }
.readiness-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-primary);
}
.readiness-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-badge);
  color: var(--status-success-text);
  background: var(--status-success-soft);
  border: 1px solid var(--status-success-border);
  white-space: nowrap;
}
.readiness-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  white-space: nowrap;
}
.readiness-status svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--status-success-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Tab 2: Horizon Trace + Locations Preview */
.horizon-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
.horizon-canvas-well {
  padding: 16px;
  border-radius: var(--r-dock);
  background: var(--bg-dock-well);
  border: 1px solid var(--hairline);
}
.horizon-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
}
.horizon-canvas-head b { color: var(--status-success-text); font-weight: 500; }
.horizon-canvas-head span { color: var(--ink-tertiary); font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
.horizon-lg-svg { width: 100%; height: 74px; display: block; }
.loc-list { display: flex; flex-direction: column; gap: 8px; }
.loc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-row);
  background: var(--bg-cavity);
  border: 1px solid var(--hairline);
}
.loc-row--active {
  background: var(--status-success-soft);
  border-color: var(--status-success-border);
}
.loc-row__l { display: flex; align-items: center; gap: 12px; }
.loc-row__l b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-primary); }
.loc-row__l span { display: block; font-size: 12px; color: var(--ink-tertiary); }
.loc-row__ms {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--status-success-text);
}

.feature-mini-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.feature-mini {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.feature-mini .well {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: transparent;
  border: 0;
  color: var(--ink-tertiary);
}
.feature-mini h3 {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 4px;
}
.feature-mini p {
  font-size: 14px;
  line-height: 1.52;
  color: var(--ink-muted);
}

/* Tab 3: Protected DNS Preview */
.dns-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-row);
  background: var(--bg-cavity);
  border: 1px solid var(--hairline);
}
.dns-row--active {
  background: var(--status-success-soft);
  border-color: var(--status-success-border);
}
.dns-row__l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dns-row__l b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-primary); }
.dns-row__l span { display: block; font-size: 12px; color: var(--ink-tertiary); font-family: var(--f-mono); }
.dns-callout {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-row);
  background: var(--bg-cavity);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ── Native Client Download Deck (#download — quiet cards + calm secondary buttons) ── */
.download-deck {
  margin-top: 48px;
  scroll-margin-top: 88px;
}
.download-deck__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.download-deck__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-top: 4px;
}
.download-deck__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 420px;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.dl-card .well {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  background: var(--well-idle-bg);
  border: 1px solid var(--well-rim-outer);
  border-radius: var(--r-control);
  color: var(--well-glyph-idle);
}
.dl-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl-card__title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.dl-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.dl-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vitality-healthy);
  border: 1px solid var(--border-strong);
  background: var(--well-idle-bg);
}
.dl-card__badge[hidden] { display: none; }
.dl-card--current {
  border-color: var(--vitality-healthy);
}
.dl-card__sublink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 2px 0;
  transition: color 140ms var(--ease);
}
.dl-card__sublink:hover { color: var(--ink-primary); }
.dl-card__head h4 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  margin: 0;
}
.dl-card__req {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-tertiary);
}
.dl-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.dl-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-card__actions .btn { min-height: 40px; }
.dl-card__meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.apps-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.apps-footer__note {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 600px;
}
.apps-footer__note b { color: var(--ink-primary); font-weight: 500; }

/* ── Protocols Precision Comparison Deck (#protocols) ── */
.section--split {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 48px;
  align-items: start;
}
.split__text { max-width: 440px; }
.proto-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proto-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.proto-card {
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proto-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}
.proto-card__head h3 {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-primary);
  white-space: nowrap;
}
.proto-badge {
  font-size: 12px;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: var(--r-badge);
  white-space: nowrap;
  color: var(--ink-muted);
  background: var(--bg-cavity);
  border: 1px solid var(--hairline);
}
.proto-badge--sky {
  color: var(--status-info-text);
  background: var(--accent-sky-soft);
  border: 1px solid var(--accent-sky-border);
}
.proto-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proto-spec {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.proto-spec dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-tertiary);
  margin-bottom: 4px;
}
.proto-spec dd {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.proto-legacy {
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--bg-cavity);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.proto-legacy .well {
  margin-top: 2px;
}
.proto-legacy__body h3 {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 4px;
}
.proto-legacy__body p {
  font-size: 13px;
  line-height: 1.54;
  color: var(--ink-muted);
}

/* ── Architecture & Technical Transparency (#architecture + <details class="tech-disclosure">) ── */
.apps-steps {
  margin-top: 40px;
}
.arch-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px auto 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.arch-pillar {
  padding: 24px 28px;
  border-right: 1px solid var(--hairline);
}
.arch-pillar:nth-child(3n) { border-right: 0; padding-right: 0; }
.arch-pillar:nth-child(3n+1) { padding-left: 0; }
.arch-pillar__h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.arch-pillar__t { font-family: var(--f-display); font-weight: 500; font-size: 16px; color: var(--ink-primary); }
.arch-pillar__d { font-size: 14px; line-height: 1.56; color: var(--ink-muted); }

.tech-disclosure {
  margin-top: 24px;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.tech-disclosure__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-primary);
}
.tech-disclosure__sum::-webkit-details-marker { display: none; }
.tech-disclosure[open] .tech-disclosure__sum .faq__chevron { transform: rotate(180deg); color: var(--ink-primary); }
.tech-disclosure__body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tech-compat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.tech-compat b { color: var(--ink-primary); font-weight: 500; }

/* ── Steps (Clean 3-Column Hairline Rail, Plain Mono Numerals) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}
.step {
  position: relative;
  text-align: left;
}
.step__num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}
.step p { color: var(--ink-muted); font-size: 14px; line-height: 1.58; }

/* ── Pricing (Flat Quiet Surface Cards — 100% compatible with plansHtml()) ── */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow);
}
.trial-banner__text h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  margin: 0 0 4px;
}
.trial-banner__text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}
.currency-seg {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 20px;
  border-radius: var(--r-control);
  background: var(--bg-cavity);
  border: 1px solid var(--border);
}
.currency-seg[hidden] { display: none; }
.currency-seg__btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: calc(var(--r-control) - 2px);
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.currency-seg__btn[aria-pressed="true"] {
  background: var(--bg-card-top);
  color: var(--ink-primary);
  box-shadow: var(--card-shadow);
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-hover);
}
.plan:hover { border-color: var(--border-strong); }
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.plan__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-muted);
}
.plan__save {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--vitality-healthy);
  border: 1px solid var(--border-strong);
  background: var(--well-idle-bg);
  white-space: nowrap;
}
.plan__permo {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
}
.plan__cta {
  margin-top: auto;
  padding-top: 20px;
}
.plans-included {
  margin: 20px auto 0;
  max-width: 780px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.plan__price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 44px;
}
.plan__price b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-primary);
}
.plan__price span { color: var(--ink-muted); font-size: 14px; }
.plan__price--na { align-items: center; }
.plan__price--na span { color: var(--ink-primary); font-size: 15px; font-weight: 500; line-height: 1.35; }
.plan__desc {
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-tertiary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.plan__list {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.42;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background-color: var(--ink-tertiary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 8.2l3.2 3.2L13 4.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 8.2l3.2 3.2L13 4.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pay-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px auto 0;
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}
.pay-footnote {
  text-align: center;
  margin-top: 8px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

/* ── FAQ (Clean Hairline Accordion List — zero card boxes) ── */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-primary);
  transition: color var(--dur-hover);
}
.faq__item summary:hover { color: var(--ink-primary); }
.faq__item summary:focus-visible { outline-offset: 2px; border-radius: var(--r-badge); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink-tertiary);
  transition: transform var(--dur-screen) var(--ease), color var(--dur-hover);
}
.faq__chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--ink-primary); }
.faq__body {
  padding: 0 0 20px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

/* ── Final CTA (Calm Flat Panel, Zero Radial Glow) ── */
.cta-final { padding: 48px var(--pad) 80px; max-width: var(--maxw); margin: 0 auto; }
.cta-final__panel {
  position: relative;
  text-align: center;
  padding: 64px var(--pad);
  border-radius: var(--r-card);
  background: var(--bg-card-top);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.cta-final h2 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink-primary);
  max-width: 18ch;
  margin-inline: auto;
}
.cta-final p {
  margin: 16px auto 28px;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 480px;
}
.cta-final__fine { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-tertiary); }
.cta-final__alt { margin-top: 8px; }
.cta-final__alt .ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 6px;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

/* ── Footer (Quiet, Zero Gradient Giant Wordmark) ── */
.footer {
  border-top: 1px solid var(--hairline);
  padding:
    56px
    max(var(--pad), env(safe-area-inset-right, 0px))
    calc(32px + env(safe-area-inset-bottom, 0px))
    max(var(--pad), env(safe-area-inset-left, 0px));
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { margin-top: 12px; color: var(--ink-muted); font-size: 14px; line-height: 1.5; max-width: 260px; }
.footer__cols { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer__cols h3 {
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-primary);
  margin-bottom: 12px;
}
.footer__cols a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  color: var(--ink-muted);
  font-size: 14px;
  transition: color var(--dur-hover);
  border-radius: var(--r-badge);
}
.footer__cols a:hover { color: var(--ink-primary); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
  padding-top: 20px;
  color: var(--ink-tertiary);
  font-size: 13px;
}

/* ── Reveal (Modest 8px rise, single easing, 0Hz idle after reveal) ── */
.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}

/* ── Responsive Breakpoints (Zero horizontal overflow at 1280px, 1024px, 390px, 320px) ── */
@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 40px; }
  .hero-instrument { max-width: 420px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card:nth-child(3n),
  .bento .card:nth-child(3n+1) { padding: 28px 24px; border-right: 1px solid var(--hairline); }
  .bento .card:nth-child(2n) { border-right: 0; padding-right: 0; }
  .bento .card:nth-child(2n+1) { padding-left: 0; }
  .bento .card:nth-child(n+4) { border-bottom: 1px solid var(--hairline); }
  .bento .card:nth-child(n+5) { border-bottom: 0; }
  .apps-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .section { padding: 64px var(--pad); }
  .brand { min-height: 44px; }
  .theme-seg__btn { width: 34px; height: 34px; }
  .dl-grid { grid-template-columns: 1fr; }
  .section--split { grid-template-columns: 1fr; gap: 32px; }
  .proto-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .arch-pillars { grid-template-columns: 1fr; }
  .arch-pillar,
  .arch-pillar:nth-child(3n),
  .arch-pillar:nth-child(3n+1) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .arch-pillar:last-child { border-bottom: 0; }
  .tech-disclosure__sum { padding: 16px 18px; font-size: 15px; }
  .tech-disclosure__body { padding: 16px 18px 18px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__cols a { min-height: 44px; padding: 10px 0; }
}
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .nav__actions { gap: 8px; }
  .nav__actions .theme-seg { display: none; }
  .nav .ghost-link { display: none; }
  .nav__drawer .drawer__theme { display: flex; }
  .nav__drawer .drawer__login { display: flex; }
  .hero {
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-bottom: 48px;
    gap: 32px;
  }
  .hero__title { font-size: clamp(32px, 8.6vw, 44px); line-height: 1.06; }
  .hero__sub { margin-top: 16px; font-size: 15px; line-height: 1.54; }
  .hero__cta { margin-top: 24px; gap: 10px; }
  .hero__cta .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .hero__facts { margin-top: 16px; gap: 6px 14px; font-size: 12px; }
  .bento { grid-template-columns: 1fr; }
  .bento .card,
  .bento .card:nth-child(2n),
  .bento .card:nth-child(2n+1),
  .bento .card:nth-child(3n),
  .bento .card:nth-child(3n+1) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .bento .card:last-child { border-bottom: 0; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .instrument__rail { padding: 12px 14px; }
  .plinth__well { padding: 0 14px; }
  .horizon-svg { width: 64px; }
  .metric-cell { padding: 16px; }
  .metric-cell__val { font-size: 22px; }
  .cta-final__panel { padding: 40px 20px; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .plinth__deck { padding: 12px 14px; gap: 8px; }
}
@media (max-width: 360px) {
  :root { --pad: 12px; }
}

/* ── BORT UI Icon Set (all 5 styles, isolated from legacy container svg strokes) ── */
svg.ui-ic {
  fill: none !important;
  stroke: none !important;
  stroke-width: 0 !important;
  --i-ink: currentColor;
  --i-acc: currentColor;
}
.well svg.ui-ic[data-ui-ic-role="active"],
.well svg.ui-ic--slabs {
  width: 20px;
  height: 20px;
  --i-ink: var(--ink-primary);
  --i-acc: var(--status-success-text);
  --i-bg: var(--well-idle-bg);
}
.card .well svg.ui-ic[data-ui-ic-role="active"],
.arch-pillar .well svg.ui-ic[data-ui-ic-role="active"],
.card .well svg.ui-ic--slabs,
.arch-pillar .well svg.ui-ic--slabs {
  width: 22px;
  height: 22px;
  --i-bg: var(--bg-base);
}
.well--crimson svg.ui-ic {
  --i-ink: var(--status-error-text);
  --i-acc: var(--status-error-text);
}
.theme-seg__btn svg.ui-ic,
.btn__arrow svg.ui-ic,
.faq__chevron svg.ui-ic,
.readiness-status svg.ui-ic {
  --i-ink: currentColor;
  --i-acc: currentColor;
}
.theme-seg__btn svg.ui-ic {
  width: 15px;
  height: 15px;
  display: block;
}
.btn__arrow svg.ui-ic {
  width: 16px;
  height: 16px;
  display: block;
}
.drawer__close svg.ui-ic {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── Compartment Lock-In Launch Curtain (One-shot, 0Hz idle after dismiss) ── */
.launch-curtain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 260;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  opacity: 1;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
html[data-launch="1"] .launch-curtain,
html[data-launch="out"] .launch-curtain {
  display: flex;
}
html[data-launch="out"] .launch-curtain {
  opacity: 0;
  transform: scale(1.016);
  pointer-events: none;
}
.launch-curtain__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
}
.launch-curtain__vessel {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6EBF2 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.44);
}
html[data-theme="light"] .launch-curtain__vessel {
  background: linear-gradient(180deg, #FFFFFF 0%, #E6EBF2 100%);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(29, 29, 31, 0.10);
}
.launch-curtain__vessel svg {
  width: 56px;
  height: 56px;
  display: block;
}
.lc-stop-p0 { stop-color: #3B4558; }
.lc-stop-p1 { stop-color: #10141C; }
.lc-stop-a0 { stop-color: #3DE38B; }
.lc-stop-a1 { stop-color: #128F4C; }
.lc-lens-disc { fill: #F2F5F8; fill-opacity: 0.92; }
.lc-lens-tint0 { stop-color: #0E1117; stop-opacity: 0.07; }
.lc-lens-tint1 { stop-color: #0E1117; stop-opacity: 0.02; }
.lc-lens-rim0 { stop-color: #FFFFFF; stop-opacity: 1; }
.lc-lens-rim1 { stop-color: #0E1117; stop-opacity: 0.30; }
.lc-lens-glint { stroke: #FFFFFF; stroke-opacity: 0.72; }

.lc-slab { opacity: 0; }
html[data-launch] .lc-slab--pillar {
  animation: lc-pillar-in 220ms var(--ease) 0ms forwards;
}
html[data-launch] .lc-slab--upper {
  animation: lc-upper-in 220ms var(--ease) 70ms forwards;
}
html[data-launch] .lc-slab--accent {
  animation: lc-accent-in 240ms var(--ease) 140ms forwards;
}
.launch-curtain__word {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-primary);
  opacity: 0;
  animation: lc-meta-in 200ms var(--ease) 140ms forwards;
}
.launch-curtain__track {
  width: 132px;
  height: 2px;
  border-radius: 2px;
  background: var(--hairline);
  overflow: hidden;
  opacity: 0;
  animation: lc-meta-in 200ms var(--ease) 150ms forwards;
}
.launch-curtain__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--status-success-text);
  transform-origin: left center;
  transform: scaleX(0.12);
  animation: lc-bar-fill 400ms var(--ease) 80ms forwards;
}
.launch-curtain__ctx {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: lc-meta-in 200ms var(--ease) 160ms forwards;
}
@keyframes lc-pillar-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lc-upper-in {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes lc-accent-in {
  from { opacity: 0; transform: translateX(-6px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lc-meta-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lc-bar-fill {
  from { transform: scaleX(0.12); }
  to { transform: scaleX(1); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .nav__drawer { transform: none; }
  .launch-curtain { display: none !important; }
}
