/* Exact Halo app palette (Android HaloTheme.kt + macOS Theme.swift) */
:root {
  --bg: #07121A;
  --bg-elev: #0B1923;
  --surface: #0E1E29;
  --surface-2: #17303F;
  --glow: #1A3F4E;
  --line: #1F3C4D;
  --line-strong: #2A4F65;
  --fg: #E5F2EE;
  --muted: #8FA8A5;
  --accent: #7DF5D6;
  --accent-dim: #3FBFA4;
  --accent-soft: rgba(125, 245, 214, 0.13);
  --accent-ink: #07121A;
  --soon: #F2C46A;
  --soon-bg: rgba(242, 196, 106, 0.14);
  --danger: #F26A6A;
  --dji-blue: #3b82d6;
  --display: "SF Pro Display", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "SF Pro Text", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F3F7F6;
  --bg-elev: #FFFFFF;
  --surface: #E6EEEC;
  --surface-2: #D8E6E2;
  --glow: #CFE5DF;
  --line: #C1D5D0;
  --line-strong: #A1BEB7;
  --fg: #07121A;
  --muted: #4B6561;
  --accent: #127A68;
  --accent-dim: #0E6153;
  --accent-soft: rgba(18, 122, 104, 0.11);
  --accent-ink: #FFFFFF;
  --soon: #9E6300;
  --soon-bg: rgba(158, 99, 0, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 90% 48% at 62% -6%, color-mix(in srgb, var(--glow) 45%, transparent), transparent 72%), var(--bg);
  color: var(--fg);
  font: 400 15.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font: 500 0.88em var(--mono);
  color: var(--accent);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
  word-break: break-word;
}

svg { display: block; }
svg:where(:not(.ill)) * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg .solid { fill: currentColor; stroke: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
}

.wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding-inline: max(18px, env(safe-area-inset-left, 0px));
}

/* HaloMark animation matching Theme.swift HaloMark(pulsing: true) */
@keyframes haloPulse {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.52); opacity: 0; }
}
.halo-badge-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 42%, var(--glow), var(--bg));
  border: 1px solid var(--line);
  flex: none;
}
.halo-badge-wrap.lg {
  width: 58px; height: 58px; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.halo-mark .pulse-svg {
  transform-box: view-box;
  transform-origin: 54px 45px;
  animation: haloPulse 1.8s ease-out infinite;
}
.halo-mark { width: 28px; height: 28px; color: var(--accent); overflow: visible; }
.halo-badge-wrap.lg .halo-mark { width: 44px; height: 44px; }

/* Top Navigation */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 44px; flex: none;
}
.brand > span:last-child { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
.brand strong { font-size: 19px; letter-spacing: -0.02em; font-weight: 700; }
.brand small { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
}
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 8px; min-height: 34px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--accent); background: var(--surface-2); }
.nav-pill { color: var(--fg) !important; background: var(--surface-2); }
.badge-mini {
  font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--soon-bg); color: var(--soon);
  padding: 4px 6px; border-radius: 999px;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn, .menu-btn {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  display: grid; place-items: center; cursor: pointer;
}
.theme-btn svg, .menu-btn svg { width: 19px; height: 19px; }
.theme-btn:hover, .menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 50px 58px;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  opacity: 0.25; filter: saturate(1.08);
}
:root[data-theme="light"] .hero-bg img { opacity: 0.08; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 72% 35%, transparent 8%, var(--bg) 78%),
              linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 36px; align-items: center;
}
.hero-copy, .hero-hud { min-width: 0; }

.hero-brand-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.hero-brand-row > div { min-width: 0; flex: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 600 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero-pills {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px;
}
.app-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--fg); padding: 5px 11px; border-radius: 999px;
  font: 500 11.5px/1.25 var(--mono);
}

