/* Pager. One object carries the look: a 90s belt pager in see-through grape plastic, the clip on its back, a mint
   backlit LCD on its face. You are a number on it, never a name. The LCD says what matters (get a key, load Monero,
   the credit) and the pages that come in are the fast, cheap models with their price. The page is butter-yellow
   paper, grape is the one colour you press, mint is only ever an LCD. */

@font-face { font-family: 'Krona One'; src: url('/fonts/krona-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans Mono'; src: url('/fonts/ubuntu-sans-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/fonts/silkscreen.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/fonts/silkscreen-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ground: #f4ecd3;
  --ground-hi: #fbf7ea;
  --ground-lo: #ebe1c2;
  --line: #ddd0aa;
  --line-2: #c3b58c;
  --ink: #1f1329;
  --ink-2: #3e3049;
  --mute: #6c6070;
  --grape: #5b2e91;
  --grape-hi: #7d4fc0;
  --grape-lo: #3a1866;
  --grape-deep: #1d0f30;
  --smoke: #2a1838;
  --lcd: #a9f3d4;
  --lcd-hi: #c8fbe6;
  --lcd-lo: #63d3ad;
  --lcd-ink: #0d2e28;
  --led: #ff3b4e;
  --good: #1d7a4f;
  --bad: #b8283b;

  --display: 'Krona One', 'Arial Black', system-ui, sans-serif;
  --text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Ubuntu Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --seg: 'Silkscreen', 'Ubuntu Sans Mono', ui-monospace, monospace;

  --fs-0: .8125rem;
  --fs-1: .9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-5: clamp(2.3rem, 1rem + 4.2vw, 4.4rem);

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

  /* the backlit LCD: mint light, a fine pixel grid, glass sunk into the bezel */
  --lcd-light: radial-gradient(120% 150% at 45% 35%, var(--lcd-hi), var(--lcd) 45%, #86e6c2 75%, var(--lcd-lo));
  --lcd-grid: repeating-linear-gradient(90deg, rgba(13, 46, 40, .055) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(13, 46, 40, .055) 0 1px, transparent 1px 4px);
}

*, *::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.58 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(--grape); }
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(--grape); color: #fff; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .94em; }
.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: the rubber keys of the pager. A pill with a dark lip, pressed down when you push it. */
.key {
  --face: #fffcf2; --edge: var(--ink); --rim: var(--ink); --on: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em; border: 2px solid var(--rim); border-radius: 999px;
  background: var(--face); color: var(--on); font: 800 var(--fs-2)/1 var(--text); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--edge);
  transform: translateY(0); transition: transform .06s ease-out, box-shadow .06s ease-out, background-color .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --face: #fff; }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
.key.go { --face: var(--grape); --edge: var(--grape-deep); --rim: var(--grape-deep); --on: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 4px 0 var(--edge); }
.key.go:hover { --face: #6835a5; }
.key.go:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 1px 0 var(--edge); }
.key.dark { --face: var(--smoke); --edge: #000; --rim: #000; --on: #fff; }
.key.big { min-height: 60px; padding: 0 1.8em; font-size: 1.1875rem; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 5px 0 var(--edge); }
.key.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.key.small { min-height: 40px; padding: 0 1.05em; font-size: var(--fs-1); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 var(--edge); }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.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(--grape); }

/* ---------- the LCD: every place that shows a value (credit at the top, the balance, the 404) is a small backlit LCD */
.lcdv {
  position: relative; border-radius: 6px; color: var(--lcd-ink);
  background: var(--lcd-grid), var(--lcd-light);
  box-shadow: inset 0 3px 6px rgba(0, 45, 35, .35), inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 3px var(--smoke), 0 0 0 4px rgba(255, 255, 255, .25);
}
.seg { font-family: var(--seg); font-weight: 400; color: var(--lcd-ink); text-shadow: .06em .08em 0 rgba(13, 46, 40, .16); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- 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: 400 1.55rem/1 var(--display); letter-spacing: -.04em; }
.brand span { translate: 0 -1px; }
.brand svg { width: 42px; height: 34px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 700; 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(--grape); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small LCD, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; margin: 4px; border: 0; border-radius: 6px; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .lcdv { display: block; min-width: 96px; padding: 9px 11px 8px; font-size: 1.05rem; line-height: 1; text-align: right; }
.menu-btn { display: none; }

/* ---------- the scene: the pager. Everything is measured in em, so it scales with one font-size. */
.scene { --u: 16px; position: relative; flex: none; width: 36em; height: 26em; font-size: var(--u); }
.pager { position: absolute; left: 1em; top: 1.2em; width: 34em; height: 23em; transform: rotate(-4deg); transform-origin: 50% 60%; }
.shell { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shell .print { font-family: var(--display); }
.shell .num { font-family: var(--mono); }

/* the LCD on the pager: it is the button. Three lines: what it is, the big line, the pages coming in. */
.screen {
  position: absolute; left: 3.8em; top: 6.2em; width: 19em; height: 8.4em; padding: .55em .95em .5em; border: 0; border-radius: .5em;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center; text-align: left;
  background: var(--lcd-grid), var(--lcd-light); color: var(--lcd-ink);
  box-shadow: inset 0 .4em .6em rgba(0, 45, 35, .4), inset 0 0 0 .1em rgba(0, 0, 0, .3), inset 0 -.2em .3em rgba(255, 255, 255, .35);
  -webkit-tap-highlight-color: transparent; overflow: hidden;
}
.screen::after { /* the glass: a soft reflection across the upper half */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(168deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, 0) 52%);
}
.screen:hover { filter: brightness(1.04) saturate(1.05); }
.screen:active { transform: translateY(.06em); }
.screen:focus-visible { outline-offset: .5em; }
.screen .row { display: flex; align-items: center; justify-content: space-between; gap: .6em; font: 400 .8em/1 var(--seg); letter-spacing: .04em; text-shadow: .07em .09em 0 rgba(13, 46, 40, .16); white-space: nowrap; }
.screen .icons { display: flex; align-items: flex-end; gap: .55em; flex: none; }
.screen .icons svg { height: .95em; width: auto; fill: currentColor; }
.screen .big { display: block; font: 400 2.55em/1 var(--seg); letter-spacing: .01em; white-space: nowrap; text-shadow: .045em .06em 0 rgba(13, 46, 40, .18); font-variant-numeric: tabular-nums; }
.screen .big.l8 { font-size: 2.2em; }
.screen .feed { position: relative; height: 1em; overflow: hidden; font: 400 .8em/1 var(--seg); letter-spacing: .03em; text-shadow: .07em .09em 0 rgba(13, 46, 40, .16); }
.screen .feed span { display: block; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.screen .feed span.in { animation: feed .45s steps(4) both; }
@keyframes feed { from { transform: translateY(100%); } }
.screen.fresh .big { animation: blinkin .6s steps(1, end); }
@keyframes blinkin { 0%, 34% { opacity: 0; } 17%, 50%, 100% { opacity: 1; } }

/* the big round key on the right of the face: cream rubber with the envelope printed on it */
.read {
  position: absolute; left: 25.2em; top: 7.2em; width: 6.4em; height: 6.4em; padding: 0; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #fffdf6, #f3ead6 45%, #d9ccae 80%, #bba985);
  box-shadow: 0 0 0 .32em #241233, 0 0 0 .42em rgba(255, 255, 255, .18), 0 .34em 0 .32em #160b22, inset 0 -.2em .3em rgba(80, 60, 30, .3);
  display: grid; place-items: center; transition: transform .07s ease-out, box-shadow .07s; -webkit-tap-highlight-color: transparent;
}
.read svg { width: 2.6em; height: 2.6em; }
.read:active { transform: translateY(.22em); box-shadow: 0 0 0 .32em #241233, 0 0 0 .42em rgba(255, 255, 255, .18), 0 .1em 0 .32em #160b22, inset 0 -.1em .2em rgba(80, 60, 30, .3); }
.read:focus-visible { outline-offset: .6em; border-radius: 50%; }
/* the red light that blinks when a page comes in */
.led { position: absolute; left: 29.5em; top: 4.3em; width: 1em; height: 1em; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ff9aa5, #c2142b 55%, #6d0612); box-shadow: 0 0 0 .14em #241233, inset 0 0 .1em rgba(0, 0, 0, .4); }
.led.on { animation: led 1.6s steps(1) 2 both; }
@keyframes led {
  0%, 50% { background: radial-gradient(circle at 38% 34%, #fff, #ff5a6a 40%, #e0172f 75%); box-shadow: 0 0 0 .14em #241233, 0 0 .8em .25em rgba(255, 59, 78, .65); }
  25%, 75%, 100% { background: radial-gradient(circle at 38% 34%, #ff9aa5, #c2142b 55%, #6d0612); box-shadow: 0 0 0 .14em #241233; }
}

/* ---------- 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(24px, 4vw, 56px); }
.hero h1 { font: 400 var(--fs-5)/1.02 var(--display); letter-spacing: -.055em; }
.hero h1 em { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--grape); }
.hero .lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero .lead b { font-weight: 800; color: var(--ink); }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 36px; }

.band { padding: clamp(52px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 400 var(--fs-4)/1.08 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.band h2 em { font-style: normal; color: var(--grape); }
.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: .9375rem; 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-weight: 800; font-size: 1.125rem; letter-spacing: -.015em; }
.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.3 var(--mono); color: var(--mute); overflow-wrap: anywhere; }
.prices .tag { font: 700 var(--fs-0)/1 var(--text); color: var(--grape); 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: 800; }

/* code: the dark grape of the clip */
.code { background: #170b25; color: #ece4f6; border-radius: var(--r); overflow: hidden; }
.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: 10px 10px 0 0; font: 700 var(--fs-1)/1 var(--text); color: #a596b8; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #26163a; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #26163a; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #9284a6; } .code pre .s { color: var(--lcd); } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #3a2754; color: #ece4f6; border: 0; border-radius: 999px; padding: 7px 12px; font: 700 var(--fs-0)/1 var(--text); }
.copy:hover { background: #4b3368; }
.copy.done { background: var(--lcd); color: var(--lcd-ink); }

/* the dark band */
.band.dark { background: var(--grape-deep); color: #f1eaf8; border-top: 0; }
.band.dark .intro { color: #c3b4d4; }
.band.dark h2 em { color: var(--lcd); }
.band.dark .more:hover { text-decoration-color: var(--lcd); }
.band.dark + .band { border-top: 0; }

/* what the key remembers, and what never reaches us */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 400 1.3rem/1.15 var(--display); letter-spacing: -.04em; 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.6em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: '0' counter(mem); font: 400 .95rem/1 var(--seg); color: var(--grape); }
/* never kept: each line struck off with a short LCD bar gone dark */
.ledger .no li { display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); }
.ledger .no li::before { content: ''; flex: none; width: 22px; height: 12px; translate: 0 1px; border-radius: 3px; background: var(--lcd-grid), #2f4d45; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.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: 800 1.1875rem/1.3 var(--text); letter-spacing: -.015em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 1.4rem/1 var(--seg); color: var(--mute); flex: none; }
.qa details[open] summary::after { content: '-'; color: var(--grape); }
.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: 700; }
.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: 20px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(30, 12, 45, .4);
}
dialog.sheet::backdrop { background: rgba(29, 15, 48, .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: 400 1.75rem/1.1 var(--display); letter-spacing: -.05em; }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 50%; 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: typed on a white card */
.keyline { margin: 4px 0 16px; padding: 15px 16px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 400 1rem/1.45 var(--mono); word-break: break-all; user-select: all; }
/* the credit: on an LCD */
.balance { margin: 10px 4px 18px; padding: 18px 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 2.6rem; line-height: .9; }
.balance span { font: 400 var(--fs-0)/1.3 var(--seg); text-align: right; }
.row { display: flex; flex-wrap: wrap; gap: 12px; 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(--grape); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 9px; margin: 6px 0 18px; }
.amounts .key { padding: 0; min-height: 46px; }
.amounts .key[aria-pressed='true'] { --face: var(--ink); --edge: #000; --on: #fff; }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 13px; top: 50%; translate: 0 -50%; font-weight: 800; pointer-events: none; }
.amounts input { width: 100%; height: 46px; padding: 0 8px 0 27px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 800 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: 10px; 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: 700 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 .8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 700 1.3rem/1.1 var(--mono); letter-spacing: -.01em; }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 7px 11px; font: 700 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: 12px; background: var(--ground-lo); font-weight: 700; font-size: var(--fs-1); }
.status.seen { background: #d9f6e8; }
.status.ok { background: var(--grape); color: #fff; }
/* waiting: the signal bars of the pager fill up one after the other */
.wait { width: 22px; height: 14px; flex: none; background:
  linear-gradient(var(--grape), var(--grape)) 0 100% / 4px 5px no-repeat,
  linear-gradient(var(--grape), var(--grape)) 6px 100% / 4px 8px no-repeat,
  linear-gradient(var(--grape), var(--grape)) 12px 100% / 4px 11px no-repeat,
  linear-gradient(var(--grape), var(--grape)) 18px 100% / 4px 14px no-repeat;
  animation: wait 1.2s steps(4) infinite; }
@keyframes wait { 0% { clip-path: inset(0 100% 0 0); } 25% { clip-path: inset(0 70% 0 0); } 50% { clip-path: inset(0 45% 0 0); } 75% { clip-path: inset(0 18% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.notes { margin-top: 16px; font-size: var(--fs-0); color: var(--mute); line-height: 1.5; }
.notes a { color: var(--ink); font-weight: 700; }
.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: 10px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 400 var(--fs-1)/1 var(--mono); }
.err { color: var(--bad); font-weight: 700; margin-top: 10px; font-size: var(--fs-1); }
.credited { text-align: center; padding: 6px 4px 4px; }
.credited .lcdv { padding: 18px 16px 20px; margin: 4px; }
.credited .lcdv small { display: block; font: 400 var(--fs-0)/1 var(--seg); margin-bottom: 10px; }
.credited .lcdv b { display: block; font-size: 3.6rem; line-height: .9; }
.credited p { margin: 20px 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: 999px; font-weight: 700; 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: 400 clamp(2.2rem, 1.3rem + 3.4vw, 3.9rem)/1.04 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.page h1 em { font-style: normal; color: var(--grape); }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 400 1.6rem/1.12 var(--display); letter-spacing: -.05em; margin: 52px 0 14px; }
.prose h3 { font: 800 1.1875rem/1.25 var(--text); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ul li::marker { color: var(--grape); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .9em var(--mono); background: var(--ground-lo); padding: .12em .38em; border-radius: 5px; }
.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: 800; 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: 1100px) {
  .scene { --u: 13.5px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .scene { --u: clamp(8px, (100vw - 2 * var(--gutter)) / 36.5, 16px); margin: 24px 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(30, 12, 45, .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(--grape); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 50%; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.35rem; }
  .brand svg { width: 38px; height: 31px; }
  .credit .lcdv { min-width: 0; font-size: .95rem; padding: 8px 9px 7px; }
  .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%; }
}
@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(--grape-deep); color: var(--lcd); 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-family: var(--seg); font-size: 16px; color: var(--lcd); }
.ca-v { font-family: var(--mono); color: var(--ground-hi); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 800; color: var(--ink); background: var(--ground-hi); border: 0; border-radius: 999px; padding: 4px 11px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--lcd); color: var(--lcd-ink); }
