/* Archon app. The palette and type follow Hyperliquid's own app (surface #0f1a1f, border
   #273035, mint #97fce4, teal #50d2c1, rose #ed7088, Inter with tabular figures) so the
   app reads as part of the venue it trades on. Light mode follows hyperliquid.xyz. Every
   text colour clears 4.5:1 on the surface it sits on, in both themes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b1418;
  --panel: #0f1a1f;
  --inset: #142228;
  --hover: #1a2a30;
  --line: #273035;
  --divider: rgba(255, 255, 255, .06);
  --ink: #f6fefd;
  --ink-2: #9aa3a4;
  --ink-3: #7d8a88;
  --accent: #97fce4;
  --accent-edge: #97fce4;
  --on-accent: #04060c;
  --link: #50d2c1;
  --accent-soft: rgba(80, 210, 193, .12);
  --pos: #50d2c1;
  --pos-soft: rgba(80, 210, 193, .12);
  --neg: #ed7088;
  --neg-soft: rgba(237, 112, 136, .1);
  --on-neg: #04060c;
  --warn: #e8a64a;
  --warn-soft: rgba(232, 166, 74, .1);
  --focus: #97fce4;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 16px 40px -24px rgba(0, 0, 0, .8);
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tabbar: 0px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f8f9f9;
    --panel: #ffffff;
    --inset: #f2f4f4;
    --hover: #eaeeee;
    --line: #dfe3e3;
    --divider: rgba(3, 33, 28, .07);
    --ink: #03211c;
    --ink-2: #4f605d;
    --ink-3: #5a6b68;
    --accent: #97fce4;
    --accent-edge: #50d2c1;
    --on-accent: #03211c;
    --link: #0a705f;
    --accent-soft: rgba(11, 122, 105, .08);
    --pos: #0a705f;
    --pos-soft: rgba(11, 122, 105, .09);
    --neg: #c2334f;
    --neg-soft: rgba(194, 51, 79, .08);
    --on-neg: #ffffff;
    --warn: #9a5b00;
    --warn-soft: rgba(154, 91, 0, .09);
    --focus: #0a705f;
    --shadow: 0 1px 2px rgba(3, 33, 28, .04), 0 12px 32px -20px rgba(3, 33, 28, .18);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.25; }
h3, .card-title { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: .92em; }
/* Figures line up in columns; prose keeps proportional digits so "4-hour" reads naturally. */
.num, table, .stat b, .figures b, .price, .equity { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* The router moves focus to the page for screen readers; the page itself is not a control. */
.view:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- frame */
.top-wrap { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top {
  display: flex; align-items: center; gap: 28px;
  padding: env(safe-area-inset-top, 0px) 24px 0;
  height: calc(64px + env(safe-area-inset-top, 0px));
  max-width: 1240px; width: 100%; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.02em; min-height: 44px; }
.mark { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--accent); border: 1px solid var(--accent-edge); display: inline-block; transform: rotate(-45deg); }
nav.main { display: flex; gap: 2px; flex: 1; }
nav.main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--radius-sm); white-space: nowrap; }
nav.main a:hover { color: var(--ink); background: var(--inset); }
nav.main a.active { color: var(--ink); background: var(--inset); }
nav.main .ico { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wallet-pill { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--mono); padding: 0 14px; min-height: 40px; border-radius: var(--radius-sm); background: var(--inset); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.wallet-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }

.banners { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px; display: grid; gap: 8px; }
.banners:not(:empty) { padding-top: 14px; }
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); font-size: 15px; }
.banner b { font-weight: 600; }
.banner .grow { flex: 1; min-width: 200px; }
.banner.practice { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.banner.practice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pos); flex: none; }
.banner.warn { background: var(--warn-soft); border-color: transparent; }
.banner.warn b { color: var(--warn); }
.banner.urgent { background: var(--neg-soft); border-color: var(--neg); }
.banner.urgent b { color: var(--neg); }

