/* orbio.bot: orbio.so's paper, ink, bronze and neon, set in DM Sans, Geist and Geist Mono. One sheet, no build. */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-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; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono-latin.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/newsreader-latin.woff2') format('woff2'); }

:root {
  --paper: #faf8f4;
  --surface: #f8f8f6;
  --surface-2: #f3efe7;
  --surface-3: #ebe5da;
  --white: #fffefd;
  --ink: #141413;
  --ink-2: #3f3f3b;
  --ink-3: #77776f;
  --ink-4: #a19d94;
  --line: rgba(20, 20, 19, 0.12);
  --line-strong: rgba(20, 20, 19, 0.22);
  --line-bronze: rgba(107, 74, 36, 0.14);
  --bronze-100: #f6ecdd;
  --bronze-200: #eeddc4;
  --bronze-300: #e0c5a0;
  --bronze-500: #bd9058;
  --bronze-600: #a87944;
  --bronze-700: #8a6134;
  --bronze-800: #6b4a24;
  --bronze-900: #4a3419;
  --neon: #c9ff3f;
  --neon-2: #b8f22e;
  --lime: #9de500;
  --accent: #486720;
  --accent-tint: #f1fbd9;
  --bid: #3d8a5e;
  --bid-tint: #e9f4ed;
  --ask: #b0483c;
  --ask-tint: #f8ebe8;
  --patina: #3a736b;
  --shadow-card: 0 1px 2px rgba(74, 52, 25, 0.06), 0 24px 48px -32px rgba(74, 52, 25, 0.35);
  --shadow-soft: 0 1px 2px rgba(74, 52, 25, 0.06);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 22px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'DM Sans', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Newsreader', Georgia, serif;
  --gutter: 16px;
  --maxw: 1120px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--neon); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.pos { color: var(--bid); }
.neg { color: var(--ask); }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------------------------------------- page frame */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; position: relative; z-index: 1; }

/* orbio's marble columns, at the edges of wide screens only: the capital and base keep their shape, the fluted
   shaft between them stretches to the window's height */
.pillars { display: none; }
@media (min-width: 1300px) {
  .pillars { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 21; }
  .pillars::before, .pillars::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    background:
      url('/img/orbio/pillar-cap.webp') center top / 100% auto no-repeat,
      url('/img/orbio/pillar-base.webp') center bottom / 100% auto no-repeat,
      url('/img/orbio/pillar-shaft.webp') center 52px / 100% calc(100% - 90px) no-repeat;
    filter: drop-shadow(0 12px 18px rgba(74, 52, 25, .16));
  }
  .pillars::before { left: 6px; }
  .pillars::after { right: 6px; transform: scaleX(-1); }
}

