/* Heistly — private payments, on paper */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/big-shoulders-display-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
}

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

@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-italic.woff2") format("woff2");
}

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

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #fbf7ec;
  --bg-2: #f4eedf;
  --panel: #efe4c8;
  --ink: #1c1b17;
  --muted: #3e3a32;
  --faint: #5a544a;
  --line: rgba(28, 27, 23, 0.14);
  --lime: #0a6b0c;
  --lime-2: #064e08;
  --green: #00c805;
  --green-deep: #009104;
  --highlighter: #ccff00;
  --gold: #7a5410;
  --gold-fill: #e8b44a;
  --gold-rule: #c9962e;
  --paper: #efe4c8;
  --paper-ink: #1c1b17;
  --paper-muted: #3f3c34;
  --shadow: 0 16px 36px rgba(72, 52, 16, 0.12);
  --header: 118px;
  --max: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(201, 150, 46, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 150, 46, 0.2) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.5;
  background-image: url("/assets/grain.png");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

html.has-atmosphere body {
  background-image: none;
}

html.has-atmosphere body::before {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
}

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

a {
  color: inherit;
}

:focus {
  outline: none;
}

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

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

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-140%);
  background: var(--green);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  z-index: 80;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.skip:focus {
  transform: none;
}

[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

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

main,
.site-footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.7rem);
}

h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
}

h3 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 0.95;
}

p {
  margin: 0;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.section {
  padding: 4.6rem 0;
}

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

.section-head h2,
.page-hero h1 {
  margin-bottom: 0.9rem;
}

.section-head p + p,
.prose p + p {
  margin-top: 0.85rem;
}

.prose a,
.link-arrow {
  color: var(--lime);
  text-underline-offset: 0.18em;
}

.link-arrow {
  display: inline-flex;
  margin-top: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.link-arrow::after {
  content: "→";
  margin-left: 0.45rem;
  transition: transform 0.25s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 238, 223, 0.94);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--gold-rule);
}