.view { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 24px 64px; }
.narrow { max-width: 720px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 24px calc(22px + env(safe-area-inset-bottom, 0px) + var(--tabbar)); color: var(--ink-3); font-size: 14px; width: 100%; }
.foot p { border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------------------------------------------------------------- controls */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; min-height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--accent-edge);
  background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: filter .12s ease, background-color .12s ease;
}
.btn:hover { filter: brightness(.94); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--inset); filter: none; }
.btn.danger { background: transparent; color: var(--neg); border-color: var(--neg); }
.btn.danger:hover { background: var(--neg-soft); filter: none; }
.btn.danger.solid { background: var(--neg); color: var(--on-neg); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label, fieldset > legend { font-weight: 600; font-size: 15px; }
.hint { color: var(--ink-2); font-size: 14px; }
input[type=text], input[type=password], input[type=number], select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--inset); color: var(--ink); font-size: 16px;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; border-radius: var(--radius-sm); }
input.mono { font-family: var(--mono); font-size: 15px; }
input[aria-invalid=true] { border-color: var(--neg); }
.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; min-width: 0; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--inset); min-height: 48px; }
.choice + .choice { margin-top: 8px; }
.choice input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--link); flex: none; }
.choice:has(input:checked) { border-color: var(--link); background: var(--accent-soft); }
.choice b { display: block; font-weight: 600; color: var(--ink); }
.choice span { color: var(--ink-2); font-size: 14px; }
.choice .tail { margin-left: auto; text-align: right; white-space: nowrap; color: var(--ink); font-size: 17px; font-weight: 600; }
details.more { border-top: 1px solid var(--line); padding-top: 6px; margin-bottom: 18px; }
details.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ink-2); list-style: none; }
details.more > summary::before { content: "+"; width: 20px; color: var(--link); font-weight: 600; }
details.more[open] > summary::before { content: "\2212"; }
.card > details.more:last-child { margin-bottom: 0; }
details.more > summary::-webkit-details-marker { display: none; }

