/* SPLICE site — page layout & sections.
 * Language mirrors the app: quiet machined graphite, 1px #23272e hairlines,
 * faint top glints. Orange is a STATE, not decoration: live action, rescue,
 * focus, primary CTA. Green = zero-token / success. Red = veto. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }

/* thin machined scrollbars on overflow strips */
.hscroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 4px; }
.hscroll::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------- site header
 * A replica of the app's 42px headerbar holding the page nav. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, var(--header-glint-top), var(--panel));
  border-bottom: 1px solid var(--line);
  box-shadow: var(--top-glint), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  min-height: 46px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.18em;
  color: var(--fg); text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.wordmark .mark { display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--edge), 0 1px 4px rgba(0,0,0,.5); }
.wordmark .bolt {
  color: var(--accent); font-size: 15px; letter-spacing: 0;
  text-shadow: var(--bolt-glow);
}

.site-nav { display: flex; align-items: stretch; margin-left: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  display: inline-flex; align-items: center;
  padding: 12px 12px 10px;
  font-size: 11px; letter-spacing: 0.08em; font-weight: 700;
  color: var(--dim); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--fg); border-bottom-color: rgba(255, 106, 0, 0.35); }
.site-nav a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------- buttons */
.hbtn, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 24px; padding: 2px 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 3px; text-decoration: none; cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease),
              box-shadow var(--ease), color var(--ease);
}
.hbtn {
  background: linear-gradient(to bottom, #20242b, var(--raise));
  color: var(--fg);
  border: 1px solid var(--edge);
  box-shadow: var(--top-glint);
}
.hbtn:hover {
  background: linear-gradient(to bottom, #272c35, #232830);
  border-color: rgba(255, 106, 0, 0.7);
  color: #fff;
}
.hbtn:focus-visible, .btn-accent:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--focus-ring), var(--top-glint);
  border-color: var(--accent);
}
.btn-accent {
  background: linear-gradient(to bottom, var(--grad-top), var(--grad-bot));
  color: var(--bg);
  border: 1px solid var(--accent-deep);
  font-weight: 800; padding: 2px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 4px rgba(255, 106, 0, 0.25);
}
.btn-accent:hover {
  background: linear-gradient(to bottom, var(--grad-hover-top), var(--accent));
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 8px rgba(255, 106, 0, 0.4);
}
.btn-lg { min-height: 34px; padding: 5px 18px; font-size: 12px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 84px 0 34px; }

.eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--dim); text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 13ch;
  font-size: clamp(40px, 7.4vw, 76px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.hero .lede {
  max-width: 68ch; color: var(--dim); font-size: 15px;
}
.hero .lede strong { color: var(--fg); font-weight: 700; }

.hero-cta { display: flex; gap: 10px; margin: 22px 0 18px; flex-wrap: wrap; }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; margin: 0 0 38px; padding: 0;
  color: var(--dim); font-size: 12.5px;
}
.hero-chips code {
  color: var(--fg); background: var(--raise);
  border: 1px solid var(--edge); border-radius: 3px; padding: 0 5px;
  font-size: 11.5px;
}

.hero-stage { position: relative; }
.mock-caption {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px; font-size: 10.5px; letter-spacing: 0.06em; color: var(--dim);
  flex-wrap: wrap;
}
.mock-caption .cap-grow { flex: 1; text-align: right; }

/* live telemetry chip OUTSIDE the terminal — never graffiti inside it */
.mk-metric {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 22px; padding: 2px 10px;
  background: var(--bg); color: var(--dim);
  border: 1px solid var(--edge); border-radius: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--ease), border-color var(--ease);
}
.mk-metric.on { color: var(--accent); border-color: rgba(255, 106, 0, 0.55); }
.mk-metric.ok { color: var(--ok); border-color: rgba(63, 185, 80, 0.45); }
.mk-metric.veto { color: var(--err); border-color: rgba(248, 81, 73, 0.5); }

/* hard operator claims strip */
.claims {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 3px;
  margin: 34px 0 0; background: var(--panel);
  box-shadow: var(--top-glint);
}
.claims > div {
  padding: 16px 18px; border-left: 1px solid var(--line);
}
.claims > div:first-child { border-left: none; }
.claims .k {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0; color: var(--fg);
  margin-bottom: 5px;
}
.claims .v { font-size: 12.5px; color: var(--dim); }
.claims .v b { color: var(--fg); font-weight: 700; }
.claims .v code {
  color: var(--fg); background: var(--raise);
  border: 1px solid var(--edge); border-radius: 3px; padding: 0 4px; font-size: 11px;
}

