/* oomtop site: neutral surfaces + one accent (ember amber). Dark first; light via prefers-color-scheme or the toggle. */

:root {
  --bg: #0d0c0b;
  --bg-2: #121110;
  --surface: #171513;
  --surface-2: #1d1b18;
  --line: #2a2723;
  --line-2: #38342f;
  --text: #ede9e3;
  --muted: #a8a29a;
  --faint: #6f6960;
  --accent: #ffb547;          /* the one accent */
  --accent-text: #ffb547;     /* accent used as text */
  --accent-ink: #1a1206;      /* text on accent fills */
  --accent-soft: rgba(255, 181, 71, 0.12);
  --accent-glow: rgba(255, 181, 71, 0.22);
  --scrim: rgba(13, 12, 11, 0.86);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --kind-agent: #e6e0d6;
  --kind-app: #a39c92;
  --kind-system: #5a554e;
  --kind-other: #7d776e;
  --scene-bg: #0d0c0b;
  --scene-ground: #141210;
  --plinth: #4a443d;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5f1;
    --bg-2: #f1eee8;
    --surface: #ffffff;
    --surface-2: #faf8f4;
    --line: #e4dfd7;
    --line-2: #d6d0c6;
    --text: #1b1916;
    --muted: #5e5850;
    --faint: #a39d94;
    --accent-text: #9a5600;
    --accent-soft: rgba(255, 181, 71, 0.18);
    --accent-glow: rgba(255, 181, 71, 0.35);
    --scrim: rgba(247, 245, 241, 0.88);
    --shadow: 0 1px 2px rgba(27, 25, 22, 0.05), 0 18px 50px -24px rgba(27, 25, 22, 0.25);
    --kind-agent: #3b3731;
    --kind-app: #8a8379;
    --kind-system: #cfc8bd;
    --kind-other: #aaa298;
    --scene-bg: #f7f5f1;
    --scene-ground: #ece8e1;
    --plinth: #e3ded5;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f5f1;
  --bg-2: #f1eee8;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --line: #e4dfd7;
  --line-2: #d6d0c6;
  --text: #1b1916;
  --muted: #5e5850;
  --faint: #a39d94;
  --accent-text: #9a5600;
  --accent-soft: rgba(255, 181, 71, 0.18);
  --accent-glow: rgba(255, 181, 71, 0.35);
  --scrim: rgba(247, 245, 241, 0.88);
  --shadow: 0 1px 2px rgba(27, 25, 22, 0.05), 0 18px 50px -24px rgba(27, 25, 22, 0.25);
  --kind-agent: #3b3731;
  --kind-app: #8a8379;
  --kind-system: #cfc8bd;
  --kind-other: #aaa298;
  --scene-bg: #f7f5f1;
  --scene-ground: #ece8e1;
  --plinth: #e3ded5;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* subtle grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.38em; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0.05em 0.4em; background: var(--surface); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.accent { color: var(--accent-text); }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 1.02rem; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.bm-bg { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.bm-accent { stroke: var(--accent); }
.bm-a { fill: var(--faint); } .bm-b { fill: var(--muted); } .bm-c { fill: var(--accent); }
.pill { font: 500 0.72rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 860px) { .nav nav { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 480px) { .pill { display: none; } }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 11px; font: 600 0.95rem/1 var(--font);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px var(--accent-glow); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 0.88rem; border-radius: 9px; }
.gh { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 420px) { .nav-actions .btn-sm span { display: none; } }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 4px; }
.link-quiet:hover { color: var(--text); }

/* ───────── hero ───────── */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: stretch; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 72% 40%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%), var(--scene-bg); }
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.hero-scene canvas.dragging { cursor: grabbing; }
.hero-scene canvas.pointing { cursor: pointer; }
.hero::after { /* scrim behind the copy */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--scrim) 0%, color-mix(in srgb, var(--scrim) 60%, transparent) 34%, transparent 56%),
              linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 600px) 1fr; align-items: center; gap: 32px; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(40px, 8vh, 96px); pointer-events: none; }
.hero-grid > * { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 0.8rem/1.3 var(--mono); color: var(--muted); letter-spacing: 0.01em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; margin: 0 0 22px; }
.lede { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 46ch; margin: 0 0 28px; line-height: 1.55; }
.lede strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.lede em { color: var(--text); font-style: normal; }