/* bronze banner (orbio's launchpad bar) */
.banner {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(100deg, var(--bronze-900) 0%, var(--bronze-700) 42%, var(--bronze-800) 68%, var(--bronze-900) 100%);
  z-index: 22;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(246, 236, 221, .45) 46%, rgba(250, 248, 244, .7) 50%, rgba(246, 236, 221, .45) 54%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 6.5s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.banner-in {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 var(--gutter);
  font-size: 12.5px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.banner-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.banner-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.banner-copy { opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.banner-sep { width: 1px; height: 14px; background: rgba(250, 248, 244, .28); flex: none; }
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(250, 248, 244, .3);
  border-radius: 999px;
  background: rgba(250, 248, 244, .08);
  color: var(--paper);
  font: 500 12px/1 var(--display);
  white-space: nowrap;
  transition: background .15s var(--ease);
}
.banner-btn:hover { background: rgba(250, 248, 244, .18); }
.banner-btn .bd-icon { width: 13px; height: 13px; }
@media (max-width: 760px) { .banner-copy, .banner-sep.hide-sm { display: none; } }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.brand b { font: 700 16px/1 var(--display); letter-spacing: -0.03em; }
.brand b span { color: var(--ink-3); font-weight: 500; }
.nav-sep { width: 1px; height: 18px; background: var(--line-strong); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  font: 400 13.5px/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink-3);
  padding: 14px 0;
  transition: color .15s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon-2); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-right .menu-btn { display: none; }
@media (max-width: 760px) {
  .nav { min-height: 58px; gap: 8px; }
  .nav-links, .nav-sep { display: none; }
  .nav-right .menu-btn { display: inline-flex; }
}

/* mobile sheet */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(20, 17, 14, .28); opacity: 0; transition: opacity .2s var(--ease); }
.sheet-back.open { opacity: 1; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 41;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  padding: 10px var(--gutter) calc(18px + var(--safe-b));
  transform: translateY(-104%);
  transition: transform .32s cubic-bezier(.32, .72, 0, 1);
  box-shadow: 0 30px 60px -30px rgba(74, 52, 25, .45);
}
.sheet.open { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.sheet nav { display: grid; gap: 2px; margin: 6px 0 14px; }
.sheet nav a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 4px; font: 500 19px/1 var(--display); letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.sheet nav a[aria-current='page'] { color: var(--accent); }
.sheet nav a .bd-icon { width: 18px; height: 18px; color: var(--ink-3); }

/* footer */
.site-footer { position: relative; z-index: 1; margin-top: 72px; border-top: 1px solid var(--line); padding: 26px 0 calc(26px + var(--safe-b)); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-left { display: flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--display); color: var(--ink-3); }
.foot-left img { width: 22px; height: 22px; border-radius: 6px; }
.foot-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; font: 400 13px/1 var(--display); color: var(--ink-3); border-radius: 8px; }
.foot-links a:hover { color: var(--ink); background: var(--surface-2); }
.foot-links .x-mark { width: 14px; height: 14px; }

