/* Generated by website/build.mjs from brand/tokens.json. Do not edit. */
:root {
  --brand-violet-300: #b19fff;
  --brand-violet-400: #9d86ff;
  --brand-violet-500: #9179ff;
  --brand-violet-600: #7c65ec;
  --brand-violet-700: #6e56e7;
  --brand-ink-950: #08090c;
  --brand-ink-900: #0e1015;
  --brand-plate: #1b1b22;
  --brand-text: #f3f4f8;
  --brand-text-muted: #9aa2b2;
  --brand-text-subtle: #666f82;
  --brand-success: #34d399;
  --brand-warning: #f59e0b;
  --brand-danger: #f87171;
  --brand-radius-sm: 8px;
  --brand-radius-md: 14px;
  --brand-radius-lg: 20px;
  --brand-radius-xl: 28px;
  --brand-font-sans: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, sans-serif;
  --brand-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   OMP Pulse — Product Website & Documentation Stylesheet
   Identity: OLED obsidian, heartbeat violet, crisp Geist Mono telemetry,
   hairlines, calm spring transitions, zero SaaS fluff.

   The brand colours, radii and font stacks are not written here: website/build.mjs
   prepends a generated :root block of --brand-* properties from brand/tokens.json
   when it copies this file. Everything below uses the short names defined next,
   which alias those properties. The surfaces and borders are the site's own
   neutrals and are not brand tokens.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --bg: var(--brand-ink-950);
  --bg-elevated: var(--brand-ink-900);
  --surface-1: #12151c;
  --surface-2: #181c25;
  --surface-3: #202633;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: var(--brand-text);
  --fg-muted: var(--brand-text-muted);
  --fg-subtle: var(--brand-text-subtle);
  --accent: var(--brand-violet-500);
  --accent-bright: var(--brand-violet-300);
  --accent-dim: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 36%, transparent);
  --emerald: var(--brand-success);
  --emerald-dim: color-mix(in srgb, var(--emerald) 13%, transparent);
  --amber: var(--brand-warning);
  --amber-dim: color-mix(in srgb, var(--amber) 15%, transparent);
  --danger: var(--brand-danger);
  --radius-sm: var(--brand-radius-sm);
  --radius-md: var(--brand-radius-md);
  --radius-lg: var(--brand-radius-lg);
  --radius-xl: var(--brand-radius-xl);
  --font-sans: var(--brand-font-sans);
  --font-mono: var(--brand-font-mono);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1200px;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(132, 106, 255, 0.14), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

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

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

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Navigation ──────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 9, 12, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--fg-muted);
  transition: color 160ms var(--ease-spring), background 160ms var(--ease-spring);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-spring), background 160ms var(--ease-spring), border-color 160ms var(--ease-spring);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #09080f;
}

.btn-primary:hover {
  background: var(--accent-bright);
}

.btn-secondary {
  background: var(--surface-1);
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 0.94rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 820px) {

  .nav-links,
  .header-actions .hide-sm {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header[data-menu-open="true"] .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 20px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-strong);
  }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
}

.hero-grid>* {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-muted);
  margin-bottom: 22px;
}

.eyebrow>span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.7vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 720;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  color: var(--fg-muted);
  max-width: 56ch;
  line-height: 1.62;
}

.install-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 580px;
  margin-bottom: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.install-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.install-tab {
  background: transparent;
  border: 0;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms, background 140ms;
}

.install-tab[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--fg);
}

.install-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 13px 16px;
}

.install-cmd {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--fg);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.install-cmd::-webkit-scrollbar {
  display: none;
}

.install-cmd .prompt-sigil {
  color: var(--accent);
  user-select: none;
  margin-right: 8px;
}

.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 140ms, border-color 140ms, background 140ms;
}

.copy-btn:hover {
  color: var(--fg);
  background: var(--surface-3);
}

.copy-btn[data-copied="true"] {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.45);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-note {
  margin: 0 0 22px;
  max-width: 56ch;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.hero-newcomer {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.hero-facts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--fg-subtle);
}