.install-cta { max-width: 560px; margin-bottom: 22px; }
.cta-tabs { display: flex; gap: 2px; margin-bottom: 8px; }
.cta-tabs button, .tabs button {
  font: 500 0.82rem/1 var(--font); color: var(--muted); background: transparent; border: 1px solid transparent;
  padding: 7px 11px; border-radius: 8px; cursor: pointer;
}
.cta-tabs button[aria-selected="true"], .tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.cmd {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cmd code { flex: 1; min-width: 0; font-size: 0.9rem; background: none; border: 0; padding: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.prompt { color: var(--accent-text); user-select: none; margin-right: 6px; }
.copy {
  flex: none; font: 600 0.8rem/1 var(--font); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 0 12px; height: 38px; cursor: pointer; min-width: 64px;
}
.copy:hover { border-color: var(--muted); }
.copy.done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.cta-note { margin: 8px 2px 0; font-size: 0.82rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-actions.center { justify-content: center; }

.hud {
  align-self: end; justify-self: end; width: min(330px, 100%);
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hud-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.hud-title { font: 500 0.78rem/1.3 var(--mono); color: var(--muted); }
.hud-src { font: 500 0.7rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 7px; }
.hud-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-k { font-size: 0.74rem; color: var(--muted); }
.stat-v { font: 700 1.7rem/1.1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-v-sm { font-size: 1.15rem; padding-top: 0.45rem; color: var(--muted); }
#hud-headroom.up { color: var(--accent-text); }
.hud-help { margin: 0 0 12px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); margin: 0 5px 0 2px; vertical-align: 0; }
.hud-swap { display: none; }
.hud-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hud-actions button {
  font: 500 0.76rem/1.2 var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 7px 9px; cursor: pointer; text-align: left;
}
.hud-actions button:hover { border-color: var(--accent); }
.hud-actions button[aria-pressed="true"] { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.hud-actions .reset { color: var(--muted); }

.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 160px; max-width: 260px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px;
  font-size: 0.8rem; line-height: 1.45; box-shadow: var(--shadow); transform: translate(14px, 14px);
}
.tip b { display: block; font-weight: 600; font-size: 0.88rem; }
.tip .tk { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; }
.tip .ta { color: var(--accent-text); font-weight: 500; }
.scene-label {
  position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -100%);
  font: 500 0.72rem/1 var(--mono); color: var(--muted); white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line);
}
.scene-noscript { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.5; }
.scene-label-peak { color: var(--text); }
.scene-label-step { transform: translate(-50%, -50%); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--bg) 82%, transparent); }
.scene-label-step.is-freed { border-style: dashed; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: start end; padding: max(96px, 14vh) max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) 0 0; }
.scene-fallback svg { width: min(600px, 42vw); height: auto; opacity: 0.9; }

@media (max-width: 900px) {
  /* small screens: copy, then the scene, then the HUD */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero::after { display: none; }
  .hero-grid { display: contents; }
  .hero-copy { order: 1; padding: 36px var(--gutter) 4px; }
  .hero-scene { position: relative; inset: auto; order: 2; height: 440px; z-index: 0; }
  .hud { order: 3; justify-self: stretch; width: auto; margin: -12px var(--gutter) 32px; position: relative; z-index: 1; }
  .scene-fallback { place-items: center; padding: 0 var(--gutter); }
  #label-swap { display: none !important; } /* no room beside the well on phones: the HUD says it instead */
  .hud-swap { display: block; margin-top: 4px; }
  .scene-fallback svg { width: 92%; }
}

/* ───────── sections ───────── */
.section { padding: clamp(72px, 11vw, 136px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font: 500 0.78rem/1 var(--mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 700; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 650; text-wrap: balance; }
h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.prose { color: var(--muted); font-size: 1.06rem; margin: 0 0 18px; }
.prose strong { color: var(--text); }
.center .prose { margin-left: auto; margin-right: auto; max-width: 62ch; }

/* tables */
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font: 500 0.76rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-2); }
tbody th { font-weight: 600; }
.truth td:nth-child(2) { color: var(--muted); }
.truth td:nth-child(3) strong { color: var(--accent-text); }
.truth { min-width: 720px; }

/* what it answers */
.answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.answer { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; }
.answer h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.answer p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.answer code { display: block; margin-top: auto; padding: 9px 10px; color: var(--accent-text); font-size: 0.74rem; white-space: nowrap; overflow-x: auto; }
.answer code .prompt { color: var(--muted); margin-right: 6px; }
@media (max-width: 1080px) { .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .answers { grid-template-columns: 1fr; } }
.headline-demo { margin: 32px 0 0; }
.term-line {
  font: 500 clamp(0.82rem, 1.6vw, 0.98rem)/1.6 var(--mono); background: var(--bg-2); border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px;
}
.term-line .sev { color: var(--accent-text); margin-right: 6px; }
.headline-demo figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }

