:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}body{margin:0}img{max-width:100%}[hidden]{display:none!important}
/* Layout: left-aligned editorial column; the product's own run console is the spine of the page. Same type family and teal as the app. */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --sunk: #eaf0f0;
  --fg: #12201f;
  --muted: #536664;
  --line: #d3dedd;
  --accent: #0e7490;
  --accent-strong: #155e75;
  --accent-soft: #e0f3f7;
  --on-accent: #ffffff;
  --ok: #157f4a;
  --warn: #a16207;
  --err: #b42318;
  --console-bg: #0d1a1c;
  --console-fg: #cfe3e2;
  --console-dim: #6f8b8a;
  --console-ok: #5fd39a;
  --console-accent: #67e8f9;
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 5.4vw, 4rem);
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1415; --surface: #111e20; --sunk: #0e191a; --fg: #e3eeed; --muted: #8fa5a3; --line: #23393b;
    --accent: #22d3ee; --accent-strong: #67e8f9; --accent-soft: rgba(34, 211, 238, 0.12); --on-accent: #06181d;
    --ok: #4ade80; --warn: #facc15; --err: #f87171;
    --console-bg: #060d0e; --console-fg: #cfe3e2; --console-dim: #5f7978; --console-ok: #5fd39a; --console-accent: #67e8f9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1415; --surface: #111e20; --sunk: #0e191a; --fg: #e3eeed; --muted: #8fa5a3; --line: #23393b;
  --accent: #22d3ee; --accent-strong: #67e8f9; --accent-soft: rgba(34, 211, 238, 0.12); --on-accent: #06181d;
  --ok: #4ade80; --warn: #facc15; --err: #f87171;
  --console-bg: #060d0e; --console-fg: #cfe3e2; --console-dim: #5f7978; --console-ok: #5fd39a; --console-accent: #67e8f9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 700; }
h2 { font-size: var(--step-3); line-height: 1.1; font-weight: 600; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 600; }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
.mono { font-family: var(--font-mono); }

