:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --soft: #f3f4f5; --soft-2: #e8e9eb; --ink: #16181a; --ink-2: #46494d; --muted: #6f7378; --line: #e4e5e7; --line-2: #cdd0d3;
  --accent: #23262a; --accent-2: #111214; --accent-bright: #b8913f; --mark: #efe3b8; --pine-2: #2c2f33; --on-dark: #e6d49b;
  --ok: #0b6b4a; --ok-bg: #ddf1e6; --warn: #8a5a00; --warn-bg: #f8e7c4; --bad: #a33a2b; --bad-bg: #f8d9d2; --info: #2b4c8c; --info-bg: #e3eaf8;
  --f: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-display: clamp(2.625rem, 5vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 2.6vw, 2.25rem);
  --fs-h3: clamp(1.5rem, 2vw, 1.75rem);
  --fs-title: 1.125rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-2xs: .75rem;
  --radius: 16px;
  --pad: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left, 0px)); --col: 1280px; --navh: 92px;
  --bleed-pad: max(var(--pad), calc(50vw - var(--col) / 2));
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; overflow-x: clip }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; padding-inline: var(--pad); overflow-x: clip }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg) }
::selection { background: var(--mark); color: var(--ink) }
.wrap { max-width: var(--col); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance }
p { margin: 0; text-wrap: pretty }
a { color: inherit }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }
.skip { position: absolute; top: -100px; left: 24px; z-index: 100; padding: 10px 18px; background: var(--surface); color: var(--ink) }
.skip:focus { top: 12px }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; color: var(--muted) }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 64ch }
.overline { font-size: var(--fs-2xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase }
.sec-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: 40px }
.sec-head h1 { font-size: var(--fs-h2); line-height: 1.16 }


.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-block: 12px }
.nav .bar { display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 24px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 4px 24px rgba(16, 18, 20, .04) }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; text-decoration: none; color: var(--ink) }
.brand-mark { width: 24px; height: 24px; flex: none }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: var(--fs-sm) }
.nav .links a { text-decoration: none; color: var(--ink-2) }
.nav .links a:hover { color: var(--ink) }
.nav .links .page-link { border-left: 1px solid var(--line-2); padding-left: 18px }
.nav .links [aria-current="page"] { color: var(--ink); font-weight: 600 }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease }
.btn:hover { transform: translateY(-1px) }
.btn-primary { background: var(--ink); color: #fff }
.btn-primary:hover { background: var(--pine-2) }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink) }
.btn-ghost:hover { border-color: var(--ink) }
.btn-small { padding: 9px 16px; font-size: var(--fs-xs) }
@media (max-width: 1080px) { .nav .links { gap: 16px } .nav .links .page-link { padding-left: 14px } }
@media (max-width: 960px) { .nav .links { display: none } .nav .bar { gap: 12px; padding-left: 18px } .nav .bar .btn { margin-left: auto; font-size: var(--fs-xs); padding: 10px 14px } }


.apps-page { padding-top: clamp(24px, 4vw, 44px); padding-bottom: 72px }
.back-link { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; display: inline-flex; margin-bottom: 24px }
.back-link:hover { color: var(--ink) }

