:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --surface-3: #202026;
  --popover: #16161a;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #63636e;
  --accent: #8b7cff;
  --accent-hover: #9d90ff;
  --ok: #4ade80;
  --danger: #f87171;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: #2a2a31 var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(700px 420px at 50% 30%, rgba(139, 124, 255, .1), transparent 70%);
}

button,
input {
  font: inherit;
  color: inherit;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(139, 124, 255, .35);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out .16s ease-in both;
}

::view-transition-new(root) {
  animation: fade-in .28s var(--ease) both;
}

::view-transition-group(site-nav) {
  animation: none;
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* header */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px max(var(--gutter), calc((100% - 1040px) / 2));
  padding-top: max(16px, env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
  view-transition-name: site-nav;
}

.nav.scrolled {
  background: rgba(9, 9, 11, .75);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

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

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  transition: transform .3s var(--ease);
}

.brand span {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.links ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}

.bars i:first-child { top: 0; }
.bars i:last-child { top: 8.5px; }

.menu-toggle.open .bars i:first-child {
  top: 4.25px;
  transform: rotate(45deg);
}

.menu-toggle.open .bars i:last-child {
  top: 4.25px;
  transform: rotate(-45deg);
}

/* layout */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px var(--gutter) 48px;
}

main > * {
  animation: rise .5s var(--ease) backwards;
}

main > :nth-child(2) { animation-delay: .06s; }
main > :nth-child(3) { animation-delay: .12s; }

.page {
  padding-bottom: 64px;
}

