/* Malachite - style.css. Colours and fonts are tokens in :root; change them there. */
:root {
  --bg: #010401;          /* near black with a green cast */
  --bg-rgb: 1, 4, 1;      /* the same colour as numbers, for see-through layers */
  --surface: #03100a;     /* cards, buttons */
  --raise: #06180d;       /* hover, inputs */
  --ink: #d6ffe0;         /* text */
  --ink-2: #b8ffc8;       /* softer text */
  --dim: #3fbf62;         /* secondary text */
  --faint: #1f6b35;
  --line: rgba(0, 255, 65, .10);
  --line-2: rgba(0, 255, 65, .16);
  --i1: #00ff41;          /* the green of every accent, edge and glow */
  --i2: #c8ffd2;
  --i3: #b8ffc8;
  --deep: #06381a;        /* the dark part of the turning button edge */
  --on-accent: #010401;   /* text on a green button */
  --glow-rgb: 0, 255, 65;
  --ok: #00ff41;
  --bad: #ff6b8a;
  --f-head: "Share Tech Mono", ui-monospace, monospace;   /* headings and interface */
  --f-body: "Manrope", system-ui, sans-serif;            /* running text */
  --f-mono: "Share Tech Mono", ui-monospace, monospace;   /* code, labels */
  --w-head: 400;
  --ls-head: -.02em;
  --radius: 0px;          /* one radius for everything */
  --pad: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--f-body); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--i1); color: var(--on-accent); }
:focus-visible { outline: 1px solid var(--i2); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: 0; }
.muted { color: var(--dim); }

/* --- type */
.h1, .h2, .h3, .h4 { font-family: var(--f-head); font-weight: var(--w-head); letter-spacing: var(--ls-head); line-height: 1.02; }
.h1 { font-size: clamp(36px, 5.6vw, 84px); max-width: 15ch; }
.h1.is-long { font-size: clamp(34px, 4.8vw, 68px); max-width: 20ch; line-height: 1.05; }
.h2 { font-size: clamp(30px, 4vw, 56px); max-width: 18ch; }
.h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.h4 { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
em { font-style: normal; background: linear-gradient(100deg, var(--i1), var(--i2) 45%, var(--i3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--dim); max-width: 46ch; line-height: 1.55; }
.kicker, .label { font: 400 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kicker { color: var(--i1); }
.kicker a:hover { color: var(--ink); }
.tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--dim); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.more { font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s; }
.more:hover { border-color: var(--i2); }

/* --- buttons: a thin edge that turns and shifts colour (conic gradient masked to a 1px ring) */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { --a: 0deg; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px;
  background: var(--surface); color: var(--ink); font: 500 14px/1 var(--f-head); letter-spacing: -.01em; border: 0; border-radius: var(--radius); cursor: pointer; isolation: isolate;
  transition: background .35s, box-shadow .35s; }
.btn::before { content: ""; animation: spin 6s linear infinite; position: absolute; inset: 0; padding: 1px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--a), var(--deep), var(--i1), var(--i2), var(--deep) 40%, var(--deep) 60%, var(--i1), var(--deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn:not(.btn-ghost):hover { background: var(--i1); color: var(--on-accent); }
.btn-ghost { background: transparent; }
.btn.is-featured { background: var(--surface); }

.btn-sm { padding: 11px 16px; }
.btn-wide { width: 100%; }
@keyframes spin { to { --a: 360deg; } }

/* --- surfaces with a light that follows the pointer along the edge (Linear-like) */
.spot { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--i1), var(--i2) 30%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow-rgb), .06), transparent 60%); }
.spot:hover::after, .spot:hover::before, .spot:focus-within::after { opacity: 1; }