h1 {
  font: 700 clamp(34px, 4.5vw, 54px)/1.06 var(--display);
  letter-spacing: -0.025em; margin: 12px 0 18px;
}
.lede {
  font-size: 17.5px; color: var(--muted); max-width: 55ch; margin: 0 0 26px;
}
.lede strong { color: var(--fg); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--body); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hud-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 0;
}
.hud-stats > div {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px;
}
.hud-stats dt { font: 600 10px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hud-stats dd { margin: 5px 0 0; font: 600 13.5px/1.2 var(--mono); color: var(--fg); }

/* Interactive Goggles UI Mockup (live-themable HaloOS 0.9.0 styles) */
.hud-shell {
  --hud-bg: #07121A;
  --hud-surface: #0E1E29;
  --hud-surface-2: #17303F;
  --hud-sidebar: #0B1923;
  --hud-line: #1F3C4D;
  --hud-fg: #E5F2EE;
  --hud-muted: #8FA8A5;
  --hud-accent: #7DF5D6;
  --hud-accent-ink: #07121A;
  --hud-active-tab: var(--dji-blue);
  --hud-active-tab-ink: #FFFFFF;
  background: var(--hud-bg);
  color: var(--hud-fg);
  border: 1px solid var(--hud-line);
  border-radius: 18px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(125,245,214,0.08);
  overflow: hidden;
  transition: border-color .2s, background-color .2s;
}
.hud-shell[data-hud-theme="dji"] {
  --hud-bg: #11151B;
  --hud-surface: #181E27;
  --hud-surface-2: #222A36;
  --hud-sidebar: #141920;
  --hud-line: #2C3747;
  --hud-accent: #F2C46A;
  --hud-accent-ink: #11151B;
  --hud-active-tab: #3b82d6;
}
.hud-shell[data-hud-theme="night"] {
  --hud-bg: #060709;
  --hud-surface: #0D1014;
  --hud-surface-2: #161B22;
  --hud-sidebar: #090B0E;
  --hud-line: #242A34;
  --hud-fg: #D7DCE2;
  --hud-muted: #7C8794;
  --hud-accent: #E28B5A;
  --hud-accent-ink: #060709;
  --hud-active-tab: #E28B5A;
  --hud-active-tab-ink: #060709;
}
.hud-shell[data-hud-theme="contrast"] {
  --hud-bg: #000000;
  --hud-surface: #0A0C0A;
  --hud-surface-2: #151A14;
  --hud-sidebar: #040504;
  --hud-line: #3C4722;
  --hud-fg: #FFFFFF;
  --hud-muted: #C2D0A4;
  --hud-accent: #E8FF47;
  --hud-accent-ink: #000000;
  --hud-active-tab: #E8FF47;
  --hud-active-tab-ink: #000000;
}
.hud-shell[data-hud-theme="fdji"] {
  --hud-bg: #120612;
  --hud-surface: #1B0B1A;
  --hud-surface-2: #2A1026;
  --hud-sidebar: #160815;
  --hud-line: #491A42;
  --hud-fg: #FCEBF6;
  --hud-muted: #C393B8;
  --hud-accent: #FF3B9A;
  --hud-accent-ink: #120612;
  --hud-active-tab: #FF3B9A;
  --hud-active-tab-ink: #120612;
}
.hud-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--hud-line); background: var(--hud-surface);
  font: 500 12px/1.2 var(--mono);
}
.hud-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--hud-accent); }
.hud-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--hud-accent); box-shadow: 0 0 8px var(--hud-accent); }
.hud-chip.muted { color: var(--hud-muted); }
.hud-theme-pill {
  border: 1px solid var(--hud-line); background: var(--hud-surface-2); color: var(--hud-fg);
  font: 500 11px/1 var(--mono); padding: 5px 9px; border-radius: 999px; cursor: pointer;
}
.hud-theme-pill:hover { border-color: var(--hud-accent); color: var(--hud-accent); }

.hud-screen {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  min-height: 335px;
  background: radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--hud-accent) 11%, transparent), transparent 55%), var(--hud-bg);
}
.hud-sidebar {
  border-right: 1px solid var(--hud-line);
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--hud-sidebar);
}
.hud-cat-label {
  font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--hud-muted); padding: 4px 8px 8px;
}
.hud-tab {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--hud-muted);
  font: 500 13px/1.2 var(--body); cursor: pointer;
}
.hud-tab svg { width: 16px; height: 16px; flex: none; color: var(--hud-accent); }
.hud-tab:hover { background: var(--hud-surface-2); color: var(--hud-fg); }
.hud-tab.is-active { background: var(--hud-active-tab); color: var(--hud-active-tab-ink); font-weight: 600; }
.hud-tab.is-active svg { color: var(--hud-active-tab-ink); }

.hud-panel { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.hud-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--hud-line); margin-bottom: 2px;
}
.hud-panel-head strong { font: 600 14px/1.2 var(--display); color: var(--hud-accent); }
.hud-panel-head span { font: 500 11px/1 var(--mono); color: var(--hud-muted); }

.hud-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; border-radius: 11px; background: var(--hud-surface);
  border: 1px solid var(--hud-line);
}
.hud-row-text { min-width: 0; }
.hud-row-title { font: 500 13.5px/1.25 var(--body); color: var(--hud-fg); }
.hud-row-sub { font: 400 11.5px/1.3 var(--mono); color: var(--hud-muted); margin-top: 2px; }

.hud-switch {
  flex: none; width: 42px; height: 24px; border-radius: 999px; border: 0;
  background: var(--hud-surface-2); position: relative; cursor: pointer; transition: background .15s;
}
.hud-switch::after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--hud-fg); transition: transform .15s;
}
.hud-switch.on { background: var(--hud-accent); }
.hud-switch.on::after { transform: translateX(18px); background: var(--hud-accent-ink); }

.hud-action-btn {
  flex: none; border: 1px solid var(--hud-line); background: var(--hud-surface-2); color: var(--hud-accent);
  font: 500 12px/1 var(--mono); padding: 7px 11px; border-radius: 8px; cursor: pointer;
}
.hud-action-btn:hover { border-color: var(--hud-accent); }

/* In-browser Goggles Wireframe HUD & Music Transport previews */
.hud-wireframe-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 11px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--hud-accent) 16%, var(--hud-bg)), var(--hud-bg));
  border: 1px solid color-mix(in srgb, var(--hud-accent) 45%, var(--hud-line));
}
.hud-wireframe-meta { font: 500 11px/1.45 var(--mono); color: var(--hud-muted); }
.hud-wireframe-meta strong { display: block; color: var(--hud-accent); font-size: 11.5px; letter-spacing: .06em; margin-bottom: 3px; }
.hud-wireframe-svg { width: 84px; height: 52px; color: var(--hud-accent); flex: none; }