/* Each fact carries its own dot, so a wrapped row never starts or ends on a
   dangling separator. */
.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Phone Frame Stage ───────────────────────────────────────────────────── */

.hero-stage {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-device {
  width: 100%;
  max-width: 344px;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(165deg, #252936 0%, #11131a 48%, #1c202c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 32px 80px -12px rgba(0, 0, 0, 0.78),
    0 0 90px -20px rgba(145, 121, 255, 0.24);
  position: relative;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 412 / 892;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-screen img,
.phone-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The demo loops for longer than five seconds, so it needs a pause control
   (WCAG 2.2.2). site.js un-hides the button; without script it stays hidden
   rather than being a control that does nothing. */
.video-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 140ms, border-color 140ms, background 140ms;
}

.video-toggle[hidden] {
  display: none;
}

.video-toggle:hover {
  color: var(--fg);
  border-color: var(--accent-border);
}

.video-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.video-toggle .icon-play,
.video-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.video-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.stage-controls {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* ── The film ────────────────────────────────────────────────────────────── */

.film-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.film-frame video {
  display: block;
  width: 100%;
  height: 100%;
}

.film-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding: 0 0 0 4px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  box-shadow: 0 0 0 10px var(--accent-dim), 0 18px 48px rgba(0, 0, 0, 0.5);
  transition: transform 160ms var(--ease-spring), box-shadow 160ms;
}

.film-play[hidden] {
  display: none;
}

.film-play:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 14px var(--accent-dim), 0 18px 48px rgba(0, 0, 0, 0.5);
}

.film-play:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .film-play {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 40px 0 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-stage {
    order: 2;
  }
}

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .eyebrow>span:last-child {
    white-space: normal;
  }
}

/* Inline links inside running copy */
.hero-note a,
.hero-newcomer a,
.section-desc a,
.step-note a,
.callout-note a,
.faq-answer a,
.footer-credit a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit a {
  color: var(--fg-muted);
}

.hero-note a:hover,
.hero-newcomer a:hover,
.section-desc a:hover,
.step-note a:hover,
.callout-note a:hover,
.faq-answer a:hover,
.footer-credit a:hover {
  color: var(--fg);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Section Rhythm ──────────────────────────────────────────────────────── */

.section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-bright);
  margin: 0 0 10px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 680;
}

.section-desc {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.04rem;
}

/* ── Two Modes Split (Computer Daemon vs On-Device Android) ──────────────── */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms var(--ease-spring);
}

/* Neither way of using Pulse is the default, so neither card is lit until it is hovered. */
.mode-card:hover {
  border-color: var(--accent-border);
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.mode-card:hover .mode-badge {
  background: var(--accent-dim);
  color: var(--accent-bright);
  border-color: var(--accent-border);
}

.mode-card h3 {
  margin: 12px 0 10px;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.mode-card p {
  margin: 0 0 18px;
  color: var(--fg-muted);
  font-size: 0.96rem;
}

.mode-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--fg);
}

.mode-points li {
  position: relative;
  padding-left: 22px;
}

/* Absolutely placed so inline markup in a point (bold app labels) stays in the
   text flow; a flex li turned each <strong> into its own column. */
.mode-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--accent);
}

@media (max-width: 860px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Interactive Product Tour ────────────────────────────────────────────── */

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-tab {
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 160ms var(--ease-spring), background 160ms var(--ease-spring);
}

.showcase-tab:hover {
  background: var(--surface-1);
  border-color: var(--border-strong);
}

.showcase-tab[aria-selected="true"] {
  background: var(--surface-1);
  border-color: var(--accent-border);
}

.showcase-tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 640;
  font-size: 1rem;
  margin-bottom: 5px;
}

.showcase-tab-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-subtle);
}

.showcase-tab[aria-selected="true"] .showcase-tab-tag {
  color: var(--accent-bright);
}

.showcase-tab-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.52;
}

