/* Hypernova's site, in the app's own look (docs/DESIGN.md; the Android app's ui/theme/Tokens.kt and
 * components/Primitives.kt): warm near-black, one mint accent, Manrope and JetBrains Mono, a living
 * cosmos with film grain, seams, glass cards and frosted pills. Every colour is a token below. */

@font-face {
  font-family: Manrope;
  src: url(/assets/fonts/Manrope.3ae11c49db.ttf) format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/assets/fonts/JetBrainsMono.48715a42ec.ttf) format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces: warm near-black, never pure black. */
  --bg: #14110e;
  --bg-950: #0f0d0a;
  --bg-900: #1b1814;
  --bg-800: #221f1b;
  --bg-700: #2c2823;
  --bg-600: #36322c;
  --line: #2c2823;
  --line-soft: #221f1b;
  --line-strong: #45403a;
  /* Text. --dim-text is the app's inkDim lifted just enough for AA on small text over cards. */
  --ink: #f5f2eb;
  --muted: #b5b0a6;
  --dim: #7a7468;
  --dim-text: #948e82;
  --ghost: #45403a;
  /* Mint, the only accent; amber means "needs you"; red means failure. */
  --accent: #7fffa0;
  --accent-bright: #b6ffc9;
  --accent-dim: #4a8c5e;
  --accent-deep: #2a5a38;
  --amber: #e8b341;
  --danger: #ff7878;
  /* Motion: the app's expo-out, and its durations. */
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --reveal: 500ms;
  /* Type. */
  --sans: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Layout. */
  --gutter: 16px;
  --wide: 1180px;
  --header: 64px;
  color-scheme: dark;
}
@media (min-width: 720px) {
  :root { --gutter: 28px; --header: 72px; }
}

/* ── Base ───────────────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font: 500 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgb(127 255 160 / 0.38); color: var(--bg); }
[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
svg.glyph { display: inline-block; width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); text-wrap: balance; }
code, kbd, pre { font-family: var(--mono); font-feature-settings: normal; }
button { font: inherit; color: inherit; }
hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-900);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(127 255 160 / 0.5);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--fast) var(--expo);
}
.skip:focus-visible { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Atmosphere: the sky (stars, nebulae) under everything and the grain over everything ─────── */

.sky, .nebulae, .grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* The large viewport, so a phone's collapsing address bar never resizes the sky. */
.sky, .nebulae { height: 100lvh; z-index: 0; }
.grain { z-index: 60; mix-blend-mode: overlay; opacity: 0.32; }
/* Before the sky is drawn (and without JavaScript) the night is a warm gradient with the mint haze. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 82% 8%, rgb(127 255 160 / 0.07), transparent 70%),
    radial-gradient(50vmax 50vmax at 8% 70%, rgb(105 255 185 / 0.05), transparent 70%),
    var(--bg);
}
.page { position: relative; z-index: 1; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section + .section { padding-top: 0; }

/* ── Type ───────────────────────────────────────────────────────────────────────────────────── */

