/* Orbio Locker: orbio.so's credits look, one sheet, no build. Paper #f8f8f6 and ink #141413, one neon highlighter, DM Sans
   text, Geist Mono numbers, white rounded cards with the soft bronze shadow, marble pillars framing the top of every
   page. Values follow orbio.so's compiled CSS (credits-voice). Tokens, base, frame, components, pages, phone rules. */

@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'); }
@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'); }

:root {
  --paper: #f8f8f6;
  --paper-2: #f0f0ec;
  --paper-3: #e6e6e0;
  --white: #fffefd;
  --ink: #141413;
  --ink-2: #3f3f3b;
  --ink-3: #77776f;
  --bronze-300: #cfcfc7;
  --bronze-600: #3a3a37;
  --bronze-700: #262624;
  --line: rgba(20, 20, 19, 0.12);
  --line-strong: rgba(20, 20, 19, 0.22);
  --neon: #c9ff3f;
  --neon-2: #b8f22e;
  --lime: #9de500;
  --leaf: #436021; /* orbio's green text on neon tints */
  --leaf-2: #436b1a;
  --bid: #3d8a5e;
  --bid-tint: #e9f4ed;
  --ask: #b0483c;
  --ask-tint: #f8ebe8;
  --amber: #8a6134;
  --amber-tint: #f6ecdd;
  --shadow-card: 0 1px 2px rgba(74, 52, 25, 0.06), 0 24px 48px -32px rgba(74, 52, 25, 0.35);
  --shadow-panel: 0 1px 2px rgba(74, 52, 25, 0.05), 0 24px 48px -36px rgba(74, 52, 25, 0.35);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: 'DM Sans', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 72rem;
  --px: 20px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --px: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid rgba(58, 58, 55, 0.5); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--bronze-300); color: #0f0f0e; }
[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; font-feature-settings: 'tnum'; }
.muted { color: var(--ink-3); }
.pos { color: var(--bid); }
.neg { color: var(--ask); }
.nowrap { white-space: nowrap; }
code { font-family: var(--mono); }
p code, li code, dd code, .inl { font: 400 0.9em/1.4 var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--paper-3); overflow-wrap: anywhere; }

/* orbio's film grain over everything */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

/* the neon highlighter word */
.marker { position: relative; z-index: 0; color: inherit; background: none; white-space: nowrap; }
.marker::before { content: ''; position: absolute; z-index: -1; inset: 0.12em -0.1em -0.02em -0.08em; background: color-mix(in oklab, var(--neon) 82%, transparent); border-radius: 0.06em; transform: rotate(-1.6deg); transform-origin: 50% 60%; }

/* reveal: orbio's rise with a little blur */
.rv { opacity: 0; transform: translateY(10px); filter: blur(3px); transition: opacity 620ms var(--ease), transform 620ms var(--ease), filter 620ms var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; filter: none; }

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

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

/* the top of every page: pillars at both edges, the bar laid over it */
.top { position: relative; isolation: isolate; overflow: hidden; }
.pillars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.pillar { position: absolute; top: -7vh; height: 122vh; width: 22vw; opacity: 0.6; }
.pillar img { width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%); filter: drop-shadow(0 24px 40px rgba(20, 20, 19, 0.12)); }
.pillar.l { left: -12vw; }
.pillar.r { right: -12vw; transform: scaleX(-1); }
@media (min-width: 640px) {
  .pillar { width: 15vw; min-width: 140px; opacity: 1; }
  .pillar.l { left: -7vw; }
  .pillar.r { right: -7vw; }
}

