/* ==========================================================================
   termelix.css — page styles for termelix.net
   Sits on top of base.css (termelix token fork, dark default).
   Signature: the page is a tmux session — fixed status bar, window labels,
   pane-state pills. Terminal surfaces stay dark in both themes.
   ========================================================================== */

/* Terminal-surface constants (theme-independent, sampled from the product) */
:root {
  --term-bg:      #101110;
  --term-bg-2:    #181917;
  --term-line:    #2b2c29;
  --term-ink:     #ecedea;
  --term-muted:   #8f938a;
  --term-signal:  #f59145;
  --term-ok:      #34d17e;
  --term-red:     #f0564a;
  --term-yellow:  #e8c341;
  --statusbar-h:  40px;
}

/* only the landing page carries the status bar; the imprint must not
   reserve space for it */
body:has(.tx-statusbar) { padding-bottom: var(--statusbar-h); }

main section { padding: var(--s-9) 0 0; }
main section:last-of-type { padding-bottom: var(--s-8); }

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-9);
  overflow: hidden;
}

/* faint pane-split blueprint behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, color-mix(in srgb, var(--signal) 12%, transparent) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: tx-pulse 2.4s ease-in-out infinite;
}

@keyframes tx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tx-wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 6.8vw, 92px);
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  margin: 20px 0 0;
  color: var(--ink);
}

.tx-cursor {
  display: inline-block;
  width: 0.46em;
  height: 0.82em;
  margin-left: 0.08em;
  background: var(--signal);
  vertical-align: baseline;
  transform: translateY(0.08em);
  animation: tx-blink 1.1s steps(1) infinite;
}

@keyframes tx-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.12; }
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--ink);
  margin: 22px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}

.hero-copy {
  font-size: var(--t-base);
  color: var(--ink-2);
  margin: 16px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   2. Terminal window (hero) — always dark
   -------------------------------------------------------------------------- */

.terminal-container { min-width: 0; }

.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.55);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-line);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--term-line);
}

.terminal-dot.red    { background: var(--term-red); }
.terminal-dot.yellow { background: var(--term-yellow); }
.terminal-dot.green  { background: var(--term-ok); }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.04em;
  color: var(--term-muted);
}

.terminal-body {
  padding: 18px 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--term-ink);
  overflow-x: auto;
}

.tx-line { white-space: pre-wrap; word-break: break-word; }

.tx-typed.tx-animating .tx-line { opacity: 0; }
.tx-typed .tx-line.tx-shown { opacity: 1; }

.tx-prompt { color: var(--term-signal); margin-right: 2px; }
.tx-ok { color: var(--term-ok); }
.tx-note { color: var(--term-muted); }

.tx-state {
  display: inline-block;
  padding: 0 7px;
  margin-right: 8px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  border-radius: 3px;
  border: 1px solid var(--term-line);
  color: var(--term-muted);
  transform: translateY(-1px);
}

.tx-state-wait {
  color: var(--term-signal);
  border-color: color-mix(in srgb, var(--term-signal) 45%, transparent);
  background: color-mix(in srgb, var(--term-signal) 12%, transparent);
}

.tx-state-done {
  color: var(--term-ok);
  border-color: color-mix(in srgb, var(--term-ok) 45%, transparent);
  background: color-mix(in srgb, var(--term-ok) 10%, transparent);
}

/* typing caret appended by JS while a command line types */
.tx-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--term-signal);
  vertical-align: -2px;
  animation: tx-blink 0.9s steps(1) infinite;
}

/* --------------------------------------------------------------------------
   3. Screenshot showcase — tmux-window tabs
   -------------------------------------------------------------------------- */

.shot-showcase { margin-bottom: var(--s-8); }

.shot-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--term-bg-2);
  border: 1px solid var(--term-line);
  border-bottom: 0;
  border-radius: var(--r-3) var(--r-3) 0 0;
  width: fit-content;
}

.shot-tab {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  color: var(--term-muted);
  background: none;
  border: 0;
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.shot-tab:hover { color: var(--term-ink); }

.shot-tab.active {
  color: #181917;
  background: var(--term-signal);
  font-weight: 600;
}

.shot-panel {
  margin: 0;
  border: 1px solid var(--term-line);
  border-radius: 0 var(--r-3) var(--r-3) var(--r-3);
  overflow: hidden;
  background: var(--term-bg);
  box-shadow: 0 32px 80px -40px rgba(0, 0, 0, 0.5);
}

.shot-panel img { width: 100%; height: auto; }

.shot-panel figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--term-muted);
  border-top: 1px solid var(--term-line);
  background: var(--term-bg-2);
}