/* ------------------------------------------------------------------------------------------------ type */

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: 500 12.5px/1 var(--display);
  color: var(--ink-2);
  box-shadow: var(--shadow-soft);
}
.chip .bd-icon { width: 14px; height: 14px; }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(157, 229, 0, .2); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; color: var(--ink); }
.h-hero { font-size: clamp(2.35rem, 8.4vw, 4.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.h-page { font-size: clamp(2rem, 6.2vw, 3.2rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.h-sec { font-size: clamp(1.6rem, 4.6vw, 2.35rem); line-height: 1.08; font-weight: 700; text-wrap: balance; }
.h-card { font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.lede { font: 400 16.5px/1.6 var(--display); color: var(--ink-2); max-width: 34rem; text-wrap: pretty; margin: 18px 0 0; }
.body { color: var(--ink-2); max-width: 40rem; margin: 10px 0 0; text-wrap: pretty; }
.marker { position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap; }
.marker::before { content: ''; position: absolute; z-index: -1; inset: .12em -.1em -.02em -.08em; background: color-mix(in oklab, var(--neon) 82%, transparent); border-radius: .06em; transform: rotate(-1.6deg); transform-origin: 50% 60%; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* -------------------------------------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/1 var(--display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: transform .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease), opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--white); }
.btn:active { transform: scale(.98); }
.btn .bd-icon { width: 16px; height: 16px; flex: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary {
  border-color: transparent;
  background: var(--neon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 28px -12px rgba(201, 255, 63, .9), 0 1px 2px rgba(74, 52, 25, .12);
}
.btn-primary:hover { background: var(--neon-2); }
.btn-ink { border-color: transparent; background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2925; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--ask); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.busy { pointer-events: none; }
.btn.busy .bd-icon-loader, .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-soft); }
.icon-btn .bd-icon { width: 18px; height: 18px; }

.wallet-btn { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.wallet-btn .addr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(157, 229, 0, .18); }
@media (max-width: 400px) {
  .nav .wallet-btn .wl { display: none; }
  .nav .wallet-btn { width: 44px; min-height: 44px; padding: 0; }
  .nav .wallet-btn .addr { display: none; }
  .brand b { font-size: 15px; }
}
.wallet-btn.wrong .addr-dot { background: var(--ask); box-shadow: 0 0 0 3px rgba(176, 72, 60, .15); }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.field > span, .field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 500 12.5px/1.3 var(--display); color: var(--ink-2); }
.field > span small, .field-label small { font: 400 12px/1.3 var(--sans); color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  font: 400 16px/1.2 var(--sans);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { padding: 12px 14px; min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--bronze-600); box-shadow: 0 0 0 4px rgba(201, 255, 63, .35); }
.input.mono { font-family: var(--mono); font-size: 16px; letter-spacing: -0.02em; }
.input[aria-invalid='true'] { border-color: var(--ask); }
.select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2377776f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.amount {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-2);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.amount:focus-within { border-color: var(--bronze-600); box-shadow: 0 0 0 4px rgba(201, 255, 63, .35); }
.amount input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; outline: none; padding: 12px 0; font: 500 30px/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amount input::placeholder { color: rgba(119, 119, 111, .5); }
.amount .unit { font: 500 13px/1 var(--mono); color: var(--ink-3); letter-spacing: 0; white-space: nowrap; }
.amount .max { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font: 500 12px/1 var(--display); }
.help { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); margin: 0; }
.err { font-size: 13px; line-height: 1.45; color: var(--ask); margin: 0; min-height: 0; }
.err:empty { display: none; }
.okmsg { font-size: 13px; color: var(--bid); margin: 0; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.seg button { min-width: 0; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; font: 500 13.5px/1.1 var(--display); color: var(--ink-3); transition: background .15s var(--ease), color .15s var(--ease); }
.seg button[aria-pressed='true'] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; min-height: 44px; padding: 0; border: 0; background: none; font: 500 15px/1 var(--display); color: var(--ink-3); white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--lime); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.range { width: 100%; accent-color: var(--accent); min-height: 32px; }

.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------------------------------------- cards */

.card { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); padding: 20px; min-width: 0; }
@media (min-width: 640px) { .card { padding: 24px; } }
.card-flat { box-shadow: var(--shadow-soft); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.card-head h2, .card-head h3 { position: relative; font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; }
.card-head h2::after, .card-head h3::after { content: ''; position: absolute; left: 0; right: 0; bottom: -13px; height: 3px; border-radius: 3px; background: var(--lime); }
.card-head .meta { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.stack-sm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wr { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-size: 13px; color: var(--ink-3); }
.kv dd { margin: 0; font: 500 13.5px/1.3 var(--mono); letter-spacing: -0.02em; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.stat { display: grid; gap: 4px; min-width: 0; }
.stat b { font: 500 clamp(1.5rem, 4.6vw, 2rem)/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.stat span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
@media (min-width: 860px) { .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 999px; font: 500 11.5px/1 var(--display); white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge.ok { background: var(--bid-tint); color: var(--bid); }
.badge.warn { background: var(--bronze-100); color: var(--bronze-800); }
.badge.off { background: var(--ask-tint); color: var(--ask); }
.badge.lime { background: var(--accent-tint); color: var(--accent); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 30px 12px; text-align: center; color: var(--ink-3); font-size: 14px; border: 1px dashed var(--line-strong); border-radius: 16px; background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.empty .bd-icon { width: 22px; height: 22px; color: var(--bronze-600); }
.empty b { font: 600 15px/1.3 var(--display); color: var(--ink); }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bronze-100); color: var(--bronze-900); font-size: 13px; line-height: 1.5; }
.note .bd-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.note.lime { background: var(--accent-tint); color: var(--accent); }

.skeleton { display: inline-block; min-width: 3.5em; height: .9em; border-radius: 4px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* item cards (bids, fleets, bots, drops) */
.items { display: grid; gap: 12px; }
.item { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); padding: 14px; display: grid; gap: 12px; min-width: 0; box-shadow: var(--shadow-soft); }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.item-title { display: grid; gap: 4px; min-width: 0; }
.item-title b { font: 600 15px/1.25 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.item-title span { font: 400 12px/1.3 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.item-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.item-figs > div { display: grid; gap: 3px; min-width: 0; }
.item-figs dt, .item-figs .k { font-size: 11.5px; color: var(--ink-3); }
.item-figs dd, .item-figs .v { margin: 0; font: 500 14px/1.2 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
@media (max-width: 380px) { .item-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.item-actions .btn { flex: 1 1 auto; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--lime); width: 0; transition: width .5s var(--ease); }

/* tables that become cards on phones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line-strong); background: var(--surface); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.cards tr:last-child { border-bottom: 0; }
  .tbl.cards td { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border: 0; text-align: right; }
  .tbl.cards td::before { content: attr(data-k); font: 400 12px/1.4 var(--sans); color: var(--ink-3); text-align: left; }
  .tbl.cards td.num { text-align: right; }
  .tbl.cards td.act { justify-content: flex-end; padding-top: 8px; }
  .tbl.cards td.act::before { display: none; }
}

/* ----------------------------------------------------------------------------------------------- landing */

.hero { padding: 44px 0 18px; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 64px 0 30px; } .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; } }
.hero h1 { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 420px) { .hero-cta .btn { flex: 1 1 100%; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px 40px; margin-top: 32px; }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); background: #fdfbf7; box-shadow: var(--shadow-card); aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: color-mix(in oklab, var(--white) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-card); font-size: 12.5px; max-width: 70%; }
.hero-art .float b { display: block; font: 600 13px/1.2 var(--display); }
.hero-art .float span { display: block; font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); }
.hero-art .float .ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--neon); }
.hero-art .float .ico .bd-icon { width: 16px; height: 16px; }
.hero-art .f1 { left: 12px; top: 14px; }
.hero-art .f2 { right: 12px; bottom: 14px; }

.features { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.feature h3 { display: flex; align-items: center; gap: 8px; font: 600 14.5px/1.3 var(--display); letter-spacing: -0.01em; }
.feature h3::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.feature p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.section { padding: 64px 0 0; }
@media (min-width: 960px) { .section { padding-top: 96px; } }
.section-head { display: grid; gap: 10px; margin-bottom: 26px; max-width: 46rem; }

.products { display: grid; gap: 14px; }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.product .tag { display: inline-flex; width: fit-content; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.product h3 { font: 700 22px/1.15 var(--display); letter-spacing: -0.03em; }
.product p { margin: 0; color: var(--ink-2); font-size: 14px; }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.product li { display: flex; gap: 8px; align-items: flex-start; }
.product li .bd-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.gap-line { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.gap-line b { color: var(--ink-2); font-weight: 600; }

/* liquidity book */
.book { display: grid; gap: 4px; }
.book-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 96px; align-items: center; gap: 10px; min-height: 30px; font: 400 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.book-row .d { color: var(--ink-2); }
.book-row .bars { position: relative; height: 18px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.book-row .bars i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, rgba(157, 229, 0, .55), rgba(201, 255, 63, .9)); }
.book-row.best .bars i { background: linear-gradient(90deg, var(--lime), var(--neon)); }
.book-row .a { text-align: right; color: var(--ink); }
.book-row.limit .d { color: var(--accent); font-weight: 600; }
.book-row.limit .bars { box-shadow: inset 0 0 0 1px var(--accent); }
.book-legend { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 8px; }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } .split.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } .split.wide-right { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.steps { counter-reset: s; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.steps li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--neon); font: 500 12px/1 var(--mono); }
.steps b { display: block; font: 600 15px/1.3 var(--display); letter-spacing: -0.01em; }
.steps p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }

.code { position: relative; border-radius: 16px; background: #16140f; color: #efeadf; overflow: hidden; border: 1px solid #2a261e; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid #2a261e; font: 400 11.5px/1 var(--mono); color: #a39b8a; }
.code-head button { min-height: 32px; padding: 0 10px; border: 1px solid #3a352b; border-radius: 8px; background: #221f18; color: #efeadf; font: 500 12px/1 var(--display); display: inline-flex; align-items: center; gap: 6px; }
.code-head button .bd-icon { width: 13px; height: 13px; }
.code pre { margin: 0; padding: 14px; overflow-x: auto; font: 400 12.5px/1.65 var(--mono); -webkit-overflow-scrolling: touch; }
.code .c { color: #8f8775; }
.code .k { color: var(--neon); }
.code .s { color: #e0c5a0; }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 16px; font: 500 15px/1.35 var(--display); letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .bd-icon { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); color: var(--ink-3); }
.faq details[open] summary .bd-icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.cta-band { margin-top: 72px; border-radius: 28px; padding: 30px 20px; background: linear-gradient(100deg, var(--bronze-900) 0%, var(--bronze-700) 50%, var(--bronze-900) 100%); color: var(--paper); display: grid; gap: 18px; align-items: center; overflow: hidden; position: relative; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 44px; } }
.cta-band h2 { color: var(--paper); font-size: clamp(1.5rem, 4.4vw, 2.2rem); line-height: 1.1; }
.cta-band p { margin: 8px 0 0; color: rgba(250, 248, 244, .78); }
.cta-band .row { flex-wrap: wrap; }

/* ----------------------------------------------------------------------------------------------- app pages */

.page-head { padding-top: 34px; padding-bottom: 22px; display: grid; gap: 12px; }
@media (min-width: 960px) { .page-head { padding-top: 52px; padding-bottom: 28px; } }
.app-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .app-grid { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 24px; } .app-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sticky-col { position: static; }
@media (min-width: 1000px) { .sticky-col { position: sticky; top: 84px; } }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; }
.preview { border-radius: 14px; background: var(--surface-2); padding: 4px 14px; }
.connect-gate { display: grid; gap: 12px; justify-items: start; }
.addr { font-family: var(--mono); letter-spacing: -0.02em; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); min-width: 0; }
.link-box code { flex: 1; min-width: 0; font: 400 12.5px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* toast */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.45; box-shadow: 0 18px 40px -18px rgba(20, 17, 14, .6); animation: toast-in .3s var(--ease); }
.toast .bd-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--neon); }
.toast.bad .bd-icon { color: #ffb4a8; }
.toast a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* dialog (js/ui/dialog.js) */
.bd-modal { width: min(460px, calc(100vw - 24px)); max-height: calc(100svh - 32px); margin: auto; padding: 22px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 17, 14, .5); overflow-y: auto; }
.bd-modal::backdrop { background: rgba(20, 17, 14, .34); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.bd-modal h2 { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; margin: 6px 40px 14px 0; }
.bd-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); }
.bd-modal-close:hover { background: var(--surface-2); color: var(--ink); }
.bd-modal-close .bd-icon { width: 18px; height: 18px; }
.bd-modal-form { display: grid; gap: 14px; }
.bd-modal-form label { display: grid; gap: 7px; font: 500 13px/1.3 var(--display); color: var(--ink-2); }
.bd-modal-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); font: 400 16px/1 var(--sans); }
.bd-modal-error { margin: 0; color: var(--ask); font-size: 13px; }
.bd-modal-error:empty { display: none; }
.bd-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.bd-modal-actions .btn { flex: 1 1 auto; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); font: 500 15px/1 var(--display); text-align: left; }
.wallet-opt:hover { background: var(--surface); }
.wallet-opt img, .wallet-opt .wi { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.wallet-opt .wi { display: grid; place-items: center; background: var(--surface-3); }
.wallet-opt .wi .bd-icon { width: 16px; height: 16px; }
.wallet-opt small { margin-left: auto; font: 400 12px/1 var(--sans); color: var(--ink-3); }

.bd-icon { width: 1em; height: 1em; }

/* docs */
.doc { display: grid; gap: 28px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; } }
.doc-nav { display: none; }
@media (min-width: 1000px) { .doc-nav { display: grid; gap: 2px; position: sticky; top: 90px; align-self: start; } .doc-nav a { padding: 8px 10px; border-radius: 8px; font: 400 13.5px/1.2 var(--display); color: var(--ink-3); } .doc-nav a:hover { background: var(--surface-2); color: var(--ink); } }
.doc-body { display: grid; gap: 36px; min-width: 0; }
.doc-body section { display: grid; gap: 12px; scroll-margin-top: 84px; min-width: 0; }
.doc-body h2 { font: 700 24px/1.15 var(--display); letter-spacing: -0.03em; }
.doc-body h3 { font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; margin-top: 6px; }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.doc-body p { margin: 0; }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-body code.inl { font: 400 13px/1.4 var(--mono); background: var(--surface-3); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

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

/* js/ui/dialog.js buttons */
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: 500 14px/1 var(--display); color: var(--ink); }
.bd-btn .bd-icon { width: 16px; height: 16px; }
.bd-btn-primary { border-color: transparent; background: var(--neon); }
.bd-btn-danger { border-color: transparent; background: var(--ask); color: var(--white); }
.bd-modal-lead { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.bd-modal .stack { gap: 14px; }