.hud-transport {
  padding: 10px 12px; border-radius: 11px;
  background: var(--hud-surface-2);
  border: 1px solid color-mix(in srgb, var(--hud-accent) 55%, var(--hud-line));
  display: flex; flex-direction: column; gap: 8px;
}
.hud-transport-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hud-transport-title {
  font: 600 12px/1.2 var(--mono); color: var(--hud-fg); letter-spacing: .04em; text-transform: uppercase;
}
.hud-transport-btns { display: flex; align-items: center; gap: 6px; }
.hud-tbtn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--hud-line); background: var(--hud-bg); color: var(--hud-fg);
  display: grid; place-items: center; cursor: pointer; font: 700 11px/1 var(--mono);
}
.hud-tbtn.is-active, .hud-tbtn:hover {
  border-color: var(--hud-accent); background: var(--hud-accent); color: var(--hud-accent-ink);
}
.hud-progress { height: 4px; border-radius: 999px; background: var(--hud-bg); overflow: hidden; }
.hud-progress > span { display: block; height: 100%; background: var(--hud-accent); border-radius: 999px; transition: width .2s; }

.hud-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 16px; border-top: 1px solid var(--hud-line); background: var(--hud-surface);
  font: 400 12px/1.2 var(--body); color: var(--hud-muted);
}

/* Sections */
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; max-width: 70ch; }
.section-head h2 {
  font: 700 clamp(26px, 3.2vw, 38px)/1.12 var(--display);
  letter-spacing: -0.025em; margin: 10px 0 10px;
}
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }

/* Feature Cards matching Theme.swift Card (cornerRadius 16, Ink2) */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
  display: grid; place-items: center;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font: 600 19px/1.25 var(--display); margin: 2px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card strong { color: var(--fg); }
.card-meta {
  list-style: none; margin: auto 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 6px; font-size: 13.5px; color: var(--muted);
}
.card-meta li { position: relative; padding-left: 14px; }
.card-meta li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* Video Demos */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.demo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.demo-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.demo-frame {
  position: relative; overflow: hidden;
  background: #07121A; aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}
.demo-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.demo-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.demo-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: 500 11.5px/1 var(--mono); color: var(--muted);
}
.demo-badge {
  color: var(--accent); background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 999px; font-weight: 600;
}
.demo-body h3 { font: 600 18px/1.25 var(--display); margin: 4px 0 0; }
.demo-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.demo-chapters {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.chapter-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 30px; padding: 4px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font: 500 11.5px/1 var(--mono); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.chapter-btn:hover, .chapter-btn.is-active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.chapter-btn strong { color: var(--fg); font-weight: 600; }
.chapter-btn.is-active strong { color: var(--accent); }

/* Connections SVG */
.arch-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; overflow-x: auto;
}
.arch-svg { width: 100%; min-width: 720px; height: auto; }
.arch-node { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.arch-node-accent { fill: radial-gradient(#1A3F4E, #07121A); fill: color-mix(in srgb, var(--glow) 32%, var(--bg)); stroke: var(--accent); stroke-width: 1.8; }
.arch-edge { stroke: var(--accent); stroke-width: 2; }
.arch-arrow-fill { fill: var(--accent); stroke: none; }
.arch-svg text { stroke: none; font-family: var(--body); }
.arch-kicker { fill: var(--muted); font: 600 10.5px/1 var(--mono); letter-spacing: .1em; }
.arch-kicker-accent { fill: var(--accent); }
.arch-title { fill: var(--fg); font: 600 16px/1.2 var(--display); }
.arch-title-lg { fill: var(--fg); font: 700 18px/1.2 var(--display); }
.arch-desc { fill: var(--muted); font: 400 12px/1.2 var(--body); }
.compat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 16px;
}

/* Comparison Table */
.table-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 18px 12px;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 13px 10px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; }
thead th {
  border-top: 0; font: 600 12px/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
tbody th { text-align: left; font-weight: 500; }
td, thead th:not(:first-child) { width: 25%; }
.hc { background: color-mix(in srgb, var(--accent) 8%, transparent); }
thead .hc { color: var(--accent); border-radius: 10px 10px 0 0; }
.tick { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; position: relative; }
.tick.yes { background: var(--accent); }
.tick.yes::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
  border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.tick.no { border: 2px solid var(--line-strong); }
.tick.no::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 8px;
  height: 2px; background: var(--muted);
}
.val { font: 500 13px var(--mono); color: var(--muted); }
.accent-val { color: var(--fg); }

/* Ecosystem */
.eco-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  background: linear-gradient(125deg, var(--surface), color-mix(in srgb, var(--glow) 38%, var(--surface)));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 20px;
}
.eco-banner-left { display: flex; align-items: center; gap: 16px; }
.eco-app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.eco-banner h3 { font: 600 18px/1.2 var(--display); margin: 0 0 4px; }
.eco-banner p { margin: 0; font-size: 14px; color: var(--muted); }
.eco-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
}
.roadmap-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.roadmap-grid .eco-card {
  flex: 1 1 280px; max-width: 364px;
}
.eco-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.eco-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eco-top svg { width: 22px; height: 22px; color: var(--accent); }
.eco-tag {
  font: 500 11px/1 var(--mono); color: var(--fg);
  background: var(--surface-2); padding: 4px 9px; border-radius: 999px;
}
.eco-card h3 { font: 600 17px/1.25 var(--display); margin: 4px 0 0; }
.eco-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.eco-link {
  margin-top: auto; padding-top: 6px; width: fit-content;
  font: 600 13.5px/1.2 var(--display); color: var(--accent); text-decoration: none;
}
.eco-link:hover { text-decoration: underline; }