/* --- the one entrance: every block is cut open by a slanted facet edge, left to right */
.js [data-cut], .js [data-words] .w { visibility: hidden; }
.js [data-cut].run, .js [data-words] .w.run { visibility: visible; animation: cut .95s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes cut {
  from { clip-path: polygon(-40% -30%, -10% -30%, -40% 130%, -40% 130%); }
  to { clip-path: polygon(-40% -30%, 140% -30%, 110% 130%, -40% 130%); }
}
[data-words] .w { display: inline-block; }
.js [data-words].decoded .w { visibility: visible; animation: none; }
/* the decode intro: the real title sits above the glyph canvas, its letters show one by one as they decode */
.js .decoding { position: relative; z-index: 61; }
.js [data-cut].now { visibility: visible; animation: none; }
.js [data-words].decoding .w { visibility: visible; animation: none; }
.js .decoding .ch { visibility: hidden; }
.js .decoding .ch.on { visibility: visible; }
.decode { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; }
.js .home .head { visibility: hidden; }
.js.intro-done .home .head { visibility: visible; animation: cut .95s var(--ease) both; }

/* --- header */
.head { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.head.is-solid { background: rgba(var(--bg-rgb), .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; height: 68px; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-head); letter-spacing: -.01em; }
.logo-mark { color: var(--ink); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--i1) 60%, transparent)); }
.head-nav { display: flex; gap: 26px; font: 400 13px var(--f-head); color: var(--dim); margin-right: auto; margin-left: 12px; }
.head-nav a { transition: color .25s; }
.head-nav a:hover, .head-nav a[aria-current] { color: var(--ink); }
.head-act { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.head-link { font: 400 13px var(--f-head); color: var(--dim); transition: color .25s; }
.head-link:hover { color: var(--ink); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius); cursor: pointer; padding: 0; }
.menu-lines { display: grid; gap: 5px; width: 16px; margin: auto; }
.menu-lines i { display: block; height: 1px; background: var(--ink); transition: transform .45s var(--ease); }
.menu-open .menu-lines i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 68px 0 0; z-index: 49; background: var(--bg); border-top: 1px solid var(--line); padding: 18px var(--pad) 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path .6s var(--ease); }
.menu.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.menu-nav { display: grid; }
.menu-nav a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font: var(--w-head) 24px/1.1 var(--f-head); letter-spacing: -.02em; }
.menu-i { font: 400 11px var(--f-mono); color: var(--faint); }
.menu-foot { display: grid; gap: 10px; }

