/* ledgers.sh. Ported from the Claude Design file `Landing Page.dc.html`.
   Tokens first; everything below reads them. Dark page, one light band (#modules). */

:root {
  --bg: #0F1217;
  --surface: #151920;
  --raised: #1C2129;
  --sunk: #0A0C10;
  --line: #252B34;
  --rule: #34445A;
  --rule-soft: #1F2731;
  --text: #E4E7EB;
  --text-2: #B8C0CA;
  --muted: #99A2AE;
  --agent: #7FA6C9;
  --human: #E9B44C;
  --on-human: #17130A;
  --human-bg: #2A2215;
  --human-text: #F0C46A;
  --human-line: #5A4520;

  --paper: #FAFAF8;
  --ink: #17191D;
  --ink-2: #4A5059;
  --ink-muted: #5B616B;
  --paper-line: #DADDE1;
  --paper-rule: #9DB3CC;
  --paper-rule-soft: #DCE5EF;
  --agent-ink: #3F6E99;

  --sans: 'Source Sans 3', system-ui, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, monospace;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--agent); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--agent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--text); color: var(--bg); border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Buttons */
.btn { height: 46px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; border-radius: 6px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.btn-solid { background: var(--text); color: var(--bg); border: 0; }
.btn-solid:hover { color: var(--bg); background: #fff; }
.btn-line { border: 1px solid var(--rule); background: transparent; color: var(--text); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 15px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(15,18,23,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 60px; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px var(--mono); flex: none; }
.brand img { width: 28px; height: 28px; display: block; }
.brand .name span { color: var(--muted); }
.top nav { display: flex; gap: 22px; font-size: 15px; white-space: nowrap; min-width: 0; overflow: hidden; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); }
.spacer { flex: 1; }
.langs { display: flex; gap: 2px; font: 500 12px var(--mono); }
.langs button { border: 0; border-radius: 4px; padding: 5px 8px; background: transparent; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--line); color: var(--text); }
.top .btn { height: 36px; padding: 0 16px; font-size: 15px; flex: none; }
@media (max-width: 860px) { .top nav { display: none; } }
@media (max-width: 520px) { .top .langs { display: none; } }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 520px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 8px; }
.chip-plan { color: var(--human-text); border-color: var(--human-line); background: var(--human-bg); }
.diamond { width: 8px; height: 8px; border: 1.5px solid var(--agent); border-radius: 2px; transform: rotate(45deg); flex: none; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 56px; }
.hero-copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px; align-items: end; }
.hero-copy > div { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 13px var(--mono); color: var(--muted); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.03em; hyphens: auto; }
.hero-copy [dir="rtl"] h1, .hero-copy[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.2; }
.hero-sub { font-size: 20px; line-height: 1.45; color: var(--text-2); max-width: 520px; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }
.btn .mcp { font: 500 13px var(--mono); color: var(--agent); }

