/* FomoHandle: handles are the design. One accent, used only for the @. */

:root {
  --paper: #eef1f5;
  --sheet: #ffffff;
  --ink: #0a0c12;
  --ink-2: #4b5160;
  --ink-3: #8a90a0;
  --line: #dde1e8;
  --line-2: #c9ced8;
  --accent: #3a2bff;
  --accent-soft: #e7e5ff;
  --ok: #0f9d64;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0f15;
    --sheet: #161923;
    --ink: #eef0f6;
    --ink-2: #a7adbd;
    --ink-3: #6d7384;
    --line: #242836;
    --line-2: #323748;
    --accent: #8479ff;
    --accent-soft: #221f4a;
    --ok: #34c98a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0f15;
  --sheet: #161923;
  --ink: #eef0f6;
  --ink-2: #a7adbd;
  --ink-3: #6d7384;
  --line: #242836;
  --line-2: #323748;
  --accent: #8479ff;
  --accent-soft: #221f4a;
  --ok: #34c98a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; }
.at { color: var(--accent); font-weight: 400; margin-right: 0.03em; }

/* ---------- chrome ---------- */

.preview-bar {
  padding: 8px var(--gutter);
  font-size: 14px;
  text-align: center;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.wordmark {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { opacity: 0.88; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }
/* right side of the header: X link and wallet */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.x-link {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 160ms, color 160ms, box-shadow 160ms;
}
.x-link svg { width: 16px; height: 16px; }
.x-link:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

/* wallet button and menu */
.wallet { position: relative; }
.wallet-btn {
  height: 42px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 20px 0 16px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms, box-shadow 160ms, transform 120ms;
}
.wallet-btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.wallet-btn:active { transform: scale(0.97); }
.wallet-long { white-space: pre; }
.wallet-icon { width: 16px; height: 16px; flex: none; }
.wallet-btn[data-connected="true"] {
  padding: 0 12px 0 6px;
  background: var(--sheet); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.wallet-btn[data-connected="true"]:hover,
.wallet-btn[data-connected="true"][aria-expanded="true"] { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); }
.wallet-disc { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.wallet-chev { width: 14px; height: 14px; color: var(--ink-3); transition: transform 180ms; }
.wallet-btn[aria-expanded="true"] .wallet-chev { transform: rotate(180deg); }

.wallet-pop {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  z-index: 60;
  width: 300px;
  padding: 10px;
  background: var(--sheet);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(20, 24, 60, 0.35);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease;
}
.wallet-pop.is-open { opacity: 1; transform: none; }
.pop-title { padding: 8px 10px 6px; font-weight: 700; letter-spacing: -0.01em; }
.pop-wallet {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border: 0; border-radius: 12px;
  background: none;
  text-align: left; text-decoration: none; color: var(--ink);
  cursor: pointer;
  transition: background 120ms;
}
.pop-wallet:hover { background: var(--paper); }
.pop-mono {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800;
}
.pop-name { font-weight: 600; }
.pop-state { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.pop-wallet.is-busy { background: var(--paper); cursor: progress; }
.pop-wallet.is-busy .pop-state { color: var(--accent); }
.pop-fine { padding: 6px 10px 4px; font-size: 13px; color: var(--ink-3); }
.wallet-pop .form-note { padding: 4px 10px; font-size: 14px; }
.pop-who { display: grid; gap: 2px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pop-label { font-size: 13px; color: var(--ink-3); }
.pop-who b { font-size: 20px; letter-spacing: -0.02em; }
.pop-link {
  display: block; width: 100%;
  padding: 10px;
  border: 0; border-radius: 10px;
  background: none;
  font-weight: 500; text-align: left; text-decoration: none; color: var(--ink);
  cursor: pointer;
}
.pop-link:hover { background: var(--paper); }
.pop-danger { color: #d23b3b; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11ch;
}
.lede {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 46ch;
}

.search {
  margin-top: 36px;
  display: flex;
  align-items: center;
  max-width: 480px;
  padding: 6px 6px 6px 18px;
  background: var(--sheet);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.search-at { color: var(--accent); font-weight: 700; font-size: 22px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 8px 8px 8px 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  outline: none;
}
.search input::placeholder { color: var(--ink-3); font-weight: 500; }

.hero-facts {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.hero-facts dt { font-size: 14px; color: var(--ink-3); }
.hero-facts dd { margin: 2px 0 0; font-weight: 600; }
.soon {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

/* the handoff demo */

.handoff {
  margin: 0;
  padding: 28px;
  background: var(--sheet);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(20, 24, 60, 0.35);
}
.handoff-parties {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.party { display: flex; align-items: center; gap: 12px; }
.party-b { text-align: right; }
.party small { display: block; font-size: 13px; color: var(--ink-3); }
.party b { font-weight: 600; font-size: 15px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  flex: none;
}
.avatar-a { background: conic-gradient(from 40deg, #c9d2e3, #8f9bb5, #c9d2e3); }
.avatar-b { background: conic-gradient(from 200deg, #d9d4ff, #7d70ff, #d9d4ff); }

.handoff-stage {
  position: relative;
  height: 170px;
  margin: 12px 0 8px;
}
.rail {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.rail-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 900ms cubic-bezier(.6, 0, .2, 1);
}
.handle-token {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  padding: 6px 16px 10px;
  background: var(--sheet);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: left 1100ms cubic-bezier(.65, 0, .25, 1), transform 1100ms cubic-bezier(.65, 0, .25, 1), opacity 400ms;
}
.sol-token {
  position: absolute;
  bottom: 6px;
  right: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  transition: right 1100ms cubic-bezier(.65, 0, .25, 1), left 1100ms, opacity 400ms;
}

.handoff-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.handoff-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  transition: color 300ms;
}
.handoff-steps li::before {
  content: attr(data-i);
  width: 22px; height: 22px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transform: translateY(-1px);
  transition: background 300ms, color 300ms, box-shadow 300ms;
}
.handoff-steps li:last-child { border-bottom: 0; }
.handoff-steps b { font-weight: 600; }

/* step states: 1 locked, 2 freed, 3 claimed, 4 paid */
.handoff[data-step="1"] .rail-fill { width: 20%; }
.handoff[data-step="2"] .rail-fill { width: 50%; }
.handoff[data-step="3"] .rail-fill,
.handoff[data-step="4"] .rail-fill { width: 100%; }

.handoff[data-step="2"] .handle-token { left: 50%; transform: translate(-50%, -50%); }
.handoff[data-step="3"] .handle-token,
.handoff[data-step="4"] .handle-token { left: 100%; transform: translate(-100%, -50%); }

.handoff[data-step="4"] .sol-token { right: calc(100% - 80px); }

.handoff[data-step="1"] li[data-i="1"],
.handoff[data-step="2"] li[data-i="2"],
.handoff[data-step="3"] li[data-i="3"],
.handoff[data-step="4"] li[data-i="4"] { color: var(--ink); }
.handoff[data-step="1"] li[data-i="1"]::before,
.handoff[data-step="2"] li[data-i="2"]::before,
.handoff[data-step="3"] li[data-i="3"]::before,
.handoff[data-step="4"] li[data-i="4"]::before {
  background: var(--accent); color: #fff; box-shadow: none;
}
.handoff[data-step="2"] li[data-i="1"]::before,
.handoff[data-step="3"] li[data-i="1"]::before,
.handoff[data-step="3"] li[data-i="2"]::before,
.handoff[data-step="4"] li[data-i="1"]::before,
.handoff[data-step="4"] li[data-i="2"]::before,
.handoff[data-step="4"] li[data-i="3"]::before {
  content: "✓";
  background: var(--accent-soft); color: var(--accent); box-shadow: none;
}
.handoff.is-resetting .handle-token,
.handoff.is-resetting .sol-token { opacity: 0; transition: none; }

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.section-sub {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 56ch;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.count { margin-top: 20px; color: var(--ink-3); }
.text-link {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--ink); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.toolbar-right { display: flex; gap: 8px; }

.field {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
}
.field:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.field-sm { min-height: 38px; width: auto; font-size: 15px; }
#marketQuery { width: 180px; }

/* registry: one handle per row */

.registry {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.row-link {
  grid-template-columns: minmax(0, 1fr) auto auto;
  color: inherit;
  text-decoration: none;
}
.row:hover .row-handle { color: var(--accent); }
.row:hover .row-handle .at { color: inherit; }
.row-handle {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  transition: color 150ms;
}
.row-seller { color: var(--ink-3); font-size: 15px; min-width: 110px; }
.row-price { text-align: right; min-width: 120px; }
.row-price b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.row-price small { color: var(--ink-3); font-size: 14px; }
.row .btn { min-height: 40px; padding: 0 18px; }

.traits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.traits li {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.traits li.rare { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.row .traits { justify-content: flex-end; }

.empty {
  padding: 48px 0;
  color: var(--ink-2);
}
.empty p + p { margin-top: 6px; }

/* how */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}
.steps h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* sell */

.sell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.sell-form { display: grid; gap: 8px; max-width: 460px; }
.sell-form label { font-weight: 600; font-size: 15px; margin-top: 12px; }
.field-at, .field-unit { position: relative; }
.field-at span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-52%);
  color: var(--accent); font-weight: 700;
}
.field-at .field { padding-left: 32px; }
.field-unit span {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-weight: 600;
}
.field-unit .field { padding-right: 56px; }
.hint { font-size: 14px; color: var(--ink-3); }
.hint[data-error="true"] { color: #d23b3b; }
.sell-form .btn { margin-top: 20px; min-height: 52px; }
.form-note { font-size: 15px; color: var(--ink-2); min-height: 1.5em; }

.sell-preview { position: sticky; top: 24px; }
.preview-label { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.preview-card {
  padding: 32px;
  background: var(--sheet);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(20, 24, 60, 0.35);
}
.preview-handle {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.payout { margin: 28px 0 0; border-top: 1px solid var(--line); }
.payout div {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.payout dt { color: var(--ink-2); }
.payout dd { margin: 0; font-weight: 600; }
.payout-total { border-bottom: 0 !important; }
.payout-total dt { color: var(--ink); font-weight: 600; }
.payout-total dd { font-size: 22px; font-weight: 700; }

/* faq */

.faq > * { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--ink-3);
  transition: transform 200ms;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.footer .wordmark { color: var(--ink); font-size: 24px; }
.foot-brand p { margin-top: 10px; max-width: 30ch; }
.foot-x {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 160ms, color 160ms, box-shadow 160ms;
}
.foot-x svg { width: 15px; height: 15px; }
.foot-x:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-head { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-registry { margin: 0; }
.foot-registry div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.foot-registry dt { color: var(--ink-3); }
.foot-registry dd { margin: 0; font-weight: 600; color: var(--ink); }
.foot-registry dd a { color: var(--accent); font-weight: 600; }
.foot-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot-col a[aria-current="page"],
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

/* ---------- jobs ---------- */

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
}
.page-head h1 {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.page-head .lede { margin-top: 18px; }

.job {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--sheet);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(20, 24, 60, 0.35);
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}
.job-title {
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.job-summary { margin-top: 20px; color: var(--ink-2); max-width: 46ch; font-size: 18px; }
.job-detail h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.job-detail ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.job-detail li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.job-note { margin-top: 20px; font-size: 15px; color: var(--ink-3); }

@media (max-width: 960px) {
  .job { grid-template-columns: 1fr; }
}

/* ---------- drawer ---------- */

.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(10, 12, 20, 0.4);
  z-index: 40;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  padding: 32px;
  background: var(--sheet);
  z-index: 50;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: drawer-in 260ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--paper);
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.drawer-handle {
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.drawer-meta { margin: 0; border-top: 1px solid var(--line); }
.drawer-meta div {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.drawer-meta dt { color: var(--ink-2); }
.drawer-meta dd { margin: 0; font-weight: 600; }
.pay { margin-top: auto; display: grid; gap: 14px; }
.pay-label { font-size: 14px; color: var(--ink-3); }
.pay-options { display: flex; gap: 8px; }
.pay-opt {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  cursor: pointer;
}
.pay-opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--sheet); }
.pay-opt:disabled { color: var(--ink-3); cursor: not-allowed; }
.pay-opt small { font-weight: 500; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; }
.pay-total span { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.pay-total small { color: var(--ink-3); }
.pay-fine { font-size: 14px; color: var(--ink-3); }

/* ---------- shared bits for the app pages ---------- */

.muted { color: var(--ink-3); }
.optional { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: var(--sheet); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.form-note[data-kind="error"] { color: #d23b3b; }
.form-note[data-kind="ok"] { color: var(--ok); }
.form-note:empty { display: none; }
textarea.field { padding: 12px 14px; min-height: 0; resize: vertical; line-height: 1.45; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  overflow-wrap: anywhere;
}
.copyable { cursor: copy; }

.panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--sheet);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line);
}
.panel > * + * { margin-top: 14px; }
.panel-title, .action-title { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.list-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.count-badge:empty { display: none; }
.count-badge {
  font-size: 15px; font-weight: 700; letter-spacing: 0;
  min-width: 26px; height: 26px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: #fff;
}

.offer-form { display: flex; gap: 8px; }
.offer-form .field-unit, .offer-form > .field { flex: 1; min-width: 0; }

/* lists on the account and admin pages */

.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.item-stack { flex-direction: column; align-items: stretch; gap: 12px; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.item-main { min-width: 0; }
.item-handle {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
  overflow-wrap: anywhere;
}
.item-tag {
  font-size: 13px; font-weight: 600; letter-spacing: 0;
  padding: 3px 10px; border-radius: 999px;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
}
.item-sub { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.item-detail { color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.item-actions { display: flex; gap: 8px; }
.item-empty { padding: 18px 4px; border-bottom: 1px solid var(--line); }

.offers { list-style: none; margin: 0; padding: 0; }
.offers li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.offers li span { color: var(--ink-2); margin-right: auto; }
.offers li.muted { border-bottom: 0; }

.account-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.account-bar p { margin-right: auto; color: var(--ink-2); }
.account-bar b { color: var(--ink); }

.verify h2 { font-size: 24px; letter-spacing: -0.02em; }
.checklist { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.checklist li::marker { color: var(--accent); font-weight: 700; }

/* deal room */

.deal-head { padding-bottom: 28px; }
.deal-handle {
  font-size: clamp(56px, 9vw, 112px) !important;
  letter-spacing: -0.055em !important;
  font-weight: 800 !important;
  overflow-wrap: anywhere;
}
.deal-status {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.deal-status[data-status="released"] { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.deal-status[data-status="disputed"] { background: color-mix(in srgb, #d23b3b 14%, transparent); color: #d23b3b; }
.deal-status[data-status="refunded"],
.deal-status[data-status="cancelled"] { background: var(--line); color: var(--ink-2); }

.deal-steps {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  counter-reset: dstep;
}
.deal-steps li {
  counter-increment: dstep;
  padding-top: 12px;
  border-top: 3px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink-3);
}
.deal-steps li::before { content: counter(dstep) " "; color: inherit; }
.deal-steps li[data-state="done"] { border-color: var(--accent); color: var(--ink-2); }
.deal-steps li[data-state="now"] { border-color: var(--accent); color: var(--ink); }
.deal-steps li[data-state="off"] { opacity: 0.5; }

.deal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.deal-main { display: grid; gap: 20px; }
.deal-details .payout { margin-top: 8px; }
.deal-details dd { text-align: right; overflow-wrap: anywhere; }
.action-text { color: var(--ink-2); max-width: 62ch; }
.action-warn { color: var(--ink); font-weight: 600; font-size: 15px; }
.action-quote { padding-left: 14px; border-left: 3px solid var(--line-2); color: var(--ink-2); font-style: italic; }
.action-buttons { display: grid; gap: 8px; justify-items: start; }
.escrow-addr {
  display: grid; gap: 6px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--paper);
}
.escrow-addr span { font-size: 14px; color: var(--ink-3); }
.escrow-addr code { background: none; padding: 0; font-size: 15px; color: var(--ink); }
.manual-deposit summary { cursor: pointer; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.manual-deposit form { margin-top: 12px; }
#dispute summary { cursor: pointer; font-weight: 600; }
#disputeForm { display: grid; gap: 10px; margin-top: 14px; justify-items: start; }
#disputeForm label { font-weight: 600; font-size: 15px; }
#disputeForm textarea { width: 100%; }

.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }
.msg { padding: 10px 14px; border-radius: 14px; background: var(--paper); max-width: 85%; }
.msg-mine { justify-self: end; background: var(--accent-soft); }
.msg-meta { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.msg p { overflow-wrap: anywhere; white-space: pre-wrap; }
.message-form { display: flex; gap: 8px; align-items: flex-end; }
.message-form textarea { flex: 1; }

/* admin */

.settings-form { display: grid; gap: 8px; max-width: 520px; }
.settings-form > * + * { margin-top: 0; }
.settings-form label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.settings-form .btn { justify-self: start; margin-top: 12px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }

/* home: three working demos of how a sale stays safe */

.bento-title { margin-bottom: 28px; max-width: 16ch; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  padding: 16px 16px 26px;
  background: var(--sheet);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line);
}
.tile h3 { margin: 22px 10px 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.tile > p { margin: 8px 10px 0; color: var(--ink-2); font-size: 16px; }
.tile-demo {
  height: 210px;
  border-radius: 16px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center; align-content: center;
}

.demo-escrow { justify-items: start; align-content: end; padding: 22px; gap: 4px; place-items: end start; }
.demo-live { position: absolute; top: 18px; left: 22px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.demo-balance { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.demo-balance small { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.demo-addr { font-size: 14px; font-weight: 600; color: var(--accent); }

.bio-card {
  width: 82%;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  background: var(--sheet);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--line), 0 16px 30px -24px rgba(20, 24, 60, 0.4);
}
.bio-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: conic-gradient(from 200deg, #d9d4ff, #7d70ff, #d9d4ff); }
.bio-card b { font-size: 18px; letter-spacing: -0.02em; }
.bio-card p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.bio-code { color: var(--accent); font-weight: 700; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bio-verified {
  margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--sheet));
  opacity: 0; transform: translateY(6px);
  transition: opacity 240ms, transform 240ms;
}
.bio-verified::before { content: "✓"; }
.bio-verified.is-on { opacity: 1; transform: none; }

.demo-hold { gap: 0; }
.hold-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring-track, .ring-fill { fill: none; stroke-width: 8; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 900ms linear; }
.hold-time { position: absolute; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell { grid-template-columns: 1fr; }
  .sell-preview { position: static; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .row .traits { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .row-seller { display: none; }
  .row-price { grid-column: 2; grid-row: 1; }
  .row .btn { grid-column: 2; grid-row: 2; }
  .deal-grid { grid-template-columns: 1fr; }
  .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { flex-wrap: wrap; gap: 14px 16px; padding-bottom: 12px; }
  .wordmark { margin-right: auto; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0 8px;
    white-space: nowrap;
  }
  .handoff { padding: 20px; }
  .handoff-stage { height: 130px; }
  .toolbar-right { width: 100%; }
  #marketQuery { flex: 1; width: auto; min-width: 0; }
  #sort { flex: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .preview-card { padding: 24px; }
  .drawer { padding: 24px; }
  .search .btn { padding: 0 14px; }
  .steps-5 { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .nav .wordmark { font-size: 21px; }
  .nav-actions { gap: 8px; }
  .wallet-btn { height: 40px; padding: 0 16px 0 14px; }
  .wallet-long { display: none; }
  .x-link { width: 40px; height: 40px; }
  .wallet-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform-origin: bottom center; transform: translateY(10px); }
  .deal-steps { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; }
  .deal-steps li { font-size: 12px; }
  .item { flex-direction: column; align-items: stretch; }
  .item-row { flex-direction: column; align-items: stretch; }
  .offer-form, .message-form { flex-direction: column; align-items: stretch; }
  .msg { max-width: 100%; }
}

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