.showcase-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-panel[hidden] {
  display: none;
}

.feature-strip {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.feature-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.feature-mini strong {
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 640;
}

@media (max-width: 900px) {
  .showcase-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-viewer {
    order: -1;
  }
}

/* ── Android Phone Mode & Agent Tools Deep-Dive ──────────────────────────── */

.android-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.phone-pair .phone-device {
  max-width: 260px;
  border-radius: 30px;
  padding: 8px;
  margin: 0 auto;
}

.phone-pair .phone-screen {
  border-radius: 23px;
}

.phone-pair .phone-device:nth-child(2) {
  margin-top: 28px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.tool-chip {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}

.callout-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.callout-note strong {
  color: var(--fg);
}

@media (max-width: 960px) {
  .android-spotlight {
    grid-template-columns: 1fr;
  }

  .phone-pair .phone-device:nth-child(2) {
    margin-top: 0;
  }
}

/* ── Setup Steps ─────────────────────────────────────────────────────────── */

.setup-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 28px;
}

.setup-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  margin: 4px 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.step-body .install-box {
  max-width: 900px;
  margin-bottom: 12px;
}

.install-cmd-row + .install-cmd-row {
  border-top: 1px solid var(--border);
}

.step-note {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.setup-asides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 780px) {
  .setup-asides {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .setup-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }

  .step-num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* ── Safe by Design ──────────────────────────────────────────────────────── */

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.safety-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.safety-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.safety-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

@media (max-width: 780px) {
  .safety-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Downloads Matrix ────────────────────────────────────────────────────── */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-group-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.downloads-grid + .download-group-title {
  margin-top: 40px;
}

.downloads-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card h4 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.download-text {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.download-install {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.download-install:hover {
  color: var(--fg);
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg-subtle);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg);
  transition: background 140ms, border-color 140ms;
}

.asset-pill:hover {
  background: var(--surface-3);
  border-color: var(--accent-border);
}

@media (max-width: 960px) {
  .downloads-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 620;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--accent-bright);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.faq-answer {
  margin: 0;
  padding: 0 20px 18px;
  max-width: 68ch;
  font-size: 0.93rem;
  color: var(--fg-muted);
}

/* ── Documentation Layout ────────────────────────────────────────────────── */

.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0 88px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  padding-right: 12px;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin: 0 0 8px;
  padding: 0 10px;
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.docs-nav-item a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  color: var(--fg-muted);
  transition: background 140ms, color 140ms;
}

.docs-nav-item a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.docs-nav-item a[aria-current="page"] {
  color: var(--accent-bright);
  background: var(--accent-dim);
  font-weight: 560;
}

.docs-mobile-picker {
  display: none;
  margin-bottom: 24px;
}

.docs-mobile-picker select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-picker {
    display: block;
  }
}

/* ── Prose (Rendered Markdown) ───────────────────────────────────────────── */

.docs-article {
  min-width: 0;
  max-width: 780px;
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.prose h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  margin: 0 0 20px;
}

.prose h2 {
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  margin: 42px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.12rem;
  margin: 28px 0 10px;
}

.prose p,
.prose ul,
.prose ol {
  color: #d6dbe7;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(177, 159, 255, 0.4);
}

.prose a:hover {
  text-decoration-color: var(--accent-bright);
}

.prose code {
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #e8ecf5;
}

.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: 0.84rem;
  line-height: 1.58;
}

.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: #e6eaf2;
}

.prose blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border: 1px solid var(--border-strong);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-1);
  color: var(--fg);
  font-weight: 620;
}

.docs-pager {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pager-link {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  min-width: 180px;
  transition: border-color 140ms, background 140ms;
}

.pager-link:hover {
  border-color: var(--accent-border);
  background: var(--surface-1);
}

.pager-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-subtle);
  margin-bottom: 3px;
}

.pager-title {
  font-weight: 600;
  font-size: 0.93rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--fg-subtle);
  font-size: 0.87rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--fg);
}