/* stacked (no-JS) fallback: JS adds .shot-tabbed to enable the tab look */
.shot-showcase:not(.shot-tabbed) .shot-panel { border-radius: var(--r-3); }
.shot-showcase:not(.shot-tabbed) .shot-panel + .shot-panel { margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   4. Feature grid
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.feature-card {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  transition: border-color 0.2s ease;
}

.feature-card:hover { border-color: var(--line-strong); }

.feature-card h3 {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

.feature-card code,
.doors-note code,
.section-header code,
.tools-note code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--signal-ink);
  background: var(--signal-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   5. Agents — doors, facts, loop, states
   -------------------------------------------------------------------------- */

.doors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.door-card {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
}

.door-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.door-card h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 10px 0 6px;
}

.door-card h3 code { font-size: 0.92em; color: var(--ink); background: none; padding: 0; }

.door-card p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin: 0;
}

.door-card p code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--signal);
}

.doors-note {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-align: center;
  margin: var(--s-5) 0 0;
}

.agents-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  margin-top: var(--s-8);
}

.agents-subhead {
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
}

.key-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-facts li {
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.key-facts li:last-child { border-bottom: 0; }

.scope-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  color: var(--signal-ink);
  background: var(--signal-soft);
  border-radius: 3px;
  padding: 2px 7px;
  margin-right: 8px;
}

.loop-steps {
  list-style: none;
  counter-reset: loop;
  margin: 0;
  padding: 0;
}

.loop-steps li {
  counter-increment: loop;
  position: relative;
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: 10px 0 10px 44px;
  line-height: 1.55;
}

.loop-steps li::before {
  content: counter(loop);
  position: absolute;
  left: 0;
  top: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--signal);
  border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent);
  border-radius: 50%;
  background: var(--paper);
}

.loop-steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 37px;
  bottom: -9px;
  width: 1px;
  background: var(--line);
}

.loop-steps li:last-child::after { display: none; }

.loop-steps code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink);
  font-weight: 600;
}

.states-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
}

.state-pill {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}

.state-pill-hero {
  color: var(--signal);
  border-color: color-mix(in srgb, var(--signal) 50%, transparent);
  background: var(--signal-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.state-pill-hero em {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: var(--t-xxs);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   6. Setup tabs + code windows
   -------------------------------------------------------------------------- */

.setup-block { margin-top: var(--s-8); }

.setup-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.setup-tab {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2) var(--r-2) 0 0;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.setup-tab:hover { color: var(--ink); }

.setup-tab.active {
  color: var(--term-ink);
  background: var(--term-bg-2);
  border-color: var(--term-line);
  border-bottom-color: var(--term-bg-2);
}

/* no-JS: tabbar is decorative, all windows show stacked */
.setup-tabs:not(.setup-tabbed) .code-window + .code-window { margin-top: var(--s-4); }

.code-window {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 0 var(--r-3) var(--r-3) var(--r-3);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-line);
}

.code-filename {
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.04em;
  color: var(--term-muted);
}

.code-copy {
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--term-muted);
  background: none;
  border: 1px solid var(--term-line);
  border-radius: 3px;
  padding: 3px 9px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.code-copy:hover { color: var(--term-ink); border-color: var(--term-muted); }
.code-copy.copied { color: var(--term-ok); border-color: color-mix(in srgb, var(--term-ok) 45%, transparent); }
.code-copy.copy-failed { color: var(--term-red); border-color: color-mix(in srgb, var(--term-red) 45%, transparent); }

.code-body { overflow-x: auto; }

.code-body pre {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--term-ink);
}

.code-body code { font-family: inherit; }

/* --------------------------------------------------------------------------
   7. Tools table
   -------------------------------------------------------------------------- */

.tools-table-wrap { margin-top: var(--s-8); overflow-x: auto; }

.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}

.tools-table caption {
  text-align: left;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: var(--s-4);
}

