:root {
  --bg: #0c0b09;
  --bg-2: #14130f;
  --ink: #f4efe6;
  --muted: #b7ad9e;
  --dim: #8a8174;
  --line: rgba(244, 239, 230, 0.14);
  --line-strong: rgba(244, 239, 230, 0.32);
  --gold: #d7c4a3;
  --gold-2: #a8906c;
  --hold: #e0b07a;
  --ok: #b7d0c0;
  --stop: #e2a598;
  --paper: #e7dcc8;
  --paper-ink: #1c1915;
  --serif: "Geist Variable", "Segoe UI", sans-serif;
  --sans: "Geist Variable", "Segoe UI", sans-serif;
  --mono: "Geist Mono Variable", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --nav: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gold);
  z-index: 50;
}
::selection { background: var(--gold); color: var(--paper-ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.011em;
}
.btn-solid { background: var(--gold); color: var(--paper-ink); }
.btn-solid:hover { background: #f0e4cf; }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-solid:disabled { opacity: 0.45; cursor: wait; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 11, 9, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  min-height: var(--nav);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}
.brand-name {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.03em;
}
.brand-x {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.is-here { color: var(--ink); }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 6px 10px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
}
.live-pill.is-on { color: var(--ink); }
.live-pill.is-on i { background: #8fbf9f; box-shadow: 0 0 0 3px rgba(143, 191, 159, 0.16); }

.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 70% 55% at 85% -10%, rgba(215, 196, 163, 0.1), transparent 58%),
    linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  background-position: center, center -1px, center -1px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: end;
}
h1 {
  margin: 0;
  max-width: 11ch;
  font-weight: 560;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.042em;
}
h1 em { font-style: normal; color: var(--gold); }
.lede {
  max-width: 460px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.figures div { margin: 0; }
.figures dt {
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.figures dd { margin: 4px 0 0; color: var(--dim); font-size: 13px; }

.instrument {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 22px 22px 8px;
}
.instrument-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--gold);
}
.instrument-top svg { width: 120px; height: 44px; }
#hero-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.instrument-label {
  margin: 8px 0 16px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.011em;
  color: var(--muted);
}
#hero-steps { list-style: none; margin: 0; padding: 0; }
#hero-steps li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  transition: color 0.35s ease;
}
#hero-steps li.is-on { color: var(--ink); }
.spec { margin: 8px 0 18px; }
.spec div, .dump-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}
.spec dt { color: var(--dim); }
.spec dd { margin: 0; text-align: right; }

.rails { border-block: 1px solid var(--line); }
.rail-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.rail-row + .rail-row { border-top: 1px solid var(--line); }
.rail-row > span {
  min-width: 96px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.011em;
  color: var(--muted);
}
.rail-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
}
.rail-row li { display: flex; flex-direction: column; gap: 2px; }
.rail-row strong { font-weight: 550; font-size: 14px; letter-spacing: -0.02em; }
.rail-row .is-desk strong { color: var(--gold); }
.rail-row em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim); }

.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}
h2 {
  margin: 0;
  font-weight: 560;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.038em;
}
.aside-note { max-width: 280px; margin: 0; color: var(--dim); font-size: 14px; }

.moves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.move {
  text-align: left;
  padding: 22px 18px 26px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}
.move + .move { padding-left: 18px; border-left: 1px solid var(--line); }
.move span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: -0.02em; color: var(--gold-2); }
.move strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.move em { font-style: normal; font-size: 14px; line-height: 1.45; }
.move.is-on { color: var(--gold); }
.move.is-on strong, .move.is-on em { color: var(--ink); }
.sheet {
  margin: 22px 0 56px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow: auto;
}

.compare { border-top: 1px solid var(--line); }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.compare-head {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.011em;
  color: var(--dim);
}
.compare-row span:last-child { color: var(--gold); }
.compare-head span:last-child { color: var(--gold); }