.bar { position: absolute; left: 0; right: 0; top: 20px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 8px; padding: 0 14vw; }
@media (min-width: 640px) { .bar { top: 24px; flex-wrap: nowrap; gap: 12px; padding: 0 max(9vw, 7.5rem); } }
@media (min-width: 1024px) { .bar { padding: 0 max(7vw, 9rem); } }
.bar-l { display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; min-width: 0; }
@media (min-width: 640px) { .bar-l { flex-wrap: nowrap; } }
.brand { display: flex; flex: none; align-items: center; gap: 10px; min-height: 36px; }
.brand img { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.brand span { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; flex: none; align-items: center; gap: 12px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
@media (min-width: 640px) { .nav { gap: 16px; padding-left: 16px; } }
.nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; letter-spacing: -0.01em; color: var(--ink-3); transition: color 150ms var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon-2); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; box-shadow: var(--shadow-soft); transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.pill-btn:hover { background: var(--white); }
.bar-r { display: flex; align-items: center; gap: 8px; }
.pill-btn.buy { border-color: transparent; background: var(--neon); color: var(--ink); }
.pill-btn.buy:hover { background: var(--neon-2); }
.pill-btn svg { width: 14px; height: 14px; }
[data-ticker] { text-transform: none; }
.foot-coin { flex-direction: row; justify-content: center; gap: 10px; }
.foot-coin .tick { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-tint); font: 500 13px/1 var(--mono); color: var(--accent); }
.pill-btn:active { transform: scale(0.97); }
.pill-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(157, 229, 0, 0.2); }
.pill-btn.wrong .dot { background: var(--ask); box-shadow: 0 0 0 3px rgba(176, 72, 60, 0.15); }

.hero-in { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 7.5rem var(--px) 40px; }
@media (min-width: 640px) { .hero-in { padding-top: 7rem; } }
@media (min-width: 1024px) { .hero-in { padding-bottom: 56px; } }
body:not(.page) .hero-in > * { margin-left: calc(12vw - 1.25rem); margin-right: calc(12vw - 1.25rem); }
/* the app pages need the whole phone width: the pillars stay out of the way there */
@media (max-width: 639px) { .page .pillars { display: none; } }
@media (min-width: 640px) { body:not(.page) .hero-in > * { margin-left: 0; margin-right: 0; } }
.hero-grid { display: grid; gap: 40px; min-width: 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: start; gap: 56px; } .hero-copy { padding-top: 16px; } }
.hero-copy { min-width: 0; max-width: 34rem; }
.h-hero { margin: 0; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.h-page { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 24px 0 0; max-width: 27rem; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.intro-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; font-size: 12px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--bronze-300); text-underline-offset: 4px; }
.intro-link:hover { color: var(--ink); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .hero-stats { display: flex; flex-wrap: wrap; gap: 16px 32px; } }
.hero-stats b { display: block; font: 500 34px/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stats b small { font-size: 18px; color: var(--ink-3); font-weight: 500; }
.hero-stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 640px) { .hero-stats > div { max-width: 15rem; } }