/* Companion App Screenshots */
.app-shots {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}
.shot-stack {
  display: flex; flex-direction: column; gap: 18px;
}
.shot-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.shot-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.shot-head h3 { font: 600 17px/1.25 var(--display); margin: 8px 0 0; }
.shot-phones {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin: auto 0;
}
.phone-frame {
  margin: 0; padding: 6px; border-radius: 22px;
  background: #07121A; border: 1px solid var(--line-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}
.phone-frame img {
  width: 100%; height: auto; border-radius: 16px;
}
.shot-desktop {
  margin: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #07121A;
}
.shot-desktop img { width: 100%; height: auto; }

/* Media & Brand Downloads */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.media-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.media-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.media-thumb {
  background: #07121A; border-bottom: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.media-wide .media-thumb { border-bottom: 0; border-right: 1px solid var(--line); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-icon {
  min-height: 190px; padding: 28px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--glow) 55%, #07121A), #07121A);
}
.media-thumb-icon img { width: 104px; height: 104px; object-fit: contain; }
.media-body {
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.media-body h3 { font: 600 18px/1.25 var(--display); margin: 8px 0 6px; }
.media-body p { margin: 0; font-size: 14.5px; color: var(--muted); }
.media-audio-player { width: 100%; height: 40px; accent-color: var(--accent); border-radius: 10px; }
.media-wide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Interactive WebUSB Installer */
.installer-card {
  background: linear-gradient(155deg, var(--surface), color-mix(in srgb, var(--glow) 22%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 18px; padding: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}
.installer-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
}
.installer-head h2 { font: 700 clamp(24px, 3vw, 32px)/1.15 var(--display); margin: 8px 0 8px; }
.status-pill {
  font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--soon-bg); color: var(--soon); padding: 8px 12px; border-radius: 999px;
}
.status-pill.is-live {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

/* Hardware Target Selector */
.inst-targets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.inst-target {
  text-align: left; cursor: pointer; min-width: 0;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color .16s ease, background .16s ease;
}
.inst-target:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.inst-target.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.inst-target-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.inst-target-top strong { font: 600 14.5px/1.25 var(--display); }
.inst-target[data-target="integra"]:not(.is-active),
.inst-target[data-target="o3"]:not(.is-active) { opacity: .82; }
.inst-tag {
  font: 700 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.inst-tag.is-ready {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.inst-tag.is-preview {
  background: var(--soon-bg);
  color: var(--soon);
}

/* 4-Step Pipeline */
.pipeline {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px;
}
.pipeline li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .16s ease, background .16s ease;
}
.pipeline li.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.pipeline li.is-done {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.step-num { font: 700 12px/1 var(--mono); color: var(--accent); }
.pipeline strong { font: 600 14.5px/1.3 var(--display); }
.pipeline small { font: 400 12.5px/1.4 var(--body); color: var(--muted); }

/* Landing page Web Installer link bar */
.inst-link-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.inst-link-meta {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.inst-link-meta > div {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 13.5px; color: var(--muted);
}
.inst-link-meta strong { color: var(--fg); }
.inst-sha-line code {
  font: 500 12px/1.3 var(--mono); color: var(--accent);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  word-break: break-all;
}

/* Separate Web Installer Page */
.nav-pill.is-current {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border-color: var(--accent);
  color: var(--fg);
}
.inst-page {
  width: min(920px, 100%); padding-block: 34px 72px;
  display: flex; flex-direction: column; gap: 18px;
}
.inst-page > *, .inst-step-card > *, .inst-ver-box > * {
  min-width: 0; max-width: 100%;
}
.inst-page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 4px;
}
.inst-page-head > div, .inst-step-head > div, .inst-ver-row > div, .inst-ver-sha-row > div {
  min-width: 0; max-width: 100%;
}
.inst-back {
  display: inline-block; margin-bottom: 8px; font: 600 13px/1.2 var(--display);
  color: var(--accent); text-decoration: none;
}
.inst-back:hover { text-decoration: underline; }
.inst-page-head h1 {
  font: 700 clamp(26px, 3.6vw, 36px)/1.12 var(--display); margin: 0 0 6px;
}
.inst-hint {
  margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted);
}
.inst-page-badges {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.inst-step-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.inst-step-card.is-locked {
  border-color: color-mix(in srgb, var(--soon) 35%, var(--line));
}
.inst-step-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.inst-step-card[data-collapsible="true"] > .inst-step-head {
  cursor: pointer; user-select: none;
}
.inst-step-card.is-collapsed {
  padding-top: 16px; padding-bottom: 16px; gap: 0;
}
.inst-step-card.is-collapsed > :not(.inst-step-head) {
  display: none;
}
.inst-step-card.is-collapsed .inst-step-head .inst-hint {
  display: none;
}
.inst-head-right {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.inst-head-meta {
  font: 500 12px/1.2 var(--mono); color: var(--muted);
}
.inst-chevron {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.inst-step-card.is-collapsed .inst-chevron {
  transform: rotate(-90deg);
}
.inst-step-card[data-collapsible="true"] > .inst-step-head:hover .inst-chevron {
  color: var(--fg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.inst-diag-optin {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-size: 12.5px; line-height: 1.45; color: var(--muted);
  padding: 9px 11px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
}
.inst-diag-optin input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer;
}
.inst-diag-optin code { font-family: var(--mono); font-size: 11.5px; color: var(--fg); }
.inst-diag-optin a { color: var(--accent); text-decoration: underline; }
.inst-step-head h2 {
  font: 700 20px/1.2 var(--display); margin: 4px 0 0;
}
.inst-lock-banner {
  background: var(--soon-bg); color: var(--soon);
  border: 1px solid color-mix(in srgb, var(--soon) 35%, transparent);
  border-radius: 10px; padding: 10px 13px; font-size: 13.5px; line-height: 1.45;
}
.inst-lock-banner[hidden] { display: none; }
.inst-help-box {
  background: var(--soon-bg); color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--soon) 45%, transparent);
  border-radius: 11px; padding: 12px 14px; font-size: 13.2px; line-height: 1.5;
}
.inst-help-box[hidden] { display: none; }
.inst-help-box.is-ok {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.inst-help-box strong {
  display: block; font: 700 13.5px/1.3 var(--display); color: var(--soon); margin-bottom: 5px;
}
.inst-help-box.is-ok strong { color: var(--accent); }
.inst-help-box ol {
  margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; color: var(--muted);
}
.inst-flow-list {
  margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px;
  font-size: 12.8px; line-height: 1.5; color: var(--muted);
}
.inst-flow-list strong { color: var(--fg); }

.inst-step-card, .inst-help-box, .inst-progress-card, #inst-verify-btn, #inst-deploy-btn {
  scroll-margin-top: 84px;
}
@keyframes instFocusPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent); }
  45% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.inst-focus-pulse {
  animation: instFocusPulse 1.1s ease-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .inst-focus-pulse { animation: none; }
}

/* Release Version & SHA Box */
.inst-ver-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.inst-ver-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px;
}
.inst-ver-label {
  display: block; font: 600 11px/1.2 var(--mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 4px;
}
.inst-ver-row strong { font: 700 17px/1.25 var(--display); color: var(--fg); }
.inst-ver-row code, .inst-ver-sha-row code {
  display: block; font: 500 12.2px/1.4 var(--mono); color: var(--accent);
  overflow-wrap: anywhere; word-break: break-all;
}
.inst-ver-sha-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.inst-copy-btn {
  min-height: 40px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line);
  font: 600 12px/1 var(--mono); flex: none;
}
.inst-copy-btn:hover { border-color: var(--accent); }
.inst-sha-details {
  font-size: 13px; color: var(--muted);
}
.inst-sha-details summary {
  cursor: pointer; font-weight: 600; color: var(--fg); padding-block: 6px;
}
.inst-sha-list {
  display: flex; flex-direction: column; gap: 7px; margin-top: 8px;
}
.inst-sha-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; display: grid; grid-template-columns: 140px 72px minmax(0, 1fr); gap: 8px; align-items: center;
}
.inst-sha-item strong { font: 600 12.5px/1.2 var(--mono); color: var(--fg); }
.inst-sha-item span { font: 500 11.5px/1.2 var(--mono); color: var(--muted); }
.inst-sha-item code { font: 500 11.5px/1.25 var(--mono); color: var(--accent); overflow-wrap: anywhere; word-break: break-all; }
.inst-options-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.btn:disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}