/* -------------------------------------------------------------- sections */
section.block { padding: 74px 0 10px; }
section.block > .wrap > .rule {
  border-top: 1px solid var(--line); margin-bottom: 42px; position: relative;
}
section.block > .wrap > .rule::before {
  /* the energized seam: each section is a live circuit segment */
  content: ""; position: absolute; top: -1px; left: 0;
  width: 64px; height: 2px; background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
}

.sec-head { margin-bottom: 30px; max-width: 78ch; }
.sec-head h2 {
  margin: 12px 0 12px;
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  text-transform: uppercase;
}
.sec-head p { color: var(--dim); font-size: 14px; max-width: 72ch; }
.sec-head p b, .sec-head p strong { color: var(--fg); font-weight: 700; }
.sec-head p code, .cols p code, .cols li code, td code {
  color: var(--fg); background: var(--raise);
  border: 1px solid var(--edge); border-radius: 3px; padding: 0 5px;
  font-size: 12px; white-space: nowrap;
}

.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: start; }
.cols.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cols h3 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--fg);
  text-transform: uppercase; margin: 22px 0 8px;
}
.cols h3:first-child { margin-top: 0; }
.cols p { color: var(--dim); font-size: 14px; margin-bottom: 10px; }
.cols p b { color: var(--fg); font-weight: 700; }
.cols ul { list-style: none; }
.cols li {
  padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 14px; position: relative;
}
.cols li::before {
  content: "⌁"; position: absolute; left: 0; color: var(--dim);
  font-weight: 800;
}
.cols li b { color: var(--fg); font-weight: 700; }

/* ---------------------------------------------------------- audit tables */
table.audit { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
table.audit caption {
  text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--dim); padding: 0 0 8px; text-transform: uppercase;
}
table.audit th {
  text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--dim); text-transform: uppercase;
  background: linear-gradient(to bottom, var(--header-glint-top), var(--panel));
  border-bottom: 1px solid var(--line); padding: 8px 12px;
}
table.audit td {
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 13px; vertical-align: top;
}
table.audit tr:last-child td { border-bottom: none; }
table.audit td:first-child { color: var(--fg); font-weight: 700; white-space: nowrap; }
table.audit .tok-zero { color: var(--ok); font-weight: 800; white-space: nowrap; }
table.audit .tok-paid { color: var(--accent); font-weight: 800; white-space: nowrap; }
table.audit tr.paid-row td { background: linear-gradient(to right, rgba(255, 106, 0, 0.06), transparent 40%); }
table.audit td b { color: var(--fg); }

/* evidence table (v1.3): first column wraps, numbers column is the artifact */
table.audit.evidence td:first-child { white-space: normal; font-weight: 400; color: var(--dim); }
table.audit.evidence td:first-child code { white-space: nowrap; }
table.audit.evidence td.num { color: var(--fg); font-weight: 800; white-space: nowrap; }
table.audit.evidence td.num .src {
  display: block; color: var(--dim); font-weight: 400; font-size: 10.5px; letter-spacing: 0.04em;
}
table.audit.evidence td:last-child b { color: var(--fg); }

.v13tag {
  display: inline-block; vertical-align: 1px;
  background: rgba(255, 106, 0, 0.14); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 2px;
  padding: 0 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  line-height: 1.5; white-space: nowrap;
}

kbd {
  display: inline-block; background: var(--raise); color: var(--fg);
  border: 1px solid var(--edge); border-bottom-width: 2px; border-radius: 3px;
  padding: 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; box-shadow: var(--top-glint); white-space: nowrap;
}