.caps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}
.caps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.caps span, .caps b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--gold-2);
  padding-top: 4px;
}
.caps b { text-align: right; color: var(--dim); max-width: 140px; }
.caps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.caps p { margin: 0; color: var(--muted); font-size: 15px; }

.section-desk { background: linear-gradient(#100f0c, #0c0b09 220px); }
.rewards {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.8fr) minmax(260px, 0.9fr);
  gap: 28px;
  margin-bottom: 22px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(215, 196, 163, 0.16), transparent 70%),
    #14130f;
}
.rewards h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.rewards-copy p:last-child { margin: 0; color: var(--muted); }
.rewards-stats { display: grid; gap: 14px; margin: 0; align-content: center; }
.rewards-stats div { min-width: 0; }
.rewards-stats dt { color: var(--dim); font-size: 12px; }
.rewards-stats dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.rewards-lookup { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.rewards-lookup label { width: 100%; color: var(--dim); font-size: 12px; }
.rewards-lookup input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}
.rewards-lookup input:focus { outline: none; border-bottom-color: var(--gold); }
.reward-result { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.reward-links { width: 100%; margin: 0; display: flex; gap: 16px; font-size: 13px; }
.reward-links a { color: var(--gold); }
.desk {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(260px, 0.9fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #100f0c;
}
.pane { padding: 22px 22px 24px; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--line); }
.agent h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.agent-wallet { margin: 4px 0 18px; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.budget-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.budget-line span { color: var(--dim); font-size: 13px; }
.budget-line strong { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--gold); }
.meter { height: 1px; margin: 10px 0; background: var(--line); }
.meter span { display: block; height: 1px; width: 100%; background: var(--gold); }
.policy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 8px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.service-list {
  max-height: 460px;
  overflow: auto;
  margin-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 196, 163, 0.4) transparent;
}
.service-list::-webkit-scrollbar { width: 8px; }
.service-list::-webkit-scrollbar-thumb { background: rgba(215, 196, 163, 0.35); }
.svc {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  text-align: left;
  padding: 12px 0 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.svc strong { font-weight: 500; color: var(--ink); }
.svc .meta { grid-column: 1; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.svc .price { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.svc .flag {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--hold);
}
.svc.is-selected {
  box-shadow: inset 2px 0 0 var(--gold);
  padding-left: 12px;
  color: var(--ink);
}

.phase-label {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.phase-label.tone-ok { color: var(--ok); }
.phase-label.tone-hold { color: var(--hold); }
.phase-label.tone-stop { color: var(--stop); }
.phase-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; }
.phase-steps li {
  flex: 1;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.011em;
  color: var(--dim);
}
.phase-steps li.is-done { border-top-color: var(--gold); color: var(--muted); }
.phase-steps li.is-now { border-top-color: var(--gold); color: var(--ink); }
.dump {
  margin: 0;
  min-height: 220px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--gold);
  white-space: pre-wrap;
  word-break: break-word;
}
.quiet { margin: 0; color: var(--dim); }
.return-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.return-body { margin: 0; color: var(--muted); }
.receipt {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
}
.pane-result { display: flex; flex-direction: column; }
#result { flex: 1; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -12px 0 22px; }
.filters button {
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--dim);
}
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.board-head, .board-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.7fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
}
.board-head {
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.011em;
  color: var(--dim);
}
.board-row {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
button.board-row:hover { color: var(--ink); }
.board-row strong { font-weight: 500; color: var(--ink); }
.board-row .num { font-family: var(--mono); font-size: 13px; color: var(--gold); text-align: right; }
.board-row.is-selected strong { color: var(--gold); }
.is-new strong::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-1px);
}
.footnote { margin: 18px 0 0; color: var(--dim); font-size: 13px; }

.client-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.client-grid .lede { margin-top: 0; }
.health {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}
.health strong { color: var(--ink); font-weight: 560; }
.snippet-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.snippet-bar button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.snippet-bar button[aria-pressed="true"] { color: var(--paper-ink); background: var(--gold); border-color: var(--gold); }
#snippet {
  margin: 0;
  min-height: 180px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.sheet, .dump { border-radius: 12px; }