.label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); font-feature-settings: normal; }
.display {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.heading { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.muted { color: var(--muted); }
.dim { color: var(--dim-text); }
.accent { color: var(--accent); }
.amber { color: var(--amber); }
.wordmark {
  font-weight: 200;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.wordmark i { font-style: normal; color: var(--accent); }

/* ── The seam: [planet] LABEL ───────── trail (Hyperscribe's, the app's section header) ────────── */

.seam {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.seam > .label { flex: none; }
.seam::after {
  content: "";
  order: 2;
  flex: 1 1 24px;
  height: 1px;
  background: var(--line);
}
.seam > .label { order: 1; }
.seam > .trail {
  order: 3;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--dim-text);
  white-space: nowrap;
}
.seam > .trail .mono { letter-spacing: 0; font-weight: 400; }
.seam.amber > .label { color: var(--amber); }
.seam.nolin::after { visibility: hidden; }

/* The activity meter: a small planet lit from the upper left. Still at rest (dim), turning while
   live (mint), amber and pulsing when it needs you. The meridians are SVG in the markup. */
.planet {
  order: 0;
  flex: none;
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: var(--dim);
  background: radial-gradient(circle at 28% 28%,
    color-mix(in srgb, currentColor 75%, transparent),
    color-mix(in srgb, currentColor 22%, transparent) 62%,
    color-mix(in srgb, currentColor 4%, transparent));
  box-shadow: inset 0 0 0 0.7px color-mix(in srgb, currentColor 45%, transparent);
  overflow: hidden;
}
.planet::before {
  /* Meridians: thin lines sliding across its face, fading toward the limb and the shadowed side. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.6;
  background: repeating-linear-gradient(90deg, transparent 0 5.3px, currentColor 5.3px 6px);
  background-size: 12px 100%;
  background-position: 2.6px 0;
  -webkit-mask: radial-gradient(circle at 35% 50%, #000 40%, transparent 72%);
  mask: radial-gradient(circle at 35% 50%, #000 40%, transparent 72%);
}
.planet.live { color: var(--accent); }
.planet.live::before { animation: meridian 3s linear infinite; }
.planet.alert { color: var(--amber); animation: alert 1.4s ease-in-out infinite alternate; }
@keyframes meridian { from { background-position: 0 0; } to { background-position: 12px 0; } }
@keyframes alert { from { opacity: 0.55; } to { opacity: 1; } }

/* ── Glass card (0stems' card made dense, the app's GlassCard) ─────────────────────────────── */

.card {
  position: relative;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(to bottom, rgb(34 31 27 / 0.84), rgb(27 24 20 / 0.78), rgb(27 24 20 / 0.86));
  box-shadow: inset 0 0 0 1px rgb(245 242 235 / 0.08);
  isolation: isolate;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}
.card::before { top: 0; background: linear-gradient(90deg, transparent, rgb(245 242 235 / 0.25), transparent); }
.card::after { bottom: 0; background: linear-gradient(90deg, transparent, rgb(245 242 235 / 0.12), transparent); }
/* A card that needs a look is never tinted: a thin edge of its colour down its left side, brightest
   in the middle, a soft glow beside it inside the card, and the ring warmed a little. */
.card.edge { --edge: var(--amber); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--edge) 12%, transparent); overflow: hidden; }
.card.edge > .edge-light {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--edge) 9%, transparent), transparent);
}
.card.edge > .edge-light::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--edge) 15%, transparent),
    color-mix(in srgb, var(--edge) 85%, transparent) 22%,
    color-mix(in srgb, var(--edge) 85%, transparent) 78%,
    color-mix(in srgb, var(--edge) 15%, transparent));
}
.card.edge.mint { --edge: var(--accent); }
a.card { display: block; text-decoration: none; color: inherit; transition: transform var(--fast) var(--expo), box-shadow var(--fast) ease; }
a.card:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { box-shadow: inset 0 0 0 1px rgb(127 255 160 / 0.22); }
}

/* ── Pills: every kind is frosted glass, they differ in the light inside it ─────────────────── */

.pill {
  --tint: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.2 var(--sans);
  font-feature-settings: "ss01";
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  /* Dense glass: an ink-lifted bg800 at 80% to bg900 at 74%, a light along the top edge. */
  background: linear-gradient(to bottom, rgb(48 45 40 / 0.8), rgb(27 24 20 / 0.74));
  box-shadow:
    inset 0 1px 0 rgb(245 242 235 / 0.2),
    inset 0 0 0 1px rgb(245 242 235 / 0.07),
    0 8px 24px -12px rgb(0 0 0 / 0.6);
  transition: transform var(--fast) var(--expo), background-color var(--fast) ease, box-shadow var(--fast) ease;
}
.pill:active { transform: translateY(1px) scale(0.985); }
.pill .glyph { width: 16px; height: 16px; flex: none; }
/* Primary: a faint mint body, a mint edge light, a mint glow at the glyph, a mint label. */
.pill.primary {
  color: var(--accent);
  background:
    radial-gradient(48px 48px at 30px 50%, rgb(127 255 160 / 0.16), transparent 70%),
    linear-gradient(to bottom, rgb(127 255 160 / 0.16), rgb(127 255 160 / 0.06)),
    linear-gradient(to bottom, rgb(48 45 40 / 0.8), rgb(27 24 20 / 0.74));
  box-shadow:
    inset 0 1px 0 rgb(127 255 160 / 0.55),
    inset 0 0 0 1px rgb(127 255 160 / 0.14),
    0 10px 30px -14px rgb(127 255 160 / 0.45);
}
.pill.ghost {
  color: var(--muted);
  background: linear-gradient(to bottom, rgb(245 242 235 / 0.07), rgb(245 242 235 / 0.03));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.14), inset 0 0 0 1px rgb(245 242 235 / 0.05);
}
.pill.amber { color: var(--amber); }
.pill.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.28), inset 0 0 0 1px rgb(245 242 235 / 0.12), 0 10px 28px -12px rgb(0 0 0 / 0.7); }
  .pill.primary:hover { box-shadow: inset 0 1px 0 rgb(127 255 160 / 0.7), inset 0 0 0 1px rgb(127 255 160 / 0.26), 0 12px 34px -12px rgb(127 255 160 / 0.55); }
  .pill.ghost:hover { color: var(--ink); }
}

/* ── State chip: a capsule of frosted glass, its colour in a point of light and the label ────── */