.inst-progress-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; transition: border-color .25s ease, box-shadow .25s ease;
}
@keyframes instProgressPulse {
  0%, 100% {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 28%, transparent);
  }
  50% {
    border-color: color-mix(in srgb, var(--accent) 85%, var(--line));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
  }
}
.inst-progress-card.is-running {
  animation: instProgressPulse 2.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .inst-progress-card.is-running {
    animation: none;
    border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  }
}
.inst-box-sub {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted);
}
.inst-conn-badge, .inst-size-pill {
  font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.inst-conn-badge.is-connected {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.inst-conn-badge.is-sim {
  background: var(--soon-bg);
  color: var(--soon);
  border-color: color-mix(in srgb, var(--soon) 40%, transparent);
}
.inst-btn-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.inst-code-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
}
.inst-code-row[hidden] { display: none; }
.inst-code-label {
  display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0;
}
.inst-code-label span {
  font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.inst-code-input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  font: 600 14px/1.3 var(--mono); outline: none; transition: border-color .15s ease;
}
.inst-code-input:focus {
  border-color: var(--accent);
}
.inst-telemetry {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 10px;
}
.inst-telemetry div {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; min-width: 0;
}
.inst-telemetry dt {
  font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 4px;
}
.inst-telemetry dd {
  margin: 0; font: 600 13px/1.3 var(--display); color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Package Checkboxes */
.inst-opt {
  display: flex; flex-direction: column; gap: 6px;
  padding: 11px 12px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .15s ease;
}
.inst-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.inst-opt-head {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start;
  cursor: pointer;
}
.inst-opt input[type="checkbox"] {
  margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent);
}
.inst-opt strong { display: block; font: 600 13.5px/1.3 var(--display); color: var(--fg); margin-bottom: 2px; }
.inst-opt small { display: block; font: 400 12.5px/1.4 var(--body); color: var(--muted); }
.inst-pkg-more {
  padding-left: 29px; font-size: 12px; line-height: 1.45; color: var(--muted);
}
.inst-pkg-more summary {
  cursor: pointer; font: 600 11.5px/1.3 var(--mono); color: var(--accent);
  user-select: none; padding-block: 2px;
}
.inst-pkg-more p {
  margin: 6px 0 0; font: 400 12.2px/1.5 var(--body); color: var(--muted);
}

/* Progress Bar + Live Console */
.inst-progress-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 9px;
}
.inst-progress-top strong { font: 600 15px/1.3 var(--display); }
.inst-pct { font: 700 13px/1 var(--mono); color: var(--accent); }
.inst-bar-track {
  height: 9px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; margin-bottom: 10px;
}
.inst-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff));
  transition: width .24s ease;
}
.inst-stage-sub {
  margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted);
}

