/* toXMR. One stylesheet, no build step. Dark by default, light when the OS asks for it. */

@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --bg-2: #121215;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --surface-3: #27272d;
  --inset: #0b0b0d;
  --line: #26262c;
  --line-2: #36363e;
  --text: #f3f1ed;
  --text-2: #bdb8b0;
  --text-3: #908b84;
  --brand: #ff6b1a;
  --brand-hover: #ff8340;
  --brand-ink: #1a0b02;
  --brand-text: #ff8a4c;
  --brand-soft: rgba(255, 107, 26, 0.13);
  --brand-line: rgba(255, 107, 26, 0.4);
  --ok: #3ccf8e;
  --ok-soft: rgba(60, 207, 142, 0.12);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, 0.1);
  --bad: #ff7a7a;
  --bad-soft: rgba(255, 122, 122, 0.1);
  --info: #8cc8ff;
  --info-soft: rgba(140, 200, 255, 0.08);
  --focus: #ffb38a;
  --grid: rgba(255, 255, 255, 0.035);
  --glow: rgba(255, 107, 26, 0.14);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  --scrim: rgba(5, 5, 7, 0.7);
  --select-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23908b84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --wrap: 1200px;
  --gutter: 20px;
  --font: "Plex Sans", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f5f2;
    --bg-2: #efede8;
    --surface: #ffffff;
    --surface-2: #f3f1ec;
    --surface-3: #e9e6df;
    --inset: #faf9f6;
    --line: #e2ded6;
    --line-2: #cfcac0;
    --text: #151417;
    --text-2: #45423d;
    --text-3: #6b6760;
    --brand: #ff6b1a;
    --brand-hover: #f25a06;
    --brand-ink: #1a0b02;
    --brand-text: #c2410c;
    --brand-soft: rgba(255, 107, 26, 0.1);
    --brand-line: rgba(194, 65, 12, 0.38);
    --ok: #15803d;
    --ok-soft: rgba(21, 128, 61, 0.09);
    --warn: #9a5b00;
    --warn-soft: rgba(217, 119, 6, 0.1);
    --bad: #b91c1c;
    --bad-soft: rgba(185, 28, 28, 0.07);
    --info: #1d4ed8;
    --info-soft: rgba(29, 78, 216, 0.07);
    --focus: #c2410c;
    --grid: rgba(20, 18, 15, 0.045);
    --glow: rgba(255, 107, 26, 0.12);
    --shadow-card: 0 1px 2px rgba(20, 18, 15, 0.06), 0 24px 60px -28px rgba(20, 18, 15, 0.28);
    --shadow-pop: 0 40px 100px -24px rgba(20, 18, 15, 0.35);
    --scrim: rgba(20, 18, 15, 0.45);
    --select-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6760' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--brand-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