.demo { display: flex; flex-direction: column; }
.demo-head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.pane { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-height: 280px; }
.pane-bar { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pane-bar b { color: var(--text); font-weight: 600; }
.pane-term { background: var(--sunk); }
.pane-term .pane-bar { font: 500 13px var(--mono); }
.term { padding: 18px 20px; font: 400 14.5px/1.75 var(--mono); display: flex; flex-direction: column; }
.term .cmd { white-space: pre-wrap; word-break: break-all; }
.term .ps { color: var(--agent); }
.term .cursor { background: var(--text); color: var(--sunk); }
.term .out { color: var(--muted); }
.term .warn { color: var(--human); }
.pane-chat { background: var(--surface); }
.chat { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.chat .me { align-self: flex-end; background: var(--line); border-radius: 10px 10px 2px 10px; padding: 8px 12px; max-width: 80%; }
.chat .call { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; font: 400 13.5px/1.6 var(--mono); }
.chat .call span:first-child { color: var(--agent); }
.chat .call span:last-child { color: var(--text-2); white-space: pre-wrap; }
.chat .reply { color: var(--text-2); line-height: 1.5; }
.pane-app { background: var(--paper); color: var(--ink); }
.pane-app .pane-bar { border-bottom-color: var(--paper-line); color: var(--ink-muted); }
.pane-app .pane-bar b { color: var(--ink); }
.pane-app kbd { font: 500 11px var(--mono); border: 1px solid var(--paper-line); border-radius: 3px; padding: 0 4px; }
.inbox { padding: 14px 16px; display: flex; flex-direction: column; font-size: 14px; }
.inbox .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 8px; }
.inbox .row > :nth-child(even) { text-align: right; }
.inbox .row small { font-size: 13px; color: var(--ink-muted); }
.inbox .row .id { font: 400 12.5px var(--mono); color: var(--ink-muted); }
.inbox .row .pct { font: 400 12px var(--mono); color: var(--ink-muted); }
.inbox .row + .row { border-top: 1px solid var(--paper-rule-soft); }
.inbox .live { margin: 0 -4px; padding: 10px 12px; border-radius: 6px; background: #FBF0D4; border: 1px solid #D9B866; transition: background .3s, border-color .3s; }
.inbox .live b { font-weight: 600; }
.inbox .status { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font-size: 13px; font-weight: 600; color: #6E4700; }
.inbox .status i { width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(45deg); }
.inbox .acts { display: flex; gap: 8px; margin-top: 10px; }
.inbox .acts span { height: 32px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--paper-line); border-radius: 5px; background: #fff; }
.inbox .acts span + span { background: var(--human); border-color: var(--human); font-weight: 600; }

.conn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; height: 36px; }
.conn span { justify-self: center; width: 1px; background: var(--agent); transition: background .4s; }
.entry { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.entry-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.entry-head h2 { font-size: 16px; font-weight: 600; }
.entry-head .muted { font-size: 14px; }
.flag { background: var(--human-bg); color: var(--human-text); font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 5px; }
.je { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); border-top: 1px solid var(--rule); }
.je-side { display: flex; flex-direction: column; }
.je-side.dr { padding-right: 20px; border-right: 1px solid var(--rule); }
.je-side.cr { padding-left: 20px; }
@media (max-width: 760px) { .je-side.dr { padding-right: 0; border-right: 0; } .je-side.cr { padding-left: 0; } }
.je-row { display: flex; justify-content: space-between; align-items: center; height: 42px; border-bottom: 1px solid var(--rule-soft); font-size: 16px; gap: 12px; }
.je-row.head { height: 34px; border-bottom-color: var(--rule); font-size: 13px; color: var(--muted); }
.je-row.total { height: 64px; border-bottom: 0; font-weight: 600; }
.je-row .acct { color: var(--muted); font-family: var(--mono); margin: 0 .5em; }
.je-row .acct:first-child { margin-left: 0; }
.je-row .amt { font-size: 19px; font-weight: 500; }
.je-row .sum { font-size: 30px; font-weight: 600; border-top: 1px solid var(--text); border-bottom: 3px double var(--text); line-height: 1.2; }

/* Animation states. The HTML is the finished state; ledgers.js hides [data-at]
   elements and replays them on a loop (not under reduced motion). */
[data-at][hidden] { display: none !important; }
.entry.dim { opacity: .18; transform: translateY(10px); }
.conn.off span { background: var(--line); }
.inbox .live.calm { background: #fff; border-color: var(--paper-line); }
.inbox .live.calm .status { color: var(--agent-ink); }

/* App section */
.chips { display: flex; gap: 8px; flex-wrap: wrap; font: 500 13px var(--mono); }
.chips span { padding: 6px 10px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.chips span:first-child { background: var(--line); color: var(--text); }
.shot { border: 1px solid var(--rule); border-radius: 12px; overflow-x: auto; overflow-y: hidden; background: var(--sunk); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.shot::-webkit-scrollbar { height: 8px; }
.shot::-webkit-scrollbar-track { background: transparent; }
.shot::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; border: 2px solid var(--sunk); }
/* ledgers.js scales the screen to fit (down to .5, then it scrolls); .82 is the no-JS size. */
.shot-inner { zoom: .82; width: 1440px; }
.chips em { margin-left: auto; font-style: normal; align-self: center; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: center; padding: 24px 0 8px; }
.devices > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.devices h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.devices p { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 480px; }
.spec { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.spec li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.spec li b { font-weight: 600; }
.spec li span { color: var(--text-2); }
@media (max-width: 480px) { .spec li { grid-template-columns: 1fr; gap: 4px; } }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 280px; height: 580px; border-radius: 40px; border: 8px solid var(--line); background: var(--bg); overflow: hidden; display: flex; flex-direction: column; font-size: 13px; }
.phone .sb { height: 36px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 12px; font-weight: 600; }
.phone .sb i { width: 70px; height: 20px; background: #000; border-radius: 12px; }
.phone .push { margin: 4px 10px 0; padding: 10px 12px; background: var(--raised); border-radius: 14px; display: flex; flex-direction: column; gap: 3px; }
.phone .push span:first-child { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.phone .push b { font-weight: 600; line-height: 1.3; }
.phone .body { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.phone .doc { width: 44px; height: 60px; flex: none; background: #fff; border-radius: 3px; background-image: repeating-linear-gradient(180deg, transparent 0 6px, #E4E6E9 6px 7px); background-size: 70% 100%; background-repeat: no-repeat; background-position: 7px 8px; }
.phone .lines { display: flex; flex-direction: column; border-top: 1px solid var(--rule); font-size: 12.5px; }
.phone .lines div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.phone .lines div:last-child { border-bottom: 0; font-weight: 600; }
.phone .btns { margin-top: auto; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding-bottom: 20px; }
.phone .btns span { height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 10px; }
.phone .btns span + span { background: var(--human); border-color: var(--human); color: var(--on-human); font-weight: 600; gap: 6px; }
.feat { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 18px; }
.feat h3 { font-size: 19px; font-weight: 600; }
.feat p { color: var(--text-2); line-height: 1.5; }

/* Review and match screen (static port of ReviewMatch.dc.html, dark theme) */
.rm { width: 1440px; height: 900px; overflow: hidden; background: var(--bg); color: var(--text); font-size: 14px; display: flex; flex-direction: column; }
.rm button { font: inherit; color: inherit; }
.rm-top { height: 44px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.rm-top nav { display: flex; gap: 2px; }
.rm-top nav span { padding: 5px 10px; color: var(--muted); }
.rm-top nav span.on { color: var(--text); border-radius: 4px; background: var(--raised); }
.rm-top nav b { color: var(--human-text); }
.rm-search { width: 320px; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; color: var(--muted); }
.rm-search b { font: 500 12px var(--mono); color: var(--text); }
.rm-head { height: 64px; flex: none; display: flex; align-items: center; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.rm-head h3 { font-size: 20px; font-weight: 600; }
.rm-head h3 span { font: 400 14px var(--mono); color: var(--muted); }
.rm-run { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.rm-run b { font: 400 13px var(--mono); color: var(--text); }
.rm-limit { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 5px; background: var(--human-bg); color: var(--human-text); font-weight: 600; }
.rm-limit span { font: 400 12px var(--mono); color: var(--muted); }
.rm-total { text-align: right; }
.rm-total div:first-child { font-size: 12px; color: var(--muted); }
.rm-total div:last-child { font-size: 22px; font-weight: 600; }
.rm-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 480px 370px minmax(0, 1fr); }
.rm-doc { background: var(--sunk); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.rm-doc-bar { height: 36px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.rm-doc-bar b { font: 400 13px var(--mono); color: var(--text); }
.rm-paper-wrap { flex: 1; min-height: 0; overflow: hidden; padding: 20px 24px; }
.paper { width: 100%; aspect-ratio: 1 / 1.414; background: #fff; color: #222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 9.5px; line-height: 1.45; padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.2); font-variant-numeric: normal; }
.paper .g { color: #666; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th { padding: 3px 0; font-weight: 600; text-align: left; }
.paper thead tr { border-bottom: 1px solid #222; }
.paper tbody tr { border-bottom: 1px solid #e5e5e5; }
.paper td { padding: 4px 0; }
.paper .r { text-align: right; }
.paper .blur { opacity: .35; filter: blur(.6px); }
.hl { padding: 0 3px; border-radius: 2px; outline-offset: 1px; transition: background .2s; }
.hl.low { outline: 1.5px dashed #B88A1E; }
.hl.on { outline: 2px solid var(--agent-ink); background: rgba(63,110,153,.14); }
.rm-fields { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 14px 18px; gap: 8px; overflow: auto; }
.rm-h { display: flex; justify-content: space-between; align-items: baseline; }
.rm-h h4 { margin: 0; font-size: 14px; font-weight: 600; }
.rm-h span { color: var(--muted); font-size: 13px; }
.rm-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.rm-list button { display: grid; grid-template-columns: 96px 1fr 70px; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; margin: 0 -8px; border: 0; border-bottom: 1px solid var(--rule-soft); background: transparent; text-align: left; font-size: 14px; }
.rm-list button[aria-pressed="true"] { background: #1A2330; }
.rm-list .k { color: var(--muted); font-size: 13px; }
.rm-list .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-list .c { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font: 400 12px var(--mono); color: var(--muted); }
.rm-list .c i { width: 26px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; display: block; }
.rm-list .c i b { display: block; height: 100%; background: var(--agent); }
.rm-list .low .c { color: var(--human-text); font-weight: 600; }
.rm-list .low .c i b { background: var(--human); }
.rm-note { font-size: 13px; color: var(--human-text); background: var(--human-bg); padding: 8px 10px; border-radius: 5px; display: flex; flex-direction: column; gap: 6px; }
.rm-note[hidden] { display: none; }
.rm-note span:last-child { display: flex; gap: 6px; }
.rm-note i { font-style: normal; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--human-line); color: var(--text); border-radius: 4px; font-size: 12px; }
.rm-main { display: flex; flex-direction: column; min-height: 0; }
.rm-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 22px; }
.rm-scroll section { display: flex; flex-direction: column; gap: 10px; }
.rm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.rm-steps li { display: flex; flex-direction: column; gap: 6px; }
.rm-steps li > div { display: flex; align-items: center; }
.rm-steps .node { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--agent); background: var(--agent); }
.rm-steps .track { flex: 1; height: 2px; background: var(--agent); margin: 0 4px; }
.rm-steps li:last-child .node { border-color: var(--human); background: var(--human); }
.rm-steps li:last-child .track { background: transparent; }
.rm-steps b { font-weight: 600; font-size: 13px; }
.rm-steps li:last-child b { color: var(--human-text); }
.rm-steps span { font-size: 12px; color: var(--muted); line-height: 1.35; padding-right: 10px; }
.rm-je { display: grid; grid-template-columns: 1fr 2px 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.rm-je > i { background: var(--rule); }
.rm-je .je-side { padding: 0 16px; border: 0; }
.rm-je .je-row { height: 36px; font-size: 14px; }
.rm-je .je-row.head { height: 30px; font-size: 12px; }
.rm-je .je-row.total { height: 56px; }
.rm-je .amt { font-size: 17px; }
.rm-je .sum { font-size: 24px; line-height: 1.25; }
.rm-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.rm-mini { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; font-size: 12px; padding: 3px 8px; }
.rm-match { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: center; }
.rm-match > div { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.rm-match > div span:first-child { font-size: 12px; color: var(--muted); }
.rm-match > div .mono { font-size: 13px; }
.rm-match > div:last-child { border: 1.5px solid var(--text); }
.rm-match > p { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.rm-match > p::after { content: ""; width: 100%; height: 2px; background: var(--agent); }
.rm-foot { height: 62px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-top: 1px solid var(--line); }
.rm-foot span { font-size: 12px; color: var(--muted); padding-left: 6px; }
.rm-foot i { font-style: normal; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 5px; }
.rm-foot i.go { border: 0; padding: 0 16px; background: var(--human); color: var(--on-human); font-weight: 600; }

/* Used by: every Factory Zero venture, on a loop */
.usedby { border-top: 1px solid var(--line); }
.usedby .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }
.usedby-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.usedby-label > span:first-child { font: 500 13px var(--mono); color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.usedby-label a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-run { display: flex; width: max-content; animation: lgMarquee 60s linear infinite; }
.marquee:hover .marquee-run, .marquee:focus-within .marquee-run { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0 0 0 0; display: flex; }
.marquee li a { display: flex; align-items: center; gap: 10px; padding: 6px 28px 6px 0; color: var(--text-2); font-weight: 600; font-size: 16px; white-space: nowrap; }
.marquee li a:hover { color: var(--text); }
.marquee img { height: 28px; width: auto; max-width: 40px; display: block; }
@keyframes lgMarquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-run { width: auto; }
  .marquee ul { flex-wrap: wrap; row-gap: 4px; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Passkey approvals */
.key { flex: none; }
.pk { display: inline-flex; align-items: center; gap: 6px; }
.approve { border: 1px solid var(--human-line); background: var(--human-bg); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.demo .chat .approve:not([hidden]) { display: flex; }
.approve-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.approve-head b { font-weight: 600; }
.approve-head span { font-weight: 600; }
.approve-why { font-size: 13px; color: var(--human-text); }
.approve-acts { display: flex; gap: 8px; margin-top: 2px; }
.approve-acts span { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--human-line); border-radius: 6px; font-size: 14px; }
.approve-acts .pk { background: var(--human); border-color: var(--human); color: var(--on-human); font-weight: 600; }
.rm-foot i.go { gap: 8px; }
.loc tr.later td { color: var(--muted); }
.loc tr.later .amount { color: var(--text-2); }

/* Policy */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tiers li { padding: 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.tiers .bars { display: flex; gap: 4px; }
.tiers .bars i { width: 28px; height: 6px; background: var(--line); }
.tiers .bars i.on { background: var(--agent); }
.tiers h3 { font-size: 22px; font-weight: 600; }
.tiers p { color: var(--text-2); line-height: 1.5; }
.tiers code { font: 400 13px var(--mono); color: var(--muted); margin-top: auto; }
.tiers li.human { background: var(--human-bg); }
.tiers li.human .bars i { background: var(--human); }
.tiers li.human h3 { color: var(--human-text); }
.tiers li.human p { color: #E4D9C2; }
.tiers li.human code { color: #C9B48A; }

/* Sizes */
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.sizes > div { border-top: 2px solid var(--text); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.sizes .ico { display: flex; gap: 6px; height: 44px; align-items: flex-end; }
.sizes .sq { width: 20px; height: 20px; border: 1.5px solid var(--text); }
.sizes .dm { width: 8px; height: 8px; border: 1.5px solid var(--agent); transform: rotate(45deg); margin: 0 2px 6px; }
.sizes .units { width: 44px; height: 44px; border: 1.5px solid var(--text); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; }
.sizes .units i { border: 1px dashed var(--agent); }
.sizes h3 { font-size: 22px; font-weight: 600; }
.sizes p { color: var(--text-2); line-height: 1.5; }
.sizes code { font: 400 13px var(--mono); color: var(--muted); }

/* Modules (light band) */
.band-light { background: var(--paper); color: var(--ink); }
.band-light .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.band-light a { color: var(--agent-ink); }
.band-light .intro { display: flex; flex-direction: column; gap: 20px; }
.band-light .lede { color: var(--ink-2); }
.band-light .chip-plan { color: #6E4700; border-color: #D9B866; background: #FBF0D4; align-self: flex-start; }
.band-light pre { margin: 0; font: 400 14px/1.75 var(--mono); background: #fff; border: 1px solid var(--paper-line); border-radius: 8px; padding: 16px 18px; color: var(--ink-2); overflow: auto; }
.band-light pre b { color: var(--ink); font-weight: 400; }
.band-light pre em { font-style: normal; color: var(--ink-muted); }
.crates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--paper-rule); border-left: 1px solid var(--paper-rule); }
.crates li { border-right: 1px solid var(--paper-rule); border-bottom: 1px solid var(--paper-rule); padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; min-height: 150px; }
.crates li div { display: flex; justify-content: space-between; align-items: baseline; }
.crates li div b { font: 600 15px var(--mono); }
.crates li div span { font: 400 12px var(--mono); color: var(--ink-muted); }
.crates p { color: var(--ink-2); line-height: 1.45; font-size: 15px; }
.crates code { margin-top: auto; font: 400 12.5px var(--mono); color: var(--agent-ink); }

/* Locales */
.table-scroll { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 10px; }
.tbl thead tr { border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 13px; text-align: left; }
.tbl th[scope="col"] { font-weight: 500; padding: 10px 0; text-align: left; }
.tbl tbody tr { border-bottom: 1px solid var(--rule-soft); }
.tbl td { padding: 16px 0; vertical-align: top; }
.loc td:first-child { font: 400 14px var(--mono); color: var(--muted); width: 140px; }
.loc td:nth-child(2) { color: var(--text-2); padding-right: 16px; }
.loc td:nth-child(3) { padding-right: 24px; }
.loc .amount { text-align: right; font-size: 22px; font-weight: 500; white-space: nowrap; }
.loc thead th:last-child { text-align: right; }

/* Open */
.open h3 { font-size: 20px; font-weight: 600; }
.open > div { display: flex; flex-direction: column; gap: 10px; }
.open p { color: var(--text-2); line-height: 1.5; }
.open code { font: 400 13px var(--mono); color: var(--agent); }

/* Pricing */
.plans { min-width: 640px; }
.plans th[scope="row"] { text-align: left; padding: 22px 0; font-size: 20px; font-weight: 600; vertical-align: top; width: 200px; }
.plans th[scope="row"] div { display: flex; flex-direction: column; gap: 6px; }
.plans th[scope="row"] small { align-self: flex-start; font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 6px; }
.plans .price { text-align: right; padding: 22px 40px 22px 0; vertical-align: top; white-space: nowrap; width: 160px; }
.plans .price small { font-size: 13px; color: var(--muted); }
.plans .price b { font-size: 24px; font-weight: 600; }
.plans .price span { font-size: 14px; color: var(--muted); }
.plans .what { padding: 22px 24px 22px 0; color: var(--text-2); line-height: 1.5; }
.plans .act { padding: 16px 0; text-align: right; width: 150px; }
.plans .act a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--rule); font-weight: 600; font-size: 15px; white-space: nowrap; }
.plans thead th:nth-child(2) { text-align: right; padding-right: 40px; }

/* Waitlist */
.cta > .wrap { padding-top: 112px; padding-bottom: 112px; gap: 56px; }
.cta h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.cta .ask { display: flex; flex-direction: column; gap: 24px; }
.cta form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.cta input { flex: 1; min-width: 220px; height: 48px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--rule); background: var(--sunk); color: var(--text); font-size: 16px; }
.cta form .btn { height: 48px; }
.form-msg { color: var(--text-2); line-height: 1.5; max-width: 560px; min-height: 1.5em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.card > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 18px; font-weight: 600; }
.card > div span { font: 400 13px var(--mono); color: var(--muted); }
.card p { color: var(--text-2); line-height: 1.5; }
.card pre { margin: 0; font: 400 14px/1.7 var(--mono); color: var(--text-2); overflow: auto; }
.card pre .ps { color: var(--agent); }
.card pre em { font-style: normal; color: var(--muted); }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .brand { font-size: 14px; color: var(--text); }
.foot .brand img { width: 20px; height: 20px; }

/* 404 */
.lost { padding-top: 120px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lost code { font: 500 14px var(--mono); color: var(--agent); }
.lost h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.lost p { font-size: 18px; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.card, .cards > *, .band-light .intro, .panes > *, .grid > *, .sizes > * { min-width: 0; }
.rm-foot i { white-space: nowrap; }