.chip {
  --c: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 11px 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.135em;
  text-transform: uppercase;
  color: var(--c);
  white-space: nowrap;
  background:
    radial-gradient(16px 16px at 13px 50%, color-mix(in srgb, var(--c) 18%, transparent), transparent 80%),
    linear-gradient(to bottom, rgb(245 242 235 / 0.09), rgb(245 242 235 / 0.04));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.16);
}
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 1px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px 1px color-mix(in srgb, var(--c) 45%, transparent);
}
.chip.live::before { animation: breathe 2.4s ease-in-out infinite; }
.chip.dim { --c: var(--muted); }
.chip.dim::before { box-shadow: none; }
.chip.amber { --c: var(--amber); }
/* The one filled element (needs you): amber glass lit from above, a soft glow, a dark target. */
.chip.filled {
  --c: var(--amber);
  color: var(--bg);
  background: linear-gradient(to bottom, #edc263, var(--amber), #d1a13b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 0 10px rgb(232 179 65 / 0.35);
}
.chip.filled::before {
  width: 4px;
  height: 4px;
  margin: 0 2px;
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--amber), 0 0 0 2.9px rgb(20 17 14 / 0.85);
}
@keyframes breathe { 50% { opacity: 0.4; } }
/* The model chip: neutral glass with no point of light, so it never reads as a state. */
.model {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  background: linear-gradient(to bottom, rgb(48 45 40 / 0.8), rgb(27 24 20 / 0.74));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.14), inset 0 0 0 1px rgb(245 242 235 / 0.05);
}

/* ── Header: edge-to-edge, blurring what scrolls under it, sharp again over its last 28px ───── */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
}
.top::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  pointer-events: none;
  background: rgb(20 17 14 / 0.5);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}
.top .wrap {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: -4px;
  padding: 8px 8px 8px 4px;
  border-radius: 999px;
  text-decoration: none;
}
.brand { flex: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 400px) {
  .menu summary .menu-text { display: none; }
  .menu summary { padding: 0 12px; }
  .top .wrap { gap: 6px; }
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a, .menu summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) ease, background-color var(--fast) ease;
}
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(127 255 160 / 0.6);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .menu summary:hover { color: var(--ink); background: rgb(245 242 235 / 0.05); }
}
.top .pill { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav-wide { display: none; }
@media (min-width: 960px) { .nav-wide { display: flex; } .menu { display: none; } }
/* The small-screen menu is a <details>: it works without JavaScript. */
.menu { position: static; margin-left: auto; }
.top .wrap { position: relative; }
.menu summary { list-style: none; cursor: pointer; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .bars { width: 16px; height: 10px; position: relative; }
.menu summary .bars::before, .menu summary .bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--fast) var(--expo);
}
.menu summary .bars::before { top: 1px; }
.menu summary .bars::after { bottom: 1px; }
.menu[open] summary .bars::before { transform: translateY(3.25px) rotate(45deg); }
.menu[open] summary .bars::after { transform: translateY(-3.25px) rotate(-45deg); }
.menu-panel {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  top: calc(100% - 2px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(to bottom, rgb(43 40 35 / 0.94), rgb(27 24 20 / 0.96));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.18), inset 0 0 0 1px rgb(245 242 235 / 0.07), 0 24px 60px -20px rgb(0 0 0 / 0.8);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transform-origin: top right;
  animation: pop 180ms var(--expo);
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}
.menu-panel a[aria-current="page"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .menu-panel a:hover { background: rgb(245 242 235 / 0.05); } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }

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

.hero { padding: 28px 0 48px; }
@media (min-width: 960px) { .hero { padding: 40px 0 72px; } }
.hero-grid { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; } }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .soft { color: var(--muted); }
.hero .lede { margin-bottom: 28px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin: 16px 0 0; font-size: 13px; color: var(--dim-text); }
.cta-note a { color: var(--muted); }

/* The stage: the solar system as on the app's Home, and a phone. */
.stage {
  position: relative;
  aspect-ratio: 1 / 0.82;
  margin: 0 calc(-1 * var(--gutter));
}
@media (min-width: 600px) { .stage { margin: 0; } }
@media (min-width: 960px) { .stage { aspect-ratio: 1 / 0.9; } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .orrery-still { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.js .stage .orrery-still { display: none; }
.stage-phone {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: 34%;
  display: none;
}
@media (min-width: 960px) { .stage-phone { display: block; } }
.sky-labels { position: absolute; inset: 0; pointer-events: none; }
.sky-label {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 600ms var(--expo);
}
.sky-label.below { transform: translate(-50%, 0); }
.sky-label.left { transform: translate(-100%, -50%); text-align: right; }
.sky-label.right { transform: translate(0, -50%); text-align: left; }
.sky-label.on { opacity: 1; }
.sky-label b {
  display: block;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg);
}
.sky-label span {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--dim-text);
  text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg);
}
.sky-label.working span { color: var(--accent); }
.sky-label.needs b, .sky-label.needs span { color: var(--amber); }
.sky-label.readout span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sky-label.note b { color: var(--dim-text); font-size: 10px; }