/* features */
.features .center { margin-bottom: clamp(32px, 6vw, 64px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature-copy p, .feature-card p { color: var(--muted); margin: 0 0 14px; }
.feature-copy p strong, .feature-card p strong, .points strong { color: var(--text); }
.fnum { display: inline-block; font: 600 0.76rem/1 var(--mono); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); padding: 5px 7px; border-radius: 6px; margin-bottom: 14px; }
.feature-copy { position: sticky; top: 92px; }
.shot { margin: 0; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #0b0a09; box-shadow: var(--shadow); }
a.frame { display: block; cursor: zoom-in; transition: border-color 0.15s ease; }
a.frame:hover { border-color: var(--muted); }
.frame img { width: 100%; height: auto; }
.shot figcaption { color: var(--muted); font-size: 0.84rem; margin-top: 12px; line-height: 1.5; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; color: var(--muted); }
.points li { padding-left: 18px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 2px; background: var(--accent); }
#headroom { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
#headroom .calc { grid-column: 2; grid-row: 1 / span 2; }
#headroom .exit-table { grid-column: 1; }
#headroom .shot { grid-column: 1 / -1; }
#headroom .feature-copy { position: static; } /* rows sit under the copy here: sticky would slide over them */
.feature-text { align-items: center; }
.feature-text .feature-copy { position: static; }

/* membar */
.membar-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.membar-line { display: flex; align-items: center; font-size: clamp(0.62rem, 1.35vw, 0.92rem); white-space: nowrap; overflow: hidden; }
.mb-label { color: var(--muted); }
.mb-bar { flex: 1; min-width: 0; overflow: hidden; letter-spacing: 0; }
.mb-bar span { white-space: pre; }
.mb-total { color: var(--muted); margin-left: 8px; }
.g-app { color: var(--text); } .g-comp { color: var(--accent-text); } .g-wired { color: var(--muted); } .g-cache { color: var(--faint); } .g-free { color: var(--line-2); }
.mb-legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.mb-legend li { display: flex; align-items: baseline; gap: 8px; font-size: 0.86rem; }
.mb-legend .glyph { font-family: var(--mono); width: 1.3em; text-align: center; flex: none; }
.mb-legend .v { white-space: nowrap; margin-left: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-note { color: var(--muted); font-size: 0.8rem; margin: 16px 0 0; }

/* calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); box-shadow: var(--shadow); min-width: 0; }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 18px; }
.calc-src { font-size: 0.76rem; color: var(--muted); }
.calc-input { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 18px; }
.calc-input label { font-weight: 600; }
.calc-input output { font-size: 1.05rem; font-weight: 700; min-width: 5.6em; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line-2) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--text); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px rgba(0,0,0,.3); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.calc-bar { position: relative; height: 14px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); display: flex; overflow: visible; margin: 6px 0 10px; }
.cb-seg { height: 100%; }
.cb-head { background: var(--muted); border-radius: 6px 0 0 6px; }
.cb-r { background: repeating-linear-gradient(135deg, var(--accent) 0 5px, color-mix(in srgb, var(--accent) 55%, transparent) 5px 8px); border-left: 1px solid var(--surface); }
.cb-r:last-of-type { border-radius: 0 6px 6px 0; }
.cb-need { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); transition: left 0.12s ease-out; }
.cb-need span { position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.cb-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.76rem; color: var(--muted); }
.cb-legend li { display: flex; align-items: center; gap: 6px; }
.k { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.k-head { background: var(--muted); }
.k-r { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, color-mix(in srgb, var(--accent) 55%, transparent) 3px 5px); }
.k-need { width: 2px; height: 12px; background: var(--text); }
.term { background: #0b0a09; color: #ede9e3; border: 1px solid #2a2723; border-radius: 11px; padding: 14px 16px; font-size: 0.86rem; }
.term .prompt { color: #ffb547; }
.term-cmd { color: #ede9e3; margin-bottom: 8px; overflow-wrap: anywhere; }
.term-out { color: #cfc9c0; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 3.2em; line-height: 1.55; }
.term-out .dim { color: #8a847b; }
.term-exit { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #2a2723; }
.verdict { font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.verdict::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
.verdict.v-yes { color: #ede9e3; }
.verdict.v-after { color: #ffb547; }
.verdict.v-no { color: #a8a29a; }
.verdict.v-no::before { background: transparent; border: 2px solid currentColor; border-radius: 50%; }
.exit { color: #a8a29a; }
.exit b { color: #ede9e3; font-size: 1.05rem; }
.calc-note { color: var(--muted); font-size: 0.78rem; margin: 12px 0 0; }

.exit-table table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: table; }
.exit-table { display: grid; gap: 14px; align-content: start; }
.exit-table th, .exit-table td { padding: 10px 14px; }
.exit-table td:first-child { white-space: nowrap; }
.snippet { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 6px 6px 6px 14px; margin: 0 0 14px; min-width: 0; }
.snippet code, .snippet pre { flex: 1; min-width: 0; margin: 0; background: none; border: 0; padding: 0; font-size: 0.84rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word; }
.snippet.block pre { white-space: pre; overflow-x: auto; overflow-wrap: normal; scrollbar-width: thin; }
.snippet.block pre code { white-space: pre; overflow-wrap: normal; }
.snippet.block { align-items: flex-start; padding: 14px 10px 14px 16px; }
.snippet.block pre code { font-size: 0.86rem; line-height: 1.7; background: none; border: 0; padding: 0; }
.snippet .c-cm { color: var(--muted); }

/* feature pair */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px dashed var(--line); }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; }
.feature-card .shot { align-self: stretch; }
.feature-card .shot { margin-top: auto; padding-top: 10px; }

/* keymap */
.keymap { margin-top: 40px; background: #0b0a09; color: #ede9e3; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.keymap:focus-visible { outline-offset: 4px; }
.term-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #221f1c; background: #12100f; }
.term-chrome span { width: 11px; height: 11px; border-radius: 50%; background: #2c2925; }
.term-chrome em { font: 500 0.74rem/1 var(--mono); color: #8a847b; font-style: normal; margin-left: 8px; }
.fbar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0; padding: 0; background: #0b0a09; font-family: var(--mono); border-bottom: 1px solid #221f1c; }
.fkey { display: flex; align-items: stretch; min-width: 0; border: 0; padding: 0; background: transparent; cursor: pointer; font: 500 0.84rem/1 var(--mono); color: #ede9e3; text-align: left; }
.fkey .fk { padding: 10px 4px 10px 8px; color: #ede9e3; }
.fkey .fl { flex: 1; padding: 10px 6px; background: #2c2925; color: #ede9e3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fkey .fs { display: none; }
.fkey:hover .fl { background: #3a3631; }
.fkey[aria-pressed="true"] .fl { background: #ffb547; color: #1a1206; }
.fkey[aria-pressed="true"] .fk { color: #ffb547; }
.key-detail { padding: 22px 22px 6px; min-height: 104px; font-size: 0.95rem; }
.key-detail .kd-key { display: inline-flex; align-items: center; gap: 10px; font: 600 1.1rem/1 var(--mono); color: #ffb547; margin-bottom: 8px; }
.key-detail .kd-key small { font: 500 0.74rem/1 var(--mono); color: #8a847b; border: 1px solid #38342f; border-radius: 999px; padding: 4px 8px; }
.key-detail p { margin: 0; color: #cfc9c0; max-width: 72ch; }
.key-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding: 18px 22px 24px; }
.kg h3 { font: 600 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #8a847b; margin: 0 0 10px; }
.kg-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.kcap { display: inline-flex; align-items: center; gap: 7px; font: 500 0.8rem/1 var(--mono); color: #ede9e3; background: #171513; border: 1px solid #2f2b27; border-bottom-width: 2px; border-radius: 8px; padding: 7px 9px; cursor: pointer; }
.kcap b { color: #ffb547; font-weight: 700; }
.kcap span { color: #a8a29a; }
.kcap:hover { border-color: #5a554e; }
.kcap[aria-pressed="true"] { border-color: #ffb547; background: #1f1a12; }
.keymap .note { padding: 0 22px 20px; color: #8a847b; font-size: 0.78rem; margin: 0; }
@media (max-width: 900px) {
  .fbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .fkey .fl-long { display: none; }
  .fkey .fs { display: inline; }
}
@media (max-width: 420px) {
  .fkey { font-size: 0.74rem; }
  .fkey .fk { padding: 10px 3px 10px 5px; }
  .fkey .fl { padding: 10px 3px; text-overflow: clip; }
}

/* pipeline */
.pipeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.pipeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--accent-text); font-family: var(--mono); z-index: 1; background: var(--bg); line-height: 1; padding: 2px 0; }
.pl-k { font: 600 0.92rem/1.2 var(--mono); }
.pl-v { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.pl-n { margin-top: auto; font: 500 0.72rem/1.3 var(--mono); color: var(--accent-text); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.fact { border-top: 2px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.fact-v { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--mono); letter-spacing: -0.03em; }
.fact-k { color: var(--muted); font-size: 0.86rem; }

/* install */
.install { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; padding: 9px 12px; }
.badge { font: 500 0.66rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 6px; }
.badge-live { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tab-panel { padding: clamp(16px, 3vw, 26px); }
.tab-panel .snippet { margin: 0; }
.panel-note { color: var(--muted); font-size: 0.88rem; margin: 14px 0 0; }
.archives { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.84rem; }
.archives li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; }
.archives span { overflow-wrap: anywhere; }
.archives em { font-style: normal; color: var(--muted); font-family: var(--font); }
.platforms { margin-top: 20px; }
.usage { margin-top: 36px; }
.usage-list { margin: 0; background: #0b0a09; color: #ede9e3; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 22px; font-size: 0.86rem; line-height: 1.6; display: grid; gap: 0; }
.usage-list div { display: grid; grid-template-columns: minmax(0, 17em) minmax(0, 1fr); gap: 4px 24px; padding: 5px 0; }
.usage-list dt { color: #ede9e3; }
.usage-list dd { margin: 0; color: #8a847b; }
.usage-list dd::before { content: "# "; }
@media (max-width: 640px) {
  .usage-list { padding: 12px 16px; }
  .usage-list div { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 7px 0; border-bottom: 1px solid #1d1b18; }
  .usage-list div:last-child { border-bottom: 0; }
}
.c-cm { color: #8a847b; }

/* compare */
.compare { min-width: 760px; }
.compare td, .compare thead th:not(:first-child) { text-align: center; }
.compare td { color: var(--muted); font-family: var(--mono); font-size: 0.86rem; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { background: var(--surface-2); }
@media (max-width: 640px) { .compare tbody th { min-width: 180px; max-width: 200px; box-shadow: 1px 0 0 var(--line); } }
.compare .us { color: var(--text); background: var(--accent-soft); font-weight: 600; }
.compare td.us { color: var(--accent-text); }
.compare thead .us { color: var(--accent-text); }

/* cards */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.closing { background: radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer a:hover { color: var(--text); }
.footer .brand { color: var(--text); }
.foot-h { font: 600 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 4px 0 14px; }
.foot-base { margin-top: 40px; }
.foot-base > span { display: block; padding-top: 20px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 640px) {
  .truth { min-width: 0; }
  .truth thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .truth, .truth tbody, .truth tr, .truth th, .truth td { display: block; width: 100%; }
  .truth tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .truth tbody tr:last-child { border-bottom: 0; }
  .truth th, .truth td { padding: 0; border: 0; }
  .truth tbody th { font-size: 1rem; margin-bottom: 10px; }
  .truth td { margin-top: 8px; }
  .truth td::before { content: attr(data-label); display: block; font: 500 0.68rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
  .table-wrap:has(.truth) { overflow: visible; }
  .cmd code { white-space: normal; overflow-wrap: anywhere; font-size: 0.84rem; line-height: 1.5; }
}

@media (max-width: 980px) {
  .feature, #headroom { grid-template-columns: minmax(0, 1fr); }
  .feature-copy { position: static; }
  #headroom .calc, #headroom .exit-table, #headroom .shot { grid-column: auto; grid-row: auto; }
  .feature-pair { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .pipeline li:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -13px; transform: none; padding: 0 4px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .calc-input { grid-template-columns: 1fr auto; }
  .calc-input input { grid-column: 1 / -1; grid-row: 2; }
  th, td { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ?og: the layout used to render og.png (1200x630) */
.og .nav, .og .install-cta, .og .hero-actions, .og .hud, .og #label-swap, .og body::before { display: none !important; }
.og .hero { min-height: 100vh; border: 0; }
.og .hero-grid { padding-top: 0; padding-bottom: 0; }
.og h1 { font-size: 5.4rem; }
.og .lede { font-size: 1.25rem; margin-bottom: 0; }
.og .eyebrow { font-size: 0.95rem; }
.og .eyebrow { white-space: nowrap; }
.og .lede::after { content: "github.com/iprajax/oomtop"; display: block; margin-top: 22px; font: 600 1rem/1 var(--mono); color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
