/* TAGGED — design system.

   Black, white, two greys, one hairline. A top bar rather than a sidebar, because
   the product is one action (post, get a coin) and a bar keeps that action in the
   corner of every page. Every dimension sits on an 8px grid: the bar is 56, controls
   are 40, icons 18, radii 8 and 12. Type does the work and nothing glows. Motion is
   quiet: blocks rise once into place, one tape drifts, one dot walks the fee path. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #101010;
  --border: #1a1a1a;
  --border-strong: #2a2a2a;
  --text: #ededed;
  --text-2: #9a9a9a;
  --text-3: #808080;
  --line-ink: #5f5f5f;
  --white: #ffffff;

  /* Status only. Never emphasis. */
  --ok: #2ea043;
  --warn: #b98a1e;
  --err: #d64545;

  --radius: 8px;
  --radius-lg: 12px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bar: 56px;
  --gutter: 32px;
  --content: 1040px;
  --prose: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--text-2);
}
.faint {
  color: var(--text-3);
}
.strong {
  color: var(--white);
  font-weight: 500;
}
.num {
  font-variant-numeric: tabular-nums;
}

code,
.mono,
.addr {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* -------------------------------- top bar ------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.topbar-inner {
  max-width: calc(var(--content) + var(--gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  flex-shrink: 0;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.top-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.top-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--surface-2);
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-end .x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text-2);
}

.topbar-end .x-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.topbar-end .x-link svg {
  width: 16px;
  height: 16px;
}

/* Phone: the nav becomes a second row under the bar. */
.nav-toggle {
  display: none;
}

/* -------------------------------- layout -------------------------------- */

.page {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
  flex: 1;
}

.page-narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-title h1 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.page-title p {
  margin-top: 6px;
  color: var(--text-2);
  max-width: var(--prose);
}

.page-title > .btn {
  margin-top: 2px;
  flex-shrink: 0;
}

.section {
  margin-top: 72px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  margin-top: 6px;
  color: var(--text-2);
  max-width: var(--prose);
}

.section-head .link {
  color: var(--text-2);
  font-size: 0.875rem;
  white-space: nowrap;
}

.section-head .link:hover {
  color: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 32px 0 56px;
}

.hero .eyebrow {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero .lede {
  margin: 20px 0 28px;
  max-width: 520px;
  font-size: 1.125rem;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ------------------------------- composer ------------------------------- */

/* The post, exactly as it will be sent, with the three parts you can change. */
.composer {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.composer-body {
  padding: 20px;
}

.composer-fields {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.composer-fields label {
  display: block;
}

.composer-fields .field-label {
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.composer-preview {
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.composer-preview .h {
  color: var(--text-2);
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.composer-foot .hint {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: #000;
  font: 500 0.875rem/1 var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn-block {
  width: 100%;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card + .card {
  margin-top: 16px;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --------------------------------- KPIs --------------------------------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  min-width: 0;
  padding: 24px 24px 24px 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin-top: 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-note {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* A second, quieter line under a figure: what the figure is made of. */
.stat-break {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------- flow --------------------------------- */

/* Where a fee goes: five boxes joined by hairlines. Pure grid, no picture. */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0 8px;
  align-items: stretch;
}

.flow-node {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-node .k {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.flow-node .v {
  margin-top: 6px;
  color: var(--white);
  font-weight: 500;
}

.flow-node .s {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--line-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.flow-split {
  display: grid;
  gap: 8px;
}

.flow-split .flow-node {
  position: relative;
}

.flow-split .flow-node .pct {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--white);
}

/* -------------------------------- forms --------------------------------- */

.field {
  display: block;
  margin-bottom: 24px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.field-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
}

input[type="text"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font: 400 0.9375rem/1.4 var(--sans);
  transition: border-color 0.15s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--border-strong);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-search {
  position: relative;
  max-width: 320px;
}

.input-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.input-search input {
  height: 36px;
  padding-left: 34px;
  font-size: 0.875rem;
}

/* --------------------------------- lists -------------------------------- */

.rows {
  border-top: 1px solid var(--border);
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--white);
  font-weight: 500;
}

.row-title > a,
.row-title > .name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-sub {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub a:hover {
  color: var(--text);
}

.row-amount {
  text-align: right;
  font-weight: 500;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.row-amount .row-sub {
  text-align: right;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-ink);
}

.chip-ok::before {
  background: var(--ok);
}
.chip-warn::before {
  background: var(--warn);
}
.chip-err::before {
  background: var(--err);
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-2);
  white-space: nowrap;
}

/* --------------------------------- table -------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table th {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table td:last-child,
.table th:last-child {
  padding-right: 0;
}

.table-wrap {
  overflow-x: auto;
}

/* ------------------------------- callouts ------------------------------- */

.note {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}

.note strong {
  color: var(--text);
  font-weight: 500;
}

.note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.note-ok {
  border-color: rgba(46, 160, 67, 0.4);
}
.note-warn {
  border-color: rgba(185, 138, 30, 0.45);
}
.note-error {
  border-color: rgba(214, 69, 69, 0.45);
  color: #e8a0a0;
}

/* --------------------------------- steps -------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* --------------------------------- prose -------------------------------- */

.prose {
  max-width: var(--prose);
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

.prose code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

/* ---------------------------------- misc -------------------------------- */

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.line:last-child {
  border-bottom: none;
}

.line .k {
  color: var(--text-2);
}

.line .v {
  text-align: right;
  overflow-wrap: anywhere;
}

.empty {
  padding: 56px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.empty .strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-2);
}

.skeleton {
  background: var(--surface-2);
  border-radius: 4px;
  color: transparent;
}

.addr {
  word-break: break-all;
  overflow-wrap: anywhere;
}

a.addr,
.addr a,
a.u {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

a.addr:hover,
.addr a:hover,
a.u:hover {
  color: var(--text);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.coin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.coin-id {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.coin-id .avatar {
  width: 56px;
  height: 56px;
}

.coin-id h1 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.coin-id h1 span {
  color: var(--text-2);
  font-weight: 400;
}

.coin-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* -------------------------------- trade --------------------------------- */

#trade.section {
  margin-top: 0;
  margin-bottom: 56px;
}

.trade {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trade-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.trade-tabs button {
  height: 44px;
  background: none;
  border: 0;
  color: var(--text-3);
  font: 500 0.875rem/1 var(--sans);
  cursor: pointer;
  transition: color 0.15s ease;
}

.trade-tabs button:hover,
.trade-tabs button[aria-selected="true"] {
  color: var(--white);
}

/* One hairline under the active side; it slides when motion is allowed. */
.trade-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 50%;
  height: 1px;
  background: var(--white);
}
.trade-tabs[data-side="sell"]::after {
  transform: translateX(100%);
}
.motion .trade-tabs::after {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.trade-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px 24px 24px;
}

/* A 16-character symbol must wrap, not widen the card. */
.trade .btn {
  height: auto;
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trade-status {
  margin: -8px 24px 24px;
  overflow-wrap: anywhere;
}

.trade-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.trade-row .field-label {
  margin: 0;
}

.trade-max {
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-3);
  font: 400 0.8125rem/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.15s ease;
}
.trade-max:hover:not(:disabled) {
  color: var(--text);
}
.trade-max:disabled {
  cursor: default;
}

.trade-input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.trade-input:hover,
.trade-input:focus-within {
  border-color: var(--border-strong);
}
.trade-input:has(input:focus-visible) {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.trade-input input,
.trade-input input:hover,
.trade-input input:focus {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  font: 500 1.375rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.trade-input input:focus-visible {
  outline: none;
}

.trade-unit {
  flex-shrink: 0;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  font: 500 0.9375rem/1 var(--sans);
}

.trade-usd {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.trade-quote .line {
  padding: 10px 0;
  font-size: 0.875rem;
}
.trade-quote .line:first-child {
  border-top: 1px solid var(--border);
}

.trade-fine {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* -------------------------------- motion -------------------------------- */

/* Only when motion.js runs and the reader allows motion: blocks rise 10px and fade
   in once. Without the script nothing is hidden. */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion [data-reveal].in {
  opacity: 1;
  transform: none;
}

.row {
  transition: background-color 0.2s ease;
}
.rows .row:hover {
  background: linear-gradient(90deg, transparent, var(--surface) 12%, var(--surface) 88%, transparent);
}

.card,
.flow-node,
.ppill {
  transition: border-color 0.2s ease;
}
.card:hover,
.flow-node:hover {
  border-color: var(--border-strong);
}

/* The caret the post types behind. */
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--white);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* A dot that walks along each arrow of the fee flow, so the page shows the money
   moving without saying so. */
.flow-arrow {
  position: relative;
  width: 40px;
  justify-content: center;
}
.flow-arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: var(--border-strong);
}
.flow-arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 2.5px);
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  animation: travel 2.4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
.flow-arrow:nth-of-type(4)::after {
  animation-delay: 1.2s;
}
.flow-arrow span {
  display: none;
}
@keyframes travel {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(26px);
    opacity: 0;
  }
}

/* ------------------------------ pair logos ------------------------------ */

.plogo {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  flex-shrink: 0;
  font: 600 0.625rem/1 var(--sans);
  letter-spacing: 0;
}
.plogo img {
  width: 11px;
  height: 11px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.plogo svg {
  width: 12px;
  height: 12px;
}
.plogo.mono {
  color: var(--text-2);
}

.tag.pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px 1px 2px;
  border-radius: 999px;
}
.tag.pair .plogo {
  width: 16px;
  height: 16px;
  border: none;
}
.tag.pair .plogo img {
  width: 9px;
  height: 9px;
}

.ppill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 0.8125rem/1 var(--sans);
  white-space: nowrap;
}
.ppill:has(.wordmark) {
  padding: 0 14px;
}
.ppill .wordmark {
  height: 13px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.ppill.pons img {
  width: 18px;
  height: 18px;
  filter: grayscale(1) contrast(1.1);
}

/* Built on / paired with: one centred row between the hero and the tape. */
.strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.ppill.round {
  width: 34px;
  padding: 0;
  justify-content: center;
  border-color: var(--border);
}
.ppill.round .plogo {
  width: 22px;
  height: 22px;
  border: none;
  background: none;
}
.ppill.round .plogo img {
  width: 14px;
  height: 14px;
}
.strip-row .lbl {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 2px;
}
.strip-row .sep {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 6px;
}

/* The tape: every pair pons accepts, drifting left, paused under the pointer. */
.tape {
  position: relative;
  margin: 8px 0 48px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tape-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: tape 90s linear infinite;
}
.tape:hover .tape-track {
  animation-play-state: paused;
}
@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}

.pair-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* -------------------------------- footer -------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 40px var(--gutter) 32px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-cols h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-cols a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-about {
  max-width: 360px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.footer-about .brand {
  margin-bottom: 12px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-3);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
    height: 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }
  .topbar-inner {
    gap: 12px;
  }
  .top-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--bar);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.96);
  }
  .top-nav.open {
    display: flex;
  }
  .top-nav a {
    height: 40px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle svg {
    width: 16px;
    height: 16px;
  }
  .topbar-end .btn span,
  .topbar-end .x-link,
  .strip-row {
    display: none;
  }
  .page {
    padding: 32px var(--gutter) 72px;
  }
  .page-title,
  .coin-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .composer-fields,
  .field-row {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat,
  .stat + .stat {
    padding: 16px 0;
    border-left: none;
  }
  .stat:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--border);
  }
  .stat:nth-child(odd) {
    padding-right: 20px;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .section {
    margin-top: 56px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* One quiet line under the hero while the X bot is not answering yet. */
.hero-note {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}