/* ── Screenshots: clean rounded crops with a soft shadow, never a fake bezel ──────────────────── */

.shot {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-950);
  box-shadow:
    0 0 0 1px rgb(245 242 235 / 0.09),
    0 30px 60px -24px rgb(0 0 0 / 0.75),
    0 12px 24px -12px rgb(0 0 0 / 0.5);
}
.shot img, .shot picture { width: 100%; height: auto; }
.shot.mac { border-radius: 18px; }
.shot.lens { border-radius: 14px; background: #000; }
.shot.lens img { image-rendering: pixelated; }
.shot.crop { aspect-ratio: 9 / 13; }
.shot.crop img { height: 100%; object-fit: cover; object-position: top; }

/* ── Sections ───────────────────────────────────────────────────────────────────────────────── */

.head { max-width: 760px; margin-bottom: 40px; }
.head .seam { margin-bottom: 22px; max-width: 520px; }
.head h2 { margin-bottom: 18px; }
.head .lede { margin: 0; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .seam { margin-left: auto; margin-right: auto; }
.head.center .lede { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 560px) and (max-width: 999px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Session cards, as on the app's Home. */
.sessions { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sessions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.session .seam { margin-bottom: 12px; }
.session .seam .trail { display: inline-flex; gap: 8px; align-items: center; }
.session h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 4px; }
.session .doing { font: 400 13px/1.5 var(--mono); color: var(--dim-text); margin: 0 0 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session .doing.amber { color: var(--amber); }
.session .doing.accent { color: var(--accent); }
.session .foot { display: flex; align-items: center; gap: 8px; }
.session .foot .end { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.session .mode { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--dim-text); white-space: nowrap; }
.session .foot { flex-wrap: wrap; row-gap: 8px; }
.session .mode svg { width: 13px; height: 13px; }
.sessions-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; margin-bottom: 18px; }

/* The approval block (Hypernavigate's filled band). */
.approval {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(rgb(232 179 65 / 0.05), rgb(232 179 65 / 0.05)), rgb(15 13 10 / 0.9);
  box-shadow: inset 0 0 0 1px rgb(232 179 65 / 0.45), 0 30px 60px -30px rgb(0 0 0 / 0.8);
}
.approval .band {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: linear-gradient(to bottom, #edc263, var(--amber));
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.approval .band .mono { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.approval .band .end { margin-left: auto; }
.approval .body { padding: 16px 18px 18px; }
.approval .why { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.approval .why .label { color: var(--dim-text); }
.well {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgb(20 17 14 / 0.9);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 400 14px/1.5 var(--mono);
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
.well .p { color: var(--amber); }
.approval .acts { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; margin-top: 14px; }
.approval .acts span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(to bottom, rgb(48 45 40 / 0.8), rgb(27 24 20 / 0.74));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.18);
}
.approval .acts .deny { color: var(--danger); background: linear-gradient(to bottom, rgb(255 120 120 / 0.16), rgb(255 120 120 / 0.06)), rgb(27 24 20 / 0.8); box-shadow: inset 0 1px 0 rgb(255 120 120 / 0.5); }
.approval .acts .allow { color: var(--accent); background: linear-gradient(to bottom, rgb(127 255 160 / 0.16), rgb(127 255 160 / 0.06)), rgb(27 24 20 / 0.8); box-shadow: inset 0 1px 0 rgb(127 255 160 / 0.55); }
.approval .fine { margin: 12px 0 0; font-size: 13px; color: var(--dim-text); }

/* Usage meters: tracked label, mono value, the reset after a drawn glyph, a 1px track and a 3px fill. */
.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; }
.meter + .meter { margin-top: 16px; }
.meter .label { color: var(--dim-text); }
.meter .val { font: 500 13px var(--mono); color: var(--ink); }
.meter .reset { font: 400 13px var(--mono); color: var(--dim-text); display: inline-flex; gap: 5px; align-items: center; }
.meter .reset svg { width: 12px; height: 12px; }
.meter .bar { grid-column: 1 / -1; position: relative; height: 3px; }
.meter .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: var(--line); }
.meter .bar i { position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; background: var(--accent); width: var(--w, 50%); }
.meter .bar i.pace { background: var(--accent); opacity: 0.3; }
.meter.warn .bar i, .meter.warn .val { background-color: var(--amber); }
.meter.warn .val { background: none; color: var(--amber); }
.meter .bar.codex i { background: var(--muted); }

/* Highlights: real screenshots with the README's captions. */
.shots { display: grid; gap: 28px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
.shots figure { margin: 0; }
@media (min-width: 900px) { .shots:not(.small) .shot { max-width: 330px; } }
.shots figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.shots figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 900px) { .shots figcaption { font-size: 15px; } .shots figcaption strong { font-size: 18px; } }
.shots.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .shots.small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }
.shots.small figcaption strong { font-size: 15px; display: inline; }

/* Rows of a screenshot beside words. */
.row { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .row.flip > :first-child { order: 2; } }
.row .phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; align-items: start; }
.row .phones.one { grid-template-columns: minmax(0, 300px); justify-content: center; }

/* Feature list cards (Also on the phone). */
.feat h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.feat .seam { margin-bottom: 12px; }

/* Where it runs. */
.host { display: flex; flex-direction: column; gap: 10px; }
.host .seam { margin-bottom: 4px; }
.host h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.host p { margin: 0; color: var(--muted); font-size: 15px; }
.host .cmd { margin-top: auto; padding-top: 8px; }
.host .go { margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.host .glyph-big { width: 40px; height: 40px; color: var(--muted); margin-bottom: 6px; }
/* A host's state chip (Windows: experimental), its own width in the card's column. */
.host > .chip { align-self: flex-start; margin: -2px 0 2px; }

/* Two agents. */
.agents { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .agents { grid-template-columns: 1.1fr 0.9fr; } }
.switch-sheet { border-radius: 28px; padding: 22px; }
.switch-sheet .eyebrow { color: var(--accent); }
.switch-sheet h3 { font-size: 22px; letter-spacing: -0.015em; margin: 8px 0 6px; }
.switch-sheet p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.choices { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgb(15 13 10 / 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.choices span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.choices span.on { color: var(--accent); background: linear-gradient(to bottom, rgb(127 255 160 / 0.16), rgb(127 255 160 / 0.06)); box-shadow: inset 0 1px 0 rgb(127 255 160 / 0.5); }

/* Glasses. */
.lenses { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lenses figcaption { margin-top: 10px; font-size: 13.5px; color: var(--dim-text); }
.lenses figure { margin: 0; }

/* How it works: the diagram. */
.diagram { display: grid; gap: 14px; align-items: stretch; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .diagram { grid-template-columns: 1fr auto 1.35fr; } }
.diagram .node h3 { font-size: 18px; margin: 6px 0 8px; }
.diagram .node p { margin: 0; font-size: 14.5px; color: var(--muted); }
.diagram .node ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.diagram .node li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--muted); }
.diagram .node li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-dim); transform: translateY(-2px); }
.diagram .link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 8px 4px;
  text-align: center;
}
.diagram .link .wire {
  position: relative;
  height: 1px;
  min-width: 150px;
  background: linear-gradient(90deg, transparent, rgb(127 255 160 / 0.55), transparent);
}
.diagram .link .wire::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: packet 3.2s var(--expo) infinite;
}
@keyframes packet { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(145px); opacity: 0; } }
.diagram .link .label { color: var(--dim-text); }
.diagram .link small { display: block; font-size: 13px; color: var(--muted); max-width: 22ch; margin: 0 auto; }
@media (max-width: 899px) { .diagram .link .wire { min-width: 0; width: 1px; height: 36px; margin: 0 auto; background: linear-gradient(transparent, rgb(127 255 160 / 0.55), transparent); } .diagram .link .wire::after { display: none; } }
.host-list { display: grid; gap: 10px; }
@media (min-width: 560px) { .host-list { grid-template-columns: 1fr 1fr; } }
.mini {
  border-radius: 12px;
  padding: 12px 14px;
  background: rgb(15 13 10 / 0.6);
  box-shadow: inset 0 0 0 1px rgb(245 242 235 / 0.06);
}
.mini b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.mini span { font-size: 13.5px; color: var(--muted); }