.status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); margin-top: 14px; font-size: 15px; }
.status.err { background: var(--neg-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--neg); }
.status.ok { box-shadow: inset 3px 0 0 var(--pos); }
.spinner { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--link); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.long, .badge.ok { background: var(--pos-soft); color: var(--pos); }
.badge.flat { background: var(--inset); color: var(--ink-2); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--neg-soft); color: var(--neg); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* ---------------------------------------------------------------- gate */
.gate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; padding-top: 48px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--link); margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--ink-2); margin: 18px 0 30px; max-width: 54ch; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 56ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--panel); }
.steps b { color: var(--ink); font-weight: 600; }
.pay { position: sticky; top: 88px; }
.pay h2 { margin-bottom: 4px; }
.price { font-size: 48px; font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 16px 0 6px; }
.sub { color: var(--ink-2); margin-bottom: 18px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.chip { border: 1px solid var(--line); background: var(--inset); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; text-align: left; line-height: 1.35; min-height: 56px; font-weight: 600; }
.chip small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
.chip[aria-pressed=true] { border-color: var(--link); background: var(--accent-soft); }
.fee-line { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 22px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.after { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.after b { color: var(--ink); font-weight: 600; }
.wallets { display: grid; gap: 8px; margin: 4px 0 14px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--inset); cursor: pointer; text-align: left; font-weight: 600; }
.wallet-opt:hover { border-color: var(--link); }
.wallet-opt img, .wallet-opt .ph { width: 28px; height: 28px; border-radius: 6px; flex: none; background: var(--line); }
.who { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; max-width: 680px; }
.proof .card { padding: 14px 14px 12px; }
.proof .name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.proof .since { font-size: 13px; color: var(--ink-2); }
.proof .kind { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 2px 0 8px; }
.proof .spark { height: 44px; }
.proof .stats { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.proof .stat b { font-size: 17px; }
.proof .skeleton { opacity: .45; }
.showcase { display: block; width: 100%; max-width: 680px; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); background: #000; margin: 0 0 30px; }

/* ---------------------------------------------------------------- catalogue */
.section-head { display: flex; flex-direction: column; gap: 6px; padding: 28px 0 22px; }
.section-head p { max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.scard { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: border-color .14s ease, background-color .14s ease; }
.scard:hover, .scard:focus-within { border-color: var(--ink-3); }
.scard .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.scard .head > div:first-child { min-width: 0; flex: 1; }
.scard .head .badge { flex: none; }
.fam { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.card-title + p { margin-top: 6px; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover, .card-title a:focus-visible { text-decoration: underline; }
.tagline { color: var(--ink-2); font-size: 15px; }
.spark { width: 100%; height: 72px; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.stat span { font-size: 13px; color: var(--ink-2); }
.scard .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--divider); padding-top: 6px; }
.toggle { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.toggle:checked { background: var(--link); }
.toggle:checked::after { transform: translateX(18px); }
.follow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.group-title { font-size: 20px; margin: 30px 0 4px; }
.group-title:first-of-type { margin-top: 0; }
.group-note { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-2); text-decoration: none; margin-top: 12px; }
.back:hover { color: var(--ink); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 8px 0 10px; flex-wrap: wrap; }
.detail-head .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rule { color: var(--ink-2); max-width: 72ch; margin: 6px 0 22px; font-size: 17px; }
.hero-wrap { position: relative; }
.hero-chart { width: 100%; height: 260px; display: block; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--pos); vertical-align: middle; margin-right: 6px; }
.legend i.hold { border-top-style: dashed; border-color: var(--ink-3); }
.stats.wide { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 20px 0 10px; padding-top: 18px; border-top: 1px solid var(--divider); }
.stats.wide .stat b { font-size: 28px; }

.table-wrap { overflow-x: auto; margin-top: 8px; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
tbody tr:hover td { background: var(--inset); }
td.r, th.r { text-align: right; }
td.r { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.reason { color: var(--ink-2); font-size: 14px; }
/* The research desk's notice on a withdrawn strategy: news, not an alarm. */
.notice { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); box-shadow: inset 3px 0 0 var(--warn); color: var(--ink); font-size: 15px; line-height: 1.45; }
.notice > span { flex: 1 1 260px; }
.detail-head + .notice { margin: 4px 0 14px; max-width: 72ch; }
.hosted .notice { margin-top: 16px; }
tr:has(+ .notice-row) td { border-bottom: 0; }
.notice-row td { padding-top: 0; }
tbody tr.notice-row:hover td, tbody tr:has(+ .notice-row):hover td { background: none; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.sizing { margin-top: 14px; }

.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.event:last-child { border-bottom: 0; }
.event time { color: var(--ink-2); font-size: 14px; }
.event .what { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.event .price { font-size: 15px; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); }
.problem { max-width: 560px; margin: 48px auto; text-align: center; }
.problem h1 { font-size: 28px; margin-bottom: 10px; }
.problem p { color: var(--ink-2); margin-bottom: 20px; }

/* ---------------------------------------------------------------- run it */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.path { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.path.lead { border-color: var(--link); }
.path .tag { align-self: flex-start; }
.path h2 { font-size: 24px; }
.path .cost { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.path .cost b { font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.path .cost span { color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--pos); border-bottom: 2px solid var(--pos); transform: rotate(-45deg); }
.path .btn { margin-top: auto; }
.packs { display: grid; gap: 8px; }
.pack-note { font-size: 14px; color: var(--ink-2); }

.setup { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.step-h { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; }
.step-h .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; }
.block { margin-bottom: 22px; }
.prompt-box { display: flex; gap: 10px; align-items: flex-start; background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px 12px 14px; }
.prompt-box code { flex: 1; font-family: var(--mono); font-size: 14px; line-height: 1.6; word-break: break-word; }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 15px; }

/* ---------------------------------------------------------------- connect */
.connect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 16px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--ink-2); }
.howto li::before { content: counter(h); width: 28px; height: 28px; border-radius: 50%; background: var(--inset); border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.howto b { color: var(--ink); font-weight: 600; }
.path-crumb { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.path-crumb span { padding: 1px 8px; border-radius: 6px; background: var(--inset); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.note { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 12px; margin-top: 18px; }
.done { text-align: center; padding: 40px 24px; }
.done .tickmark { width: 56px; height: 56px; border-radius: 50%; background: var(--pos-soft); display: grid; place-items: center; margin: 0 auto 18px; }
.done .tickmark::before { content: ""; width: 20px; height: 11px; border-left: 3px solid var(--pos); border-bottom: 3px solid var(--pos); transform: translateY(-3px) rotate(-45deg); }
.done p { color: var(--ink-2); max-width: 46ch; margin: 10px auto 22px; }

/* ---------------------------------------------------------------- dashboard */
.hosted { margin-bottom: 14px; }
.hosted-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.state-line { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--pos); box-shadow: 0 0 0 4px var(--pos-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.dot.bad { background: var(--neg); box-shadow: 0 0 0 4px var(--neg-soft); }
.state-text { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.figures > div { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.figures > div:first-child { border-left: 0; }
.figures b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.figures b.words { white-space: normal; font-size: 20px; line-height: 1.3; padding-top: 2px; }
.figures span { font-size: 13px; color: var(--ink-2); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.confirm { margin-top: 14px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--inset); }
.confirm p { margin-bottom: 12px; }
.confirm.danger { border-color: var(--neg); }
.hosted-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--ink-2); }
.stack { display: grid; gap: 14px; min-width: 0; }
.stack > :empty { display: none; }
.alerts .btn { margin-top: 14px; }
.alerts .hint { margin-top: 10px; }
.alerts .state-line { margin-top: 12px; font-size: 16px; }
.alerts .link-btn { font-size: 15px; }
.done-alerts { text-align: left; margin: 4px 0 0; padding: 20px 0 0; border-top: 1px solid var(--divider); }
.feed { margin-top: 6px; }
.feed .row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.feed .row:last-child { border-bottom: 0; }
.feed time { color: var(--ink-2); font-size: 14px; }
.feed .k-error, .feed .k-halt { color: var(--neg); }

.hero-acct { margin-bottom: 14px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.equity { font-size: clamp(36px, 5vw, 52px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.delta { font-size: 15px; margin-top: 8px; color: var(--ink-2); }
.bots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.acct-chart { width: 100%; height: 160px; display: block; margin: 18px 0 6px; }
.building { color: var(--ink-2); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 26px 16px; text-align: center; margin: 18px 0 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.journey .steps { margin: 16px 0 22px; }
.journey-grid { margin-top: 0; }

/* ---------------------------------------------------------------- account */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 14px 18px; font-size: 15px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 900px) {
  /* On one column the sign-in card follows the headline instead of sitting under the video. */
  .gate { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 20px; }
  .gate-copy { display: contents; }
  .gate .pay { order: 1; margin-bottom: 28px; }
  .gate .proof, .gate .showcase, .gate .steps { order: 2; }
  .pay { position: static; }
  .two, .paths, .connect, .setup { grid-template-columns: minmax(0, 1fr); }
  /* Alerts and settings are things to act on; on one column they come before the history. */
  .two > .stack { order: -1; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:nth-child(3) { border-left: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .event { grid-template-columns: 1fr; gap: 4px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 12px; }
}
/* On a phone the four destinations sit in a tab bar under the thumb. */
@media (max-width: 640px) {
  body.tabs { --tabbar: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .top, .view, .foot, .banners { padding-left: 16px; padding-right: 16px; }
  .top { height: calc(56px + env(safe-area-inset-top, 0px)); }
  nav.main { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
  nav.main a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 0 2px; font-size: 12px; }
  nav.main a.active { color: var(--link); background: var(--accent-soft); }
  nav.main .ico { display: block; width: 22px; height: 22px; }
  .proof { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .bots { justify-content: flex-start; }
  .card, .path { padding: 18px; }
  .price { font-size: 40px; }
  .feed .row { grid-template-columns: 1fr; gap: 2px; }
  .figures b { font-size: 20px; }
  .wallet-pill { padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .scard, .toggle, .toggle::after { transition: none; }
  .spinner { animation-duration: 1.6s; }
}