.feats { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feats li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(248, 248, 246, 0.8); }
.feats b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.feats b::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }
.feats p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* sections */
.sec { border-top: 1px solid var(--line); }
.sec > .wrap { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 640px) { .sec > .wrap { padding-top: 80px; padding-bottom: 80px; } }
.h-sec { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.sec-head .h-sec { max-width: 30rem; }
.sec-head p { margin: 0; max-width: 26rem; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sec-sub { margin: 12px 0 0; max-width: 34rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.sec-body { margin-top: 32px; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot > .wrap { padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .foot-row { flex-direction: row; } }
/* phones: the links wrap as one centred block instead of a tall column */
@media (max-width: 639px) { .foot-row:first-child { flex-flow: row wrap; justify-content: center; gap: 4px 20px; } }
.foot-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; color: var(--ink-2); transition: color 150ms var(--ease); }
.foot-row a:hover { color: var(--ink); }
.foot-row a.m { font: 400 13px/1 var(--mono); }
.foot-row a svg { width: 14px; height: 14px; }
.foot-row + .foot-row { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-row .brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot-row .brand span { font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.foot-row p { margin: 0; max-width: 28rem; font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; }
@media (min-width: 640px) { .foot-row p { text-align: right; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { background: var(--white); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn-neon { border-color: transparent; background: var(--neon); color: #141413; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 28px -14px rgba(201, 255, 63, 0.9); }
.btn-neon: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(--paper-2); }
.btn-danger { color: var(--ask); border-color: rgba(176, 72, 60, 0.35); }
.btn-danger:hover { background: var(--ask-tint); }
.btn-panic { border-color: transparent; background: var(--ask); color: #fff; box-shadow: 0 10px 28px -14px rgba(176, 72, 60, 0.9); }
.btn-panic:hover { background: #983a2f; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease); }
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 14px; height: 14px; }
.linkish { padding: 0; border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--bronze-300); text-underline-offset: 3px; font-size: inherit; }
.linkish:hover { color: var(--ink); }

.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field > label, .field > .lab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.field > label small, .field > .lab small { font-size: 12px; color: var(--ink-3); }
.input, .select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(240, 240, 236, 0.6);
  font: 400 16px/1.2 var(--sans);
  color: var(--ink);
  transition: border-color 160ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .select:focus { outline: none; border-color: var(--bronze-600); }
.input.mono { font-family: var(--mono); 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; }
.unit-in { position: relative; }
.unit-in .input { padding-right: 56px; }
.unit-in > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 400 13px/1 var(--mono); color: var(--ink-3); pointer-events: none; }
.amount { display: flex; align-items: center; min-width: 0; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(240, 240, 236, 0.6); transition: border-color 160ms var(--ease); }
.amount:focus-within { border-color: var(--bronze-600); }
.amount > span { align-self: baseline; padding-top: 0.55rem; margin-right: 6px; font: 400 26px/1 var(--mono); color: var(--ink-3); }
.amount > em { font: 400 14px/1 var(--mono); font-style: normal; color: var(--ink-3); white-space: nowrap; }
.amount input { flex: 1; width: 100%; min-width: 0; padding: 14px 0; border: 0; background: transparent; outline: none; font: 500 34px/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amount.sm input { font-size: 24px; padding: 11px 0; }
.amount.sm > span { font-size: 20px; padding-top: 0.35rem; }
.amount .max { min-height: 30px; padding: 0 10px; margin-left: 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); font-size: 12px; font-weight: 500; }
.help { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.err { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ask); }
.err:empty { display: none; }
input[type='range'] { width: 100%; height: 28px; margin: 0; accent-color: var(--lime); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); }
.check:has(input:checked) { border-color: rgba(184, 242, 46, 0.7); background: rgba(201, 255, 63, 0.25); }
details.adv > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; list-style: none; cursor: pointer; font-size: 13px; color: var(--ink-2); }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: '+'; color: var(--ink-3); transition: transform 200ms var(--ease); }
details.adv[open] > summary::after { transform: rotate(45deg); }
details.adv > div { display: grid; gap: 14px; margin-top: 10px; }
.g2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; min-width: 0; }
.stack-sm { display: grid; gap: 10px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

/* tabs (orbio's SDK tabs) */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; min-height: 40px; margin-bottom: -1px; padding: 0 0 10px; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 999px; background: var(--neon); }

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

/* the Buy credits card */
.card { position: relative; min-width: 0; padding: 20px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .card { padding: 24px; } }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.card-h h2, .card-h h3 { position: relative; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.card-h h2::after, .card-h h3::after { content: ''; position: absolute; left: 0; bottom: -13px; width: 100%; height: 3px; border-radius: 999px; background: var(--lime); }
.card-h .meta { font: 400 11px/1 var(--mono); color: var(--ink-3); }

/* the Liquidity Book / Recent buys panels */
.panel { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-panel); }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-h > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.panel-h .meta { margin: 0 0 0 auto; font: 400 11px/1.3 var(--mono); letter-spacing: 0.02em; color: var(--ink-3); text-align: right; }
.ping { position: relative; display: inline-flex; flex: none; width: 6px; height: 6px; }
.ping::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--bronze-600); opacity: 0.6; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.ping::after { content: ''; position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-700); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.panel-body { padding: 16px 20px 20px; }

/* stair bars (the book) */
.book-legend { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 20px 6px; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
.book-legend span:last-child { text-align: right; }
.book { list-style: none; margin: 0; padding: 0 0 6px; font: 400 13px/1.35 var(--mono); font-variant-numeric: tabular-nums; }
.book li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 20px; }
.book li > i { position: absolute; top: 0; bottom: 0; right: 0; background: color-mix(in oklab, var(--neon-2) 16%, transparent); transition: width 520ms var(--ease); }
.book li.top > i { background: color-mix(in oklab, var(--neon-2) 26%, transparent); }
.book li > span { position: relative; min-width: 0; }
.book li > span:first-of-type { color: var(--leaf); }
.book li.top > span:first-of-type { font-size: 15px; font-weight: 600; }
.book li > span:last-child { text-align: right; color: var(--ink); }
.book li.no > span:first-of-type { color: var(--ask); }
.book li.no > i { background: color-mix(in oklab, var(--ask) 12%, transparent); }

/* the recent list */
.feed { list-style: none; margin: 0; padding: 0; font: 400 12.5px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed p { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed p + p { font-size: 11px; color: var(--ink-3); }
.feed .r { text-align: right; }
.feed .r p + p { color: var(--bid); }
.feed a { text-decoration: underline; text-decoration-color: var(--bronze-300); text-underline-offset: 3px; }

/* the model table */
.mtable { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-soft); }
.mtable-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font: 400 11px/1.3 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
@media (min-width: 640px) { .mtable-h, .mrow { padding-left: 24px; padding-right: 24px; } }
.mlist { list-style: none; margin: 0; padding: 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.mlist > .mrow:first-child { border-top: 0; }
.mrow .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mrow .who > div { min-width: 0; }
.mrow .nm { margin: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .sb { margin: 0; font: 400 11px/1.4 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .fig { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mrow .fig s, .mrow .fig .was { font-size: 13px; color: var(--ink-3); }
.mrow .fig b { font-size: 16px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--neon); color: #141413; font: 600 12px/1.4 var(--mono); white-space: nowrap; }
.chip.off { background: var(--paper-3); color: var(--ink-2); }
.chip.bad { background: var(--ask-tint); color: var(--ask); }
.chip.warn { background: var(--amber-tint); color: var(--amber); }

/* the analytics card */
.dash { border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(240, 240, 236, 0.6); padding: 12px; min-width: 0; }
@media (min-width: 640px) { .dash { padding: 20px; } }
.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 0 8px 12px; border-bottom: 1px solid var(--line); }
.dash-top > div { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.dash-top .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ink); }
.dash-top b { font-size: 13px; font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 11px/1.2 var(--mono); white-space: nowrap; }
.tag .icon-btn { width: 22px; height: 22px; margin: -4px -6px -4px 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.tile.hi { border-color: rgba(184, 242, 46, 0.6); background: rgba(201, 255, 63, 0.25); }
.tile.bad { border-color: rgba(176, 72, 60, 0.35); background: var(--ask-tint); }
.tile > p { margin: 0; font-size: 11.5px; color: var(--ink-3); }
.tile > b { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; font: 500 22px/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow: hidden; }
.tile > b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile > b small { flex: none; font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tile > small { display: block; margin-top: 4px; font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.box { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
@media (min-width: 640px) { .box { padding: 20px; } }
.box-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.box-h > p, .box-h > h3 { margin: 0; font-size: 13px; font-weight: 500; }
.box-h > span { font-size: 11px; color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 112px; margin-top: 16px; }
.bars i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--neon); }
.bars i.no { background: var(--ask); opacity: 0.6; }
.meter { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: var(--paper-3); }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--neon-2); transition: width 520ms var(--ease); }
.meter.low i { background: var(--ask); }
.rows { list-style: none; margin: 12px 0 0; padding: 0; }
.rows > li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rows > li:first-child { border-top: 0; }

/* holdings and agents inside the dashboard */
.hold { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.hold .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hold .r small, .agent small { display: block; font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tok > div { min-width: 0; }
.tok b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok small { display: block; font: 400 11px/1.4 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { display: grid; place-items: center; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: var(--paper-3); box-shadow: 0 0 0 1px var(--line); font: 600 12px/1 var(--sans); color: var(--ink-2); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.sm { width: 24px; height: 24px; font-size: 10px; }
.agent { display: grid; gap: 10px; }
.agent-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.agent .figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.agent .figs b { display: block; font: 500 14px/1.2 var(--mono); letter-spacing: -0.02em; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.ok { background: var(--bid-tint); color: var(--bid); }
.badge.warn { background: var(--amber-tint); color: var(--amber); }
.badge.off { background: var(--ask-tint); color: var(--ask); }
.badge.neon { background: rgba(201, 255, 63, 0.45); color: var(--leaf); }
.addr { display: inline-flex; align-items: center; gap: 2px; font: 400 13px/1 var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.addr a { text-decoration: underline; text-decoration-color: var(--bronze-300); text-underline-offset: 3px; }
.addr a:hover { text-decoration-color: var(--ink); }
.kv { display: grid; 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; min-width: 0; font: 500 13px/1.3 var(--mono); letter-spacing: -0.02em; text-align: right; overflow-wrap: anywhere; }

/* notes, empty states, the transaction line */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--amber-tint); color: #4a3419; font-size: 13.5px; line-height: 1.5; }
.note.neon { background: rgba(201, 255, 63, 0.3); color: var(--leaf); }
.note.bad { background: var(--ask-tint); color: #7a2f26; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 30px 14px; border: 1px dashed var(--line-strong); border-radius: 16px; background: rgba(240, 240, 236, 0.5); color: var(--ink-3); font-size: 14px; text-align: center; }
.empty b { font-size: 15px; font-weight: 600; color: var(--ink); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 14px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.loading::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-700); animation: blink 1s infinite steps(2); }
@keyframes blink { 50% { opacity: 0.2; } }
.txline { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.txline::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); transform: translateY(-1px); }
.txline.pending::before { background: var(--lime); animation: blink 1s infinite steps(2); }
.txline.good { background: var(--bid-tint); color: #24533a; }
.txline.good::before { background: var(--bid); }
.txline.bad { background: var(--ask-tint); color: #7a2f26; }
.txline.bad::before { background: var(--ask); }
.txline a { text-decoration: underline; text-underline-offset: 3px; }

/* the demo card (orbio's prompt and answer workbench) */
.pg { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(125deg, rgba(247, 250, 239, 0.6), rgba(255, 255, 255, 0.4) 55%, rgba(233, 245, 204, 0.44)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.85), 0 18px 50px -35px rgba(83, 97, 55, 0.31); }
.pg-req { display: flex; flex-direction: column; min-width: 0; padding: 24px; border-right: 1px solid rgba(114, 132, 69, 0.125); background: linear-gradient(140deg, rgba(217, 246, 165, 0.3), rgba(255, 255, 255, 0.08) 80%); }
.pg-label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); }
.pg-label [role='status'] { font-size: 10px; color: #6a823c; }
.pg-prompt { min-height: 3.6em; max-width: 320px; margin: 12px 0 24px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; letter-spacing: -0.025em; }
.pg-cursor { display: inline-block; width: 9px; height: 1em; margin-left: 3px; vertical-align: -0.1em; border-radius: 1px; background: #6d9529; animation: blink 1s infinite steps(2); }
.pg-key { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: auto; }
.pg-key .pg-label { flex: none; white-space: nowrap; }
.pg-key code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(10px, 2.8vw, 13px); color: var(--leaf); }
.pg-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(114, 132, 69, 0.15); }
.pg-picks button { min-height: 32px; padding: 0 10px; border: 1px solid rgba(114, 132, 69, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.5); font-size: 12px; color: var(--ink-2); }
.pg-picks button[aria-pressed='true'] { border-color: rgba(184, 242, 46, 0.8); background: rgba(201, 255, 63, 0.45); color: var(--ink); }
.pg-res { min-width: 0; padding: 20px 24px; background: rgba(255, 255, 255, 0.08); }
.pg-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.pg-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pg-checks li:first-child { border-top: 0; }
.pg-checks li > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-3); color: var(--ink-3); font: 600 11px/1 var(--mono); font-style: normal; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.pg-checks li small { display: block; font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.pg-checks li > span:last-child { font: 400 12px/1.2 var(--mono); color: var(--ink-3); text-align: right; }
.pg-checks li.ok > i { background: var(--neon); color: #141413; }
.pg-checks li.ok > span:last-child { color: var(--leaf); }
.pg-checks li.no > i { background: var(--ask); color: #fff; }
.pg-checks li.no > span:last-child { color: var(--ask); }
.pg-out { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(155, 189, 89, 0.25); border-radius: 8px; background: rgba(207, 241, 138, 0.33); box-shadow: inset 0 1px rgba(255, 255, 255, 0.44); font-size: 13px; color: var(--leaf); min-height: 42px; }
.pg-out b { font-weight: 650; }
.pg-out > span { margin-left: auto; font-size: 12px; font-weight: 600; }
.pg-out.no { border-color: rgba(176, 72, 60, 0.25); background: var(--ask-tint); color: #7a2f26; }
.pg-out.wait { border-color: var(--line); background: var(--paper-2); color: var(--ink-3); }

/* the guarantee figure inside the hero card */
.worst { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(184, 242, 46, 0.6); border-radius: 16px; background: rgba(201, 255, 63, 0.25); }
.worst p { margin: 0; font-size: 12px; color: var(--ink-3); }
.worst b { display: block; margin-top: 4px; font: 500 34px/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.worst b small { font-size: 14px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.worst span { display: block; margin-top: 6px; font: 400 11.5px/1.45 var(--mono); color: var(--ink-3); }

/* steps, can / cannot */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > li { counter-increment: s; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-panel); }
.steps > li::before { content: counter(s, decimal-leading-zero); font: 500 12px/1 var(--mono); color: var(--ink-3); }
.steps h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cmd { align-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 6px; padding: 8px 8px 8px 12px; border: 1px solid rgba(184, 242, 46, 0.6); border-radius: 12px; background: rgba(201, 255, 63, 0.25); font: 400 12.5px/1.4 var(--mono); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.duo { display: grid; gap: 20px; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.list { list-style: none; margin: 0; padding: 4px 20px 12px; }
.list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.list li:first-child { border-top: 0; }
.list li::before { content: ''; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 1px rgba(114, 132, 69, 0.3); }
.list.no li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ask); }
.list li b { color: var(--ink); font-weight: 600; }

/* code block (the migration snippet) */
.code { overflow: hidden; border: 1px solid rgba(184, 242, 46, 0.6); border-radius: 16px; background: rgba(201, 255, 63, 0.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.code-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(20, 20, 19, 0.1); font: 400 11.5px/1.3 var(--mono); letter-spacing: 0.06em; color: var(--ink-3); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13px/1.65 var(--mono); color: var(--ink); }
.code pre > div { margin: 0 -16px; padding: 0 16px; white-space: pre; }
.code pre > div.hl { background: rgba(248, 248, 246, 0.7); box-shadow: inset 3px 0 0 0 var(--bronze-700); }
.code pre > div.c { color: var(--ink-3); }

/* faq */
.faq { display: grid; gap: 8px; margin-top: 32px; }
@media (min-width: 1024px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; } }
.faq details { padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--ink-3); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-bottom: 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* the stock picker */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 6px; border: 1px solid rgba(184, 242, 46, 0.7); border-radius: 999px; background: rgba(201, 255, 63, 0.25); font: 500 13px/1 var(--mono); }
.tchip button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; }
.tchip button:hover { background: rgba(20, 20, 19, 0.06); color: var(--ink); }
.picker { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); }
.picker .input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.picker ul { list-style: none; margin: 0; padding: 6px; max-height: 248px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
.picker li button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; }
.picker li button:hover { border-color: var(--line); background: var(--paper-2); }
.picker li button:disabled { opacity: 0.4; cursor: not-allowed; }
.picker li button[aria-pressed='true'] { border-color: rgba(184, 242, 46, 0.7); background: rgba(201, 255, 63, 0.25); }
.picker li b { display: block; font: 500 13px/1.2 var(--mono); }
.picker li small { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.picker .none { grid-column: 1 / -1; padding: 12px; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }

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

.page-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.page-intro .lede { max-width: 30rem; }
.app-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); } .side { position: sticky; top: 20px; } }
.vbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper-2); }
.seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: 400 13px/1 var(--mono); color: var(--ink-3); }
.seg button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); }
.vbar .right { margin-left: auto; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-foot .sum { flex: 1 1 220px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); }
.form-foot .sum b { color: var(--ink); font-weight: 500; }
.fs { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.fs:first-of-type { border-top: 0; }
.fs > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.fs > h3 i { font: 400 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.fs > p { margin: -8px 0 0; font-size: 13px; color: var(--ink-3); }
.gate { display: grid; justify-items: start; gap: 12px; }
.gate h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.gate p { margin: 0; max-width: 36rem; color: var(--ink-2); font-size: 15px; }

/* the brand artwork (join screen) */
.art { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #f3efe6; box-shadow: var(--shadow-card); }

/* the 3D mark (js/helmet3d.js): the static artwork shows until the first 3D frame, and stays without WebGL */
.helm-band { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
@media (min-width: 900px) { .helm-band { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; } }
.helm-stage { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background-color: #f7f2e9; background-image: radial-gradient(rgba(150, 118, 76, 0.13) 1.3px, transparent 1.6px); background-size: 22px 22px; background-position: 11px 11px; box-shadow: var(--shadow-card); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.helm-stage.grabbing { cursor: grabbing; }
.helm-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--ease); }
.helm-stage.ready > img { opacity: 0; }
.helm-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms var(--ease); touch-action: pan-y; }
.helm-stage.ready .helm-canvas { opacity: 1; }
.helm-hint { position: absolute; left: 50%; bottom: 14px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 254, 251, 0.78); font: 500 11px/1 var(--mono); letter-spacing: 0.02em; color: var(--ink-3); opacity: 0; transform: translateX(-50%); transition: opacity 400ms var(--ease) 600ms; pointer-events: none; }
.helm-stage.ready .helm-hint { opacity: 1; }
.helm-copy .h-sec { margin: 10px 0 0; }
.helm-points { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.helm-points li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.helm-points b { font-weight: 600; }
.helm-points span { color: var(--ink-2); }
@media (max-width: 420px) { .helm-points li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 1023px) { .art { max-width: 320px; } }

/* the docs */
.doc { display: grid; gap: 28px; }
@media (min-width: 1024px) { .doc { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; } }
.doc-nav { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1024px) { .doc-nav { position: sticky; top: 24px; align-self: start; display: grid; gap: 2px; } }
.doc-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-3); }
.doc-nav a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 1023px) { .doc-nav a { border: 1px solid var(--line); background: var(--paper); } }
.doc-body { display: grid; gap: 44px; min-width: 0; max-width: 46rem; }
.doc-body section { display: grid; gap: 12px; min-width: 0; scroll-margin-top: 24px; }
.doc-body h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.doc-body h3 { margin: 8px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.doc-body p, .doc-body li { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.doc-body p { margin: 0; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tools { display: grid; gap: 0; }
.tools > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tools > div:first-child { border-top: 0; }
.tools code { font: 500 13px/1.5 var(--mono); }
.tools span { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* toasts and dialogs */
.toasts { position: fixed; z-index: 70; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; 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, 0.6); animation: toast-in 300ms var(--ease); overflow-wrap: anywhere; }
.toast.good { box-shadow: inset 3px 0 0 var(--neon), 0 18px 40px -18px rgba(20, 17, 14, 0.6); }
.toast.bad { box-shadow: inset 3px 0 0 #ff9d8f, 0 18px 40px -18px rgba(20, 17, 14, 0.6); }
.toast a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
dialog.modal { width: min(460px, calc(100vw - 24px)); max-height: calc(100svh - 32px); margin: auto; padding: 22px; overflow-y: auto; 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, 0.5); }
dialog.modal::backdrop { background: rgba(20, 17, 14, 0.34); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal form { display: grid; gap: 14px; margin: 0; }
.modal h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.modal p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.modal-actions .btn { flex: 1 1 auto; }
.wallets { display: grid; gap: 8px; }
.wallets button { 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-size: 15px; font-weight: 500; text-align: left; }
.wallets button:hover { background: var(--paper-2); }
.wallets img { width: 28px; height: 28px; border-radius: 8px; }

/* -------------------------------------------------------------------------------------------- phone rules */

/* phone header: logo and Connect wallet share the first row, the section links get the second */
@media (max-width: 639px) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand btn' 'nav nav'; align-items: center; gap: 6px 12px; }
  .bar-l { display: contents; }
  .bar .brand { grid-area: brand; min-width: 0; }
  .bar .brand span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .bar > .bar-r { grid-area: btn; justify-self: end; }
  .bar .pill-btn.buy { display: none; }
  .bar .nav { grid-area: nav; margin-left: 0; padding-left: 0; border-left: 0; gap: 20px; }
}
@media (max-width: 639px) { body:not(.page) .bar { padding: 0 12vw; } }
@media (max-width: 359px) {
  .bar { column-gap: 8px; }
  .bar .brand { gap: 8px; }
  .bar .brand span { font-size: 14px; }
  .bar .pill-btn { padding: 0 10px; }
}

@media (max-width: 900px) {
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-req { border-right: 0; border-bottom: 1px solid rgba(114, 132, 69, 0.125); }
  .agent .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pg-req, .pg-res { padding: 20px; }
  .pg-prompt { font-size: 24px; }
  .hold { grid-template-columns: minmax(0, 1fr) auto; }
  .hold .r.hide-sm { display: none; }
  .hold > .acts { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
  .dash { padding: 10px; }
  .box { padding: 14px; }
  .feed li { padding: 10px 14px; }
  .page .bar { padding: 0 20px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mrow { gap: 10px; }
  .mrow .fig { gap: 8px; }
  .mrow .fig .was { display: none; }
  .picker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 12px; }
  .tile > b { font-size: 18px; }
  .pill-btn { padding: 0 12px; }
  .mrow .nm { font-size: 14px; }
  .modal-actions .btn { flex-basis: 100%; }
}
@media (max-width: 350px) {
  .g3, .g4, .picker ul { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}
