/* ErrorHalt — bend-lang narrative clarity on 1499.center dark industrial ground:
   #0f0f0f ground, crisp 1px borders, monospace-led hierarchy, #3dcd58 proof green,
   #ff5252 halt red, #08bdba cyan. Strict CSP: zero inline styles. */

:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #151515;
  --surface-alt: #1b1b1b;
  --ink: #ffffff;
  --ink-body: #cfcfcf;
  --muted: #8a8a8a;
  --line: #6e6e6e;
  --line-dim: #2b2b2b;
  --accent: #08bdba;
  --pass: #3dcd58;
  --halt: #ff5252;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 2px 6px;
  border: 1px solid var(--line-dim);
}

pre code {
  background: none;
  padding: 0;
  border: 0;
  font-size: inherit;
}

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Top Bar */
.topbar {
  border-bottom: 1px solid var(--line-dim);
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-right {
  display: flex;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-pass {
  background: var(--pass);
  border-color: var(--pass);
  color: #000000;
  font-weight: 700;
}

.btn-pass:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 13px;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

.strike {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 500;
}

/* Post-Checkout Confirmation Toast (?preordered=1) */
.preorder-toast {
  border-bottom: 1px solid var(--pass);
  background: #111813;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.preorder-toast[hidden] {
  display: none;
}

.preorder-toast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.preorder-toast strong {
  color: var(--pass);
}

.toast-close {
  appearance: none;
  border: 1px solid var(--line-dim);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1;
  padding: 4px 9px;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--ink);
  border-color: var(--line);
}

/* Hero + Bend-style Wordmark & Thesis */
.hero {
  padding: clamp(36px, 5vw, 68px) 0 clamp(36px, 5vw, 56px);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 32px;
  align-items: center;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.promo-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--pass);
  background: rgba(61, 205, 88, 0.08);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pass);
  margin-bottom: 20px;
}

.hero-wordmark {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor-block {
  display: inline-block;
  width: 0.44em;
  height: 0.86em;
  background: var(--halt);
  animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-sub {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
}

.hero-sub strong {
  color: var(--ink);
}

.hero-sub strong.ink-halt {
  color: var(--halt);
}

.hero-tags {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-tags strong {
  color: var(--ink-body);
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Hero Video Frame */
.video-frame {
  border: 1px solid var(--line);
  background: #000000;
  transition: border-color 0.15s ease;
}

.video-frame:hover {
  border-color: var(--pass);
}

.video-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-cap-title {
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-cap-title::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--pass);
  flex: none;
}

.video-cap-dur {
  color: var(--accent);
  font-weight: 600;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.unmute-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  min-height: 44px;
  border: 0;
  border-top: 1px solid var(--pass);
  background: #111813;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.unmute-btn[hidden] {
  display: none;
}

.unmute-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.unmute-icon {
  color: var(--pass);
  font-size: 0.74rem;
}

.unmute-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pass);
}

.unmute-btn:hover {
  background: var(--pass);
  color: #000000;
}

.unmute-btn:hover .unmute-icon,
.unmute-btn:hover .unmute-tag {
  color: #000000;
}

/* Centered Thesis (Bend #intro rhythm) */
.thesis {
  max-width: 62ch;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line-dim);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.35vw, 1.04rem);
  line-height: 1.72;
  color: var(--ink-body);
}

.thesis p {
  margin: 0 0 18px;
}

.thesis strong {
  color: var(--ink);
}

.punchline {
  margin: 26px 0 0 !important;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.punchline strong {
  color: var(--pass);
}

/* Numbered Editorial Sections */
.section {
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--line-dim);
}

.prose {
  max-width: 62ch;
  margin: 0 auto 30px;
}

.prose h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: clamp(1.38rem, 2.7vw, 1.95rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.sec-num {
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}

.hl-halt { color: var(--halt); }
.hl-pass { color: var(--pass); }
.hl-cyan { color: var(--accent); }

.prose p {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.28vw, 1rem);
  line-height: 1.7;
  color: var(--ink-body);
}

.prose p strong {
  color: var(--ink);
}