/* Header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 5px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; display: grid; place-items: center;
}
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.9375rem/1 var(--font-body);
  padding: 12px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 12px; font-size: 0.8125rem; }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.hero-copy { display: grid; gap: 22px; padding-top: 12px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--step--1); color: var(--muted); font-family: var(--font-mono); padding-top: 10px; }
.hero-facts span::before { content: "✓ "; color: var(--ok); }

/* Run panel mock */
.runpanel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(8, 40, 44, 0.35);
  overflow: hidden;
  min-width: 0;
}
.rp-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rp-path { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.rp-path b { color: var(--fg); font-weight: 500; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.chip.rev { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.rp-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: var(--step--1); overflow-x: auto; }
.rp-tabs span { padding: 9px 10px; color: var(--muted); white-space: nowrap; }
.rp-tabs span.on { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); font-weight: 500; }
.rp-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.rp-form { padding: 16px; display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 600; display: flex; gap: 4px; }
.field label .req { color: var(--err); }
.field .hint { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.picker {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; background: var(--bg);
  display: flex; flex-wrap: wrap; gap: 4px; min-height: 36px; align-items: center;
}
.pill { font-family: var(--font-mono); font-size: 0.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.pill i { font-style: normal; color: var(--muted); margin-left: 4px; }
.picker .typing { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; }
.check .box { width: 16px; height: 16px; border-radius: 3px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 11px; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.rp-console {
  background: var(--console-bg); color: var(--console-fg);
  font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.65;
  padding: 14px 16px; min-height: 100%; min-width: 0; overflow-x: auto;
  display: flex; flex-direction: column;
}
.rp-console .ln { white-space: pre-wrap; word-break: break-word; }
.rp-console .dim { color: var(--console-dim); }
.rp-console .ok { color: var(--console-ok); }
.rp-console .ac { color: var(--console-accent); }
.rp-console .confirm {
  margin-top: 10px; border: 1px solid #2b4446; border-radius: 6px; padding: 10px; display: grid; gap: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.rp-console .confirm .row { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-console button {
  font: 500 0.72rem/1 var(--font-mono); padding: 7px 10px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--console-fg); border: 1px solid #2b4446;
}
.rp-console button.go { background: var(--console-accent); color: #06181d; border-color: var(--console-accent); }
.rp-console .spacer { flex: 1; }
.rp-foot {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono);
}
.rp-foot .st { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.run { background: var(--warn); }
.caption { font-size: var(--step--1); color: var(--muted); margin-top: 12px; }

/* Sections */
section.band { padding-block: 80px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 44px; }

/* Problem */
.problem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.problem div { display: grid; gap: 10px; align-content: start; }
.problem .k { font-family: var(--font-mono); font-size: var(--step--1); color: var(--err); }
.problem p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--fg); }
.step { padding: 20px 20px 0 0; display: grid; gap: 8px; align-content: start; counter-increment: s; }
.step::before { content: counter(s); font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* Catalog */
.catalog { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.catalog .big { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); line-height: 0.9; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

/* "In production" counter band */
.usage-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.usage { display: grid; gap: 6px; text-align: center; justify-items: center; }
.usage .big { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); line-height: 0.95; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.usage h2 { font-size: var(--step-1, 1.3rem); }
.usage .usage-note { color: var(--muted); font-size: var(--step--1); font-family: var(--font-mono); margin: 0; }
.catalog-copy { display: grid; gap: 16px; min-width: 0; }
.catalog-copy p { color: var(--muted); }
.bars { display: grid; gap: 7px; min-width: 0; }
.bar { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) 2.5rem; gap: 12px; align-items: center; font-size: 0.875rem; }
.bar .track { height: 14px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 2px; }
.bar.grp .fill { background: color-mix(in srgb, var(--accent) 55%, var(--sunk)); }
.bar .n { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.bars .sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 12px; }
.bars .sub:first-child { padding-top: 0; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; }
.examples span { font-family: var(--font-mono); font-size: 0.75rem; border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; background: var(--surface); }

/* Feature groups */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.group { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.group:nth-child(even) { padding: 32px 0 32px 32px; border-left: 1px solid var(--line); }
.group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.group li { padding-left: 18px; position: relative; color: var(--muted); }
.group li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; background: var(--accent); }
.group li b { color: var(--fg); font-weight: 600; }

/* Roles table */
.roles-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table.roles { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
.roles th, .roles td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.roles th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.roles tr:last-child td { border-bottom: 0; }
.roles td:first-child { font-weight: 600; white-space: nowrap; }
.roles td.c { text-align: center; font-family: var(--font-mono); }
.yes { color: var(--ok); }
.no { color: var(--muted); }
.note { font-size: var(--step--1); color: var(--muted); margin-top: 14px; max-width: 46rem; }

/* Audit record */
.audit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.audit-copy { display: grid; gap: 16px; min-width: 0; }
.audit-copy p { color: var(--muted); }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-mono); font-size: 0.8rem; min-width: 0; overflow: hidden; }
.record dl { margin: 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); }
.record dt, .record dd { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.record dt { color: var(--muted); background: var(--sunk); }
.record dd { word-break: break-word; }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }
.record .mask { color: var(--muted); }

/* Deploy */
.deploy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.deploy div { display: grid; gap: 8px; align-content: start; }
.deploy p { color: var(--muted); font-size: 0.9375rem; }
.deploy .k { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }

/* ERP + preview */
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.split2 > div { display: grid; gap: 14px; align-content: start; min-width: 0; }
.split2 p { color: var(--muted); }
.tag-preview { font-family: var(--font-mono); font-size: 0.7rem; border: 1px solid var(--warn); color: var(--warn); border-radius: 99px; padding: 2px 8px; justify-self: start; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.kv span { font-size: 0.8125rem; border: 1px solid var(--line); border-radius: 4px; padding: 3px 9px; background: var(--surface); }

/* Install */
.install { background: var(--surface); border-top: 1px solid var(--line); }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.install-grid > div { display: grid; gap: 18px; min-width: 0; }
.cmd {
  background: var(--console-bg); color: var(--console-fg); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.85rem; display: flex; align-items: stretch; overflow: hidden;
}
.cmd code { padding: 16px 18px; flex: 1; overflow-x: auto; white-space: nowrap; min-width: 0; }
.cmd code .p { color: var(--console-dim); user-select: none; }
.cmd button {
  background: transparent; color: var(--console-accent); border: 0; border-left: 1px solid #2b4446;
  font: 500 0.78rem/1 var(--font-mono); padding: 0 16px; cursor: pointer; white-space: nowrap;
}
.reqs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.reqs li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.reqs li span:first-child { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 2px; }
.contact { border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 10px; background: var(--bg); }
.contact form { display: grid; gap: 8px; }
.contact input, .contact textarea {
  font: inherit; font-size: var(--step--1); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; box-sizing: border-box;
}
.contact input:focus-visible, .contact textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact textarea { resize: vertical; }
/* Honeypot: humans never see it, bots fill it. */
.contact input[name="website"] { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.contact .form-note { font-size: var(--step--1); color: var(--muted); margin: 0; min-height: 1.2em; }
.placeholder { background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 0.85rem; padding: 2px 6px; border-radius: 3px; }

footer { padding-block: 32px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

@media (max-width: 960px) {
  .hero-grid, .catalog, .audit, .install-grid, .split2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .deploy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .hero { padding-block: 40px 48px; }
  section.band { padding-block: 56px; }
  .problem, .deploy, .groups { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .group, .group:nth-child(even) { padding: 24px 0; border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .rp-body { grid-template-columns: minmax(0, 1fr); }
  .rp-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .rp-console { min-height: 220px; }
  .bar { grid-template-columns: 8.5rem minmax(0, 1fr) 2rem; font-size: 0.8125rem; }
  .record dl { grid-template-columns: 7rem minmax(0, 1fr); }
  .reqs li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.w-100{width:100%}
.w-70_5{width:70.5%}
.w-40_9{width:40.9%}
.w-36_4{width:36.4%}
.w-22_7{width:22.7%}
.w-56_8{width:56.8%}
.w-68_2{width:68.2%}
.w-34_1{width:34.1%}

/* Demo videos: hero loop, "See it work" grid, watch links, lightbox player. */
.hero-video { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--console-bg); box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); aspect-ratio: 16 / 9; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.caption a, .watch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.caption a:hover, .watch a:hover { text-decoration: underline; }
.watch { font-size: var(--step--1); margin: 10px 0 0; color: var(--muted); }
.how-try { max-width: 46rem; margin-top: 44px; }
.demo-group + .demo-group { margin-top: 40px; }
.demo-group h3 { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.demo-card { display: grid; gap: 8px; align-content: start; color: var(--fg); text-decoration: none; }
.demo-thumb { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--console-bg); aspect-ratio: 16 / 9; }
.demo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.demo-card:hover .demo-thumb img, .demo-card:focus-visible .demo-thumb img { transform: scale(1.03); }
.demo-card:hover b, .demo-card:focus-visible b { color: var(--accent); }
.demo-len { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(6,13,14,.82); color: #e3eeed; font-family: var(--font-mono); font-size: .75rem; }
.demo-card b { font-size: var(--step-0); line-height: 1.3; }
.demo-blurb { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
#demo-dialog { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
#demo-dialog::backdrop { background: rgba(4,10,11,.78); }
.dd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dd-head h3 { margin: 0; font-size: var(--step-0); }
#dd-close { font: inherit; font-size: 1.5rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 8px; }
#dd-close:hover { color: var(--fg); }
#dd-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
#dd-blurb { padding: 0 14px 14px; }