/* Privacy. */
.promise h3 { font-size: 17px; margin-bottom: 8px; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; }
.promise .seam { margin-bottom: 12px; }

/* Requirements and the install call. */
.need { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .need { grid-template-columns: 1.2fr 0.8fr; } }
.need ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.need li { position: relative; padding-left: 22px; color: var(--muted); }
.need li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgb(127 255 160 / 0.5); }
.need li strong { color: var(--ink); font-weight: 600; }
.need .card { padding: 22px; }
.need .title { margin: 18px 0 20px; }
.need .heading { margin: 18px 0 10px; }
.need .cta { margin-top: 18px; }

/* Guides index. */
.guide-card { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.guide-card .seam { margin-bottom: 8px; }
.guide-card h3 { font-size: 17px; line-height: 1.3; }
.guide-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.guide-card .go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* FAQ (details elements). */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; padding: 0; }
.faq summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 16.5px;
  color: var(--ink);
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms var(--expo);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq .a { padding: 0 18px 16px; color: var(--muted); }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a a { color: var(--ink); text-decoration-color: rgb(127 255 160 / 0.5); }
.faq .a code { font-size: 0.9em; color: var(--accent-bright); background: rgb(127 255 160 / 0.08); padding: 1px 5px; border-radius: 5px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 22px; margin-bottom: 16px; letter-spacing: -0.015em; }

