@font-face {
  font-family: "Geist";
  src: url("/home/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/home/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #16181d;
  --ink-2: #4f5562;
  --line: #e2e4e9;
  --line-strong: #c9ccd3;
  --ink-muted: #6b717c;
  --ink-hover: #2c3039;
  --soft: #f6f7f9;
  --filed: #17614f;
  --filed-bg: #e8f3ef;
  --held: #8a4b00;
  --held-bg: #fbf1e1;
  --filed-text: #1f4d42;
  --held-text: #5f3a08;
  --clue-mark: #e7ecfa;
  --clue-mark-edge: #c6d2f4;
  --focus: #2f5bd3;
  --gutter: clamp(16px, 4.4vw, 64px);
  --radius: 8px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--clue-mark); color: var(--ink); }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }

.skip { position: absolute; left: var(--gutter); top: 12px; transform: translateY(-200%); padding: 8px 12px; background: var(--ink); color: var(--bg); z-index: 2; }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line);
}
.mark { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; text-decoration: none; }
.top ul { display: flex; gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; white-space: nowrap; font-size: 0.9375rem; }
.top a:not(.mark) { color: var(--ink-2); text-decoration: none; }
.top a:not(.mark):hover { color: var(--ink); }

.hero {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas: "pitch demo" "facts demo"; grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 4.4vw, 72px); align-items: start;
  padding: clamp(28px, 4vh, 56px) var(--gutter) clamp(56px, 8vh, 96px);
  max-width: 1600px; margin: 0 auto;
}
h1 > span { display: block; }
h1 { max-width: 22ch; font-size: clamp(2.125rem, 0.9rem + 2.4vw, 2.875rem); line-height: 1.05; letter-spacing: -0.032em; font-weight: 680; }
.lede { margin: 20px 0 0; max-width: 34em; font-size: clamp(1.0625rem, 0.98rem + 0.25vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius); background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: background-color 120ms ease-out;
}
.button:hover { background: var(--ink-hover); }
.button.quiet { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button.quiet:hover { background: var(--soft); }
.pitch { grid-area: pitch; }
.demo { grid-area: demo; }
.facts { grid-area: facts; margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 34em; color: var(--ink-2); font-size: 0.9375rem; }
.facts li { padding-top: 12px; border-top: 1px solid var(--line); }
.facts b { color: var(--ink); font-weight: 600; }

.demo {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 12px 32px -12px rgba(22, 24, 29, 0.12);
  overflow: hidden; scroll-margin-top: 24px;
}
.demo:focus { outline: none; }
.tabs {
  display: flex; flex-wrap: nowrap; gap: 4px; padding: 0 12px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--soft);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  appearance: none; border: 0; background: none; font: inherit; color: var(--ink-2);
  font-size: 0.9375rem; padding: 12px 10px; cursor: pointer; position: relative; white-space: nowrap; flex: none;
}
.tabs button:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); }

.run { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 0; min-height: 440px; align-items: stretch; }
.paper { margin: 0; padding: 16px; border-right: 1px solid var(--line); background: var(--bg); min-width: 0; display: flex; flex-direction: column; }
.paper figcaption span:first-child { white-space: nowrap; }
.paper .file { min-width: 0; }
.paper figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 12px; }
.paper .file { font-family: var(--mono); overflow-wrap: break-word; margin-left: auto; text-align: right; }
.paper pre {
  flex: 1; margin: 0; padding: 16px; min-height: 220px; border: 1px solid var(--line); background: var(--soft);
  font: 0.8125rem/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
}
.paper pre.empty { display: grid; place-items: center; text-align: center; color: var(--ink-2); font-family: var(--sans); font-size: 0.875rem; padding: 24px; }
.paper mark { background: var(--clue-mark); color: inherit; box-shadow: 0 0 0 1px var(--clue-mark-edge); }

.steps { list-style: none; margin: 0; padding: 16px 20px 4px; counter-reset: step; min-width: 0; }
.steps > li { position: relative; padding: 0 0 10px 36px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--bg);
}
.steps > li::after { content: ""; position: absolute; left: 10.5px; top: 28px; bottom: 6px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); transition: color 200ms ease-out; }
.steps .detail { font-size: 0.875rem; color: var(--ink-2); margin-top: 4px; }
.steps .detail > p { margin: 0; }
.steps > li.pending h3 { color: var(--ink-muted); }
.steps > li.pending .detail { visibility: hidden; }
.steps > li.done::before { background: var(--ink); color: var(--bg); box-shadow: none; transition: background-color 300ms ease-out; }
.steps > li.done h3 { color: var(--ink); }
.steps[data-outcome="filed"] > li.done::before { background: var(--filed); }
.steps[data-outcome="held"] > li.done::before { background: var(--held); }
.steps > li.reveal .detail { animation: reveal 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .steps > li.reveal .detail { animation: none; } }