/* --- sections */
main { display: block; }
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec.is-tight { padding-top: clamp(32px, 4vw, 56px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.is-tight + .sec, .page-head + .sec { border-top: 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.is-center { justify-items: center; text-align: center; }
.sec-head.is-center .h2, .sec-head.is-center .lead { margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.is-top { align-items: start; }
.split-text { display: grid; gap: 20px; align-content: start; }
.page-head { padding: clamp(130px, 16vw, 200px) 0 clamp(40px, 5vw, 64px); position: relative; }
.page-head .wrap { display: grid; gap: 22px; }
.page-head.is-center .wrap { justify-items: center; text-align: center; }
.page-head.is-center .h1, .page-head.is-center .lead { margin-inline: auto; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 70%; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 80% at 20% 0%, rgba(var(--glow-rgb), .08), transparent 70%), radial-gradient(40% 60% at 85% 10%, rgba(var(--glow-rgb), .04), transparent 70%); }
.page-head .split { align-items: end; }

/* --- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.vortex { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 60% at 12% 92%, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .55) 45%, transparent 75%), linear-gradient(to top, var(--bg), transparent 22%); }
.hero-in { position: relative; display: grid; gap: 22px; padding-top: 120px; padding-bottom: clamp(48px, 9vh, 110px); }
.hero .lead { color: var(--ink-2); }
.hero-note { color: var(--faint); font-size: 12px; }
.hero .h1 { font-size: clamp(42px, 6.4vw, 96px); max-width: 12ch; color: var(--i1); text-shadow: 0 0 14px rgba(var(--glow-rgb), .45); }
.hero .h1 em { background: none; color: inherit; }

/* --- logos */
.logos { padding: 40px 0 0; }
.logos .wrap { display: grid; gap: 22px; }
.logo-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--line); }
.logo-row li { padding: 22px 12px; text-align: center; font: 600 17px/1 var(--f-head); letter-spacing: -.02em; color: var(--dim); border-right: 1px solid var(--line); transition: color .3s; }
.logo-row li:last-child { border-right: 0; }
.logo-row li:hover { color: var(--ink); }
.logo-row.is-col { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.logo-row.is-col li { border-bottom: 1px solid var(--line); }

/* --- product tiles */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 24px; min-height: 360px; grid-column: span 6; }
.tile-accounts, .tile-treasury { grid-column: span 7; }
.tile-cards, .tile-payouts { grid-column: span 5; }
.tile .h3 { margin-top: auto; }
.tile p { color: var(--dim); max-width: 42ch; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.arrow { color: var(--dim); transition: transform .4s var(--ease), color .3s; }
a.tile:hover .arrow, .next-link:hover .arrow { transform: translateX(4px); color: var(--ink); }
.tile-big { min-height: 380px; }
.tile-big .viz { margin: auto 0; }

/* mini interfaces inside tiles */
.viz { font-size: 13px; }
.viz-acc, .viz-pay { display: grid; border: 1px solid var(--line); }
.acc-row, .pay-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.acc-row:last-child, .pay-row:last-child { border-bottom: 0; }
.acc-row.is-sub span:first-child { padding-left: 16px; position: relative; color: var(--dim); }
.acc-row.is-sub span:first-child::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; border-top: 1px solid var(--faint); }
.acc-row b, .pay-row b { font-weight: 500; text-align: right; }
.pay-row { grid-template-columns: auto 1fr auto 10px; }
.pay-row span:first-child { color: var(--faint); }
.st { width: 7px; height: 7px; background: var(--ok); transform: rotate(45deg); }
.st-run { background: transparent; border: 1px solid var(--i2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { background: var(--i2); box-shadow: 0 0 10px var(--i2); } }
.viz-card { display: grid; gap: 12px; justify-items: center; }
.card3d { position: relative; width: min(100%, 440px); aspect-ratio: 1.3; display: grid; place-items: center; }
.card3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card3d.is-3d .cardface { visibility: hidden; }
.tile-big .card3d { width: min(100%, 560px); }
.tile-cards .card3d { width: min(100%, 330px); }
.plan-card { margin: 0 auto 28px; width: min(100%, 420px); }
.cardface { position: relative; width: min(100%, 300px); aspect-ratio: 1.586; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(140deg, var(--raise), var(--bg) 62%); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 10px); color: var(--dim); font-size: 11px;
  transition: transform .6s var(--ease); }
.cardface::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(var(--glow-rgb), .14) 48%, rgba(var(--glow-rgb), .08) 54%, transparent 66%);
  background-size: 250% 100%; background-position: 100% 0; transition: background-position 1.2s var(--ease); }
.tile:hover .cardface { transform: rotate(-2deg) translateY(-4px); }
.tile:hover .cardface::after { background-position: 0 0; }
.cardface b { color: var(--ink); font: 600 20px var(--f-head); letter-spacing: .08em; }
.cf-num { color: var(--ink-2); }
.cf-gem { position: absolute; right: 18px; top: 16px; width: 18px; height: 18px; border: 1px solid var(--i1); transform: rotate(45deg); box-shadow: 0 0 12px var(--i1); }
.auth { display: flex; justify-content: space-between; gap: 12px; width: min(100%, 300px); padding: 10px 12px; border: 1px solid var(--line); font-size: 12px; }
.auth-ok { color: var(--ok); }
.viz-tre svg { width: 100%; height: 120px; overflow: visible; }
.tre-floor { stroke: var(--faint); stroke-dasharray: 3 5; fill: none; }
.tre-line { fill: none; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(var(--glow-rgb), .5)); }
.tre-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 12px; margin-top: 10px; }