.hero {
  max-width: 640px;
  margin-bottom: 36px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, #b9b9c3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .hl {
  background: linear-gradient(90deg, #a99dff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 460px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
}

/* swap form */

.field {
  padding: 16px 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}

.field:focus-within {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.field.valid {
  border-color: rgba(74, 222, 128, .35);
}

.field.invalid,
.field.invalid:focus-within {
  border-color: rgba(248, 113, 113, .5);
}

.label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

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

.amount {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.amount[readonly] {
  cursor: default;
}

.field-addr {
  margin-top: 8px;
}

.addr {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 15px;
  text-overflow: ellipsis;
}

.addr::placeholder,
.menu-search::placeholder {
  color: var(--faint);
}

.paste {
  flex: none;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.paste[hidden] {
  display: none;
}

.hint {
  font-size: 12px;
  color: var(--danger);
}

.hint:not(:empty) {
  margin-top: 8px;
}

.refund {
  margin-top: 8px;
  interpolate-size: allow-keywords;
}

.refund summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color .15s, background .15s;
}

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

.refund summary em {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font-size: 11px;
  font-style: normal;
  color: var(--faint);
}

.refund[open] .chev {
  transform: rotate(180deg);
}

.refund::details-content,
.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition: height .3s var(--ease), content-visibility .3s allow-discrete;
}

.refund[open]::details-content,
.faq-item[open]::details-content {
  height: auto;
}

.refund-field {
  margin-top: 4px;
}

.switch-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8px;
}

.switch {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid var(--surface);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, transform .35s var(--ease);
}

.switch:active {
  transform: rotate(180deg) scale(.92);
}

.summary {
  display: grid;
  gap: 8px;
  margin: 12px 10px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary dt {
  color: var(--faint);
}

.summary dd {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cta {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(139, 124, 255, .6);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .05s, opacity .15s;
}

.cta:active {
  transform: scale(.995);
}

a.cta {
  display: block;
  text-align: center;
  text-decoration: none;
}

.cta:disabled {
  opacity: .6;
  cursor: progress;
}

.ghost {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}

.err {
  font-size: 13px;
  text-align: center;
  color: var(--danger);
}

.err:not(:empty) {
  padding: 10px 0 4px;
}

.sk {
  display: none;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.sk-amount {
  flex: 1;
  max-width: 180px;
  height: 30px;
  margin-right: auto;
}

.sk-rate {
  width: 150px;
  height: 12px;
  border-radius: 6px;
}

.is-loading .sk { display: block; }
.is-loading #getAmt,
.is-loading #rate { display: none; }

.is-loading .cta {
  opacity: .6;
  cursor: progress;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--faint);
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* swap page */

.pill {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(139, 124, 255, .12);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-hover);
  white-space: nowrap;
}

.pill[data-tone="ok"] {
  background: rgba(74, 222, 128, .12);
  color: var(--ok);
}

.pill[data-tone="bad"] {
  background: rgba(248, 113, 113, .12);
  color: var(--danger);
}

.swap-page {
  padding-top: 40px;
}

.swap-view {
  max-width: 520px;
  padding: 20px;
}

.sw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sw-id {
  min-width: 0;
}

.sw-id .label {
  margin-bottom: 2px;
  font-size: 12px;
}

.sw-id-value {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}

.sw-id-value span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-id-value svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--faint);
  transition: color .15s;
}


.sw-pair {
  position: relative;
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.sw-pair:empty {
  display: none;
}

.sw-side {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
}

.sw-side .ic {
  width: 36px;
  height: 36px;
}

.sw-side-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sw-side small {
  font-size: 13px;
  color: var(--muted);
}

.sw-net {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.sw-amount {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.sw-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.sw-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 4px solid var(--surface);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  transform: translate(-50%, -50%);
}

.sw-arrow svg {
  width: 14px;
  height: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 20px;
  list-style: none;
  font-size: 11px;
  color: var(--faint);
}

.steps:empty {
  display: none;
}

.steps li {
  padding-top: 10px;
  border-top: 2px solid var(--surface-3);
  transition: color .3s, border-color .3s;
}

.steps li.done {
  border-top-color: var(--accent);
  color: var(--muted);
}

.steps li.current {
  border-top-color: var(--accent);
  color: var(--text);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { border-top-color: rgba(139, 124, 255, .35); }
}

.stage {
  margin-top: 20px;
}

.deposit-box {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
}

.qr {
  position: relative;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  line-height: 0;
}

.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 33%;
  height: auto;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.info-row .label {
  margin-bottom: 6px;
  font-size: 12px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-row > :first-child {
  flex: 1;
  min-width: 0;
}

.dep-amount {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dep-amount small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.dep-value {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: all;
}

.memo {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(250, 204, 21, .3);
  border-radius: 14px;
  background: rgba(250, 204, 21, .06);
}

.memo .label {
  color: #facc15;
}

.waiting-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.spinner {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(139, 124, 255, .25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.stage-msg {
  padding: 24px 12px 8px;
  text-align: center;
}

.stage-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(139, 124, 255, .12);
  color: var(--accent);
}

.stage-icon svg {
  width: 26px;
  height: 26px;
}

.stage-icon .spinner {
  width: 24px;
  height: 24px;
  border-width: 2.5px;
}

.stage-msg[data-tone="ok"] .stage-icon {
  background: rgba(74, 222, 128, .12);
  color: var(--ok);
}

.stage-msg[data-tone="bad"] .stage-icon {
  background: rgba(248, 113, 113, .12);
  color: var(--danger);
}

.stage-msg h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.stage-msg p {
  max-width: 360px;
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.stage-msg strong {
  color: var(--text);
}

.stage-msg .addr-inline {
  font-size: 13px;
  color: var(--text);
}

.tx-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
}

.sw-details {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  interpolate-size: allow-keywords;
}

.sw-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 4px;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}

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

.sw-details[open] .chev {
  transform: rotate(180deg);
}

.sw-details::details-content {
  height: 0;
  overflow: clip;
  transition: height .3s var(--ease), content-visibility .3s allow-discrete;
}

.sw-details[open]::details-content {
  height: auto;
}

.sw-rows {
  display: grid;
  gap: 10px;
  padding: 12px 4px 4px;
  font-size: 13px;
}

.sw-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.sw-rows dt {
  color: var(--faint);
}

.sw-rows dd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
}

.sw-rows .sw-val {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-rows .paste {
  padding: 4px 8px;
  font-size: 11px;
}

.swap-view.is-missing .sw-head,
.swap-view.is-missing .sw-details {
  display: none;
}

.actions:not(:empty) {
  margin-top: 16px;
}

a.ghost {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* coin picker */

.coin-wrap {
  position: relative;
  flex: none;
}

.coin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}

.coin-btn:active {
  transform: scale(.97);
}

.coin-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.ic {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.net {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}

.net[data-net="TRC20"] {
  background: rgba(255, 6, 10, .14);
  color: #ff6b6e;
}

.net[data-net="ERC20"] {
  background: rgba(98, 126, 234, .16);
  color: #8fa5ff;
}

.net[data-net="SOL"] {
  background: rgba(20, 241, 149, .12);
  color: #3ee8a6;
}

.chev {
  flex: none;
  width: 10px;
  height: 10px;
  color: var(--muted);
  transition: transform .2s var(--ease);
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 260px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--popover);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}

.menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.menu-search {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  outline: 0;
  background: none;
  font-size: 14px;
}

.menu-list {
  max-height: min(300px, 45vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2a2a31 transparent;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.menu-item:focus-visible {
  outline: 0;
  background: var(--surface-3);
}

.menu-item.active {
  background: rgba(139, 124, 255, .12);
}

.menu-item .t {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.menu-item b {
  font-size: 14px;
  font-weight: 600;
}

.menu-item small {
  font-size: 12px;
  color: var(--faint);
}

.menu-empty {
  padding: 16px;
  font-size: 13px;
  text-align: center;
  color: var(--faint);
}

/* inner pages */

.track-form .cta {
  margin-top: 8px;
}

.faq {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 680px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  interpolate-size: allow-keywords;
  transition: border-color .2s, background .2s;
}

.faq-item[open] {
  background: var(--surface-2);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform .3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.prose {
  max-width: 680px;
  padding: 32px;
}

.prose h2 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

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

.prose p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 124, 255, .35);
  transition: border-color .15s;
}

.terms section + section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.terms h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
}

.terms h2 span {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.terms p {
  padding-left: 30px;
}

/* footer */

.foot {
  font-size: 13px;
  color: var(--faint);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px var(--gutter);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot a {
  color: var(--faint);
  text-decoration: none;
  transition: color .15s;
}

@media (hover: hover) {
  .brand:hover img { transform: rotate(-6deg) scale(1.05); }
  .links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
  .paste:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
  .refund summary:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
  .switch:hover { color: var(--text); transform: rotate(180deg); }
  .cta:hover:not(:disabled) { background: var(--accent-hover); }
  .ghost:hover { color: var(--text); }
  .sw-details summary:hover { color: var(--text); }
  .sw-id-value:hover svg { color: var(--text); }
  .coin-btn:hover { background: #28282f; border-color: var(--border-strong); }
  .menu-item:hover { background: var(--surface-3); }
  .faq-item:hover { border-color: var(--border-strong); }
  .prose a:hover { border-bottom-color: var(--accent); }
  .foot a:hover { color: var(--text); }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: grid;
  }

  .links {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: var(--popover);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }

  .links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .links ul {
    flex-direction: column;
  }

  .links a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .foot-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .addr,
  .menu-search {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 32px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero p br {
    display: none;
  }

  .amount {
    font-size: 24px;
  }

  .menu {
    width: min(260px, calc(100vw - 48px));
  }

  .prose {
    padding: 22px;
  }

  .terms p {
    padding-left: 0;
  }

  .steps {
    font-size: 10px;
  }

  .swap-view {
    padding: 14px;
  }

  .deposit-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .deposit-box .qr {
    width: 180px;
  }

  .deposit-info {
    width: 100%;
  }

  .sw-side {
    gap: 10px;
    padding: 14px;
  }

  .sw-side .ic {
    width: 30px;
    height: 30px;
  }

  .sw-amount {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 6px;
  }

  .field {
    padding: 14px 12px 16px;
  }

  .amount {
    font-size: 21px;
  }

  .coin-btn {
    gap: 6px;
    padding-right: 10px;
    font-size: 14px;
  }

  .ic {
    width: 22px;
    height: 22px;
  }

  .foot nav {
    gap: 16px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  main {
    padding-top: 24px;
  }

  .hero {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after,
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