code,
.mono {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sm {
  width: 16px;
  height: 16px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  --wrap: 760px;
}

.nojs-only {
  display: none !important;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-3);
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-word {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-to {
  color: var(--text-3);
  font-weight: 500;
}

.nav {
  display: none;
  gap: 2px;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

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

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

.menu {
  position: relative;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--surface);
  color: var(--text);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
}

.menu-panel a:hover,
.menu-panel a[aria-current="page"] {
  background: var(--surface-2);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .menu {
    display: none;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 36px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -220px;
  width: 860px;
  height: 860px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 18%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 18%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-in {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 464px);
    gap: 72px;
    align-items: center;
  }

  .hero-pair .hero-in {
    align-items: start;
  }

  .hero-pair .hero-copy {
    padding-top: 12px;
  }
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-text);
  font: 500 0.75rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.display {
  max-width: 12ch;
  font-size: clamp(2.375rem, 1.5rem + 3.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.display-pair {
  max-width: 16ch;
  font-size: clamp(2.125rem, 1.4rem + 2.9vw, 3.625rem);
}

.lead {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

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

.trust a:hover {
  text-decoration: underline;
}

.trust-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}

.trust-check .i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.trust-sep {
  color: var(--text-3);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .i {
  color: var(--brand-text);
}

/* ------------------------------------------------------------------ swap form */

.swap {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

@media (min-width: 480px) {
  .swap {
    padding: 22px;
  }
}

/* Mode tabs: Private swap | Bridge */
.modes {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--inset);
}

.mode {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mode:hover {
  color: var(--text);
  text-decoration: none;
}

.mode[aria-current="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mode[aria-current="true"] .i {
  color: var(--brand-text);
}

.mode-note {
  margin: 10px 2px 14px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.leg {
  padding: 12px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--inset);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.leg:focus-within {
  border-color: var(--line-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.leg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.leg-head > :first-child {
  color: var(--text-2);
  font-weight: 500;
}

.leg-limits {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: right;
}

.leg-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.amount {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: 500 clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem)/1.25 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.amount::placeholder {
  color: var(--text-3);
  opacity: 0.6;
}

.amount-out {
  display: block;
  min-height: 1.25em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amount-out:empty::before {
  content: "0.0";
  color: var(--text-3);
  opacity: 0.6;
}

.amount-out.is-loading {
  opacity: 0.45;
  transition: opacity 0.2s;
}

/* Coin chip: logo, ticker with chevron, and the network pill underneath. */
.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  max-width: 62%;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

a.chip {
  cursor: pointer;
}

a.chip:hover {
  border-color: var(--text-3);
  background: var(--surface-3);
}

.chip-static {
  border-color: var(--line);
  background: transparent;
}

.chip > .ci {
  width: 40px;
  height: 40px;
}

.chip-body {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.chip-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-sym {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.chip-caret {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}

a.chip:hover .chip-caret {
  color: var(--text);
  transform: translateY(1px);
}

.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 9px 2px 3px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.net-pill > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.net-ci {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.flip {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -12px auto;
  border: 4px solid var(--surface);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s, transform 0.35s var(--ease);
}

.flip:hover {
  background: var(--surface-3);
  color: var(--brand-text);
}

.flip.is-turning {
  transform: rotate(180deg);
}

.flip .i {
  width: 18px;
  height: 18px;
}

.leg-get {
  padding-top: 14px;
}

.leg-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--text-3);
  font: 400 0.8125rem/1.5 var(--mono);
}

.leg-eta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.field-msg {
  margin-top: 4px;
  color: var(--bad);
  font-size: 0.8125rem;
}

.field-msg:empty {
  display: none;
}

.notices {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.notices:not(:has(*)) {
  display: none;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.notice .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice-warn {
  border-color: color-mix(in srgb, var(--warn) 28%, transparent);
  background: var(--warn-soft);
}

.notice-warn .i {
  color: var(--warn);
}

.notice-bad {
  border-color: color-mix(in srgb, var(--bad) 30%, transparent);
  background: var(--bad-soft);
}

.notice-bad .i {
  color: var(--bad);
}

.notice-ok {
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
  background: var(--ok-soft);
}

.notice-ok .i {
  color: var(--ok);
}

.notice-info {
  border-color: color-mix(in srgb, var(--info) 24%, transparent);
  background: var(--info-soft);
}

.notice-info .i {
  color: var(--info);
}

.swap > .notice {
  margin-bottom: 14px;
}

.field {
  margin-top: 14px;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.optional {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 400;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--inset);
  color: var(--text);
  font: 400 1rem/1.4 var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input.mono {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

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

.input:hover {
  border-color: var(--line-2);
}

.input:focus {
  outline: none;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.input[aria-invalid="true"] {
  border-color: var(--bad);
}

.input.is-valid {
  border-color: color-mix(in srgb, var(--ok) 55%, var(--line));
}

.select {
  padding-right: 40px;
  background-image: var(--select-caret);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.hint {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.more {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
}

.more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more-caret {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}

.more[open] .more-caret {
  transform: rotate(180deg);
}

.more > .field:first-of-type {
  margin-top: 2px;
}

.more > .field:last-child {
  margin-bottom: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: 600 0.9375rem/1.1 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

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

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-quiet {
  margin-top: 8px;
  border-color: var(--line);
  background: transparent;
  color: var(--text-2);
}

.btn-lg {
  min-height: 54px;
  border-radius: 14px;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn.is-busy {
  cursor: progress;
}

.btn.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.swap .btn-primary {
  margin-top: 16px;
}

.swap-fine {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.swap-fine a {
  color: inherit;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow .i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .i {
  transform: translateX(3px);
}

.copy {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.copy:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.copy.is-done,
.btn.is-done {
  border-color: var(--ok);
  color: var(--ok);
}

.copy .i {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ coin logos */

.ci {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}

.ci-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-2);
  font: 600 0.5625rem/1 var(--mono);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ live rates */

.rates {
  padding: 0 0 56px;
}

.rates-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 14px;
}

.rates-title,
.route-h,
.mini-h,
.footer-h,
.faq-group {
  color: var(--text-3);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rates-note {
  color: var(--text-3);
  font-size: 0.8125rem;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  list-style: none;
}

@media (min-width: 720px) {
  .rate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rate-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.rate {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 16px;
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.rate:hover {
  background: var(--surface);
}

.rate-from {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.rate-from .ci {
  width: 22px;
  height: 22px;
}

.rate-to {
  font: 500 1.125rem/1.2 var(--mono);
  overflow-wrap: anywhere;
}

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

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .section {
    padding: 88px 0;
  }
}

.section-tight {
  padding-top: 28px;
  border-top: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}

.page-head {
  padding: 36px 0 8px;
}

@media (min-width: 1024px) {
  .page-head {
    padding: 64px 0 16px;
  }
}

.h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-2);
}

.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* routes */

.route-cols {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .route-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.route-h {
  margin-bottom: 12px;
}

.routes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.routes-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-height: 64px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.route:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.route-icons {
  display: flex;
  grid-row: 1 / 3;
}

.route-icons > :last-child {
  margin-left: -8px;
  box-shadow: 0 0 0 2px var(--surface);
}

.route-name {
  font-weight: 600;
}

.route-sub {
  grid-column: 2;
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--text-3);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.route:hover .route-arrow {
  color: var(--brand-text);
  transform: translateX(3px);
}

.more-link {
  margin-top: 24px;
}

/* steps */

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  color: var(--brand-text);
  font: 500 0.8125rem/1 var(--mono);
}

.steps h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

/* features */

.features {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  list-style: none;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.features li {
  padding: 26px 24px;
  background: var(--bg);
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-text);
}

.features h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.features p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* monero */

.monero-in {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .monero-in {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 72px;
  }
}

.prose h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.prose p,
.prose li {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.prose ul + p {
  margin-top: 16px;
}

.prose li::marker {
  color: var(--brand-text);
}

.facts {
  display: grid;
  margin: 0;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--text-3);
  font-size: 0.875rem;
}

.facts dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.facts-card {
  padding: 6px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.facts-card > div:last-child {
  border-bottom: 0;
}

/* Grid lines are drawn by each cell (right and bottom edge) and clipped at the outer border,
   so a row that is not full simply stays empty instead of showing a grey block. */
.facts-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.facts-grid > div {
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border: 0;
  box-shadow: 1px 0 0 0 var(--line), 0 1px 0 0 var(--line);
}

.facts-grid dd {
  text-align: left;
}

.facts-grid .facts-wide {
  grid-column: 1 / -1;
}

.mono-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mono-wrap code {
  min-width: 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

/* coin cloud */

.coin-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coin-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 13px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.coin-cloud a:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.coin-cloud .ci {
  width: 24px;
  height: 24px;
}

.coin-cloud small {
  color: var(--text-3);
  font: 500 0.625rem/1 var(--mono);
  text-transform: uppercase;
}

.coin-cloud-tight {
  margin-bottom: 32px;
}

.mini-h {
  margin: 0 0 12px;
}

/* about cards */

.about-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.about-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.about-card p {
  color: var(--text-2);
}

.about-card p + p {
  margin-top: 10px;
}

.reverse-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  padding: 20px 22px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, var(--brand-soft), transparent 70%), var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.reverse-card:hover {
  border-color: var(--brand);
}

.reverse-card .route-icons .ci {
  width: 32px;
  height: 32px;
}

.reverse-card > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.reverse-k {
  color: var(--text-3);
  font-size: 0.8125rem;
}

.reverse-v {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reverse-card:hover .route-arrow {
  color: var(--brand-text);
  transform: translateX(3px);
}

/* faq */

.faq-wrap {
  display: grid;
  gap: 8px;
}

@media (min-width: 960px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 64px;
  }

  .faq-wrap > .section-head {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover .faq-q {
  color: var(--brand-text);
}

.faq-q {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-caret {
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-caret {
  transform: rotate(180deg);
}

.faq-a {
  max-width: 64ch;
  padding: 0 0 20px;
  color: var(--text-2);
}

.faq-a p + p {
  margin-top: 10px;
}

.faq-group {
  margin: 44px 0 6px;
}

.faq-group:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------------ price chart */

.section-chart {
  padding-top: 0;
  border-top: 0;
}

.chart {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  transition: opacity 0.2s;
}

.chart.is-loading {
  opacity: 0.55;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.chart-title {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.chart-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.chart-value .num {
  font-weight: 500;
  letter-spacing: -0.04em;
}

.chart-unit {
  color: var(--text-2);
  font-size: 1.125rem;
}

.chart-change {
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 0.8125rem/1.3 var(--mono);
}

.chart-change.is-up {
  background: var(--ok-soft);
  color: var(--ok);
}

.chart-change.is-down {
  background: var(--bad-soft);
  color: var(--bad);
}

.chart-sub {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.chart-ranges {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--inset);
}

.chart-ranges a {
  min-width: 46px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text-2);
  font: 600 0.8125rem/1.2 var(--mono);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.chart-ranges a:hover {
  color: var(--text);
}

.chart-ranges a[aria-current="true"] {
  background: var(--surface-3);
  color: var(--text);
}

.chart-plot {
  position: relative;
  margin-top: 18px;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: pan-y;
}

.chart-plot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.chart-plot svg {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}

@media (max-width: 560px) {
  .chart-plot svg {
    height: 180px;
  }

  .chart-range-hl {
    display: none;
  }
}

.chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-base {
  stroke: var(--text-3);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

.chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-cross {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--text-3);
  opacity: 0.6;
  pointer-events: none;
}

.chart-dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 6px var(--brand-soft);
  pointer-events: none;
}

.chart-tip {
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  color: var(--text-3);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}

.chart-tip b {
  color: var(--text);
  font: 600 0.9375rem/1.2 var(--mono);
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--text-3);
  font: 400 0.75rem/1.4 var(--mono);
}

.chart-foot b {
  color: var(--text-2);
  font-weight: 500;
}

.chart-cap {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------ coin list page */

.coin-filter {
  display: grid;
  gap: 10px;
}

@media (min-width: 760px) {
  .coin-filter {
    grid-template-columns: minmax(0, 1fr) 230px 230px auto;
  }
}

.search-box {
  position: relative;
}

.search-box .i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box .input {
  padding-left: 42px;
}

.coin-count {
  margin: 18px 0 10px;
  color: var(--text-3);
  font: 400 0.8125rem/1.4 var(--mono);
}

.coin-list-head {
  display: none;
}

.coin-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.coin-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: auto 116px;
}

.coin-list li > .coin-cell,
.coin-list li > .coin-net {
  grid-column: 1 / -1;
}

.coin-list-pick li {
  grid-template-columns: minmax(0, 1fr);
}

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

.coin-txt {
  display: grid;
  min-width: 0;
}

.coin-sym {
  font-weight: 600;
}

.coin-name {
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin-net {
  color: var(--text-2);
  font-size: 0.875rem;
}

@media (max-width: 759px) {
  .coin-list li > .coin-net {
    margin-top: -6px;
    padding-left: 40px;
    color: var(--text-3);
    font-size: 0.8125rem;
  }
}

@media (min-width: 760px) {
  .coin-list-head,
  .coin-list li {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 200px 200px;
    gap: 16px;
  }

  .coin-list-pick li,
  .coin-list-head:has(+ .coin-list-pick) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 220px;
  }

  .coin-list-head {
    display: grid;
    padding: 0 0 10px;
    color: var(--text-3);
    font: 500 0.6875rem/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .coin-list li {
    align-items: center;
    padding: 10px 0;
    contain-intrinsic-size: auto 62px;
  }

  .coin-list li > .coin-cell,
  .coin-list li > .coin-net {
    grid-column: auto;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 6px 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}

a.pill:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.pill-off {
  border-style: dashed;
  color: var(--text-3);
  font-weight: 400;
}

.empty {
  padding: 32px 0;
  color: var(--text-3);
  text-align: center;
}

/* ------------------------------------------------------------------ status page */

.tx-title .mono {
  font-weight: 500;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.tx-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.tx-wrap {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .tx-wrap {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 40px;
  }

  .tx-aside {
    position: sticky;
    top: 24px;
  }
}

.tx-main,
[data-tx-live] {
  display: grid;
  gap: 20px;
}

.tx-status,
.deposit,
.tx-details-wrap {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

@media (min-width: 640px) {
  .tx-status,
  .deposit,
  .tx-details-wrap {
    padding: 24px;
  }
}

.tx-status {
  display: grid;
  gap: 20px;
}

.tx-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.badge-live {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-out infinite;
}

.tx-updated {
  color: var(--text-3);
  font: 400 0.8125rem/1.4 var(--mono);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-2);
}

.step:first-child::before {
  display: none;
}

.step-done::before,
.step-current::before {
  background: var(--brand);
}

.step-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
}

.step-done .step-dot {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.step-done .step-dot .i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.step-current .step-dot {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.step-current .step-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.step-label {
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: 1.3;
}

.step-done .step-label,
.step-current .step-label {
  color: var(--text-2);
}

.step-current .step-label {
  font-weight: 600;
}

.deposit {
  display: grid;
  gap: 20px;
  border-color: var(--brand-line);
  background: linear-gradient(180deg, var(--brand-soft), transparent 45%), var(--surface);
}

.deposit-body {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .deposit-body {
    grid-template-columns: 188px minmax(0, 1fr);
    align-items: start;
  }
}

.qr {
  width: 188px;
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 10px;
  border-radius: var(--r-lg);
  background: #fff;
}

.qr:empty {
  display: none;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.deposit-fields {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.kv {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.kv-k {
  color: var(--text-3);
  font-size: 0.8125rem;
}

.kv-v {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kv-addr {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.addr {
  min-width: 0;
  color: var(--text);
  font: 500 0.9375rem/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.num-lg {
  font-size: 1.5rem;
  font-weight: 500;
}

.kv-alert {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--r-md);
  background: var(--warn-soft);
}

.kv-alert .kv-k {
  color: var(--warn);
  font-weight: 600;
}

.kv-note {
  color: var(--text-2);
  font-size: 0.8125rem;
}

.deadline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warn);
  font: 400 0.875rem/1.4 var(--mono);
}

.deposit-tips {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 16px 0 0 18px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.875rem;
}

.tx-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 24px;
  margin: 16px 0 0;
}

.tx-details .wide {
  grid-column: 1 / -1;
}

.tx-details dt {
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.tx-details dd {
  margin: 0;
}

.addr-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.addr-link:hover code {
  text-decoration: underline;
}

.addr-link .i {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--text-3);
}

.tx-aside {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.tx-aside code {
  color: var(--text);
}

/* ------------------------------------------------------------------ articles, forms */

.article .prose h2 {
  margin: 44px 0 12px;
  font-size: 1.5rem;
}

.callout {
  margin-bottom: 8px;
  padding: 16px 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg);
  background: var(--brand-soft);
}

.callout p {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.track-form {
  max-width: 600px;
  margin-top: 24px;
}

.mode-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 860px) {
  .mode-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.mode-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--brand-soft), transparent 45%), var(--surface);
}

.mode-card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.mode-card p {
  color: var(--text-2);
}

.mode-card .link-arrow {
  margin-top: 6px;
}

/* Contact form. The honeypot field is moved off screen; people never see or reach it. */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrap-mid {
  --wrap: 1040px;
}

.contact-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }
}

.contact-form {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.contact-form > .notice {
  margin-bottom: 8px;
}

.field-row {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.textarea {
  min-height: 170px;
  line-height: 1.55;
  resize: vertical;
}

.contact-submit {
  margin: 18px 0 10px;
}

.contact-side {
  display: grid;
  gap: 12px;
}

.contact-sent {
  margin-bottom: 20px;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text-2);
}

.contact-card .feat-icon {
  margin-bottom: 4px;
}

.contact-card .h3 {
  color: var(--text);
}

.contact-mail {
  font-size: 1.1875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-more {
  margin-top: 40px;
}

.track-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.track-row .input {
  flex: 1 1 260px;
}

.debug {
  margin-top: 16px;
  padding: 12px;
  overflow: auto;
  border-radius: var(--r-md);
  background: var(--inset);
  color: var(--bad);
  font: 400 0.8125rem/1.5 var(--mono);
}

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

.site-footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-about {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }

  .footer-about {
    grid-column: auto;
  }
}

.footer-about p {
  max-width: 28ch;
  margin-top: 12px;
  color: var(--text-3);
}

.footer-h {
  margin-bottom: 12px;
}

/* Chain logos: a tidy grid of round tiles that lift with an orange glow on hover or focus. */
.site-footer .chain-stack {
  display: grid;
  grid-template-columns: repeat(6, 38px);
  gap: 10px;
  margin: 22px 0 0;
}

.site-footer .chain-stack a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.site-footer .chain-stack a:hover,
.site-footer .chain-stack a:focus-visible {
  box-shadow: inset 0 0 0 1px var(--brand-line), 0 8px 20px -8px var(--brand);
  transform: translateY(-2px);
}

.chain-stack img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.site-footer ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  display: inline-block;
  padding: 5px 0;
  color: var(--text-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer ul a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-fine {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}

.footer-fine a {
  color: var(--text-2);
}

/* ------------------------------------------------------------------ coin picker (built by app.js) */

.picker {
  width: min(100% - 24px, 460px);
  max-height: min(100dvh - 48px, 720px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-pop);
}

.picker[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.18s var(--ease);
}

.picker::backdrop {
  background: var(--scrim);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 6px 20px;
}

.picker-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.picker-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.picker-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.picker-search {
  position: relative;
  padding: 4px 16px 10px;
}

.picker-search .i {
  position: absolute;
  top: calc(50% - 3px);
  left: 30px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.picker-search .input {
  padding-left: 42px;
}

.picker-list {
  flex: 1;
  margin: 0;
  padding: 4px 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.picker-group {
  padding: 14px 12px 6px;
  color: var(--text-3);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.picker-item:hover,
.picker-item.is-active {
  background: var(--surface-2);
}

.picker-item[aria-selected="true"] {
  background: var(--brand-soft);
}

.picker-item .ci {
  width: 32px;
  height: 32px;
}

.picker-txt {
  display: grid;
  min-width: 0;
}

.picker-sym {
  font-weight: 600;
}

.picker-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.net-pill-sm {
  padding: 1px 8px 1px 2px;
  font-size: 0.6875rem;
}

.net-pill-sm .net-ci {
  width: 14px;
  height: 14px;
}

.picker-name {
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-check {
  margin-left: auto;
  color: var(--brand-text);
}

.picker-note {
  padding: 16px 12px;
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 560px) {
  .picker {
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

/* ------------------------------------------------------------------ motion and micro-interactions */

html {
  scroll-behavior: smooth;
}

/* The glow behind the hero drifts slowly. */
@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-70px, 50px, 0) scale(1.08); }
}

.hero::before {
  animation: glow-drift 20s ease-in-out infinite;
  will-change: transform;
}

/* Sections fade in as they scroll into view (classes are added by JS, so nothing hides without it). */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal-group > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal-group.is-in > * {
  opacity: 1;
  transform: none;
}

/* Cards lift a little under the pointer. */
.steps li,
.flow-node,
.about-card,
.pitfalls li,
.glossary > div,
.trust-card,
.mode-card,
.contact-card,
.reverse-card,
.receipt,
.family-link,
.toc a,
.route {
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.2s;
}

@media (hover: hover) {
  .steps li:hover,
  .flow-node:hover,
  .about-card:hover,
  .pitfalls li:hover,
  .glossary > div:hover,
  .trust-card:hover,
  .mode-card:hover,
  .contact-card:hover,
  .route:hover {
    transform: translate3d(0, -3px, 0);
    border-color: var(--line-2);
    box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.55);
  }

  .reverse-card:hover,
  .family-link:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 16px 36px -22px var(--glow);
  }

  .features li {
    transition: background-color 0.25s;
  }

  .features li:hover {
    background: var(--surface);
  }

  .features li:hover .feat-icon,
  .trust-card:hover .feat-icon,
  .mode-card:hover .feat-icon {
    transform: scale(1.06) rotate(-4deg);
  }

  .btn-primary:hover {
    box-shadow: 0 12px 32px -12px var(--brand);
  }
}

.feat-icon {
  transition: transform 0.3s var(--ease);
}

.btn {
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.12s var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* The estimate flashes when a new quote arrives. */
@keyframes flash-in {
  from { color: var(--brand-text); text-shadow: 0 0 22px var(--glow); }
  to { color: inherit; text-shadow: none; }
}

.amount-out.flash {
  animation: flash-in 0.9s var(--ease);
}

/* The swap direction button spins when pressed. */
@keyframes spin-half {
  to { transform: rotate(180deg); }
}

.flip.spin .i {
  animation: spin-half 0.45s var(--ease);
}

/* The page menu on landing pages marks the section being read (it is sticky, see .toc). */
.toc a.is-active {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--text);
}

.section[id] {
  scroll-margin-top: 84px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.25s, transform 0.25s var(--ease), border-color 0.2s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.to-top .i {
  transform: rotate(-90deg);
}

.to-top.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  border-color: var(--brand-line);
  color: var(--brand-text);
}

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

/* ------------------------------------------------------------------ coin landing pages */

.toc {
  position: sticky;
  top: 0;
  z-index: 30;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.toc .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc .wrap::-webkit-scrollbar {
  display: none;
}

.toc-k {
  flex: none;
  color: var(--text-3);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.toc a:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--text);
}

.section[id] {
  scroll-margin-top: 72px;
}

.split {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 32px;
  }
  .split-prose {
    gap: 64px;
  }
}

.split-prose .prose p {
  max-width: 40rem;
}

.facts-card .mini-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: 1rem;
}

.facts-card .facts > div:last-child {
  border-bottom: 0;
}

.sub-h {
  margin: 56px 0 18px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

/* data tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.dtable th,
.dtable td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dtable thead th,
.dtable thead td {
  background: var(--surface-2);
  color: var(--text-3);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dtable tbody tr:last-child > * {
  border-bottom: 0;
}

.dtable tbody th {
  font-weight: 600;
}

.dtable td {
  color: var(--text-2);
}

.dtable-calc td,
.dtable-calc th {
  vertical-align: middle;
  white-space: nowrap;
}

.dtable-calc tbody td:nth-child(2) {
  color: var(--text);
  font-weight: 600;
}

.dtable-calc tbody tr:hover > * {
  background: var(--surface-2);
}

.cell-coin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dtable thead .cell-coin {
  color: var(--text);
  font: 600 0.9375rem/1.2 var(--font);
  letter-spacing: 0;
  text-transform: none;
}

.dtable-compare {
  min-width: 560px;
}

.dtable-compare tbody th {
  width: 26%;
  color: var(--text-3);
  font-weight: 500;
}

.dtable-compare .col-xmr {
  background: var(--brand-soft);
  color: var(--text);
}

.dtable-compare thead .col-xmr {
  box-shadow: inset 0 2px 0 var(--brand);
}

.dtable-ways {
  min-width: 860px;
}

.dtable-ways .row-hl > * {
  background: var(--brand-soft);
  color: var(--text);
}

.dtable-ways .row-hl th {
  box-shadow: inset 3px 0 0 var(--brand);
}

.prose-cols {
  display: grid;
  gap: 14px 40px;
  margin-top: 28px;
}

.prose-cols p + p {
  margin-top: 0;
}

@media (min-width: 960px) {
  .prose-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* checklist */

.checklist-card {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--ok-soft), transparent 40%), var(--surface);
}

.checklist-card h3 {
  margin-bottom: 14px;
  font-size: 1.0625rem;
}

.checklist {
  display: grid;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .checklist {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.checklist .i {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}

@media (min-width: 1100px) {
  .features-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* route: where the coins go */

.flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

.flow-node {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.flow-node:first-child,
.flow-node:last-child {
  border-color: var(--brand-line);
  background: linear-gradient(160deg, var(--brand-soft), transparent 55%), var(--surface);
}

@media (min-width: 1100px) {
  .flow-node + .flow-node::before {
    content: "";
    position: absolute;
    top: 43px;
    left: -29px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--line-2), var(--brand));
  }
  .flow-node + .flow-node::after {
    content: "";
    position: absolute;
    top: 39px;
    left: -6px;
    border: 5px solid transparent;
    border-left-color: var(--brand);
  }
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--inset);
  color: var(--brand-text);
}

.flow-n {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--text-3);
  font: 500 0.8125rem/1 var(--mono);
}

.flow-node h3 {
  margin-top: 18px;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.flow-node p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font: 500 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-public {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag-private {
  background: var(--ok-soft);
  color: var(--ok);
}

/* same coin on other networks */

.family {
  margin-top: 8px;
}

.family .muted {
  max-width: 44rem;
  margin: -8px 0 16px;
}

.family-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.family-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.family-link:hover {
  border-color: var(--brand-line);
  background: var(--surface-2);
}

/* mistakes to avoid */

.pitfalls {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .pitfalls {
    grid-template-columns: 1fr 1fr;
  }
}

.pitfalls li {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.pitfall-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  color: var(--warn);
}

.pitfalls h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.pitfalls p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Monero roadmap */

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-2), var(--brand));
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -28px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
}

.timeline .tl-next::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.tl-year {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-text);
  font: 500 0.8125rem/1 var(--mono);
}

.prose-wide p {
  max-width: 48rem;
}

.timeline h3 {
  margin-top: 6px;
  font-size: 1.0625rem;
}

.timeline p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .split-sticky > :first-child {
    position: sticky;
    top: 96px;
  }
}

/* company address and phone */

.contact-addr {
  color: var(--text);
  font-style: normal;
  line-height: 1.6;
}

.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-tel:hover {
  color: var(--brand-text);
}

.contact-tel .i {
  color: var(--brand-text);
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 0.875rem;
  font-style: normal;
}

.footer-contact span,
.footer-contact a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 34ch;
}

.footer-contact a {
  width: fit-content;
  color: var(--text-2);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-contact .i {
  flex: none;
  margin-top: 2px;
  color: var(--brand-text);
}

/* landing: worked example */

.walk {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.walk li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-2);
}

.walk li:first-child {
  padding-top: 0;
}

.walk li:last-child {
  border-bottom: 0;
}

@media (max-width: 600px) {
  .walk li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.walk-when {
  padding-top: 3px;
  color: var(--brand-text);
  font: 500 0.8125rem/1.4 var(--mono);
}

.walk h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.walk p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.receipt {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--brand-soft), transparent 50%), var(--surface);
  box-shadow: var(--shadow-card);
}

.receipt-k {
  color: var(--text-3);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receipt-v {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.receipt-get {
  color: var(--brand-text);
}

.receipt-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 6px 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-3);
  transform: rotate(90deg);
}

.receipt .facts {
  margin: 10px 0 14px;
}

.receipt .facts > div:last-child {
  border-bottom: 0;
}

/* landing: wallets table */

.dtable-wallets {
  min-width: 720px;
}

.dtable-wallets tbody th {
  white-space: nowrap;
}

.pill-type {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* landing: if something goes wrong */

.pitfalls-help .pitfall-icon {
  background: var(--info-soft);
  color: var(--info);
}

.section-head-row .btn .i {
  margin-right: 6px;
}

/* landing: glossary */

.glossary {
  display: grid;
  gap: 12px;
  margin: 0;
}

@media (min-width: 720px) {
  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .glossary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.glossary > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.glossary dt {
  color: var(--text);
  font-weight: 600;
}

.glossary dt::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: 1px;
}

.glossary dd {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Telegram support */

.contact-card-tg {
  border-color: var(--brand-line);
  background: linear-gradient(160deg, var(--brand-soft), transparent 55%), var(--surface);
}

.contact-card-tg .btn .i,
.cta-pair .btn .i {
  margin-right: 8px;
}

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* landing hero: share image under the copy on desktop, under the form on phones */

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.share-k {
  margin-right: 4px;
  color: var(--text-3);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.share-btn:hover {
  border-color: var(--brand-line);
  color: var(--text);
}

.share-btn .i {
  width: 15px;
  height: 15px;
}

@media (min-width: 1024px) {
  .hero-visual-on .hero-in {
    grid-template-areas: "copy form" "visual form";
    grid-template-rows: auto 1fr;
    row-gap: 36px;
  }
  .hero-visual-on .hero-copy {
    grid-area: copy;
  }
  .hero-visual-on .hero-form {
    grid-area: form;
  }
  .hero-visual-on .hero-visual {
    grid-area: visual;
    align-self: start;
    max-width: 620px;
  }
}

.share-btn.is-done {
  border-color: var(--ok);
  color: var(--ok);
}

/* Room between the "On this page" bar and the chart under it */
.toc + .section-chart {
  padding-top: 32px;
}

@media (min-width: 1024px) {
  .toc + .section-chart {
    padding-top: 48px;
  }
}

/* The bar scrolls sideways: fade the right edge so the cut-off chip reads as "more" */
.toc .wrap {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  padding-right: 56px;
}

/* Range tabs: a little air between the buttons */
.chart-ranges {
  gap: 6px;
  padding: 4px;
}

.chart-ranges a {
  min-width: 50px;
  padding: 8px 12px;
}

/* trust center */

.trust-cards {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .trust-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .trust-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.trust-card:hover {
  border-color: var(--brand-line);
  background: var(--surface-2);
}

.trust-card .feat-icon {
  margin-bottom: 8px;
}

.trust-card-t {
  font-size: 1.0625rem;
  font-weight: 600;
}

.trust-card-d {
  padding-right: 24px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.trust-card-go {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--text-3);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.trust-card:hover .trust-card-go {
  color: var(--brand-text);
  transform: translateX(3px);
}

.policy-date {
  margin-top: 14px;
  color: var(--text-3);
  font: 500 0.8125rem/1.3 var(--mono);
}

.sub-h-first {
  margin-top: 8px;
}

.table-note {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 0.875rem;
}

.cell-link {
  color: var(--text);
  text-decoration: none;
}

.cell-link:hover {
  color: var(--brand-text);
}

.cell-link .ci + .ci {
  margin-left: -10px;
  box-shadow: 0 0 0 2px var(--surface);
  border-radius: 50%;
}

.article .table-wrap {
  margin: 8px 0 8px;
}

.prose .prose-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.prose .prose-steps li::marker {
  color: var(--brand-text);
  font-family: var(--mono);
}

.trust a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.trust a:hover {
  text-decoration-color: currentColor;
}

/* "My address does not need a memo" box under the memo field */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.875rem;
  cursor: pointer;
}

.check[hidden] {
  display: none;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* My swaps */

.hist-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hist-link {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}

.hist-link:hover {
  border-color: var(--brand-line);
  background: var(--surface-2);
}

.hist-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hist-pair {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-meta {
  overflow: hidden;
  color: var(--text-3);
  font: 500 0.75rem/1.3 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.hist-remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}

.hist-remove:hover {
  border-color: var(--bad);
  color: var(--bad);
}

.hist-empty {
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  color: var(--text-2);
  text-align: center;
}

.hist-empty p + p {
  margin-top: 14px;
}

.hist-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.hist-tools .check {
  margin-top: 0;
}

.hist-recent {
  margin-top: 40px;
}

@media (max-width: 560px) {
  .hist-link {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .hist-status {
    grid-column: 2;
    justify-self: start;
  }
}
