/* HoodBrokers house style.
   Display: Bricolage Grotesque. Interface: Inter Tight. Data: Azeret Mono. All self hosted. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/sora.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("fonts/azeret-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #0a0b09;
  --bg-raise: #101310;
  --bg-sunk: #060706;
  --line: #23291f;
  --line-soft: #171b15;
  --ink: #ede8dc;
  --ink-dim: #9aa294;
  --ink-faint: #666f61;
  --green: #00c805;
  --green-deep: #0b5e12;
  --brass: #c9a227;
  --display: "Bricolage", system-ui, sans-serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
  --figure: "Sora", system-ui, sans-serif;   /* every number on the site */
  --rad: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

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

header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 11, 9, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; max-width: none; padding-left: 22px; padding-right: 26px; }

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .seal {
  width: 23px; height: 23px;
  background: currentColor;
  -webkit-mask: url("logo.svg") center / contain no-repeat;
  mask: url("logo.svg") center / contain no-repeat;
}
nav.links { display: flex; gap: 26px; margin-left: auto; align-items: baseline; }
nav.links a {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
}
nav.links a:hover { color: var(--green); }
nav.links a.x { display: inline-flex; align-items: center; padding: 4px; }
nav.links a.x svg { width: 17px; height: 17px; fill: currentColor; display: block; }
nav.links a.on { color: var(--ink); }

/* ------------------------------------------------------------ typography */

