/* Alias. One object carries the look: the "HELLO my name is" stick-on name badge. A stack of blank badges lies on the
   registration desk, the top one is peeled off its backing, and a black chisel marker has just written on it. What it
   writes is what matters now (get a key, load Monero, the credit); under it, on the green strip, the made-up name of
   your key. The model meets that name, never yours. The page is the pale desk, the ink is marker black, the badge
   green is the one colour you press, and every button is a sticker that presses flat when you push it. */

@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Spline Sans'; src: url('/fonts/spline-sans.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Spline Sans Mono'; src: url('/fonts/spline-sans-mono.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url('/fonts/permanent-marker.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ground: #e9e5dc;
  --ground-hi: #f7f5f0;
  --ground-lo: #ddd7cb;
  --line: #d3ccbe;
  --line-2: #b3ab9b;
  --ink: #151618;
  --ink-2: #3b3c3f;
  --mute: #6f6a61;
  --green: #0d8a4a;
  --green-hi: #1fae62;
  --green-lo: #076b38;
  --green-deep: #0d2a1c;
  --paper: #ffffff;
  --liner: #eef1ee;
  --marker: #17181a;
  --highlight: #f3e24c;
  --good: #0d8a4a;
  --bad: #b3261b;

  --display: 'Schibsted Grotesk', 'Arial Black', system-ui, sans-serif;
  --text: 'Spline Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --hand: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;

  --fs-0: .8125rem;
  --fs-1: .9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.95rem, 1.3rem + 2.3vw, 3.1rem);
  --fs-5: clamp(2.5rem, 1.1rem + 3.6vw, 4rem);

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; text-decoration-color: var(--green); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--highlight); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .9em; }
.mute { color: var(--mute); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: stickers. A die-cut label standing a hair proud of its backing, its lower right corner lifted
   off the liner; pressing sticks it down flat. The green ones are badge green. */
.key {
  --face: #ffffff; --face-2: #f4f2ed; --on: var(--ink); --rim: rgba(21, 22, 24, .9); --liner: #d9d3c6; --curl: #f0ede6;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.3em; border: 0; border-radius: 9px;
  background:
    linear-gradient(135deg, transparent calc(100% - 13px), var(--curl) calc(100% - 13px), var(--curl) calc(100% - 9px), transparent calc(100% - 9px)) no-repeat,
    linear-gradient(180deg, var(--face), var(--face-2));
  color: var(--on);
  font: 700 var(--fs-2)/1 var(--text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--rim), inset 0 1.5px 0 2px rgba(255, 255, 255, .55),
    0 3px 0 0 var(--liner), 0 9px 14px -8px rgba(30, 24, 14, .55);
  transform: translateY(0) rotate(0); transition: transform .07s ease-out, box-shadow .07s ease-out, filter .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { filter: brightness(1.03); transform: translateY(-1px); }
.key:active, .key[aria-pressed='true'] {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 2px var(--rim), inset 0 1.5px 0 2px rgba(255, 255, 255, .4), 0 1px 0 0 var(--liner), 0 2px 4px -2px rgba(30, 24, 14, .45);
}
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.key.go { --face: #17a05a; --face-2: #0b7f43; --on: #fff; --rim: #065c30; --liner: #0a4a29; --curl: #dff1e6; text-shadow: 0 1px 0 rgba(0, 50, 20, .35); }
.key.dark { --face: #2c2e31; --face-2: #17181a; --on: #fff; --rim: #000; --liner: #000; --curl: #4a4d52; }
.key.big { min-height: 62px; padding: 0 1.6em; font-size: 1.1875rem; border-radius: 11px; }
.key.small { min-height: 40px; padding: 0 1em; font-size: var(--fs-1); border-radius: 8px; }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--green); }

/* ---------- the little badge: every value you read (the credit at the top, the balance, the 404) sits on a small
   name badge, green band on top, written in marker below. */
.lit {
  position: relative; border-radius: 8px; color: var(--marker); background: var(--paper);
  padding-top: 14px;
  box-shadow: 0 0 0 1px rgba(21, 22, 24, .12), 0 2px 0 rgba(0, 0, 0, .05), 0 10px 18px -10px rgba(30, 24, 14, .55);
}
.lit::before { content: ''; position: absolute; inset: 0 0 auto; height: 9px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--green-hi), var(--green)); }
.lettered { font-family: var(--hand); font-weight: 400; letter-spacing: .01em; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 900 1.85rem/1 var(--display); letter-spacing: -.045em; color: var(--ink); }
.brand span { translate: 0 -2px; }
.brand svg { width: 40px; height: 30px; rotate: -6deg; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 600; font-size: var(--fs-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current='page'] { border-bottom-color: var(--green); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small badge, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 0; border-radius: 8px; background: none; margin: 4px; transition: transform .07s; rotate: -2deg; }
.credit:hover { transform: translateY(-1px); }
.credit:active { transform: translateY(1px); }
.credit .lit { display: block; min-width: 92px; padding: 15px 12px 5px; font-size: 1.3rem; line-height: 1; text-align: center; }
.menu-btn { display: none; }

/* ---------- the scene: the registration desk. Drawn in SVG at 340 units for 34em, so one unit is a tenth of an em;
   the top badge (an HTML button) lies on the stack at the same measures, the marker is drawn above it.
   Everything scales with one font-size. */
.scene { --u: 16px; position: relative; flex: none; width: 34em; height: 34em; font-size: var(--u); }
.desk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.desk.over { z-index: 3; pointer-events: none; }
.desk .pen { transform-box: view-box; transform-origin: 228px 206px; }
.scene.on .desk .pen { animation: scrawl .7s ease-in-out; }
@keyframes scrawl { 0% { transform: translate(-58px, -6px); } 30% { transform: translate(-36px, 3px); } 55% { transform: translate(-18px, -3px); } 80% { transform: translate(-4px, 2px); } 100% { transform: none; } }

.badge {
  position: absolute; z-index: 2; left: 1.4em; top: 9.8em; width: 22.4em; height: 14.4em; padding: 0; border: 0;
  display: grid; grid-template-rows: 5.3em minmax(0, 1fr) 1.75em; text-align: center;
  border-radius: .9em; background: var(--paper); color: var(--marker);
  rotate: -5deg; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 .06em rgba(0, 0, 0, .07), 0 .15em .2em rgba(40, 30, 14, .18), 0 1.1em 1.6em -.7em rgba(40, 30, 14, .55);
  transition: transform .08s ease-out, box-shadow .08s, filter .12s;
}
.badge::after { /* the lower right corner, lifted off its backing */
  content: ''; position: absolute; right: 0; bottom: 0; width: 2.2em; height: 2.2em; border-radius: 0 0 .9em 0; pointer-events: none;
  background: linear-gradient(315deg, var(--ground) 0 33%, transparent 33.5%), linear-gradient(315deg, transparent 33%, #dfe7e2 34%, #fdfdfb 62%, transparent 64%);
  filter: drop-shadow(-.12em -.12em .12em rgba(0, 0, 0, .18));
}
.badge .strap { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: .9em .9em 0 0; color: #fff;
  background: linear-gradient(180deg, var(--green-hi), var(--green) 70%, #0a7e43); box-shadow: inset 0 .08em 0 rgba(255, 255, 255, .35); }
.badge .hello { font: 900 2.75em/.9 var(--display); letter-spacing: .01em; }
.badge .is { margin-top: .2em; font: 600 .95em/1 var(--text); letter-spacing: .02em; }
.badge .write { display: grid; place-items: center; padding: 0 1em; overflow: hidden; }
.badge .write b { font: 400 2.6em/1.05 var(--hand); white-space: nowrap; rotate: -2.5deg; translate: 0 .04em; }
.badge .write b.l8 { font-size: 2.3em; }
.badge small { display: grid; place-items: center; border-radius: 0 0 .9em .9em; background: var(--green); color: #fff; font: 600 .74em/1 var(--mono); letter-spacing: .04em; white-space: nowrap; overflow: hidden; padding: 0 2.6em; text-overflow: ellipsis; }
.badge:hover { filter: brightness(1.02); }
.badge:active { transform: translateY(.12em); box-shadow: 0 0 0 .06em rgba(0, 0, 0, .07), 0 .1em .15em rgba(40, 30, 14, .2), 0 .5em .9em -.6em rgba(40, 30, 14, .55); }
.badge:focus-visible { outline-color: var(--ink); outline-offset: 8px; border-radius: 1em; }
.scene.on .badge .write b { animation: write .7s ease-in-out both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }

/* ---------- home */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero h1 { font: 900 var(--fs-5)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.hero h1 em { display: block; font-style: normal; color: var(--green); }
.hero .lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hero .lead b { font-weight: 700; color: var(--ink); }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 38px; }

.band { padding: clamp(52px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 900 var(--fs-4)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.band h2 em { font-style: normal; color: var(--green); }
.band .intro { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 84px); align-items: start; }

/* price list */
.prices { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.prices th { text-align: left; font: 700 var(--fs-0)/1.2 var(--text); color: var(--mute); padding: 0 0 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prices td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices .n { text-align: right; font-family: var(--mono); font-size: .875rem; white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 700; padding-right: 12px; }
.prices tr.front td:first-child { font: 800 1.08rem/1.25 var(--display); letter-spacing: -.02em; }
.prices caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-0); color: var(--mute); }
.prices .id { display: block; font: 400 var(--fs-0)/1.35 var(--mono); color: var(--mute); overflow-wrap: anywhere; letter-spacing: 0; }
.prices .tag { font: 700 var(--fs-0)/1 var(--text); color: var(--green-lo); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 80%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }

/* code: marker black */
.code { background: #141517; color: #eceee9; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 10px; }
.code-tabs button { background: none; border: 0; padding: 9px 13px; border-radius: 8px 8px 0 0; font: 600 var(--fs-1)/1 var(--text); color: #9da39b; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #25272a; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #25272a; overflow-x: auto; font: 400 .8125rem/1.7 var(--mono); tab-size: 2; }
.code pre .c { color: #8c928a; } .code pre .s { color: #7ee0a6; } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #34373b; color: #eceee9; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #44484d; }
.copy.done { background: var(--green); color: #fff; }

/* the dark band: an empty backing sheet in badge green, the die-cut outlines left where the badges were peeled off */
.band.dark {
  color: #eef3ef; border-top: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='164' height='112'%3E%3Crect x='10' y='10' width='144' height='92' rx='9' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 164px 112px, var(--green-deep);
}
.band.dark .wrap { position: relative; }
.band.dark .split > div:first-child { background: rgba(13, 42, 28, .9); margin: -26px -28px; padding: 26px 28px; border-radius: 12px; }
.band.dark .intro { color: #c3d1c7; }
.band.dark h2 em { color: #7ee0a6; }
.band.dark .more:hover { text-decoration-color: #7ee0a6; }
.band.dark + .band { border-top: 0; }

/* what the server keeps, and what it never keeps */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 800 1.4rem/1.15 var(--display); letter-spacing: -.025em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ledger li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.mem { counter-reset: mem; }
.mem li { display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem, decimal-leading-zero); font: 400 .9375rem/1 var(--mono); color: var(--mute); }
/* never kept: each line next to a blank little badge, nothing written on it */
.ledger .no li { display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); }
.ledger .no li::before { content: ''; flex: none; width: 20px; height: 13px; translate: 0 1px; border-radius: 3px; rotate: -6deg;
  background: linear-gradient(180deg, var(--green) 0 5px, #fff 5px calc(100% - 2px), var(--green) calc(100% - 2px)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 2px 3px rgba(0, 0, 0, .12); }
.fine { margin-top: 26px; max-width: 46em; color: var(--ink-2); }

/* questions */
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font: 700 1.1875rem/1.3 var(--text); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 1.6rem/1 var(--mono); color: var(--mute); flex: none; }
.qa details[open] summary::after { content: '\2212'; color: var(--green); }
.qa p { padding: 0 0 20px; max-width: 44em; color: var(--ink-2); }

.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: var(--fs-1); color: var(--mute); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: baseline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { color: var(--ink); font-weight: 600; }
.foot p { max-width: 40em; }

/* ---------- the account sheet */
dialog.sheet {
  width: min(100% - 24px, 500px); max-height: min(100dvh - 24px, 860px); padding: 0; border: 0; border-radius: 14px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(20, 22, 18, .42);
}
dialog.sheet::backdrop { background: rgba(18, 22, 20, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: rise .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes rise { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.sheet-in { padding: 26px 26px 28px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font: 900 1.9rem/1.05 var(--display); letter-spacing: -.035em; }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 10px; font: 400 1.7rem/1 var(--mono); color: var(--mute); }
.x:hover { background: var(--ground-lo); color: var(--ink); }
.sheet p { font-size: var(--fs-1); line-height: 1.5; }
/* the key: printed on a white label */
.keyline { margin: 4px 0 16px; padding: 15px 16px 14px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: 400 .9375rem/1.5 var(--mono); word-break: break-all; user-select: all; }
.alias-name { margin: -4px 0 14px; font-size: var(--fs-1); color: var(--ink-2); }
.alias-name b { font: 400 1.25rem/1 var(--hand); color: var(--ink); margin-left: 4px; }
/* the credit: on a badge */
.balance { margin: 12px 4px 22px; padding: 26px 20px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; rotate: -1deg; }
.balance b { font-size: 2.9rem; line-height: .95; }
.balance span { font: 500 var(--fs-0)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: right; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.row.spread { justify-content: space-between; }
.row.center { justify-content: center; }
.full { width: 100%; }
.gap-top { margin-top: 22px; }
.warn { margin: 20px 0 22px; padding-left: 14px; border-left: 4px solid var(--green); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 12px; margin: 8px 3px 20px; }
.amounts .key { padding: 0; min-height: 46px; }
.amounts .key[aria-pressed='true'] { --face: #2c2e31; --face-2: #17181a; --on: #fff; --rim: #000; --liner: #000; --curl: #4a4d52; }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-weight: 700; pointer-events: none; }
.amounts input { width: 100%; height: 46px; padding: 0 8px 0 26px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: 700 var(--fs-2)/1 var(--text); }
.pay { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: start; }
.qr { width: 148px; height: 148px; background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.qr svg, .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.field { margin-bottom: 12px; }
.field > span { display: block; font: 600 var(--fs-0)/1.2 var(--text); color: var(--mute); margin-bottom: 5px; }
.field .val { display: flex; align-items: flex-start; gap: 8px; }
.field .val b { flex: 1; min-width: 0; font: 400 .75rem/1.45 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 600 1.2rem/1.15 var(--mono); letter-spacing: -.01em; }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 7px 10px; font: 600 var(--fs-0)/1 var(--text); flex: none; box-shadow: 0 2px 0 #000; }
.mini:hover { background: var(--ink-2); }
.mini:active { transform: translateY(1px); box-shadow: 0 1px 0 #000; }
.mini.done { background: var(--good); }
.status { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--ground-lo); font-weight: 600; font-size: var(--fs-1); }
.status.seen { background: #fbf1a8; }
.status.ok { background: var(--green); color: #fff; }
/* waiting: a marker draws a short line, lifts, draws again */
.wait { width: 30px; height: 6px; flex: none; border-radius: 3px; background: var(--marker); animation: wait 1.1s ease-in-out infinite; }
@keyframes wait { 0% { clip-path: inset(0 100% 0 0 round 3px); } 55% { clip-path: inset(0 0 0 0 round 3px); } 100% { clip-path: inset(0 0 0 100% round 3px); } }
.notes { margin-top: 16px; font-size: var(--fs-0); color: var(--mute); line-height: 1.5; }
.notes a { color: var(--ink); font-weight: 600; }
.payments { margin-top: 20px; border-top: 2px solid var(--ink); }
.payments li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.payments li span:last-child { font-family: var(--mono); font-size: var(--fs-0); color: var(--mute); text-align: right; }
.sheet-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-1); }
.sheet-foot .danger { color: var(--bad); }
.paste { display: flex; gap: 12px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: 400 var(--fs-1)/1 var(--mono); }
.err { color: var(--bad); font-weight: 600; margin-top: 10px; font-size: var(--fs-1); }
.credited { text-align: center; padding: 6px 0 4px; }
.credited .lit { margin: 10px 30px; padding: 30px 16px 22px; rotate: -2deg; }
.credited .lit small { display: block; font: 500 var(--fs-0)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--mute); }
.credited .lit b { display: block; font-size: 3.6rem; line-height: .95; }
.credited p { margin: 22px 0 20px; font-size: var(--fs-2); }

.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: var(--fs-1); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: rise .2s ease-out; max-width: calc(100% - 32px); }

/* ---------- text pages */
.page { padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 8vw, 110px); }
.page h1 { font: 900 clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem)/1 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.page h1 em { font-style: normal; color: var(--green); }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 800 1.65rem/1.1 var(--display); letter-spacing: -.03em; margin: 52px 0 14px; }
.prose h3 { font: 700 1.1875rem/1.2 var(--text); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ul li::marker { color: var(--green); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .86em var(--mono); background: var(--ground-lo); padding: .12em .38em; border-radius: 4px; }
.prose .code { margin: 16px 0 22px; }
.prose .code code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: var(--fs-1); }
.prose th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 8px 12px 8px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }

/* ---------- small screens */
@media (max-width: 1080px) {
  .scene { --u: 14px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .scene { --u: clamp(8px, (100vw - 2 * var(--gutter)) / 35, 16px); margin: 22px auto 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; z-index: 29; flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 22, 18, .14); font-size: 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'] { border-bottom-color: var(--line); color: var(--green); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 10px; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.65rem; }
  .ledger { grid-template-columns: 1fr; gap: 34px; }
  .prices .ctx { display: none; }
  .pay { grid-template-columns: 1fr; }
  .qr { margin-inline: auto; }
  .amounts { grid-template-columns: repeat(4, 1fr); }
  .amounts label { grid-column: 1 / -1; }
  .sheet-in { padding: 22px 18px 24px; }
  .hero .acts .key.big { width: 100%; }
  .band.dark .split > div:first-child { margin: -18px -14px; padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* CA-Leiste (nur wenn COIN_CA gesetzt ist) */
.ca-bar { background: var(--green-deep); color: #cfe9d8; font-size: 13px; }
.ca-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; min-height: 38px; padding-block: 6px; }
.ca-t { font: 900 16px/1 var(--display); letter-spacing: -.02em; color: #7ee0a6; }
.ca-v { font-family: var(--mono); color: var(--ground-hi); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--ground-hi); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--green); color: #fff; }