.access {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 112px 0;
}
.access .kicker { color: #7a5b32; }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.access-lede { max-width: 420px; margin: 18px 0 0; font-size: 17px; }
.access label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.011em;
}
.access input {
  width: 100%;
  margin-bottom: 22px;
  padding: 8px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.35);
  border-radius: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.access input::placeholder { color: rgba(28, 25, 21, 0.35); }
.access input:focus { outline: none; border-bottom-color: var(--paper-ink); }
.access .btn-solid { background: var(--paper-ink); color: var(--ink); }
.access .btn-solid:hover { background: #000; }
.form-note { margin: 14px 0 0; font-size: 13px; color: rgba(28, 25, 21, 0.62); }
.access-done {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.footer { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px 32px;
  align-items: center;
  color: var(--dim);
  font-size: 13px;
}
.footer p { margin: 0; }

@media (max-width: 1040px) {
  .hero-grid, .access-grid, .desk, .caps, .client-grid, .docs-layout, .start-steps, .rewards { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .section-head-row { flex-direction: column; align-items: start; }
  .moves { grid-template-columns: 1fr 1fr; }
  .move + .move { border-left: 0; padding-left: 0; }
  .service-list { max-height: none; }
}
@media (max-width: 800px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .nav-inner { flex-wrap: wrap; padding: 14px 0; gap: 12px 18px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; row-gap: 10px; }
  .nav-cta { margin-left: auto; }
  .live-pill { margin-left: auto; }
  h1 { font-size: 44px; }
  .figures { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr; }
  .board-head { display: none; }
  .board-row {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }
  .board-row span:nth-child(2),
  .board-row span:nth-child(3),
  .board-row span:nth-child(4) { display: none; }
  .compare-row { grid-template-columns: 0.8fr 1fr 1fr; font-size: 13px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .caps li { grid-template-columns: 28px minmax(0, 1fr); }
  .caps b { grid-column: 2; text-align: left; padding-top: 8px; }
  .rail-row { align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px 0; }
  .rail-row > span { min-width: 0; }
  .section, .access { padding: 80px 0; }
  .trace-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .trace-row span:nth-child(4) { display: none; }
  .nav-search { display: none; }
}
.nav-search { min-height: 34px; padding: 0 12px; font-size: 13px; }
.quote {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.quote strong { color: var(--ink); font-weight: 560; letter-spacing: -0.02em; }

.bazaar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 18px;
}
#bazaar-search {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 0 2px 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}
#bazaar-search:focus { outline: none; border-bottom-color: var(--gold); }
#bazaar-search::placeholder { color: var(--dim); }
.bazaar-tools .filters { margin: 0; }

.trace { display: grid; gap: 0; min-height: 48px; }
.trace-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.4fr) 80px 72px auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  animation: rise 0.45s ease both;
}
.trace-row strong { color: var(--ink); font-weight: 550; }
.trace-row .num { font-family: var(--mono); font-size: 13px; color: var(--gold); text-align: right; }
.trace-empty { margin: 0; color: var(--dim); }
.trace-sample { margin: 48px 0 18px; }
.status-402 { color: var(--hold); }
.status-200 { color: var(--ok); }
.status-0 { color: var(--stop); }

.palette {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 12vh 20px 20px;
}
.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(8px);
}
.palette-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #16140f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: rise 0.28s ease both;
}
#palette-input {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 2px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 20px;
  font-weight: 520;
  letter-spacing: -0.03em;
}
#palette-input:focus { outline: none; border-bottom-color: var(--gold); }
.palette-list { max-height: 320px; overflow: auto; }
.palette-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  text-align: left;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.palette-row.is-active, .palette-row:hover { color: var(--ink); }
.palette-row strong { font-weight: 550; color: inherit; }
.palette-row em { grid-column: 1; font-style: normal; font-size: 13px; color: var(--dim); }
.palette-row span { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.palette-hint {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  gap: 8px;
}
.toast {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 14px;
  font-weight: 550;
  animation: rise 0.35s ease both;
}

.arc path {
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: draw 1.8s ease 0.2s forwards;
}
.hero-copy > * { animation: rise 0.7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
.instrument { animation: rise 0.8s ease 0.12s both; }
.live-pill.is-on i { animation: pulse 2.4s ease-in-out infinite; }
.phase-label { transition: color 0.35s ease; }
#result { animation: fade 0.35s ease; }
.dispatching { position: relative; overflow: hidden; }
.dispatching::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45), transparent 80%);
  transform: translateX(-100%);
  animation: sheen 1.1s ease infinite;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.is-in { animation: rise 0.75s ease forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.55; }
}
@keyframes sheen {
  to { transform: translateX(100%); }
}