.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: 100%; margin-bottom: 36px }
.tab { border: 0; background: none; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; text-align: center }
.tab:hover { color: var(--ink) }
@media (max-width: 760px) { .tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none } }
.tab[aria-selected="true"] { background: var(--accent); color: #fff }
.prod { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 52px); align-items: stretch }
.prod > .panel { align-self: start }
.prod .copy { display: flex; flex-direction: column; gap: 16px; padding-top: 16px }
.prod .copy .fine { margin: auto 0 0; padding-top: 8px }
.prod h3 { font-size: var(--fs-h3); line-height: 1.18 }
.ticks { display: grid; gap: 14px; margin-top: 4px }
.ticks div { border-left: 2px solid var(--line-2); padding-left: 16px; color: var(--ink-2); font-size: var(--fs-sm) }
.ticks b { color: var(--ink); font-weight: 600 }
.panel { border-radius: 20px; color: var(--ink); background: var(--soft); padding: clamp(18px, 3vw, 28px); min-width: 0; border: 1px solid var(--line); box-shadow: 0 16px 45px -22px #24283045 }
.panel > .eyebrow { margin-bottom: 14px }
.glass { background: #fff; border: 1px solid var(--line); border-radius: 10px }
.fine { font-size: var(--fs-xs); color: var(--muted); margin: 0; letter-spacing: .02em; line-height: 1.2 }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap }
.p-ok { background: var(--ok-bg); color: var(--ok) } .p-warn { background: var(--warn-bg); color: var(--warn) } .p-bad { background: var(--bad-bg); color: var(--bad) } .p-info { background: var(--info-bg); color: var(--info) }
.linkbtn { border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 6px; padding: 5px 12px; font-size: var(--fs-xs); font-weight: 600 }
@keyframes pulse { 50% { opacity: .35 } }
@keyframes spin { to { transform: rotate(360deg) } }
@media (max-width: 900px) { .prod { grid-template-columns: 1fr } .prod .copy .fine { margin-top: 0 } }


.execution-panel { padding: 0; overflow: hidden; background: #f5f6f7; border-color: #ced1d5 }
.case-hero { background: #17191c; color: #fff; padding: 22px 28px 0; display: grid; gap: 6px }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #afb4bc; margin-bottom: 10px }
.case-top .state { background: #30343a; color: var(--on-dark); font-size: var(--fs-xs); font-weight: 600; padding: 5px 12px }
.case-label { color: var(--on-dark); font-size: var(--fs-sm) }
.case-hero strong { font-size: clamp(2.5rem, 4.6vw, 3.5rem); font-weight: 450; line-height: 1.05; letter-spacing: -.045em }
.case-desc { color: #cfd4da; font-size: var(--fs-sm); max-width: 46ch; margin-top: 2px }
.case-balance { display: flex; gap: 40px; margin: 20px -28px 0; padding: 16px 28px; background: #22252a }
.case-balance div { display: grid; gap: 2px }
.case-balance span { font-size: var(--fs-xs); color: #b9bec5 }
.case-balance b { font-size: var(--fs-title); font-weight: 500 }
.case-content { padding: 22px 28px 24px }
.trail-k { margin-bottom: 6px; color: var(--muted) }
.st { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e0e3e7; transition: opacity .3s ease }
.st .ic { width: 16px; height: 16px; border: 1.5px solid #babdc1; display: grid; place-items: center }
.st.done .ic { background: var(--accent); border-color: var(--accent) }
.st.done .ic::after { content: ""; width: 6px; height: 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) }
.st.run .ic { border-color: var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite }
.st.wait .ic { border-color: #c9a24a; background: #f2dfae }
.st.todo { opacity: .45 }
.st .sn { font-size: var(--fs-sm); font-weight: 500 }
.st .sm { font-size: var(--fs-xs); color: var(--muted); text-align: right }

.case-next { position: relative; padding-top: 16px }
.decision { display: grid; gap: 12px }
.decision p { font-size: var(--fs-sm); color: var(--ink-2) }
.decision p b { color: var(--ink); font-weight: 600 }
.decision-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.decision-acts > div { display: grid; gap: 6px; align-content: start }
.decision-acts small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4 }
.writeback { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px dashed #bec3ca; border-radius: 8px; color: #666d76 }
.writeback-icon { font-size: 1.4rem; line-height: 1; flex: none }
.writeback div { display: grid; gap: 2px }
.writeback b { font-size: var(--fs-sm); font-weight: 600; color: #343b43 }
.writeback div span { font-size: var(--fs-xs); line-height: 1.5 }
.writeback.complete { background: #eaf2ed; border: 1px solid #aecbb7; color: #2f6540 }
.writeback.complete b { color: #255b36 }
.demo-bottom { display: flex; justify-content: flex-end; padding-top: 16px }
.demo-bottom .linkbtn { background: transparent }
@media (max-width: 560px) {
  .case-top { flex-direction: column; align-items: flex-start; gap: 8px }
  .case-hero { padding: 20px 18px 0 } .case-balance { margin-inline: -18px; padding: 14px 18px; gap: 28px } .case-content { padding: 18px }
  .st { grid-template-columns: 16px minmax(0, 1fr) } .st .sm { grid-column: 2; text-align: left; margin-top: -8px }
  .decision-acts { grid-template-columns: 1fr }
}


.pipe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px }
.pipe span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: #fff; transition: all .3s ease }
.pipe span.on { background: var(--accent); color: #fff; border-color: var(--accent) }
.pipe i { font-style: normal; color: #a6a9ad }

.graph-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px }
.graph { width: 100%; min-width: 600px; height: auto; display: block; margin-top: 4px }
.graph .edge { stroke: #b4b7bb; stroke-width: 1.3; transition: stroke .2s ease, stroke-width .2s ease }
.graph .elab { fill: #585b60; font-size: 12px; font-family: var(--f); paint-order: stroke; stroke: var(--soft); stroke-width: 5px; stroke-linejoin: round; transition: fill .2s ease }
.graph .node { cursor: pointer; outline: none }
.graph .node rect { fill: #fff; stroke: #babdc1; stroke-width: 1; transition: fill .2s ease, stroke .2s ease }
.graph .node text { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--f); pointer-events: none }
.graph .node:hover rect { stroke: var(--ink) }
.graph .node:focus-visible rect { stroke: var(--accent); stroke-width: 2.5 }
.graph.focus .edge { stroke: #dcdee0 }
.graph.focus .elab { fill: #a0a3a8 }
.graph.focus .node rect { fill: #fafbfa; stroke: #dcdee0 }
.graph.focus .node text { fill: #7c8085 }
.graph .edge.hi { stroke: var(--accent); stroke-width: 2 }
.graph .elab.hi { fill: var(--accent-2) }
.graph .node.hi rect { fill: #fff; stroke: var(--accent) }
.graph .node.hi text { fill: var(--ink) }
.graph .node.sel rect { fill: var(--accent); stroke: var(--accent) }
.graph .node.sel text { fill: #fff }
.oinfo { margin-top: 8px; padding: 14px 16px; font-size: var(--fs-sm); color: var(--ink-2) }
.oinfo b { color: var(--ink) }
.oinfo .rel { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-xs) }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2) }
.stats b { display: block; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink) }
.stats span { font-size: var(--fs-xs); color: var(--muted) }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) } }


.ask { display: flex; justify-content: flex-end; align-items: flex-start; margin-bottom: 10px }
.ask .q { background: var(--ink); color: #fff; border-radius: 20px; padding: 9px 16px; font-size: var(--fs-sm); min-height: calc(1.55em + 18px) }
.caret { display: inline-block; width: 1px; height: 1em; background: #fff; vertical-align: -2px; margin-left: 1px; animation: pulse 1s steps(2) infinite }
.answer { padding: 16px; display: grid; gap: 10px; align-content: start }
.answer .k, .weekhead, .hint { font-size: var(--fs-xs); font-weight: 600; color: var(--muted) }
.answer p { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink) }
.answer .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.src-chip { border-radius: 6px; padding: 5px 10px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--soft) }
.tx { display: grid; gap: 4px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums }
.tx div { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 8px; padding: 7px 10px; border-radius: 6px; background: var(--soft) }
.tx div span:last-child { text-align: right }
.weekhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px 0 10px; font-weight: 400 }
.weekhead b { color: var(--ink-2); font-weight: 600 }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.tile { text-align: left; padding: 14px; display: grid; gap: 4px; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 10px; transition: border-color .2s ease }
.tile:hover { border-color: #9c9fa4 }
.tile.on { border-color: var(--ink) }
.tile .tn { font-size: var(--fs-xs); color: var(--muted) }
.tile .tv { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink) }
.tile .td { font-size: var(--fs-xs); font-weight: 600 }
.tile svg { width: 100%; height: 54px; margin-top: 6px }
.up { color: #256b42 } .down { color: #a54233 } .amb { color: #886207 }
.hint { margin-top: 10px; font-weight: 400 }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr } }


.app { background: #fff; color: var(--ink); border-radius: 10px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line) }
.app .top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line) }
.app .top .dots { display: flex; gap: 5px } .app .top .dots i { width: 8px; height: 8px; background: #d7d9dc }
.app .top b { font-size: var(--fs-sm); font-weight: 600 }
.app .top .search { margin-left: auto; background: var(--soft); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-2xs); color: var(--muted); white-space: nowrap }
.app .body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) }
.app .list { border-right: 1px solid var(--line); padding: 10px; display: grid; gap: 4px; align-content: start }
.app .list .k { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 4px 6px }
.nf { border: 0; background: none; text-align: left; border-radius: 6px; padding: 9px 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; color: var(--ink) }
.nf:hover { background: var(--soft) }
.nf[aria-selected="true"] { background: var(--soft-2) }
.nf .id { font-weight: 600; font-size: var(--fs-xs) }
.nf .amt { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; text-align: right }
.nf .who { font-size: var(--fs-2xs); color: var(--muted) }
.app .rev { padding: 16px; display: grid; gap: 10px; align-content: start }
.app .rev .k { font-size: var(--fs-sm); font-weight: 600 }
.app .rev .sub { font-size: var(--fs-xs); color: var(--muted); margin-top: -6px }
.find { display: grid; grid-template-columns: 10px 1fr; gap: 2px 10px; align-items: baseline; background: var(--soft); border-radius: 6px; padding: 10px 12px }
.find i { width: 8px; height: 8px; display: block; margin-top: 4px }
.find b { font-size: var(--fs-xs); font-weight: 600 }
.find span { grid-column: 2; font-size: var(--fs-xs); color: var(--muted) }
.stake { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; padding-top: 4px }
.stake b { color: var(--ink); font-weight: 600 }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.acts > div { display: grid; gap: 5px; align-content: start }
.acts button { white-space: nowrap; border-radius: 999px; padding: 9px 12px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--ink) }
.acts .a1 { background: var(--ink); color: #fff }
.acts .a2 { background: #fff; color: var(--ink) }
.acts small { font-size: var(--fs-2xs); color: var(--muted); line-height: 1.4; text-align: center }
.app .rec { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5 }
@media (max-width: 460px) { .acts { grid-template-columns: 1fr } }
@media (max-width: 620px) { .app .body { grid-template-columns: 1fr } .app .list { border-right: 0; border-bottom: 1px solid var(--line) } .app .top .search { display: none } }

.applications-link { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px }
.applications-link p { color: var(--muted); max-width: 46ch; font-size: var(--fs-sm) }


footer { position: relative; margin-inline: calc(50% - 50vw); padding: 36px var(--bleed-pad); background: #0e0f11; color: rgba(255, 255, 255, .55); font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center }
footer .logo { color: #fff; font-size: 1.1rem; margin-left: clamp(0px, 2vw, 24px) }
footer .brand-mark { width: 20px; height: 20px }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; margin-right: clamp(0px, 2vw, 24px) }
footer a { text-decoration: none }
footer nav a:hover { color: #fff }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  html { scroll-behavior: auto }
}


.menu-btn { display: none; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 0 }
.menu-btn svg { width: 18px; height: 18px }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none }
.menu-btn[aria-expanded="true"] .i-close { display: block }
.mmenu { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px rgba(16, 18, 20, .14); padding: 8px; display: grid; gap: 2px }
.mmenu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: var(--fs-body); font-weight: 500 }
.mmenu a:hover, .mmenu a[aria-current="page"] { background: var(--soft) }
.mmenu a.cta { margin-top: 6px; background: var(--ink); color: #fff; justify-content: center; border-radius: 999px; font-weight: 600 }
@media (max-width: 960px) { .menu-btn { display: grid } }
@media (min-width: 961px) { .mmenu { display: none !important } }


@media (max-width: 760px) {
  :root { --fs-h2: 1.625rem; --fs-h3: 1.3rem; --fs-lead: 1.0625rem; --fs-body: .9375rem }
  .apps-page { padding-top: 16px; padding-bottom: 48px }
  .back-link { margin-bottom: 16px }
  .sec-head { gap: 10px; margin-bottom: 20px }
  .tabs { margin-bottom: 20px }
  .prod { display: flex; flex-direction: column; gap: 14px }
  .prod .copy { display: contents }
  .prod .panel { order: 1 }
  .prod .copy .fine { order: 3; margin: 0; padding-top: 0 }
  .prod .ticks { order: 2; gap: 10px; margin-top: 6px }
  .prod .lead { font-size: var(--fs-sm) }
  .panel { padding: 14px }
  .case-hero strong { font-size: 2.25rem }
  .applications-link { margin-top: 32px; padding-top: 24px }
}

.waiting-copy { color:var(--muted) }
.review-color-0b6b4a { background:#0b6b4a }
.review-color-c98a1a { background:#c98a1a }
.review-color-2b4c8c { background:#2b4c8c }
.review-color-a33a2b { background:#a33a2b }