/* Small helpers. */
.plain { margin: 0; padding: 0; list-style: none; }
.plain > li { display: flex; }
.plain > li > * { flex: 1; }
.more { margin: 28px 0 0; color: var(--dim-text); font-size: 15px; }
.more a { color: var(--ink); text-decoration-color: rgb(127 255 160 / 0.5); }
code.inline, .lede code, .muted code, .host code, .faq code {
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.86em;
  color: var(--accent-bright);
  background: rgb(127 255 160 / 0.08);
}
.title-xl { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 16px; }
.page-head .seam { margin-top: 22px; max-width: 520px; }
.meters { margin-top: 16px; }
.gap { height: 26px; }
.w21 { --w: 21%; } .w38 { --w: 38%; } .w43 { --w: 43%; } .w55 { --w: 55%; } .w60 { --w: 60%; }
.eyebrow { color: var(--accent); }
.sheet-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.switch-sheet > .label:not(.eyebrow) { display: block; margin-bottom: 8px; color: var(--dim-text); }
.dl-list.one { grid-template-columns: minmax(0, 1fr); }
.way .code { margin: 14px 0 0; }
.section.first { padding-top: 24px; }
.sessions-head .head { margin-bottom: 0; }
.row .title { margin: 22px 0 18px; }
.row .lede { margin-bottom: 22px; }

/* ── Film ───────────────────────────────────────────────────────────────────────────────────── */