.units { margin: 8px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.units li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; }
.units .id { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); font-weight: 500; }
.units .where { color: var(--ink-2); font-size: 0.8125rem; min-width: 0; }
.units .clues { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink); }
.clue { white-space: nowrap; }
@media (max-width: 480px) { .clue { white-space: normal; } }
.clue.part { color: var(--ink-2); }

.meter { position: relative; height: 8px; margin: 8px 0 4px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.meter .line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); }
.meter-labels { position: relative; height: 1.25rem; font-size: 0.8125rem; color: var(--ink-2); }
.meter-labels span { position: absolute; top: 0; }
.meter-labels .at { transform: translateX(-50%); white-space: nowrap; }
.meter-labels .end { right: 0; }
.num { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); }

.outcome { margin-top: 6px; padding: 8px 12px; }
.outcome strong { display: block; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em; }
.outcome p { margin: 4px 0 0; font-size: 0.875rem; }
.outcome.filed { background: var(--filed-bg); color: var(--filed); }
.outcome.held { background: var(--held-bg); color: var(--held); }
.outcome.filed p { color: var(--filed-text); }
.outcome.held p { color: var(--held-text); }
.ledger { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); margin: 10px 0 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ledger dt, .ledger dd { margin: 0; padding: 4px 0; border-top: 1px solid var(--line); }
.ledger dt { padding-right: 14px; color: var(--ink-2); }

.demo-error { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--held-bg); color: var(--held-text); font-size: 0.875rem; }
.demo-error[hidden] { display: none; }
.demo-foot p { margin: 0; flex: 1; }
.demo-foot .own { padding: 5px 10px; border: 1px dashed var(--line-strong); white-space: nowrap; }
.demo-foot { display: flex; align-items: center; gap: 16px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); background: var(--soft); }
.replay { appearance: none; font: inherit; font-weight: 600; color: var(--ink); background: var(--bg); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; }
.replay:hover { background: var(--soft); }

.band { max-width: 1600px; margin: 0 auto; padding: clamp(56px, 8vh, 88px) var(--gutter); border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; margin-bottom: 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { max-width: 66ch; color: var(--ink-2); font-size: 1.0625rem; }
.prose p { margin: 0 0 14px; }
.prose b, p.prose b { color: var(--ink); font-weight: 600; }
p.prose { margin: 0 0 20px; }

table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
thead th { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
tbody th { font-weight: 400; color: var(--ink-2); padding-right: 16px; }
.weights td { text-align: right; font-variant-numeric: tabular-nums; }
.compare { max-width: 880px; margin: 8px 0 28px; }
.compare td { font-weight: 600; padding-right: 16px; }
.compare .who { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-2); }
.compare td.who { display: table-cell; }
.split tbody th { max-width: 30rem; }

.fold { max-width: 880px; border-top: 1px solid var(--line); padding-top: 14px; }
.fold summary { cursor: pointer; font-weight: 600; width: fit-content; list-style: none; display: flex; align-items: center; gap: 10px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform 150ms ease-out;
}
.fold[open] summary::before { transform: rotate(45deg); }
.fold dl { display: grid; grid-template-columns: 11rem 1fr; gap: 10px 20px; margin: 16px 0; font-size: 0.9375rem; }
.fold dt { color: var(--ink); font-weight: 500; }
.fold dd { margin: 0; color: var(--ink-2); }
.fold p { font-size: 0.9375rem; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); max-width: 1600px; margin: 0 auto; }
.foot p { margin: 0; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "demo" "facts"; grid-template-rows: auto; row-gap: 32px; }
  .pitch, .facts { max-width: 44rem; }
  .facts { margin-top: 0; }
}
@media (max-width: 480px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger dd { border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
  .split thead { display: none; }
  .split tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .split th, .split td { display: block; padding: 0; border: 0; }
  .split th { grid-column: 1 / -1; padding-bottom: 6px; max-width: none; }
  .split td::before { content: attr(data-label); display: block; min-height: 2.6em; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
  .top { height: auto; padding-block: 14px; flex-wrap: wrap; row-gap: 8px; }
  .top ul { gap: 18px; font-size: 0.875rem; flex-wrap: wrap; white-space: normal; }
  .run { grid-template-columns: minmax(0, 1fr); }
  .paper { border-right: 0; border-bottom: 1px solid var(--line); }
  .paper pre { min-height: 0; }
  .tabs { padding: 0 6px; }
  .actions { gap: 8px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .fold dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fold dd { margin-bottom: 10px; }
  .demo-foot { flex-wrap: wrap; }
  .demo-foot p { flex-basis: 100%; }
}