.class-bar,
.nav-row,
.footer-end {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.class-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem 1rem;
  min-height: 74px;
}

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

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem 0.75rem;
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--lime);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.file-no {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(251, 247, 236, 0.98);
  padding: calc(var(--header) + 0.4rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a[aria-current="page"] {
  color: var(--lime);
}

.mobile-nav .btn {
  margin-top: 1.1rem;
  align-self: flex-start;
}

html.js:not(.reduce-motion) body.nav-open .mobile-nav a {
  animation: rise 0.45s ease both;
}

html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(2) { animation-delay: 40ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(3) { animation-delay: 80ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(4) { animation-delay: 120ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(5) { animation-delay: 160ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(6) { animation-delay: 200ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(7) { animation-delay: 240ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(8) { animation-delay: 280ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(9) { animation-delay: 320ms; }
html.js:not(.reduce-motion) body.nav-open .mobile-nav a:nth-child(10) { animation-delay: 360ms; }

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.62) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 1;
}

.btn:hover::before {
  animation: shine 0.75s ease;
}

.btn-lime {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green-deep);
}

.btn-lime:hover {
  background: #00b004;
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(28, 27, 23, 0.28);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

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

.btn-ink:hover {
  background: #000;
}

.btn-soon {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-soon::before {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
  padding: 2.5rem 0 1.6rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.45);
  animation: pulse 2.2s ease infinite;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
  line-height: 0.86;
}

html.js:not(.reduce-motion) .hero h1 .line {
  max-width: 0;
  overflow: hidden;
  border-right: 2px solid transparent;
}

html.js:not(.reduce-motion) .hero h1 .line.is-typing {
  border-right-color: var(--ink);
  animation: caret 0.85s steps(1) infinite;
}

h1 em {
  font-style: normal;
  background: var(--highlighter);
  padding: 0 0.08em;
  box-decoration-break: clone;
}

html.js:not(.reduce-motion) .hero h1 em {
  background-color: transparent;
  background-image: linear-gradient(var(--highlighter), var(--highlighter));
  background-repeat: no-repeat;
  background-size: 0% 0.78em;
  background-position: 0 0.18em;
  padding: 0 0.08em;
}

html.js:not(.reduce-motion) .hero h1 em.is-marked {
  animation: mark 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero .lede {
  margin-top: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-strip li {
  display: inline-flex;
  align-items: center;
}

.rule-strip li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 0.65rem;
  background: var(--gold-rule);
}

html.js:not(.reduce-motion) .hero-copy > *:not(h1) {
  animation: rise 0.7s ease both;
}

html.js:not(.reduce-motion) .hero-copy > *:nth-child(2) { animation-delay: 80ms; }
html.js:not(.reduce-motion) .hero-copy > *:nth-child(4) { animation-delay: 160ms; }
html.js:not(.reduce-motion) .hero-copy > *:nth-child(5) { animation-delay: 240ms; }
html.js:not(.reduce-motion) .hero-copy > *:nth-child(6) { animation-delay: 320ms; }

/* Ticker */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--gold-rule);
  background: rgba(244, 238, 223, 0.72);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.72rem 0;
  white-space: nowrap;
}

.ticker-group span {
  padding: 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-group span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.85rem;
  background: var(--gold-fill);
  transform: rotate(45deg);
  vertical-align: 1px;
}

/* Hero illustration: vault, keyhole, sealed envelopes */

.stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.vault {
  position: relative;
  width: min(280px, 72%);
  aspect-ratio: 1;
  z-index: 1;
}

.vault-frame,
.vault-door,
.keyhole {
  position: absolute;
}

.vault-frame {
  inset: 0;
  border-radius: 50%;
  border: 12px solid var(--gold-rule);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 10px rgba(28, 27, 23, 0.06);
}

.vault-door {
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(155deg, #f7f1e2, #e4d0a4 46%, #c9962e);
  border: 1px solid rgba(122, 84, 16, 0.4);
  transform-origin: 18% 50%;
}

html.js:not(.reduce-motion) .vault-door {
  animation: ajar 6.2s ease-in-out infinite;
}

.keyhole {
  left: 58%;
  top: 44%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 2;
}

.keyhole::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 10px;
  height: 16px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

html.js:not(.reduce-motion) .keyhole {
  animation: key-pulse 6.2s ease-in-out infinite;
}

.env {
  position: absolute;
  width: 58px;
  height: 38px;
  background: var(--bg);
  border: 1.5px solid var(--gold-rule);
  box-shadow: var(--shadow);
  z-index: 2;
}

.env::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background:
    linear-gradient(to bottom right, transparent 49%, var(--gold-rule) 50%, transparent 51%),
    linear-gradient(to bottom left, transparent 49%, var(--gold-rule) 50%, transparent 51%);
}

.env-a { left: 8%; top: 18%; }
.env-b { right: 6%; top: 28%; }
.env-c { left: 14%; bottom: 12%; }

html.js:not(.reduce-motion) .env-a { animation: env-in 7s ease-in-out infinite; }
html.js:not(.reduce-motion) .env-b { animation: env-in 7s ease-in-out 1.4s infinite; }
html.js:not(.reduce-motion) .env-c { animation: env-in 7s ease-in-out 2.8s infinite; }

html.js:not(.reduce-motion) .stage {
  animation: desk-float-flat 8s ease-in-out infinite;
}

.step[data-step]::before {
  content: "";
  display: block;
  width: 46px;
  height: 32px;
  margin-bottom: 0.75rem;
}

.step[data-step="seal"]::before {
  background:
    linear-gradient(to bottom right, transparent 48%, var(--lime) 49% 51%, transparent 52%),
    linear-gradient(to bottom left, transparent 48%, var(--lime) 49% 51%, transparent 52%),
    var(--bg);
  border: 1.5px solid var(--lime);
}

.step[data-step="prove"]::before {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--lime);
  background:
    radial-gradient(circle at 50% 42%, var(--ink) 0 3px, transparent 4px),
    linear-gradient(var(--ink), var(--ink)) 50% 14px / 6px 10px no-repeat;
}

.step[data-step="driver"]::before {
  width: 42px;
  height: 14px;
  margin-top: 8px;
  background:
    linear-gradient(var(--lime), var(--lime)) 0 50% / 28px 2px no-repeat,
    linear-gradient(135deg, transparent 45%, var(--lime) 46% 54%, transparent 55%) 24px 0 / 14px 14px no-repeat;
}

.step[data-step="delivered"]::before {
  width: 46px;
  height: 14px;
  margin-top: 8px;
  background:
    linear-gradient(var(--lime), var(--lime)) 0 50% / 16px 2px no-repeat,
    linear-gradient(var(--lime), var(--lime)) 100% 50% / 16px 2px no-repeat,
    linear-gradient(var(--highlighter), var(--highlighter)) 50% 0 / 10px 14px no-repeat;
}

html.js:not(.reduce-motion) .step.is-on::before {
  animation: glyph 0.7s ease;
}

/* Desk preview */

.desk {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 26%),
    var(--paper);
  color: var(--paper-ink);
  border-left: 8px solid var(--gold-rule);
  box-shadow: var(--shadow);
  padding: 0.95rem 1rem 1rem;
}

.desk::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(28, 27, 23, 0.14);
  pointer-events: none;
}

html.js:not(.reduce-motion) .desk {
  animation: desk-float 7.5s ease-in-out infinite;
}

.desk-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(28, 27, 23, 0.14);
}

.dots {
  display: inline-flex;
  gap: 0.32rem;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-rule);
}

.dots i:first-child { background: #8e2a22; }
.dots i:nth-child(2) { background: var(--gold-fill); }
.dots i:nth-child(3) { background: var(--green); }

.window-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-pill,
.demo-flag span {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.05rem 0.4rem;
  background: var(--highlighter);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desk-top .demo-pill {
  margin-left: auto;
}

.desk-note,
.demo-flag {
  margin: 0.65rem 0 0;
  color: var(--paper-muted);
  font-size: 0.75rem;
}

.demo-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.balances {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

.balances li {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(28, 27, 23, 0.14);
}

.bal {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.balances li span:last-child {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flow-block {
  position: relative;
  margin-top: 0.95rem;
  padding-top: 0.15rem;
}

.flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.flow-steps li {
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.15rem;
  border: 1px solid rgba(28, 27, 23, 0.16);
  color: var(--paper-muted);
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.flow-steps li.is-on {
  background: var(--ink);
  color: var(--highlighter);
  transform: translateY(-3px);
}

.flow-track {
  height: 4px;
  margin-top: 0.55rem;
  background: rgba(28, 27, 23, 0.12);
  overflow: hidden;
}

.flow-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.45s ease;
}

.flow-caption {
  min-height: 2.6rem;
  margin: 0.55rem 5.5rem 0 0;
  font-size: 0.8rem;
  color: var(--paper-ink);
}

.desk .stamp {
  position: absolute;
  right: 0.1rem;
  bottom: 0.15rem;
  margin: 0;
}

.notes {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.notes li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.38rem 0;
  border-top: 1px solid rgba(28, 27, 23, 0.12);
  font-size: 0.78rem;
}

.notes .tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.08rem 0.32rem;
  background: var(--gold-fill);
}

.notes li.is-hot .tag {
  background: var(--green);
}

.notes li.is-hot {
  animation: note-pop 0.45s ease;
}

.stamp {
  display: inline-block;
  padding: 0.22rem 0.4rem;
  border: 3px solid var(--gold-rule);
  outline: 1px solid var(--gold-rule);
  outline-offset: 3px;
  background: var(--gold-fill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

html.js:not(.reduce-motion) .desk .stamp {
  opacity: 0;
}

html.js:not(.reduce-motion) .desk.is-delivered .stamp {
  animation: stamp-slam 0.48s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

/* Unlink */

.unlink {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.wallet-card {
  background: var(--panel);
  border: 1px solid rgba(28, 27, 23, 0.12);
  box-shadow: var(--shadow);
  padding: 1.15rem 1rem 1rem;
  transition: transform 0.45s ease;
}

html.js:not(.reduce-motion) .unlink .wallet-card:first-child {
  animation: wallet-left 6.4s ease-in-out -4.5s infinite;
}

html.js:not(.reduce-motion) .unlink .wallet-card:last-child {
  animation: wallet-right 6.4s ease-in-out -4.5s infinite;
}

.wallet-kicker {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wallet-card strong {
  display: block;
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.9;
}

.wallet-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

.unlink-bridge {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 0.35rem;
}

.half {
  display: block;
  height: 3px;
  background: var(--ink);
}

html.js:not(.reduce-motion) .half-l {
  transform-origin: left center;
  animation: reach 6.4s ease-in-out infinite;
}

html.js:not(.reduce-motion) .half-r {
  transform-origin: right center;
  animation: reach 6.4s ease-in-out infinite;
}

.cut-label {
  transform: rotate(-12deg);
  background: var(--highlighter);
  padding: 0.12rem 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* Cards, steps, chains */

.steps,
.chain-grid,
.card-grid,
.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chain-grid,
.card-grid.cols-3,
.spec {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chain-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step,
.chain-card,
.plain-card,
.spec > div,
.asset-card {
  background: var(--panel);
  border: 1px solid rgba(28, 27, 23, 0.12);
  box-shadow: var(--shadow);
  padding: 1.05rem 0.95rem 1.1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.step {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.step.is-on {
  border-color: var(--lime);
  transform: translateY(-8px);
  box-shadow: 0 20px 36px rgba(72, 52, 16, 0.16);
}

.step-no,
.chain-no {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.step.is-on .step-no {
  color: var(--lime);
}

.step h3,
.chain-card h3,
.plain-card h3,
.asset-card h3 {
  margin-bottom: 0.45rem;
}

.step p,
.chain-card p,
.plain-card p,
.asset-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .step:hover,
  .chain-card:hover,
  .plain-card:hover,
  .asset-card:hover,
  .folder-link:hover {
    transform: translateY(-8px) rotate(-0.4deg);
    border-color: var(--lime);
  }

  .step.is-on:hover {
    transform: translateY(-10px) rotate(-0.4deg);
  }
}

.chain-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.chain-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold-rule);
}

html.js:not(.reduce-motion) .chain-card::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 74, 0.35), transparent);
  animation: sweep 4.8s ease-in-out infinite;
}

.chain-card:nth-child(2)::after { animation-delay: 0.4s; }
.chain-card:nth-child(3)::after { animation-delay: 0.8s; }
.chain-card:nth-child(4)::after { animation-delay: 1.2s; }
.chain-card:nth-child(5)::after { animation-delay: 1.6s; }

.home-mark {
  color: var(--lime);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Token band, spec, faq, docs */

.token-band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding: 3.2rem 0;
}

.token-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: center;
}

.token-figure {
  justify-self: end;
  width: min(100%, 360px);
  background: var(--panel);
  border-left: 8px solid var(--gold-rule);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem 1rem;
}

.token-figure strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: 0.02em;
}

.spec > div dt {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec > div dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.spec dd.is-address {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}

.ca-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.2rem 0 1rem;
}

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

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lime);
  transition: transform 0.25s ease;
}

.faq[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--lime);
}

.faq .answer {
  padding: 0 0 1.05rem;
  max-width: 46rem;
  color: var(--muted);
}

.callout {
  border: 1px solid var(--gold-rule);
  background: rgba(232, 180, 74, 0.22);
  padding: 1rem 1.05rem;
  color: var(--ink);
}

.callout strong {
  color: var(--gold);
  font-weight: 600;
}

.two-col,
.wallet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.glossary {
  display: grid;
  gap: 0;
}

.glossary div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.glossary dt {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glossary dd {
  margin: 0;
  color: var(--muted);
}

.sample {
  margin: 0;
  padding: 1rem 1.05rem;
  background: var(--ink);
  color: var(--bg);
  overflow: auto;
  border-left: 8px solid var(--gold-rule);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  line-height: 1.7;
}

.sample code {
  font-family: inherit;
}

.page-hero {
  padding: 2.6rem 0 0.4rem;
  max-width: none;
}

.page-hero .lede {
  margin-top: 0.2rem;
}

.cta-band {
  padding: 4rem 0 4.4rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(0, 200, 5, 0.12), transparent 62%),
    var(--bg-2);
}

.cta-band .wrap {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.soon {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.not-found {
  min-height: calc(100vh - 280px);
  display: grid;
  align-content: center;
  padding: 4rem 0 5rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.8;
  color: var(--lime);
  margin: 0 0 0.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.15rem;
  background: var(--bg-2);
}

.footer-grid {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid p {
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 26rem;
  font-size: 0.88rem;
}

.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.35rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid a:hover {
  color: var(--lime);
}

.disclaimer {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-end {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.footer-end p {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.x-link {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.x-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.x-link:hover {
  background: var(--green);
  border-color: var(--green-deep);
}

/* Atmosphere */

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere-grid,
.atmosphere-grain,
.atmosphere-scan,
.paper {
  position: absolute;
  pointer-events: none;
}

.atmosphere-grid {
  inset: -20%;
  background-image:
    linear-gradient(rgba(201, 150, 46, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 150, 46, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-drift 48s linear infinite;
}

.atmosphere-grain {
  inset: -12%;
  opacity: 0.5;
  background-image: url("/assets/grain.png");
  background-repeat: repeat;
  mix-blend-mode: multiply;
  z-index: 70;
  animation: grain-drift 32s linear infinite;
}

.atmosphere-scan {
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  z-index: 65;
  background: linear-gradient(90deg, transparent, var(--gold-rule), transparent);
  box-shadow: 0 0 16px rgba(201, 150, 46, 0.55);
  opacity: 0.75;
  animation: scan 14s linear infinite;
}

.paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 40%),
    var(--panel);
  border: 1px solid rgba(201, 150, 46, 0.45);
  box-shadow: var(--shadow);
  opacity: 0.45;
}

.paper-a {
  width: 180px;
  height: 240px;
  left: 4vw;
  top: 18vh;
  animation: paper-a 16s ease-in-out infinite;
}

.paper-b {
  width: 140px;
  height: 190px;
  right: 6vw;
  top: 52vh;
  animation: paper-b 18s ease-in-out infinite;
}

.paper-c {
  width: 110px;
  height: 150px;
  left: 18vw;
  bottom: 8vh;
  animation: paper-c 20s ease-in-out infinite;
}

/* Motion */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(0, 200, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes caret {
  50% { border-right-color: transparent; }
}

@keyframes mark {
  to { background-size: 100% 0.78em; }
}

@keyframes shine {
  to { transform: translateX(130%); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes desk-float {
  0%, 100% { transform: rotate(0.35deg) translateY(0); }
  50% { transform: rotate(1.15deg) translateY(-10px); }
}

@keyframes desk-float-flat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ajar {
  0%, 100% { transform: perspective(700px) rotateY(0deg); }
  42%, 68% { transform: perspective(700px) rotateY(-42deg); }
}

@keyframes key-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes env-in {
  0% { transform: translate(36px, 24px) rotate(12deg); opacity: 0; }
  18% { opacity: 1; }
  72% { transform: translate(-18px, -36px) rotate(-8deg); opacity: 1; }
  100% { transform: translate(-8px, -70px) scale(0.45) rotate(-16deg); opacity: 0; }
}

@keyframes glyph {
  0% { transform: translateY(6px); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}

@keyframes stamp-slam {
  0% { opacity: 0; transform: scale(1.7) rotate(-26deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

@keyframes note-pop {
  from { transform: translateX(8px); }
  to { transform: none; }
}

@keyframes reach {
  0%, 36%, 100% { transform: scaleX(0.55); }
  12%, 26% { transform: scaleX(1); }
}

@keyframes wallet-left {
  0%, 100% { transform: translateX(0); }
  10%, 24% { transform: translateX(10px); }
  36%, 90% { transform: translateX(-18px); }
}

@keyframes wallet-right {
  0%, 100% { transform: translateX(0); }
  10%, 24% { transform: translateX(-10px); }
  36%, 90% { transform: translateX(18px); }
}

@keyframes sweep {
  0%, 55% { transform: translateX(0); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(420%); opacity: 0; }
}

@keyframes grid-drift {
  to { transform: translate3d(56px, 56px, 0); }
}

@keyframes grain-drift {
  to { transform: translate3d(-40px, 28px, 0); }
}

@keyframes scan {
  from { transform: translateY(-10vh); }
  to { transform: translateY(110vh); }
}

@keyframes paper-a {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-18px); }
}

@keyframes paper-b {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(11deg) translateY(16px); }
}

@keyframes paper-c {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-12px); }
}

html.js:not(.reduce-motion) .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

html.js:not(.reduce-motion) .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js:not(.reduce-motion) .step.reveal.is-in.is-on {
  transform: translateY(-8px);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ticker-track {
    transform: none;
  }

  .ticker-group + .ticker-group {
    display: none;
  }

  .hero h1 .line {
    max-width: none;
  }

  .desk .stamp {
    opacity: 1;
  }
}

html.reduce-motion .ticker-group + .ticker-group {
  display: none;
}

html.reduce-motion .half {
  transform: none;
}

/* Responsive */

@media (max-width: 1180px) {
  .file-no {
    display: none;
  }

  .nav-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 1040px) {
  :root { --header: 108px; }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-row {
    grid-template-columns: 1fr auto;
  }

  .hero,
  .token-band .wrap,
  .two-col,
  .wallet-grid,
  .footer-grid,
  .steps,
  .chain-grid,
  .card-grid.cols-3,
  .spec {
    grid-template-columns: 1fr;
  }

  .steps,
  .chain-grid.cols-5 {
    grid-template-columns: 1fr 1fr;
  }

  .token-figure {
    justify-self: start;
  }

  html.js:not(.reduce-motion) .desk {
    animation-name: desk-float-flat;
  }

  .paper-b,
  .paper-c {
    display: none;
  }
}

@media (max-width: 760px) {
  .steps,
  .chain-grid.cols-5,
  .balances,
  .unlink {
    grid-template-columns: 1fr;
  }

  .unlink-bridge {
    height: 64px;
    width: min(200px, 56%);
    margin: 0.2rem auto 0.4rem;
  }

  .class-bar span:nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .stage {
    min-height: 300px;
  }

  .env-b,
  .env-c {
    display: none;
  }

  .hero h1 .line {
    white-space: normal;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .glossary div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .flow-caption {
    margin-right: 0;
    min-height: 3.2rem;
  }

  .desk .stamp {
    position: static;
    margin-top: 0.6rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .atmosphere-scan {
    animation-duration: 22s;
    opacity: 0.4;
  }

  .notes li {
    grid-template-columns: 1fr auto;
  }

  .notes li span:nth-child(2) {
    display: none;
  }
}

/* App desk */

.app-page {
  min-height: 100vh;
}

.app-rays {
  position: fixed;
  inset: -30% -10% auto;
  height: 80vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 200, 5, 0.2), transparent 58%),
    repeating-conic-gradient(from 200deg at 50% -8%, rgba(201, 150, 46, 0.16) 0 7deg, transparent 7deg 16deg);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 78%);
}

html.js:not(.reduce-motion) .app-rays {
  animation: rays 36s linear infinite;
}

@keyframes rays {
  to { transform: rotate(12deg) scale(1.05); }
}

.app-top,
.app-main,
.app-mini {
  position: relative;
  z-index: 1;
}

.app-top {
  width: min(440px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-main {
  width: min(440px, calc(100% - 2rem));
  margin: 1.4rem auto 1rem;
}

.app-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%),
    var(--paper);
  border-left: 8px solid var(--gold-rule);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.1rem;
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.app-tabs button {
  min-height: 44px;
  border: 1px solid rgba(28, 27, 23, 0.16);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.app-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--highlighter);
  border-color: var(--ink);
}

.app-note {
  min-height: 2.6rem;
  margin: 0 0 0.85rem;
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.wallet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.wallet-meta {
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
}

.wallet-meta strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.wallet-fallback,
.field-note,
.app-status {
  margin: 0.35rem 0 0;
  color: var(--paper-muted);
  font-size: 0.75rem;
}

.app-field {
  display: block;
  margin-top: 0.75rem;
}

.app-field span,
.asset-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asset-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.asset-picks button {
  min-height: 42px;
  border: 1px solid rgba(28, 27, 23, 0.18);
  background: var(--bg);
  cursor: pointer;
  letter-spacing: 0.08em;
}

.asset-picks button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green-deep);
}

.amount-row {
  display: flex;
  gap: 0.4rem;
}

.app-card input,
.app-card select {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(28, 27, 23, 0.2);
  background: var(--bg);
  font: inherit;
}

.amount-row input {
  flex: 1;
}

#max {
  min-width: 64px;
  min-height: 48px;
  border: 1px solid var(--ink);
  background: transparent;
  letter-spacing: 0.12em;
  cursor: pointer;
}

#max:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-go {
  width: 100%;
  margin-top: 1rem;
}

.app-mini {
  width: min(440px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  padding-bottom: 1.5rem;
}

.app-mini a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.app-mini a:hover {
  color: var(--lime);
}

@media (forced-colors: active) {
  .btn,
  .step,
  .desk,
  .chain-card,
  .wallet-card {
    border: 1px solid ButtonText;
  }

  .stamp {
    outline: 1px solid ButtonText;
  }
}