/* command diff exhibit */
.diff {
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel);
  font-size: 13px; overflow: hidden; box-shadow: var(--top-glint);
}
.diff .row { display: flex; gap: 10px; padding: 9px 12px; white-space: pre; overflow-x: auto; }
.diff .row + .row { border-top: 1px solid var(--line); }
.diff .sign { flex: none; width: 1ch; font-weight: 800; }
.diff .minus { color: var(--dim); }
.diff .minus .sign { color: var(--err); }
.diff .minus .bad { color: var(--err); text-decoration: line-through; text-decoration-color: rgba(248, 81, 73, 0.6); }
.diff .plus { background: linear-gradient(to right, rgba(255, 106, 0, 0.07), transparent 45%); }
.diff .plus .sign { color: var(--accent); }
.diff .plus .fix { color: var(--accent); font-weight: 800; }
.diff .note { color: var(--dim); }
.diff .ok { color: var(--ok); }

/* --------------------------------------------------------- command blocks
 * Styled as the app's result-row: energized left seam + orange wash. */
.cmdblock {
  position: relative; margin: 12px 0;
  background: linear-gradient(to right, rgba(255, 106, 0, 0.07), rgba(255, 106, 0, 0) 30%), var(--bg);
  border: 1px solid var(--edge); border-left: 3px solid var(--accent);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cmdblock pre {
  margin: 0; padding: 11px 96px 11px 12px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  overflow-x: auto; scrollbar-width: thin;
}
.cmdblock pre::-webkit-scrollbar { height: 6px; }
.cmdblock pre::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 4px; }
.cmdblock .ps { color: var(--accent); font-weight: 800; user-select: none; }
.cmdblock code { color: var(--fg); }
.cmdblock .copy {
  position: absolute; top: 7px; right: 7px;
  min-height: 22px; padding: 1px 9px;
  font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(to bottom, #20242b, var(--raise));
  color: var(--dim); border: 1px solid var(--edge); border-radius: 3px;
  cursor: pointer; box-shadow: var(--top-glint);
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.cmdblock .copy:hover { color: var(--fg); border-color: rgba(255, 106, 0, 0.7); }
.cmdblock .copy:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--focus-ring); }
.cmdblock .copy.done {
  background: linear-gradient(to bottom, var(--grad-top), var(--grad-bot));
  color: var(--bg); border-color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 8px rgba(255, 106, 0, 0.4);
}
.cmd-note { font-size: 12px; color: var(--dim); margin: -4px 0 16px; padding-left: 3px; }
.cmd-note b { color: var(--fg); }

/* step labels in install */
.step {
  display: flex; align-items: baseline; gap: 10px; margin-top: 26px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--dim);
  text-transform: uppercase;
}
.step .no {
  color: var(--accent); border: 1px solid var(--accent); border-radius: 2px;
  background: rgba(255, 106, 0, 0.14); padding: 0 5px; font-size: 9px;
}

.install-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: start; }
.panel-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px;
  padding: 16px; box-shadow: var(--top-glint);
}
.panel-card h3 {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--dim);
  text-transform: uppercase; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.panel-card p { color: var(--dim); font-size: 13px; margin-bottom: 10px; }
.panel-card p b { color: var(--fg); }
.panel-card p code {
  color: var(--fg); background: var(--raise);
  border: 1px solid var(--edge); border-radius: 3px; padding: 0 5px; font-size: 11.5px;
}
.panel-card a.plain { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(255, 106, 0, 0.4); }
.panel-card a.plain:hover { border-bottom-color: var(--accent); text-shadow: 0 0 8px rgba(255, 106, 0, 0.35); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 84px;
  background: linear-gradient(to bottom, var(--panel), #14171b);
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--dim); font-size: 11px; letter-spacing: 0.04em;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--dim); text-decoration: none; transition: color var(--ease); }
.site-footer a:hover { color: var(--accent); }
.site-footer .fw { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.18em; color: var(--fg); }
.site-footer .fw .mark { display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--edge); }
.site-footer .fw .bolt { color: var(--accent); text-shadow: var(--bolt-glow); letter-spacing: 0; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .cols, .cols.flip, .install-grid { grid-template-columns: 1fr; gap: 26px; }
  .claims { grid-template-columns: 1fr; }
  .claims > div { border-left: none; border-top: 1px solid var(--line); }
  .claims > div:first-child { border-top: none; }
  section.block { padding-top: 56px; }
  .hero { padding-top: 52px; }
  .mock-caption .cap-grow { text-align: left; flex-basis: 100%; order: 3; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; }
  .header-cta { display: none; }
  .cmdblock pre { padding-right: 12px; padding-top: 34px; }
}