.tools-table th {
  font-family: var(--font-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  text-align: left;
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--ink);
}

.tools-table td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

.tools-table td:first-child code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.tools-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--signal);
  white-space: nowrap;
}

.tools-note {
  font-size: var(--t-sm);
  color: var(--ink-3);
  margin: var(--s-4) 0 0;
}

/* --------------------------------------------------------------------------
   8. Origin
   -------------------------------------------------------------------------- */

.origin-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}

.origin-body p {
  font-size: var(--t-base);
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   9. Self-host
   -------------------------------------------------------------------------- */

.cli-content {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-7);
  align-items: start;
}

.cli-content .code-window { border-radius: var(--r-3); }

.command-list {
  display: flex;
  flex-direction: column;
}

.command-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.command-item:first-child { padding-top: 0; }
.command-item:last-child { border-bottom: 0; }

.command-name {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--signal);
}

.command-desc {
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Signup card
   -------------------------------------------------------------------------- */

.lm-card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  text-align: center;
}

.lm-card h3 {
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.lm-card p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 44ch;
}

.lm-form {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  margin: var(--s-5) 0 0;
}

.lm-form input[type="email"] {
  flex: 1;
  max-width: 300px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  padding: 11px 14px;
}

.lm-form input[type="email"]:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: transparent;
}

.lm-micro {
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: var(--s-4);
}

/* --------------------------------------------------------------------------
   11. Back-to-top (sits above the status bar)
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: var(--s-5);
  bottom: calc(var(--statusbar-h) + var(--s-4));
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 90;
}

.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: var(--signal); border-color: var(--signal); }
.back-to-top svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   12. The signature: tmux status bar
   -------------------------------------------------------------------------- */

.tx-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  height: var(--statusbar-h);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 14px;
  background: #141513;
  border-top: 1px solid var(--term-line);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
}

.tx-session {
  color: var(--term-ok);
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.tx-windows {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.tx-windows::-webkit-scrollbar { display: none; }

/* the status bar is a nav element — undo base.css nav-link styling
   (tmux windows are lowercase) */
.tx-statusbar .tx-window {
  color: var(--term-muted);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  text-transform: none;
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.tx-statusbar .tx-window:hover { color: var(--term-ink); }

.tx-statusbar .tx-window.active {
  color: #181917;
  background: var(--term-signal);
  font-weight: 600;
}

.tx-statusbar .tx-window.active:hover { color: #181917; }

.tx-host {
  margin-left: auto;
  color: var(--term-muted);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.tx-clock { color: var(--term-ink); margin-left: 6px; }

/* --------------------------------------------------------------------------
   12a. Imprint (subpage) — house pattern, ported from the sibling sites
   -------------------------------------------------------------------------- */

.p-section { padding: var(--s-9) 0; }

.backlink {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.backlink:hover { color: var(--signal); }

.imprint-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-7);
  align-items: start;
}

.imprint-meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.imprint-details {
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

.imprint-details strong { font-weight: 600; color: var(--ink); }
.imprint-details a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.imprint-details a:hover { color: var(--signal); border-color: var(--signal); }
.imprint-details .detail-group { margin: 0; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-content { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-tagline { max-width: 40ch; }
  .features-grid, .doors-grid { grid-template-columns: 1fr 1fr; }
  .agents-cols, .origin-body, .cli-content { grid-template-columns: 1fr; gap: var(--s-6); }
  .imprint-content { grid-template-columns: 1fr; gap: var(--s-4); }
  .imprint-details { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* base.css turns <nav> into the collapsed mobile menu below 768px —
   the status bar must stay a fixed bar */
@media (max-width: 768px) {
  nav.tx-statusbar {
    position: fixed;
    top: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #141513;
    border-bottom: 0;
    clip-path: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .features-grid, .doors-grid { grid-template-columns: 1fr; }
  .lm-form { flex-direction: column; }
  .lm-form input[type="email"] { max-width: none; }
  .tx-host { display: none; }
  .state-pill-hero { flex-wrap: wrap; }
  .terminal-body { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   14. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .tx-cursor, .tx-caret, .hero-badge .dot { animation: none !important; }
  .tx-typed .tx-line { opacity: 1 !important; }
  .shot-tab, .setup-tab, .tx-window, .code-copy { transition: none !important; }
}