/* --- code */
.code-win { overflow: hidden; min-width: 0; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; overflow-x: auto; overflow-y: hidden; }
.tabs button, .tabs span { padding: 13px 16px; border: 0; background: none; font: 400 13px var(--f-mono); color: var(--dim); cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs [aria-selected="true"], .tabs .tab-on { color: var(--ink); border-bottom-color: var(--i2); }
.copy { padding: 6px 10px; border: 1px solid var(--line-2); background: none; font: 400 12px var(--f-mono); color: var(--dim); cursor: pointer; border-radius: var(--radius); transition: color .25s, border-color .25s; }
.copy:hover { color: var(--ink); border-color: var(--i2); }
.code { margin: 0; padding: 20px; overflow-x: auto; font: 400 13px/1.7 var(--f-mono); color: var(--ink-2); tab-size: 2; }
.code-res { border-top: 1px solid var(--line); background: rgba(var(--glow-rgb), .025); }
.code-res .label { padding: 14px 20px 0; display: flex; align-items: center; gap: 8px; }
.ok { width: 7px; height: 7px; background: var(--ok); transform: rotate(45deg); }
.t-s { color: var(--i2); } .t-k { color: var(--i1); } .t-n { color: #e6ff9a; } .t-c { color: var(--faint); } .t-f { color: var(--i2); }
.mini-list { display: grid; gap: 12px; color: var(--dim); max-width: 46ch; }
.mini-list strong { color: var(--ink); font-weight: 600; }
.method { color: var(--i2); font-size: .6em; vertical-align: middle; padding: 4px 8px; border: 1px solid var(--line-2); }
.endpoint { font-size: clamp(22px, 2.6vw, 34px); max-width: none; overflow-wrap: anywhere; }
.endpoint .mono:last-child { font-size: 1em; }
.install { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; max-width: 460px; font-size: 14px; }
.install .copy { margin-left: auto; }

/* --- flow: one line, a light travels along it */
.flow { position: relative; overflow-x: clip; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 34px; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.flow::after { content: ""; position: absolute; left: 0; top: 5px; width: 18%; height: 3px; filter: blur(1px);
  background: linear-gradient(90deg, transparent, var(--i1), var(--i2), var(--i3), transparent); animation: travel 5s var(--ease) infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(560%); } }
.flow li { position: relative; display: grid; gap: 10px; align-content: start; }
.flow-dot { position: absolute; top: -33px; left: 0; width: 11px; height: 11px; background: var(--bg); border: 1px solid var(--i1); transform: rotate(45deg); }
.flow-n { color: var(--faint); font-size: 12px; }
.flow p { color: var(--dim); font-size: 15px; }

/* --- numbers */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.metrics.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 26px 24px 0 0; border-right: 1px solid var(--line); }
.metric + .metric { padding-left: 24px; }
.metric:last-child { border-right: 0; }
.metric dd { font: var(--w-head) clamp(30px, 4.4vw, 60px)/1 var(--f-head); letter-spacing: -.04em; white-space: nowrap; }
.metric dt { color: var(--dim); font-size: 14px; }
.metrics.is-two .metric { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.metrics.is-two .metric:nth-child(even) { padding-left: 24px; border-right: 0; }

/* --- badges, points, rows */
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.badge { display: grid; gap: 6px; padding: 22px; }
.badge svg { color: var(--i2); margin-bottom: 8px; }
.badge span { color: var(--dim); font-size: 14px; }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.points.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.point, .layer, .step { display: grid; gap: 12px; align-content: start; padding: 24px; }
.point > .mono, .layer > .mono, .step > .mono { color: var(--faint); font-size: 12px; }
.point p, .layer p, .step p { color: var(--dim); font-size: 15px; }
.layers, .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rows { display: grid; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.rows b { font-weight: 500; text-align: right; }
.rows.is-big li { padding: 20px 0; font-size: 17px; }
.ticks { display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border: 1px solid var(--i2); transform: rotate(45deg); }
.sdks { display: flex; flex-wrap: wrap; gap: 8px; }
.sdks li { padding: 7px 12px; border: 1px solid var(--line-2); color: var(--dim); }
.events { display: grid; border-top: 1px solid var(--line); margin-top: 24px; }
.events li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.events code { color: var(--i2); font-size: 13px; overflow-wrap: anywhere; }
.events span { color: var(--dim); font-size: 15px; }
.split.is-top > div > .rows { margin-top: 24px; }

/* --- ledger */
.ledger { overflow: hidden; }
.ledger-head, .ledger-sum { display: flex; gap: 14px; padding: 13px 18px; color: var(--dim); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ledger-head span:first-child { color: var(--i2); flex: none; overflow-wrap: normal; }
.ledger-row { display: grid; grid-template-columns: 26px 1fr auto 36px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-row b { font-weight: 500; }
.ledger-sum { border-bottom: 0; justify-content: space-between; color: var(--ink); }

/* --- quote */
.quote blockquote { display: grid; gap: 28px; margin-top: 24px; }
.quote-t { font: var(--w-head) clamp(26px, 3.4vw, 48px)/1.15 var(--f-head); letter-spacing: -.03em; max-width: 26ch; }
.quote footer { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; color: var(--dim); }
.quote footer strong { color: var(--ink); font-weight: 600; }

/* --- pricing */
.billing { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.billing-l { font: 400 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.billing-save { font: 400 12px var(--f-mono); color: var(--i2); }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); background: var(--surface); }
.switch button { position: relative; z-index: 1; padding: 10px 18px; border: 0; background: none; cursor: pointer; font: 400 13px var(--f-head); color: var(--dim); transition: color .35s; }
.switch button[aria-checked="true"] { color: var(--on-accent); }
.switch-thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--i1); transition: transform .5s var(--ease); }
.is-yearly .switch-thumb { transform: translateX(100%); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.plan.is-featured { border-color: transparent; }
.plan.is-featured::after { opacity: 1; background: conic-gradient(from 210deg, var(--i1), var(--i2), var(--i3), var(--i1)); }
.plan-name { font: 600 14px var(--f-head); color: var(--dim); }
.plan-price { font: var(--w-head) clamp(34px, 3.4vw, 46px)/1 var(--f-head); letter-spacing: -.04em; }
.plan-was { font-size: .5em; color: var(--dim); margin-right: .35em; vertical-align: .35em; }
.plan-was:empty { display: none; }
.plan-price small { font: 400 14px var(--f-body); color: var(--dim); letter-spacing: 0; }
.plan-bill { min-height: 1.4em; color: var(--faint); font-size: 12px; }
.plan-d { color: var(--dim); font-size: 15px; }
.plan .ticks { margin-bottom: 10px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.compare thead th { font: 600 15px var(--f-body); color: var(--ink); }
.compare td { color: var(--dim); }
.compare tbody th { color: var(--ink); }
.compare tr.g th { font: 400 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--i2); padding-top: 26px; }
.mark { color: var(--i2); }
.dash { display: inline-block; width: 12px; border-top: 1px solid var(--faint); vertical-align: middle; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i summary { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary i { position: relative; flex: none; width: 12px; height: 12px; margin-top: 6px; }
.faq-i summary i::before, .faq-i summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); transition: transform .4s var(--ease); }
.faq-i summary i::after { transform: rotate(90deg); }
.faq-i[open] summary i::after { transform: rotate(0); }
.faq-i p { color: var(--dim); padding: 0 0 22px; max-width: 60ch; }

/* --- customers */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case { display: flex; flex-direction: column; gap: 22px; padding: 26px; min-height: 440px; }
.case-top { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.case-top .mono { grid-column: 2; font-size: 12px; }
.case-mark { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); font: 600 18px var(--f-head);
  background: linear-gradient(140deg, var(--raise), var(--bg)); }
.case-stats { display: grid; gap: 14px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.case-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.case-stats dd { font: var(--w-head) 22px var(--f-head); letter-spacing: -.02em; }
.case-stats dt { color: var(--dim); font-size: 14px; text-align: right; }
.case .more { align-self: flex-start; }
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.article-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.article-side .ticks { margin-bottom: 14px; }
.toc a { color: var(--dim); font-size: 15px; transition: color .25s; }
.toc a:hover { color: var(--ink); }
.prose { display: grid; gap: 18px; max-width: 68ch; font-size: 18px; color: var(--ink-2); }
.prose .h3 { color: var(--ink); margin-top: 22px; scroll-margin-top: 100px; }
.prose .h3:first-child { margin-top: 0; }
.pull { margin: 26px 0 0; padding: 26px 0 0 26px; border-left: 1px solid var(--i1); }
.pull p { font: var(--w-head) clamp(22px, 2.2vw, 30px)/1.25 var(--f-head); letter-spacing: -.02em; color: var(--ink); }
.pull footer { margin-top: 14px; color: var(--dim); font-size: 15px; }
.pull strong { color: var(--ink); font-weight: 600; }
.next-link { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; padding: clamp(24px, 4vw, 44px); }
.next-link .kicker, .next-link .h2, .next-link .next-d { grid-column: 1; }
.next-link .next-d { color: var(--dim); max-width: 60ch; }
.next-link .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 28px; }

/* --- company */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.person { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 20px; }
.avatar { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; font: 600 15px var(--f-head); letter-spacing: .04em;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(140deg, color-mix(in srgb, var(--i1) 30%, var(--bg)), var(--surface) 70%); }
.person .muted { font-size: 14px; }

/* --- changelog */
.log { display: grid; border-top: 1px solid var(--line); }
.log-i { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.log-meta { display: grid; gap: 8px; align-content: start; justify-items: start; }
.log-meta > .mono { font-size: 15px; color: var(--i2); }
.log-body { display: grid; gap: 16px; }

/* --- forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 8px; min-width: 0; }
.field.is-wide, .form-foot.is-wide { grid-column: 1 / -1; }
.field label, .flabel { font-size: 13px; color: var(--dim); }
.field input, .field textarea, .select-btn { width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); outline: 0; transition: border-color .25s; }
.field textarea { resize: none; min-height: 130px; }
.field input:focus, .field textarea:focus, .select-btn:focus-visible { border-color: var(--i2); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.select { position: relative; }
.select-btn { display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.select-btn i { width: 7px; height: 7px; border-right: 1px solid var(--dim); border-bottom: 1px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.select-btn[aria-expanded="true"] i { transform: rotate(225deg); }
.select-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--raise); border: 1px solid var(--line-2); }
.select-list li { padding: 11px 14px; cursor: pointer; color: var(--dim); }
.select-list li:hover, .select-list li:focus, .select-list li[aria-selected="true"] { color: var(--ink); background: rgba(var(--glow-rgb), .06); outline: 0; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.form-msg { color: var(--dim); font-size: 14px; }
.contact-side { display: grid; gap: 24px; }

/* --- sign in, 404 */
.auth-sec { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px var(--pad) 60px; overflow: hidden; }
.auth-sec .hero-shade { background: radial-gradient(50% 50% at 50% 50%, rgba(var(--bg-rgb), .85), rgba(var(--bg-rgb), .5) 70%, rgba(var(--bg-rgb), .2)); }
.vortex.is-quiet { opacity: .55; }
.auth-box { position: relative; width: min(100%, 420px); display: grid; gap: 10px; padding: clamp(24px, 4vw, 36px); background: rgba(11, 11, 14, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.auth-form { display: grid; gap: 16px; margin-top: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--dim); }
.auth-links a { color: var(--ink); }
.err { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 720px; }
.err .h1, .err .lead { margin-inline: auto; }

/* --- CTA */
.cta { border-top: 0 !important; }
.cta-in { display: grid; gap: 22px; justify-items: center; text-align: center; padding: clamp(56px, 8vw, 110px) var(--pad); overflow: hidden; max-width: var(--max); }
.cta-in .h2, .cta-in .lead { margin-inline: auto; }
.cta-gem { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 1; animation: gem 12s linear infinite; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--i1) 70%, transparent)); }
.cta-gem path:last-child { opacity: .5; }
@keyframes gem { 50% { transform: rotateY(180deg); } to { transform: rotateY(360deg); } }

/* --- footer */
.foot { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-lead { display: grid; gap: 18px; align-content: start; justify-items: start; }
.foot-cta { color: var(--dim); max-width: 26ch; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--dim); }
.foot-col a { transition: color .25s; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink); }
.foot-col .label { margin-bottom: 4px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-status { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.foot-status i { width: 7px; height: 7px; background: var(--ok); transform: rotate(45deg); box-shadow: 0 0 8px var(--ok); }
.foot-social { display: flex; gap: 18px; margin-left: auto; color: var(--dim); }
.foot-social a:hover { color: var(--ink); }
.foot-note { margin-top: 14px; font-size: 12px; }

/* --- back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink); visibility: hidden; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transition: clip-path .5s var(--ease), visibility 0s .5s, border-color .3s; }
.to-top.is-on { visibility: visible; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: clip-path .5s var(--ease), visibility 0s, border-color .3s; }
.to-top:hover { border-color: var(--i2); }
.to-top.is-on:hover { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* --- our cursor (mouse only): blinking block at the pointer, frame that turns on links, hex position */
.mcur { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; will-change: transform; font: 10px var(--f-mono); color: var(--i1); }
.has-cursor .mcur.is-in { display: block; }
.mcur i { position: absolute; left: -1px; top: -8px; width: 8px; height: 15px; background: var(--i1); box-shadow: 0 0 10px var(--i1); animation: blink 1s steps(1) infinite; }
.mcur b { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 1px solid rgba(var(--glow-rgb), .45); transition: transform .25s var(--ease), border-color .25s; }
.mcur span { position: absolute; left: 16px; top: 10px; white-space: nowrap; letter-spacing: .06em; color: var(--dim); }
.mcur.on b { transform: scale(1.5) rotate(45deg); border-color: var(--i1); }
@keyframes blink { 50% { visibility: hidden; } }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }

/* --- no browser chrome: inner scroll areas scroll without a visible bar, the page bar is thin and in the theme colours */
.tabs, .code, .table-wrap, .menu, .select-list { scrollbar-width: none; -ms-overflow-style: none; }
/* inner scrollers must not widen the page on phones (Chrome grows the layout viewport to their content) */
.tabs, .code, .table-wrap { contain: paint; }
.tabs::-webkit-scrollbar, .code::-webkit-scrollbar, .table-wrap::-webkit-scrollbar, .menu::-webkit-scrollbar, .select-list::-webkit-scrollbar { display: none; }
html { scrollbar-width: thin; scrollbar-color: var(--faint) var(--bg); }
html::-webkit-scrollbar { width: 8px; } html::-webkit-scrollbar-track { background: var(--bg); } html::-webkit-scrollbar-thumb { background: var(--faint); }
input, textarea, button { -webkit-appearance: none; appearance: none; }

/* --- copied tip */
.copied-tip { position: fixed; z-index: 80; padding: 5px 9px; background: var(--ink); color: var(--bg); font: 400 12px var(--f-mono); pointer-events: none; transform: translate(-50%, -130%); }

/* --- responsive */
@media (max-width: 1100px) {
  .head-nav { display: none; }
  .menu-btn { display: block; }
  .head-link { display: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points, .layers, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-row li:nth-child(4n) { border-right: 0; }
  .logo-row li:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-lead { grid-column: 1 / -1; }
  .cases { grid-template-columns: 1fr; }
  .case { min-height: 0; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .page-head .split { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-accounts, .tile-treasury, .tile-cards, .tile-payouts { grid-column: 1 / -1; }
  .flow { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 34px; gap: 28px; }
  .flow::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .flow::after { top: 0; left: 4px; width: 3px; height: 18%; background: linear-gradient(180deg, transparent, var(--i1), var(--i2), var(--i3), transparent); animation-name: travel-y; }
  @keyframes travel-y { from { transform: translateY(-100%); } to { transform: translateY(560%); } }
  .flow-dot { top: 4px; left: -34px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 24px 18px 24px 0; border-bottom: 1px solid var(--line); }
  .metric + .metric { padding-left: 0; }
  .metric:nth-child(even) { padding-left: 18px; border-right: 0; }
  .metrics.is-three { grid-template-columns: minmax(0, 1fr); }
  .metrics.is-three .metric { padding-left: 0; border-right: 0; }
  .article, .log-i { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .article-side { position: static; }
  .points.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shade { background: linear-gradient(to top, var(--bg) 0%, rgba(var(--bg-rgb), .92) 38%, rgba(var(--bg-rgb), .2) 62%, transparent 75%); }
}
@media (max-width: 640px) {
  .head-act .btn-sm { display: none; }
  .plans, .points, .points.is-three, .layers, .steps, .badges, .team { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-row li { border-bottom: 1px solid var(--line); }
  .logo-row li:nth-child(2n) { border-right: 0; }
  .logo-row li:nth-last-child(-n+2) { border-bottom: 0; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-social { margin-left: 0; }
  .tile { min-height: 0; padding: 20px; }
  .events li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .acc-row { grid-template-columns: 1fr auto; }
  .acc-row > span.mono { display: none; }
  .pay-row { grid-template-columns: 1fr auto 10px; }
  .pay-row span:first-child { display: none; }
  .metrics.is-two .metric, .metrics.is-two .metric:nth-child(even) { padding: 20px 12px 20px 0; }
  .metrics.is-two .metric:nth-child(even) { padding-left: 12px; }
  .hero .h1 { font-size: clamp(40px, 12.4vw, 66px); }
  .hero { min-height: 116svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn::before { animation: none; }
}