h1, h2, h3 { margin: 0 0 14px; font-weight: 400; }
h1, h2 { font-weight: 600; }
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--ink-dim); }
p strong, li strong { color: var(--ink); font-weight: 500; }
em { font-style: normal; color: var(--green); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.lede { font-size: 18px; color: var(--ink-dim); max-width: 60ch; }

section { padding: 72px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

/* ---------------------------------------------------------------- pieces */

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
}
a.card { display: block; transition: border-color 0.2s, transform 0.2s; }
a.card:hover { border-color: var(--green-deep); transform: translateY(-2px); }

.grid { display: grid; gap: 14px; }
/* Grid children default to min-width:auto, which lets a wide <pre> or <table> stretch
   the whole page instead of scrolling inside its own box. */
.grid > *, .docs > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mono { font-family: var(--mono); }
.num { font-family: var(--figure); font-weight: 600; font-size: 32px; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.green { color: var(--green); }
.brass { color: var(--brass); }
.dim { color: var(--ink-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--green); color: var(--green); }
.btn.primary { background: var(--green); border-color: var(--green); color: #041a06; font-weight: 700; }
.btn.primary:hover { background: #00e206; color: #041a06; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-dim);
}
.pill.t1 { color: #8fd8ff; border-color: #22384a; }
.pill.t2 { color: var(--green); border-color: var(--green-deep); }
.pill.t3 { color: var(--brass); border-color: #4b3a12; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line-soft); }
th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 400;
}
td.mono, th.mono { font-family: var(--mono); }

code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-sunk);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--green);
}
pre {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

ul.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ul.steps li {
  counter-increment: step;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  color: var(--ink-dim);
}
ul.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 15px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
}
ul.steps li strong { color: var(--ink); }

.note {
  border-left: 1px solid var(--green-deep);
  padding: 6px 0 6px 18px;
  color: var(--ink-dim);
  font-size: 14px;
}

footer.bottom {
  border-top: 1px solid var(--line);
  padding: 30px 0 56px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
footer.bottom a { color: var(--ink-faint); }
footer.bottom a:hover { color: var(--green); }

/* ------------------------------------------------------------ engravings */

/* Six pictograms cut from one generated plate, addressed as a sprite. Offsets are in
   the plate's own 2048x1331 coordinate space, scaled by --k. Percentage positioning
   cannot express this: a percentage aligns that point of the image with the same point
   of the box rather than offsetting by it, so the maths has to stay in pixels. */
.ico {
  --s: 46;                      /* rendered size, px */
  --cell: 340;                  /* one icon's cell in plate units */
  --k: calc(var(--s) / var(--cell));
  width: calc(var(--s) * 1px);
  height: calc(var(--s) * 1px);
  background-image: url("gen/icons.svg");
  background-repeat: no-repeat;
  background-size: calc(2048px * var(--k)) calc(1331px * var(--k));
}
.ico.seal   { background-position: calc(-575px * var(--k)) calc(-83px * var(--k)); }
.ico.vault  { background-position: calc(-1137px * var(--k)) calc(-87px * var(--k)); }
.ico.tag    { background-position: calc(-572px * var(--k)) calc(-506px * var(--k)); }
.ico.hand   { background-position: calc(-1135px * var(--k)) calc(-515px * var(--k)); }
.ico.split  { background-position: calc(-585px * var(--k)) calc(-922px * var(--k)); }
.ico.scroll { background-position: calc(-1127px * var(--k)) calc(-923px * var(--k)); }


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

/* Plates that tilt toward the pointer. Shared by the landing page surfaces and the
   terminal's readouts, driven by assets/motion.js. */
.tilt { position: relative; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.16,0.9,0.24,1), box-shadow 0.5s, border-color 0.4s; }
.tilt:hover { border-color: #35502f; box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 0 34px rgba(0,200,5,0.10); }
.tilt > .sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(40% 46% at var(--px, 50%) var(--py, 0%), rgba(0,200,5,0.18), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.tilt:hover > .sheen { opacity: 1; }
.tilt > * { position: relative; }

/* Values arrive by counting rather than snapping in. */
.num.roll { font-variant-numeric: tabular-nums; }

/* While a figure is still being read from the chain it shimmers instead of showing a dash. */
.skel {
  display: inline-block; min-width: 3.2ch; height: 0.8em; border-radius: 2px; vertical-align: -0.05em;
  background: linear-gradient(100deg, #1a1f18 30%, #2b3327 50%, #1a1f18 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }

/* The tab underline slides between tabs instead of cutting. */
.tabs { position: relative; }
.tabs .ink {
  position: absolute; bottom: -1px; height: 1px; background: var(--green);
  transition: transform 0.45s cubic-bezier(0.16,0.9,0.24,1), width 0.45s cubic-bezier(0.16,0.9,0.24,1);
  transform-origin: left;
}
.tabs button { border-bottom: 0; }
.panel.on { animation: panel 0.5s cubic-bezier(0.16,0.9,0.24,1) both; }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }

/* Rows and cards drop in as they are written by the app. */
.in-up { animation: inup 0.5s cubic-bezier(0.16,0.9,0.24,1) both; }
@keyframes inup { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .tilt, .tabs .ink { transition: none; }
  .skel { animation: none; }
  .panel.on, .in-up { animation: none; }
}


/* Objects drifting behind the page, composited with lighten so only the object and its
   own edge glow survive. */
.orbit { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orbit img { position: absolute; mix-blend-mode: lighten; will-change: transform;
  animation: float var(--dur, 26s) ease-in-out infinite alternate; }
@keyframes float {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  to   { transform: translate3d(var(--dx, 2%), var(--dy, -4%), 0) rotate(calc(var(--rot, 0deg) + var(--spin, 8deg))); }
}
@media (max-width: 1100px) { .orbit { display: none; } }

/* -------------------------------------------------------------- terminal */

/* The page sits on a deck rather than flat black: a plate far behind everything, a
   faint rule grid over it, and a vignette that keeps the corners quiet. */
.deck { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.deck .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000, transparent 78%);
  mask-image: radial-gradient(90% 70% at 50% 20%, #000, transparent 78%);
}
.deck .vig {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(0,200,5,0.05), transparent 60%),
              radial-gradient(90% 65% at 50% 12%, transparent, rgba(6,7,6,0.9) 84%);
}

/* Console header: title, live chain readouts, connect. */
.console { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; padding: 30px 0 24px; }
.console h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 0; }
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  background: rgba(16, 19, 16, 0.6);
}
.chip b { color: var(--ink); font-weight: 400; font-size: 11px; letter-spacing: 0; }
button.chip { cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
button.chip:hover { color: var(--ink); border-color: var(--green-deep); }
button.chip.on { color: var(--green); border-color: var(--green-deep); background: rgba(0,200,5,0.07); }
.chip.live b { color: var(--green); }


/* Boxes with actual thickness: a back plate sits behind each face at depth, and stacked
   rim shadows stand in for the side walls, so tilting one shows the extrusion. */
.box3d { position: relative; transform-style: preserve-3d; }
.box3d::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: #070907; border: 1px solid var(--line-soft);
  transform: translateZ(-18px);
}
.box3d {
  box-shadow:
    0 1px 0 rgba(237,232,220,0.06) inset,
    0 2px 0 #0c100b, 0 4px 0 #0a0d09, 0 6px 0 #080b08, 0 8px 0 #070907,
    0 18px 34px rgba(0,0,0,0.55);
}
.box3d:hover {
  box-shadow:
    0 1px 0 rgba(237,232,220,0.10) inset,
    0 2px 0 #0e130c, 0 4px 0 #0c100b, 0 6px 0 #0a0d09, 0 10px 0 #080b08,
    0 30px 56px rgba(0,0,0,0.62), 0 0 40px rgba(0,200,5,0.10);
}

/* Readouts carry a meter, so a figure also shows its share of the whole. */
.meter { height: 3px; margin-top: 14px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-deep), var(--green)); transition: width 0.9s cubic-bezier(0.16,0.9,0.24,1); }
.meter + .foot { margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase; }