.film {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-950);
  box-shadow: 0 0 0 1px rgb(245 242 235 / 0.09), 0 40px 80px -30px rgb(0 0 0 / 0.8);
}
.film video { width: 100%; height: auto; background: #000; }

/* ── Install page ───────────────────────────────────────────────────────────────────────────── */

.page-head { padding: 36px 0 32px; }
@media (min-width: 900px) { .page-head { padding: 56px 0 44px; } }
.page-head h1 { margin: 16px 0 16px; }
.page-head .lede { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--dim-text); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ghost); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.ways { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .ways { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.way { padding: 22px; }
@media (min-width: 720px) { .way { padding: 26px; } }
.way > .seam { margin-bottom: 14px; }
.way h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px; }
.way > p { color: var(--muted); margin-bottom: 18px; }
.dl-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.dl {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  grid-template-areas: "os txt arrow" ". meta meta";
  align-items: center;
  gap: 8px 14px;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(to bottom, rgb(48 45 40 / 0.6), rgb(27 24 20 / 0.6));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.14), inset 0 0 0 1px rgb(245 242 235 / 0.06);
  transition: transform var(--fast) var(--expo), box-shadow var(--fast) ease;
}
@media (min-width: 720px) {
  .dl { grid-template-columns: 24px minmax(0, 1fr) auto 20px; grid-template-areas: "os txt meta arrow"; }
  .dl .meta { text-align: right; }
}
.dl:active { transform: scale(0.985); }
.dl .os { grid-area: os; display: flex; }
.dl .os svg { width: 24px; height: 24px; color: var(--muted); }
.dl .txt { grid-area: txt; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl .dl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dl .what { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dl .for { font-size: 13.5px; color: var(--dim-text); }
.dl .meta { grid-area: meta; font: 400 12px/1.6 var(--mono); color: var(--dim-text); }
.dl .arrow { grid-area: arrow; width: 20px; height: 20px; color: var(--muted); }
.dl.here {
  background:
    radial-gradient(120px 70px at 6% 50%, rgb(127 255 160 / 0.12), transparent 80%),
    linear-gradient(to bottom, rgb(127 255 160 / 0.12), rgb(127 255 160 / 0.04)),
    linear-gradient(to bottom, rgb(48 45 40 / 0.6), rgb(27 24 20 / 0.6));
  box-shadow: inset 0 1px 0 rgb(127 255 160 / 0.55), inset 0 0 0 1px rgb(127 255 160 / 0.16);
}
.dl.here .what, .dl.here .arrow, .dl.here .os svg { color: var(--accent); }
.dl .here-tag { display: none; }
.dl.here .here-tag { display: inline-flex; }
@media (hover: hover) and (pointer: fine) {
  .dl:hover { box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.24), inset 0 0 0 1px rgb(127 255 160 / 0.22); }
}
/* On an Android phone the app comes first; elsewhere the order stays Mac, Linux, Android. */
.android .dl-list .dl.android { order: -1; }
.sums { margin-top: 16px; display: grid; gap: 8px; }
.sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 12px; background: rgb(15 13 10 / 0.6); box-shadow: inset 0 0 0 1px rgb(245 242 235 / 0.06); }
.sum .name { font: 500 12.5px var(--mono); color: var(--muted); min-width: 0; }
.sum code { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: 12px; line-height: 1.5; color: var(--dim-text); overflow-wrap: anywhere; }
.sum .copy { grid-column: 2; grid-row: 1; }
.release-line { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 18px; font-size: 13.5px; color: var(--dim-text); }
.release-line a { color: var(--muted); }
.way.gh .pill { width: 100%; justify-content: flex-start; white-space: normal; text-align: left; min-height: 60px; padding: 10px 20px; border-radius: 22px; }
.way.gh .stack { display: grid; gap: 10px; }
.way.gh .stack small { display: block; font-size: 13px; color: var(--dim-text); font-weight: 500; }
.way.gh .pill .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.way.gh .pill-top { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ways-side { display: grid; gap: 14px; align-content: start; }
.qr-card { display: none; gap: 18px; align-items: center; padding: 18px; }
@media (min-width: 720px) { .qr-card { display: flex; } }
.android .qr-card { display: none; }
.qr-card .qr { width: 112px; height: 112px; flex: none; border-radius: 8px; }
.qr-card b { display: block; font-weight: 600; margin-bottom: 4px; }
.qr-card p { margin: 0; font-size: 14px; color: var(--muted); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  background: linear-gradient(to bottom, rgb(245 242 235 / 0.09), rgb(245 242 235 / 0.04));
  box-shadow: inset 0 1px 0 rgb(245 242 235 / 0.16);
  transition: color var(--fast) ease, transform var(--fast) var(--expo);
}
.copy:active { transform: scale(0.96); }
.copy.done { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .copy:hover { color: var(--ink); } }

/* The guide: a table of contents beside the rendered Markdown. */
.doc { display: grid; gap: 32px; padding-top: 64px; padding-bottom: 96px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .doc { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.toc { display: none; }
@media (min-width: 1040px) {
  .toc { display: block; position: sticky; top: calc(var(--header) + 24px); align-self: start; max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; }
}
.toc .seam { margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc a.on { color: var(--ink); background: rgb(245 242 235 / 0.05); box-shadow: inset 2px 0 0 var(--accent); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.toc-inline { margin-bottom: 8px; }
@media (min-width: 1040px) { .toc-inline { display: none; } }
.toc-inline summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline ol { margin: 0; padding: 0 10px 12px; list-style: none; }
.toc-inline a { display: block; padding: 8px; font-size: 15px; color: var(--muted); text-decoration: none; }

/* Rendered Markdown. */
.md { max-width: 760px; color: var(--muted); font-size: 16.5px; line-height: 1.68; }
.md > :first-child { margin-top: 0; }
.md h1 { display: none; }
.md h2 {
  position: relative;
  margin: 64px 0 18px;
  padding-top: 26px;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.md h2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--line) 40%, transparent); }
.md h3 { margin: 40px 0 12px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.md h4 { margin: 28px 0 10px; font-size: 16px; color: var(--ink); }
.md .md-anchor {
  margin-left: 10px;
  font-weight: 400;
  color: var(--ghost);
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--fast) ease;
}
.md h2:hover .md-anchor, .md h3:hover .md-anchor, .md .md-anchor:focus-visible { opacity: 1; }
.md p { margin: 0 0 16px; }
.md strong { color: var(--ink); font-weight: 650; }
.md em { color: var(--ink); font-style: italic; }
.md a { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(127 255 160 / 0.5); }
@media (hover: hover) and (pointer: fine) { .md a:hover { text-decoration-color: var(--accent); } }
.md :not(pre) > code {
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.86em;
  color: var(--accent-bright);
  background: rgb(127 255 160 / 0.08);
  overflow-wrap: anywhere;
}
.md ul, .md ol { margin: 0 0 18px; padding-left: 24px; }
.md li { margin: 6px 0; padding-left: 4px; }
.md li > p { margin: 0 0 10px; }
.md ul > li::marker { color: var(--accent-dim); }
.md ol > li::marker { color: var(--accent); font: 500 0.9em var(--mono); }
.md blockquote { margin: 0 0 18px; padding: 12px 18px; border-radius: 12px; background: rgb(15 13 10 / 0.5); box-shadow: inset 2px 0 0 var(--accent-dim); }
.md blockquote p:last-child { margin: 0; }
.md hr { margin: 40px 0; }
/* A table, as the app draws one in a reply (MarkdownTable.kt). */
.md-table {
  position: relative;
  margin: 0 0 22px;
  border-radius: 14px;
  overflow-x: auto;
  background: rgb(15 13 10 / 0.78);
  box-shadow: inset 0 0 0 1px rgb(245 242 235 / 0.08);
}
.md-table::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(245 242 235 / 0.25), transparent); }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.md thead th {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-text);
  background: rgb(34 31 27 / 0.45);
  border-bottom: 1px solid var(--line);
}
.md td { padding: 10px 14px; vertical-align: top; border-top: 1px solid var(--line-soft); min-width: 120px; }
.md tbody tr:first-child td { border-top: 0; }
.md td:first-child { color: var(--ink); }
.md td code { white-space: nowrap; }
.md .al-right { text-align: right; }
.md .al-center { text-align: center; }
/* Code, as the app's mini terminal. */
.code {
  margin: 0 0 20px;
  border-radius: 14px;
  background: rgb(15 13 10 / 0.86);
  box-shadow: inset 0 0 0 1px rgb(245 242 235 / 0.08);
  overflow: hidden;
}
.code-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 0 16px; min-height: 38px; }
.code-lang { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; color: var(--dim-text); }
.code-head::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; }
.code-head .copy { order: 2; }
.code pre { margin: 0; padding: 12px 16px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.code pre code { font: inherit; }
.code .c { color: var(--dim-text); }
.md .lead-bold { margin-top: 26px; }
.md figure.shot { margin: 28px 0; max-width: 320px; }

/* Guide pages. */
.guide { display: grid; gap: 40px; padding-bottom: 80px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .guide { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.guide aside { order: -1; }
@media (min-width: 1040px) { .guide aside { order: 0; position: sticky; top: calc(var(--header) + 24px); align-self: start; } }
.guide aside .shot { max-width: 300px; margin: 0 auto; }
@media (max-width: 1039px) { .guide aside .shot { max-width: 240px; } .guide aside .shot.mac { max-width: 280px; } .guide aside .shot.lens { max-width: 100%; } }
.guide aside .cta-card { margin-top: 20px; padding: 18px; }
.guide aside .cta-card p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.guide aside .cta-card .pill { width: 100%; }
/* On a narrow screen the screenshot leads and the install call waits for the end of the guide. */
.cta-after { display: none; margin-top: 28px; padding: 18px; }
.cta-after p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
@media (max-width: 1039px) { .guide aside .cta-card { display: none; } .cta-after { display: block; } }
.related { margin-top: 56px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.updated { font-size: 13px; color: var(--dim-text); margin-top: 32px; }

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

.site-foot { position: relative; padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(to bottom, rgb(15 13 10 / 0.3), rgb(15 13 10 / 0.75)); }
.site-foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .site-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-foot .brand { margin-bottom: 12px; }
.site-foot p { margin: 0 0 10px; font-size: 14px; color: var(--dim-text); max-width: 46ch; }
.site-foot h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-foot li a:hover { color: var(--ink); } }
.site-foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--dim-text); }
.site-foot .legal p { max-width: none; font-size: 13px; margin: 0; }
.site-foot .legal a { color: var(--muted); }

/* ── 404 ────────────────────────────────────────────────────────────────────────────────────── */

.lost { min-height: calc(100vh - var(--header) - 260px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .code404 { font: 400 13px var(--mono); color: var(--dim-text); letter-spacing: 0.08em; }
.lost h1 { margin: 16px 0 14px; }
.lost .cta { justify-content: center; margin-top: 28px; }
.lost .eclipse { width: 120px; height: 120px; margin: 0 auto 8px; }

/* ── Motion: arrivals ease out once, by transform and opacity only ───────────────────────────── */

.reveal-pending { opacity: 0; transform: translateY(10px); }
.reveal-in { opacity: 1; transform: none; transition: opacity var(--reveal) var(--expo), transform var(--reveal) var(--expo); }
.hero .rise { animation: rise 600ms var(--expo) both; }
.hero .rise:nth-child(2) { animation-delay: 60ms; }
.hero .rise:nth-child(3) { animation-delay: 120ms; }
.hero .rise:nth-child(4) { animation-delay: 180ms; }
.hero .rise:nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .planet.live::before { animation: none; }
}
@media print {
  .sky, .grain, .backdrop, .top, .stage, .site-foot { display: none; }
  body, html { background: #fff; color: #000; }
}