/* Section 1: Live Animated Industrial Bug Simulations */
.sim-showcase {
  max-width: 920px;
  margin: 0 auto;
}

.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--bg);
}

.sim-tab {
  appearance: none;
  flex: 1 1 auto;
  border: 0;
  border-right: 1px solid var(--line-dim);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 16px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sim-tab:last-child {
  border-right: 0;
}

.sim-tab:hover {
  color: var(--ink);
  background: var(--surface);
}

.sim-tab[aria-selected="true"] {
  background: var(--accent);
  color: #000000;
  font-weight: 700;
}

.sim-law-bar {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line-dim);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink);
  text-align: center;
}

.sim-law-label {
  color: var(--pass);
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 6px;
}

.sim-prompt {
  text-align: center;
  margin: 22px 0;
}

.sim-prompt-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.sim-prompt-quote {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 600;
  color: var(--accent);
}

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

.sim-card {
  margin: 0;
  border: 1px solid var(--line-dim);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sim-card.is-bad {
  border-color: rgba(255, 82, 82, 0.65);
}

.sim-card.is-good {
  border-color: var(--pass);
}

.sim-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.sim-subtag {
  font-size: 0.7rem;
  color: var(--muted);
}

.sim-subtag.good {
  color: var(--pass);
}

.sim-canvas-wrap {
  width: 100%;
  aspect-ratio: 360 / 224;
  background: #0b0b0b;
  position: relative;
}

.sim-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sim-verdict {
  padding: 11px 14px;
  border-top: 1px solid var(--line-dim);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: center;
}

.sim-verdict.bad {
  color: var(--halt);
}

.sim-verdict.good {
  color: var(--pass);
}

.prose-bridge {
  max-width: 62ch;
  margin: 24px auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--ink-body);
  text-align: center;
}

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

.code-box {
  border: 1px solid var(--line-dim);
  background: var(--surface);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.code-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.badge-lock {
  border-color: var(--accent);
  color: var(--accent);
}

.badge-pass {
  background: var(--pass);
  border-color: var(--pass);
  color: #000000;
}

.code-scroll {
  margin: 0;
  padding: 14px;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.58;
  color: var(--ink-body);
  overflow-x: auto;
  white-space: pre;
  flex: 1 1 auto;
}

.tok-kw { color: var(--accent); font-weight: 600; }
.tok-cmt { color: var(--muted); }
.tok-bad { color: var(--halt); font-weight: 700; }
.tok-ok { color: var(--pass); font-weight: 700; }
.tok-cmd { color: #ffffff; font-weight: 700; }

/* Section 2: Bend-style Speed & Coverage Bar Chart */
.speed-chart {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--line-dim);
  background: var(--surface);
  padding: 26px 24px 20px;
}

.speed-title {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-body);
  margin-bottom: 24px;
}

.bars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.bar-mult {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pass);
  margin-bottom: 2px;
}

.bar-val {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bar-val.muted {
  color: var(--muted);
}

.bar-val.winner {
  color: var(--ink);
}

.bar-track {
  width: 100%;
  max-width: 112px;
  height: 190px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.bar-fill {
  width: 100%;
}

.bar-fill.is-over {
  height: 100%;
  border: 1px solid #444444;
  border-bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    #252525 0px,
    #252525 6px,
    #181818 6px,
    #181818 12px
  );
}

.bar-fill.is-ide {
  height: 74%;
  background: #3b3b3b;
}

.bar-fill.is-mcp {
  height: 34%;
  background: #3b3b3b;
}

.bar-fill.is-eh {
  height: 6px;
  background: var(--pass);
  box-shadow: 0 0 14px rgba(61, 205, 88, 0.55);
}

.bar-name {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-body);
}

.bar-name.winner {
  color: var(--pass);
}

.bar-sub {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.bar-sub.winner {
  color: var(--ink-body);
}

.speed-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dim);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* Section 3: Runtime Pipeline + AGENTS.md */
.pipeline {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 0.9fr) auto minmax(0, 1.35fr);
  gap: 12px;
  align-items: center;
}