/* The mint row is a ticket: a stepper, a live total, and the terms underneath. */
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.stepper button {
  width: 40px; background: var(--bg-sunk); border: 0; color: var(--ink-dim);
  font-family: var(--mono); font-size: 16px; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.stepper button:hover { color: var(--green); background: #10160f; }
.stepper input {
  font-family: var(--figure);
  width: 66px; text-align: center; background: transparent; border: 0; color: var(--ink);
  font-family: var(--mono); font-size: 15px; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total { font-family: var(--figure); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* A Broker in the list is a plate carrying its own on-chain artwork. */
.bcard { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: start; }
.bcard .art {
  width: 132px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-sunk) center / cover no-repeat; transform: translateZ(30px);
  transition: transform 0.7s cubic-bezier(0.16,0.9,0.24,1);
}
.bcard .art.pending { background-image: linear-gradient(100deg, #12160f 30%, #1e2519 50%, #12160f 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
.bcard .rows { display: flex; flex-direction: column; gap: 6px; }
.kv { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.kv span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); min-width: 92px; }
.kv b { font-weight: 400; color: var(--ink); font-family: var(--mono); font-size: 12px; }

/* Empty states show the vault rather than a sentence on its own. */
.empty {
  display: grid; place-items: center; gap: 14px; padding: 54px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 3px;
  background: linear-gradient(180deg, rgba(16,19,16,0.5), transparent);
}
.empty .ico { --s: 54; opacity: 0.55; }
.empty p { margin: 0; max-width: 40ch; }

/* Buttons take a light sweep on hover. */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%;
  background: linear-gradient(100deg, transparent, rgba(237,232,220,0.16), transparent);
  transform: skewX(-18deg); transition: left 0.6s cubic-bezier(0.16,0.9,0.24,1);
}
.btn:hover::after { left: 130%; }
.btn.primary::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent); }

@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
  .bcard { grid-template-columns: 1fr; }
  .bcard .art { width: 100%; max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcard .art.pending { animation: none; }
  .meter i { transition: none; }
}


/* ------------------------------------------------------------ stat cards */
/* A readout carries its own object: a machined form lit green, bleeding off the right
   edge of the card, with the figure sitting over it. No micro type, no captions in
   small caps: a label, a number, and a scale. */
.stat {
  position: relative;
  min-height: 168px;
  padding: 24px 24px 22px;
  border-radius: 6px;
  background: linear-gradient(150deg, #171d15 0%, #0f130e 55%, #0a0c09 100%);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16,0.9,0.24,1), box-shadow 0.5s;
  box-shadow: 0 1px 0 rgba(237,232,220,0.07) inset, 0 18px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat::before {                       /* gradient hairline, painted as a masked border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(0,200,5,0.5), rgba(237,232,220,0.1) 45%, rgba(237,232,220,0.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.stat .art {
  position: absolute; right: -6%; top: 50%; translate: 0 -50%;
  width: 66%; aspect-ratio: 1;
  background-position: center right; background-size: contain; background-repeat: no-repeat;
  opacity: 0.9;
  transition: transform 0.9s cubic-bezier(0.16,0.9,0.24,1), opacity 0.5s;
  pointer-events: none;
}
.stat:hover .art { transform: scale(1.06) translateX(-2%); opacity: 1; }
.stat .label {
  position: relative; font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--ink-dim);
}
.stat .num {
  position: relative; font-family: var(--figure); font-weight: 600;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; margin: 14px 0 0; color: var(--ink);
}
.stat .num em { font-style: normal; font-size: 17px; font-weight: 400; color: var(--ink-faint); margin-left: 8px; letter-spacing: 0; }
.stat .scale { position: relative; height: 6px; margin-top: 18px; }
.stat .scale i, .stat .scale u {
  position: absolute; inset: 0; display: block; border-radius: 1px; text-decoration: none;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 8px);
}
.stat .scale u { color: rgba(237,232,220,0.16); width: 100%; }
.stat .scale i { color: var(--green); width: 0; overflow: hidden; transition: width 0.9s cubic-bezier(0.16,0.9,0.24,1); box-shadow: 0 0 14px rgba(0,200,5,0.4); }

/* The mint ticket. */
.ticketcard {
  position: relative; border-radius: 6px; padding: 28px 30px 26px;
  background: linear-gradient(150deg, #171d15 0%, #0f130e 60%, #0a0c09 100%);
  box-shadow: 0 1px 0 rgba(237,232,220,0.07) inset, 0 18px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.ticketcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(0,200,5,0.42), rgba(237,232,220,0.07) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.ticketcard .label { font-family: var(--sans); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-dim); }


/* ------------------------------------------------------------- mint flow */
/* Softer, rounder boxes and lowercase step headings: the panel is a short form, so it
   reads as steps with a live preview beside them rather than one dense row. */
.flow { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.panelbox {
  border-radius: 16px;
  padding: 26px 26px 28px;
  background: linear-gradient(160deg, #14180f 0%, #0f120d 60%, #0b0d09 100%);
  border: 1px solid var(--line);
}
.panelbox + .panelbox { margin-top: 18px; }
.step { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; text-transform: lowercase; color: var(--ink); }
.step i { font-style: normal; color: var(--green); margin-right: 8px; }
.substep { margin: 6px 0 20px; font-size: 15px; color: var(--ink-dim); text-transform: lowercase; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 12px; }
.tile {
  position: relative; border-radius: 14px; padding: 18px 14px 15px;
  border: 1px solid var(--line); background: #0d100b;
  display: grid; justify-items: center; gap: 3px; cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.tile:hover { border-color: #35502f; transform: translateY(-2px); }
.tile.on { border-color: var(--green); background: rgba(0,200,5,0.06); }
.tile .fig { font-family: var(--figure); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile.on .fig { color: var(--green); }
.tile .cap { font-size: 13px; color: var(--ink-dim); text-transform: lowercase; }
.tile .sub { font-family: var(--figure); font-size: 12px; color: var(--ink-faint); }
.tile .glyph {
  width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%;
  background: var(--green); opacity: 0.55;
  -webkit-mask: url("logo.svg") center / 76% no-repeat; mask: url("logo.svg") center / 76% no-repeat;
  transition: opacity 0.25s;
}
.tile.on .glyph { opacity: 1; }

/* Preview: the card as it will exist once the transaction lands. */
.preview { border-radius: 16px; padding: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #14180f 0%, #0f120d 60%, #0b0d09 100%); position: sticky; top: 92px; }
.preview .plate {
  border-radius: 12px; border: 1px solid var(--line); background: #0b0e0a;
  padding: 20px; display: grid; gap: 14px; justify-items: center; text-align: center;
}
.preview .plate .glyph { width: 66px; height: 66px; background: var(--green);
  -webkit-mask: url("logo.svg") center / contain no-repeat; mask: url("logo.svg") center / contain no-repeat; }
.preview .plate .name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.preview .lines { display: grid; gap: 11px; margin: 20px 0 22px; }
.preview .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-dim); text-transform: lowercase; }
.preview .line b { font-family: var(--figure); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.preview .line.total { border-top: 1px solid var(--line); padding-top: 13px; font-size: 16px; color: var(--ink); }
.preview .line.total b { font-size: 22px; }

/* Pill call to action, full width of its column. */
.cta {
  display: block; width: 100%; border: 0; border-radius: 100px; cursor: pointer;
  padding: 17px 22px; background: var(--green); color: #04170a;
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  text-transform: lowercase; transition: filter 0.2s, transform 0.2s;
}
.cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cta:disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; transform: none; }
.cta-note { margin-top: 12px; font-size: 13px; color: var(--ink-faint); text-align: center; text-transform: lowercase; }

@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .preview { position: static; } }

/* ------------------------------------------------------------------ docs */

/* Keeps .wrap's horizontal padding, which this shorthand would otherwise drop. */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 28px 80px; }
.docs aside { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.docs aside a { display: block; padding: 6px 0; color: var(--ink-dim); }
.docs aside a.on { color: var(--green); }
.docs aside .label { margin: 18px 0 6px; }

/* ------------------------------------------------------------------- app */

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.field {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 12px;
  min-width: 0;
}
.field:focus { outline: none; border-color: var(--green-deep); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button {
  background: none; border: 0; border-bottom: 1px solid transparent;
  color: var(--ink-faint); font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 15px; cursor: pointer;
}
.tabs button.on { color: var(--ink); border-bottom-color: var(--green); }
.panel { display: none; }
.panel.on { display: block; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--bg-raise); border: 1px solid var(--line); border-left: 1px solid var(--green);
  border-radius: var(--rad); padding: 13px 20px; font-family: var(--mono); font-size: 12px;
  max-width: 90vw; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 50;
}
.toast.show { opacity: 1; }
.toast.bad { border-left-color: #ff5a4d; }

@media (max-width: 860px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .docs { grid-template-columns: 1fr; gap: 22px; }
  .docs aside { position: static; }
  nav.links { gap: 16px; }
  nav.links a.hide-sm { display: none; }
  section { padding: 52px 0; }
}