.inst-terminal {
  background: #080c0e; color: #d8ece8;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #1e2a2e);
  border-radius: 14px; overflow: hidden;
}
.inst-term-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 13px; background: #0e1418; border-bottom: 1px solid #1b262b;
}
.inst-term-dots { display: inline-flex; gap: 6px; }
.inst-term-dots i {
  width: 9px; height: 9px; border-radius: 50%; background: #2c3d44; display: inline-block;
}
.inst-term-dots i:first-child { background: #e06c75; }
.inst-term-dots i:nth-child(2) { background: #e5c07b; }
.inst-term-dots i:nth-child(3) { background: #43d9ad; }
.inst-term-title { font: 600 11.5px/1 var(--mono); color: #8ab0ab; }
.inst-term-actions { display: inline-flex; gap: 6px; }
.inst-term-clear {
  background: transparent; border: 1px solid #26363c; color: #95b5b0;
  font: 600 11px/1 var(--mono); padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.inst-term-clear:hover { color: #fff; border-color: var(--accent); }
.inst-term-body {
  height: 190px; overflow-y: auto; padding: 12px 14px;
  font: 500 12.2px/1.55 var(--mono);
  display: flex; flex-direction: column; gap: 4px;
}
.inst-log-line { word-break: break-word; }
.inst-log-line .ts { color: #5b7e7a; margin-right: 7px; }
.inst-log-line.is-ok { color: #55efc4; }
.inst-log-line.is-warn { color: #f7c96f; }
.inst-log-line.is-head { color: #7ce7ff; font-weight: 700; }

.inst-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.inst-apk-msg {
  margin: 0; font: 500 13px/1.45 var(--mono); color: var(--muted);
}
.inst-apk-msg[hidden] { display: none; }
.inst-apk-msg.is-ok { color: var(--accent); }
.inst-apk-msg.is-warn { color: #f7c96f; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 54px;
  color: var(--muted); font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.footer strong { display: block; color: var(--fg); margin-bottom: 4px; }
.footer p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hud-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shots { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .inst-step-card { padding: 16px; }
  .inst-options-grid, .inst-targets, .inst-ver-row, .inst-sha-item { grid-template-columns: minmax(0, 1fr); }
  .inst-telemetry { grid-template-columns: minmax(0, 1fr); }
  .demo-grid, .media-grid, .media-wide { grid-template-columns: minmax(0, 1fr); }
  .roadmap-grid .eco-card { max-width: none; }
  .media-wide .media-thumb { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 66px;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: 12px 18px 16px; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: grid; }
  .hud-screen { grid-template-columns: minmax(0, 1fr); }
  .hud-sidebar {
    flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hud-line);
    padding: 8px;
  }
  .hud-cat-label { display: none; }
  .hud-tab { width: auto; flex: none; white-space: nowrap; }
}

/* Legal pages & Installer Risk Banner */
.legal-page { max-width: 860px; padding: 34px 0 64px; }
.legal-page h1 { margin: 10px 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-lead { color: var(--muted); margin: 0 0 22px; }
.legal-draft-pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--warn, #eab308); color: var(--warn, #eab308);
  background: rgba(234, 179, 8, 0.1);
}
.legal-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 16px;
}
.legal-card.is-warn { border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.06); }
.legal-card h2 { margin: 0 0 10px; font-size: 1.08rem; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.6; }
.legal-card ul { margin: 8px 0 0; padding-left: 20px; }
.legal-card a, .footer-links a { color: var(--accent); text-decoration: none; }
.legal-card a:hover, .footer-links a:hover { text-decoration: underline; }
.inst-risk-banner {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.08);
  font-size: 0.92rem; line-height: 1.5; color: var(--fg);
}
.inst-risk-banner strong { color: var(--warn, #facc15); }
.inst-risk-banner a { color: var(--accent); text-decoration: underline; }

/* FAQ Section */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  transition: border-color 0.15s ease;
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-body {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.faq-body p { margin: 0 0 8px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Measured Findings Card */
.findings-card {
  margin-top: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.findings-head h3 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
}
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.finding-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
}
.finding-box h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: var(--fg);
}
.finding-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.finding-box li + li {
  margin-top: 6px;
}
.otg-diagram {
  margin-top: 16px;
  padding: 16px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.otg-diagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.otg-diagram-head strong {
  display: block;
  font-size: 0.96rem;
  color: var(--fg);
}
.otg-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}
.otg-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.otg-badge.is-ok {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.otg-badge.is-warn {
  color: var(--soon);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
}
.otg-flow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.otg-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.otg-node.is-otg {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.otg-node.is-host {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.otg-node svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 6px;
}
.otg-node strong {
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.25;
}
.otg-role {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}
.otg-arrow {
  flex: 0 0 auto;
  color: var(--accent);
}
.otg-arrow svg {
  width: 24px;
  height: 14px;
  display: block;
}
.otg-warn {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.otg-warn p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .otg-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .otg-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
  .otg-warn {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== Feature guide pages (hdmi-in, halo-link, head-tracking, live-video, dji-neo, themes-music) ===== */
/* Start-page links into the guides */
.card-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 2px; min-height: 40px; font: 600 14px var(--body); color: var(--accent);
}
.card-link::after { content: "\2192"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(3px); }
.guides-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin: 0 0 26px;
}
.guide-tile {
  display: flex; flex-direction: column; gap: 4px; min-height: 40px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.guide-tile:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.guide-tile svg { width: 22px; height: 22px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guide-tile strong { font: 600 15px/1.25 var(--display); color: var(--fg); }
.guide-tile span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.guide-tile .tag-new { align-self: flex-start; }

/* Page frame */
.dp-page { padding: 22px 0 40px; }
.dp-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.dp-crumb a { color: var(--accent); display: inline-flex; align-items: center; min-height: 40px; }
.dp-crumb span { display: inline-flex; align-items: center; }
.dp-crumb a:hover { text-decoration: underline; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.guide-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--fg); transition: border-color .15s, background .15s;
}
.guide-nav a:hover { border-color: var(--accent-dim); }
.guide-nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.dp-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 28px; align-items: center;
  padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.dp-hero h1 { font: 700 clamp(28px, 4vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; margin: 10px 0 12px; }
.dp-hero .lede { color: var(--muted); font-size: 16.5px; margin: 0 0 16px; max-width: 60ch; }
.dp-hero .lede strong { color: var(--fg); }
.dp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font: 600 12.5px var(--mono); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.dp-tag b { color: var(--accent); font-weight: 600; }
.tag-new {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font: 700 11px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--soon); background: var(--soon-bg); border: 1px solid color-mix(in srgb, var(--soon) 40%, transparent);
}
.dp-hero-art { margin: 0; }

.dp-section { padding-block: 44px 8px; }
.dp-section > .section-head { margin-bottom: 20px; }
.dp-section h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; margin: 8px 0 8px; }

.dp-figure {
  margin: 0; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.dp-figure + .dp-figure { margin-top: 16px; }
.dp-figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.dp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.dp-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.dp-four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }

/* Flow diagrams (HTML, reflows on mobile) */
.flow { display: flex; align-items: stretch; gap: 10px; }
.flow-node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 12px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line);
}
.flow-node.is-key { border-color: var(--accent); background: var(--accent-soft); }
.flow-node svg { width: 34px; height: 34px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.flow-node strong { font: 600 14.5px/1.25 var(--display); }
.flow-node span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.flow-arrow { flex: 0 0 auto; align-self: center; display: grid; place-items: center; color: var(--accent); gap: 2px; }
.flow-arrow svg { width: 30px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-arrow small { font: 600 10.5px var(--mono); color: var(--muted); white-space: nowrap; }
.flow-outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1.6 1 0; min-width: 0; }
.flow-outs .flow-node { padding: 10px; flex-direction: row; text-align: left; gap: 10px; }
.flow-outs .flow-node svg { width: 26px; height: 26px; margin: 0; flex: none; }
.flow-outs .flow-node div { display: flex; flex-direction: column; min-width: 0; }

/* Range meters (fps / delay / bitrate) */
.mode-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.mode-card.is-best { border-color: var(--accent); }
.mode-card h3 { font: 600 19px/1.2 var(--display); margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mode-card p { margin: 0; color: var(--muted); font-size: 14px; }
.meter { display: grid; gap: 5px; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.meter-head b { font: 600 12.5px var(--mono); color: var(--fg); }
.meter-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-fill {
  position: absolute; top: 0; bottom: 0; left: var(--from, 0%); width: calc(var(--to, 50%) - var(--from, 0%));
  border-radius: 999px; background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}
.meter-fill.is-warm { background: linear-gradient(90deg, color-mix(in srgb, var(--soon) 70%, transparent), var(--soon)); }
.meter-scale { display: flex; justify-content: space-between; font: 500 10.5px var(--mono); color: var(--muted); opacity: .8; }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 14px; align-items: center; }
.bar-row > span { font-size: 14px; font-weight: 600; }
.bar-row > span small { display: block; font: 500 11.5px var(--mono); color: var(--muted); }

/* Timelines */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 0 0 18px; }
.timeline li::before { content: ""; position: absolute; left: 103px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 98px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline time { font: 600 13px var(--mono); color: var(--accent); text-align: right; padding-top: 1px; }
.timeline div { padding-left: 18px; }
.timeline strong { display: block; font: 600 15px/1.3 var(--display); }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 58px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px var(--mono); color: var(--accent-ink); background: var(--accent);
}
.steps li strong { color: var(--fg); }

/* Info cards on guide pages */
.dp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.dp-card h3 { font: 600 18px/1.25 var(--display); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-card p, .dp-card li { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.dp-card p { margin: 0 0 8px; }
.dp-card p:last-child { margin-bottom: 0; }
.dp-card ul { margin: 6px 0 0; padding-left: 18px; }
.dp-card li + li { margin-top: 5px; }
.dp-card strong { color: var(--fg); }
.dp-card a, .dp-hero a, .steps a { color: var(--accent); }
.dp-card a:hover, .dp-hero a:hover, .steps a:hover { text-decoration: underline; }
.dp-card.is-new { border-color: color-mix(in srgb, var(--soon) 55%, transparent); }
.dp-card .card-icon { margin-bottom: 10px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); }
.stat b { display: block; font: 700 24px/1.1 var(--display); color: var(--accent); letter-spacing: -0.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* Reconnect back-off strip (HaloOS Link) */
.backoff { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 6px 2px 4px; }
.backoff-step { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 62px; }
.backoff-step i {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg);
}
.backoff-step.is-ok i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.backoff-step.is-drop i { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 30%, transparent); }
.backoff-step b { font: 600 12px var(--mono); color: var(--fg); }
.backoff-step span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; }
.backoff-gap { flex: 1 0 22px; height: 2px; margin-bottom: 38px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }

/* Theme swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--sw-bg); color: var(--sw-fg); }
.swatch-screen { display: grid; grid-template-columns: 30% 1fr; height: 92px; }
.swatch-side { background: var(--sw-side); border-right: 1px solid var(--sw-line); display: grid; gap: 6px; align-content: start; padding: 10px 7px; }
.swatch-side i { display: block; height: 7px; border-radius: 4px; background: var(--sw-line); }
.swatch-side i:first-child { background: var(--sw-acc); }
.swatch-main { padding: 10px; display: grid; gap: 7px; align-content: start; }
.swatch-main i { display: block; height: 9px; border-radius: 4px; background: var(--sw-surface); }
.swatch-main i.on { width: 42%; background: var(--sw-acc); }
.swatch-label { padding: 9px 11px; font: 600 13px var(--display); background: var(--sw-surface); border-top: 1px solid var(--sw-line); }

/* Video embeds on guide pages reuse .demo-frame */
.dp-video { border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.dp-video .demo-frame { border-bottom: 0; }
.dp-video-cap { padding: 12px 16px; background: var(--surface); font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.dp-video-cap strong { color: var(--fg); }

/* Prev / next */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.pager a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; min-height: 40px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s;
}
.pager a:hover { border-color: var(--accent-dim); }
.pager small { font: 600 11.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pager strong { font: 600 16px var(--display); color: var(--fg); }
.pager .next { text-align: right; grid-column: 2; }

/* Inline SVG illustrations — themed through site variables */
.ill { display: block; width: 100%; height: auto; }
.ill .s-line { stroke: var(--line-strong); fill: none; }
.ill .s-acc { stroke: var(--accent); fill: none; }
.ill .s-muted { stroke: var(--muted); fill: none; }
.ill .s-soon { stroke: var(--soon); fill: none; }
.ill .f-bg { fill: var(--bg); }
.ill .f-elev { fill: var(--bg-elev); }
.ill .f-surface { fill: var(--surface-2); }
.ill .f-acc { fill: var(--accent); }
.ill .f-soft { fill: var(--accent-soft); }
.ill .f-soon { fill: var(--soon); }
.ill .f-line { fill: var(--line-strong); }
.ill text { font-family: var(--mono); font-weight: 600; fill: var(--fg); }
.ill .t-muted { fill: var(--muted); }
.ill .t-acc { fill: var(--accent); }
.ill .t-soon { fill: var(--soon); }
.ill .t-ink { fill: var(--accent-ink); }
/* Goggles-screen mockups always use the real (dark) HaloOS palette */
.hud-ill { background: #07121A; border-radius: 14px; }
.hud-ill .h-bg { fill: #0B1923; }
.hud-ill .h-line { stroke: #2A4F65; fill: none; }
.hud-ill .h-acc { stroke: #7DF5D6; fill: none; }
.hud-ill .h-soon { stroke: #F2C46A; fill: none; }
.hud-ill .hf-acc { fill: #7DF5D6; }
.hud-ill .hf-line { fill: #1F3C4D; }
.hud-ill text { fill: #E5F2EE; }
.hud-ill .ht-acc { fill: #7DF5D6; }
.hud-ill .ht-soon { fill: #F2C46A; }
.hud-ill .ht-muted { fill: #8FA8A5; }

@keyframes dp-spin { to { transform: rotate(360deg); } }
@keyframes dp-dash { to { stroke-dashoffset: -24; } }
@keyframes dp-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes dp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.anim-spin { transform-box: fill-box; transform-origin: center; animation: dp-spin 1.6s linear infinite; }
.anim-dash { stroke-dasharray: 6 6; animation: dp-dash 1s linear infinite; }
.anim-pulse { animation: dp-pulse 2s ease-in-out infinite; }
.anim-fill { transform-box: fill-box; transform-origin: left center; animation: dp-fill 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .anim-spin, .anim-dash, .anim-pulse, .anim-fill { animation: none; }
}

@media (max-width: 960px) {
  .dp-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dp-hero { padding: 20px; }
  .dp-figure { padding: 14px; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-arrow small { transform: rotate(-90deg); }
  .flow-outs { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .timeline li { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
  .timeline li::before { left: 79px; }
  .timeline li::after { left: 74px; }
  .timeline div { padding-left: 14px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
  .backoff { flex-wrap: wrap; justify-content: center; gap: 14px 6px; overflow: visible; }
  .backoff-gap { display: none; }
}
.faq-body a { color: var(--accent); }
.faq-body a:hover { text-decoration: underline; }