.pipe-node {
  border: 1px solid var(--line-dim);
  background: var(--surface);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  min-width: 0;
}

.pipe-node.is-gate {
  border-color: var(--accent);
  background: #101919;
}

.pipe-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pipe-node strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.pipe-node span:last-child {
  font-size: 0.75rem;
  color: var(--ink-body);
}

.pipe-arrow {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.pipe-targets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pipe-target {
  border: 1px solid var(--line-dim);
  background: var(--surface);
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pipe-target.is-pro {
  border-color: var(--pass);
  background: #111813;
  color: var(--ink-body);
}

.pipe-target-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pipe-target-top strong {
  font-size: 0.86rem;
  color: var(--ink);
}

.target-tier {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--ink-body);
}

.target-tier.pro {
  background: var(--pass);
  border-color: var(--pass);
  color: #000000;
}

.agents-snippet {
  max-width: 720px;
  margin: 24px auto 0;
  border: 1px solid var(--line-dim);
  background: var(--surface);
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--pass);
  color: var(--pass);
}

/* Section 4: 3-Tier Commercial Pricing */
.pricing-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--line-dim);
  background: var(--surface);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.price-card.featured {
  border: 2px solid var(--pass);
  background: #111813;
}

.price-ribbon {
  display: inline-block;
  align-self: flex-start;
  background: var(--pass);
  color: #000000;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.tier-name {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.18rem;
  font-weight: 700;
}

.tier-desc {
  margin: 6px 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 6px;
}

.price-now {
  font-family: var(--mono);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.price-was {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-unit {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--muted);
}

.price-note {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--pass);
}

.price-note.muted {
  color: var(--muted);
}

.tier-features {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-dim);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1 1 auto;
}

.tier-features li {
  padding-left: 20px;
  position: relative;
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.45;
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.price-card.featured .tier-features li::before {
  color: var(--pass);
}

.tier-features li.pro-highlight {
  color: var(--ink);
}

.pro-pill-inline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  background: rgba(61, 205, 88, 0.18);
  border: 1px solid var(--pass);
  color: var(--pass);
  margin-right: 4px;
  vertical-align: 1px;
}

/* Contact Form */
.contact-card {
  max-width: 720px;
  margin: 28px auto 0;
  border: 1px solid var(--line-dim);
  background: var(--surface);
}

.contact-mail-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-mail-link:hover {
  color: var(--pass);
}

.contact-form {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-field span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line-dim);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 0;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #555555;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-field textarea {
  resize: vertical;
  min-height: 78px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-status {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--pass);
}

.faq-mini {
  max-width: 68ch;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-mini p {
  margin: 0;
}

.faq-mini strong {
  color: var(--ink-body);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line-dim);
  padding: 26px 0 40px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

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

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

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.scope-footnote {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .sim-pair,
  .code-pair,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-split {
    gap: 28px;
  }
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipe-arrow {
    transform: rotate(90deg);
    line-height: 1;
  }
}

@media (max-width: 720px) {
  .contact-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-actions .btn {
    width: 100%;
  }
  .topbar-nav {
    display: none;
  }
  .shell {
    padding: 0 14px;
  }
  .brand {
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    gap: 8px;
  }
  .brand-mark {
    width: 22px;
    height: 22px;
  }
  .topbar .btn-sm {
    padding: 6px 11px;
    font-size: 0.75rem;
    min-height: 36px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .sim-tab {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line-dim);
  }
  .sim-tab:last-child {
    border-bottom: 0;
  }
  .speed-chart {
    padding: 20px 12px 16px;
  }
  .bars-grid {
    gap: 8px;
  }
  .bar-track {
    height: 145px;
  }
  .bar-val {
    font-size: 0.74rem;
  }
  .bar-mult {
    font-size: 0.64rem;
  }
  .bar-name {
    font-size: 0.68rem;
  }
  .bar-sub {
    font-size: 0.6rem;
  }
}

@media (max-width: 420px) {
  .hide-xs,
  .unmute-tag {
    display: none;
  }
}
