@font-face { font-family: "Besley"; src: url("/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/fonts/besley-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Restrained and precise: one deep ink (also every primary button), a warm paper surface, and one muted gold
   accent for "you": your line, your share of a close, labels, the nav underline and the slider fill.
   Parts of a close map the same everywhere: follower = gold (deposit light, profit full), owner = ink, fee = grey. */
:root {
  --paper: #f6f5f1;
  --paper-2: #efede7;
  --surface: #fcfbf9;
  --line: #e1ded6;
  --line-2: #cbc7bc;
  --ink: #161a1f;
  --ink-2: #2b3139;
  --muted: #4b4d50;
  --faint: #85898e;
  --accent: #9c7a2e;
  --accent-soft: #d9c79c;
  --accent-ink: #7a5d1d;
  --c-deposit: var(--accent-soft);
  --c-profit: var(--accent);
  --c-owner: var(--ink);
  --c-fee: #aaa59c;
  --buy: #3d6f62;
  --sell: #9b4a3a;
  --err: #a03b2d;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
  --serif: "Besley", Georgia, serif;
  --sans: "Onest", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; color: var(--ink); font: 400 1rem/1.6 var(--sans); background: var(--paper);
  min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { top: 8px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(800px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.lede { font-size: clamp(1.03rem, 1.4vw, 1.125rem); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.hidden { display: none !important; }

/* Small plain labels above section headings. */
.kicker { margin-bottom: 12px; font: 500 .875rem/1.3 var(--sans); color: var(--accent-ink); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 1.15rem var(--serif); letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 5px; }
.site-nav { display: flex; gap: 2px; margin-right: 6px; }
.site-nav a { padding: 10px 12px; text-decoration: none; font-size: .94rem; color: var(--muted); transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; color: inherit; }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Buttons: solid accent primary, solid ink secondary, outline quiet. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff;
  font: 500 .97rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .12s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.quiet:hover { background: var(--surface); border-color: var(--ink); }
.btn.small { min-height: 40px; padding: 7px 14px; font-size: .9rem; }
.link-btn.plain { color: var(--muted); text-decoration: none; }
.link-btn.plain:hover { color: var(--ink); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 8px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wallet-btn { max-width: 11.5rem; transition: none; }
.wallet-btn.connected { background: transparent; color: var(--ink); border-color: var(--line-2); font: 500 .84rem Consolas, ui-monospace, monospace; }
.wallet-btn.connected:hover { border-color: var(--ink); background: var(--surface); }

/* Hero: copy on the left, the follow chart on the right. */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 18px 0 0; padding: 0; font-size: .8125rem; color: var(--muted); }
.trust li { white-space: nowrap; }
.trust li + li::before { content: "·"; margin-inline: 8px; color: var(--faint); }
.chart-panel { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .86rem; }
.chart-legend { display: flex; gap: 18px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 18px; border-top: 1.5px solid var(--ink); }
.key.you::before { border-top: 2px solid var(--accent); }
.bench canvas { display: block; width: 100%; height: clamp(220px, 24vw, 300px); touch-action: pan-y; cursor: crosshair; }
.cap-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cap-row label { font-size: .9rem; font-weight: 500; white-space: nowrap; }
.cap-out { min-width: 8.5ch; text-align: right; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.chart-note { color: var(--muted); font-size: .86rem; margin-top: 10px; }

/* A plain slider: hairline track, round thumb. */
.range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--fill, 100%) 100% no-repeat, var(--line-2); border-radius: 2px; }
.range::-moz-range-track { height: 2px; background: var(--line-2); border-radius: 2px; }
.range::-moz-range-progress { height: 2px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); transition: transform .12s; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--paper-2); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 40ch; }
.section-head .lede { margin-top: 12px; }

/* How it works: a numbered sequence with hairline dividers. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { padding: 22px 24px 4px 0; min-width: 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-n { display: block; margin-bottom: 26px; font: 500 .85rem var(--sans); color: var(--accent-ink); letter-spacing: .02em; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.steps .step:nth-child(2) { transition-delay: .06s; } .steps .step:nth-child(3) { transition-delay: .12s; } .steps .step:nth-child(4) { transition-delay: .18s; }

/* Closing a position: the calculator */
.cut-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cut-grid h2 { margin-bottom: 16px; }
.cut-board { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 30px); }
.panel-title { font-weight: 500; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9rem; }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--sans); font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(184 143 62 / .22); outline: none; }
.field textarea { min-height: 112px; resize: vertical; }
.form { display: grid; gap: 18px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.cut-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 24px; }
.cut-bar { display: flex; height: 10px; border-radius: 4px; overflow: hidden; margin-bottom: 14px; background: var(--line); }
.cut-bar.empty-bar { background: transparent; border: 1px dashed var(--line-2); }
.cut-bar span { display: block; height: 100%; flex: 0 0 auto; width: 0; transition: width .35s var(--ease); }
.cut-bar span + span { box-shadow: inset 2px 0 0 var(--surface); }
.cut-bar .deposit { background: var(--c-deposit); }
.cut-bar .profit { background: var(--c-profit); }
.cut-bar .owner { background: var(--c-owner); }
.cut-bar .fee { background: var(--c-fee); }
.cut-lines { margin: 0; display: grid; }
.cut-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cut-lines div:last-child { border-bottom: 0; }
.cut-lines dt { color: var(--muted); font-size: .95rem; }
.cut-lines dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sw { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 2px; vertical-align: baseline; }
.sw.deposit { background: var(--c-deposit); } .sw.profit, .sw.follower { background: var(--c-profit); } .sw.owner { background: var(--c-owner); } .sw.fee { background: var(--c-fee); }
.cut-empty { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }

/* For agent builders: copy and checklist side by side, then the trade's path as a full-width band. */
.builder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.builders h2 { margin-bottom: 24px; max-width: 20ch; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tick-list li { padding: 11px 0 11px 26px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tick-list li:first-child { border-top: 1px solid var(--line); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 10px; height: 5px; border-left: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: rotate(-45deg); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 28px; align-items: start; }
.flow-node { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); min-width: 0; }
/* Arrows between nodes: a 1px ink shaft with a 12px head, pointing right on wide screens and down on phones. */
.flow-node + .flow-node::before { content: ""; position: absolute; left: -27px; top: 30px; width: 26px; border-top: 1px solid var(--ink); }
.flow-node + .flow-node::after { content: ""; position: absolute; left: -9px; top: 26px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.flow-k { font-weight: 500; font-size: .94rem; }
.flow-v { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.flow-split { border-color: var(--ink); }
.flow-parts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.flow-parts li { display: flex; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.flow-parts .sw { margin-right: 9px; }

/* Agent cards: an identicon from the trading wallet, the name, and stats in columns. */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.agent-label { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s; }
.agent-label:hover { border-color: var(--line-2); }
.agent-label:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.label-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.identicon { flex: none; display: block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; fill: var(--ink); box-sizing: border-box; }
.agent-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.agent-title h1 { min-width: 0; overflow-wrap: anywhere; }
.agent-label h3 { font-size: 1.15rem; overflow-wrap: anywhere; min-width: 0; }
.agent-label p { color: var(--muted); overflow-wrap: anywhere; flex: 1; font-size: .97rem; line-height: 1.55; }
.label-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.stat { min-width: 0; }
.stat dt { font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.stat dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; justify-items: start; background: var(--surface); }
.empty p { color: var(--muted); max-width: 56ch; }
.empty .btn { margin-top: 6px; }
.note { padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--surface); font-size: .95rem; border-radius: 0 4px 4px 0; }

/* App pages */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 14px; }
.page-body { padding-block: clamp(28px, 4vw, 52px) clamp(56px, 7vw, 92px); display: grid; gap: clamp(30px, 4vw, 48px); }
.page-body > *, .form > * { min-width: 0; }
.block > h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.agent-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.agent-main { display: grid; gap: clamp(28px, 4vw, 40px); min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 2.4vw, 26px); min-width: 0; }
.panel h2 { font-size: 1.3rem; margin-bottom: 12px; }
.facts { margin: 0; display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.strategy { white-space: pre-wrap; overflow-wrap: anywhere; }
.tape-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tape-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tape-list .sub { color: var(--muted); font-size: .9rem; }
.side-buy { color: var(--buy); font-weight: 600; } .side-sell { color: var(--sell); font-weight: 600; } .side-other { color: var(--muted); font-weight: 600; }
.ticket { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 4px; margin-bottom: 12px; }
.ticket-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.follow-card { display: grid; gap: 12px; }
.card-link { display: grid; gap: 1px; min-width: 0; text-decoration: none; color: var(--ink); }
.card-link h3 { overflow-wrap: anywhere; }
.card-go { font-size: .84rem; color: var(--muted); }
.card-link:hover .card-go { color: var(--ink); text-decoration: underline; }
.suffixed { position: relative; }
.suffixed input { padding-right: 52px; }
.suffixed span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .86rem; color: var(--faint); pointer-events: none; }
.pos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.status-pill { display: inline-block; padding: 1px 9px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.mono-wrap { overflow-wrap: anywhere; word-break: break-all; font-size: .92rem; }
pre.snippet { margin: 0; min-width: 0; max-width: 100%; padding: 12px 14px; background: var(--ink); color: #eceae4; border-radius: var(--radius); overflow-x: auto; font: 400 13px/1.6 Consolas, ui-monospace, monospace; white-space: pre; }
details summary { cursor: pointer; font-weight: 500; min-height: 32px; }
details[open] summary { margin-bottom: 8px; }
.prose { display: grid; gap: 14px; max-width: 66ch; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--faint); }

/* Dialog */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgb(22 26 31 / .5); }
.dialog-body { background: var(--surface); padding: 24px; border-radius: 10px; display: grid; gap: 14px; border: 1px solid var(--line); }
.dialog-body h2 { font-size: 1.35rem; }
.wallet-list { display: grid; gap: 8px; }
.wallet-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); font: 500 1rem var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .15s; }
.wallet-choice:hover { border-color: var(--ink); }
.wallet-choice img { width: 26px; height: 26px; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, 12px); opacity: 0; width: max-content; max-width: calc(100vw - 28px); padding: 11px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-foot { padding-block: 32px 28px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.foot-brand { display: grid; gap: 2px; }
.foot-name { font: 500 1.05rem var(--serif); color: var(--ink); }
.foot-copy { margin-top: 8px; font-size: .82rem; color: var(--faint); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: center; }
.site-foot a { padding-block: 6px; display: inline-block; text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Errors and hints */
.err { color: var(--err); font-size: .9rem; font-weight: 500; }
.err:empty, .hint:empty { display: none; }
.hint { font-size: .88rem; color: var(--muted); }
.panel > .note { margin-bottom: 16px; }
.facts dd a { white-space: nowrap; }
.addr { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.facts dd:has(.addr) { flex: none; }
.addr a { font: .9rem Consolas, ui-monospace, monospace; }
.copy-btn { flex: none; white-space: nowrap; min-height: 30px; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); color: var(--ink-2); font: 500 .78rem var(--sans); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }

/* Motion: one quiet entrance for the hero, and reveals that only fade and lift a little. */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > *, .hero .chart-panel { animation: rise .6s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .05s; } .hero-copy > :nth-child(3) { animation-delay: .1s; } .hero-copy > :nth-child(4) { animation-delay: .15s; }
.hero .chart-panel { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 900px) {
  .hero-grid, .cut-grid, .builder-grid, .agent-layout { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 560px; }
  .flow-node + .flow-node::before { left: 24px; top: -25px; width: 0; height: 24px; border-top: 0; border-left: 1px solid var(--ink); }
  .flow-node + .flow-node::after { left: 20px; top: -9px; transform: rotate(135deg); }
  .hero h1 { max-width: 16ch; }
  .agent-side { order: -1; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 18px 0 18px; border-left: 0; margin-top: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step-n { margin-bottom: 10px; }
  .step h3 { max-width: none; }
}
@media (max-width: 560px) {
  .cut-lines dt { font-size: .9rem; }
  .site-nav { margin-right: 0; }
  .site-nav a { padding: 10px 7px; font-size: .9rem; }
  .brand span { display: none; }
  .cut-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cut-inputs .field:first-child { grid-column: 1 / -1; }
  .hero { padding-top: 32px; }
  .hero .actions { flex-wrap: nowrap; }
  .trust { gap: 2px 14px; }
  .trust li + li::before { content: none; }
  .hero .actions .btn { flex: 1 1 0; padding-inline: 8px; font-size: .94rem; }
  .chart-panel { padding: 14px 14px 16px; }
  .cap-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .cap-row .range { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .bench canvas { height: 210px; }
}
@media (max-width: 345px) {
  .label-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-btn { padding-inline: 9px; font-size: .84rem; max-width: 7.6rem; }
  .site-nav a { padding-inline: 4px; font-size: .86rem; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