.atlas-groups { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -8px 0 22px; }
.atlas-groups button {
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--dim);
}
.atlas-groups button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
}
.atlas-grid { display: grid; grid-template-columns: 1fr 1fr; }
.tool {
  text-align: left;
  padding: 16px 16px 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.atlas-grid .tool:nth-child(odd) { padding-right: 22px; }
.atlas-grid .tool:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.tool b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--gold-2);
}
.tool strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.tool span { display: block; font-size: 13px; line-height: 1.45; }
.tool:hover, .tool.is-on { color: var(--ink); }
.tool.is-on strong { color: var(--gold); }
.workbench {
  position: sticky;
  top: 96px;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #17150f, #100f0c);
}
.workbench h3 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.call-count { display: block; margin-bottom: 6px; color: var(--dim); font-size: 13px; }
#call-count {
  width: 100%;
  margin-bottom: 14px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 18px;
}
#call-count:focus { outline: none; border-bottom-color: var(--gold); }
#work-out {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 11, 9, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.to-top:hover { color: var(--ink); border-color: var(--gold); }

.start { padding-top: 28px; }
.start-steps {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.start-steps li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.start-steps span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
}
.start-steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.start-steps p { margin: 0; color: var(--muted); }
.return-body a, .receipt a { color: var(--gold); }
.access-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.access-line { color: var(--paper-ink); border-color: rgba(28, 25, 21, 0.35); }
.access-line:hover { color: var(--paper-ink); border-color: var(--paper-ink); }

.docs-page { padding: 48px 0 96px; }
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.docs-nav a { color: var(--dim); }
.docs-nav a:hover { color: var(--ink); }
.docs-kicker { margin: 0 0 10px; color: var(--gold); font-family: var(--mono); font-size: 12px; }
.docs h1 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.045em; line-height: 0.98; }
.docs .lede { max-width: 640px; color: var(--muted); font-size: 18px; }
.docs h2 { margin: 56px 0 12px; font-size: 28px; letter-spacing: -0.03em; }
.docs h3 { margin: 28px 0 8px; font-size: 18px; }
.docs p, .docs li { color: var(--muted); }
.docs ol, .docs ul { margin: 0 0 16px; padding-left: 18px; }
.docs code, .docs .sheet { font-family: var(--mono); }
.docs p code, .docs li code {
  color: var(--gold);
  font-size: 0.92em;
}
.chain-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 24px;
  margin: 20px 0 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chain-card dt { color: var(--dim); font-size: 13px; }
.chain-card dd { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.docs .sheet { margin: 16px 0 8px; }

@media (max-width: 1040px) {
  .atlas-layout, .atlas-grid { grid-template-columns: 1fr; }
  .atlas-grid .tool:nth-child(even) { padding-left: 0; border-left: 0; }
  .workbench { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero-steps li, .phase-label { transition: none; }
  .arc path,
  .hero-copy > *,
  .instrument,
  .live-pill.is-on i,
  .trace-row,
  .palette-panel,
  .toast,
  .dispatching::after,
  .js .reveal,
  .js .reveal.is-in {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
