/* Incog. One scene carries the look: a disguise kit on a walnut coat board against a custard wall. Without a key the
   kit hangs on the hooks (a fedora, a belted trench coat with round sunglasses on its button, a card of stick-on
   moustaches, brogues below); with a key the kit is worn by nobody: the coat stands, the hat floats, the glasses and a
   moustache hang in the air where a face would be. A strip of red embossed label tape on the board says what matters.
   The page is the custard of the wall, ink is espresso. The main button is a strip of that red label tape with raised
   white letters; the credit is a strip of black label tape. Red only for the tape, the hat band and the second
   headline line; cobalt only for the moustache card; khaki for what is the coat. */

@font-face { font-family: 'DM Serif Display'; src: url('/fonts/dm-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/dm-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/fonts/work-sans.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Red Hat Mono'; src: url('/fonts/red-hat-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #f5e7bf;
  --ground-hi: #fbf3dc;
  --ground-lo: #ecd9a6;
  --line: #dcc690;
  --ink: #241a15;
  --ink-2: #4a3a2c;
  --mute: #7a6650;
  --felt: #2a2526;
  --felt-hi: #3a3435;
  --felt-lo: #171314;
  --red: #d43d2a;
  --red-hi: #ef6a52;
  --red-lo: #8c1f13;
  --khaki: #c2a56c;
  --khaki-hi: #d9c08a;
  --khaki-lo: #8f7442;
  --cobalt: #2f50b8;
  --brass: #c99a3c;
  --brass-hi: #f3d98a;
  --card: #fffaf0;
  --card-lo: #efe3c6;
  --good: #2f6b3f;
  --bad: #b3361a;

  --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --text: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-0: .875rem;
  --fs-1: 1rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(2.1rem, 1.4rem + 2vw, 3.1rem);
  --fs-5: clamp(2.8rem, 1.4rem + 4vw, 5rem);

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;

  /* a fine grain on the painted wall, drawn once as an SVG */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .05 .3 0 0 0 -.13'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  /* label tape: glossy plastic, a light line along the top edge */
  --tape-red: linear-gradient(180deg, #f07560 0 2px, #e04c37 2px, #d43d2a 30%, #bf3120 78%, #9c2416);
  --tape-black: linear-gradient(180deg, #6a6261 0 2px, #3a3332 2px, #2a2524 30%, #1d1918 78%, #0f0c0b);
  /* the ends of a strip cut off by the label maker */
  --cut: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  /* raised white letters pressed into the tape */
  --emboss: 0 1.5px 0 rgba(0, 0, 0, .4), 0 -1px 0 rgba(255, 255, 255, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--grain), var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.55 var(--text); font-synthesis: none; font-variant-numeric: lining-nums;
  -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(--red); }
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(--ink); color: var(--ground-hi); }
:focus-visible { outline: 3px solid var(--ink); 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: .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: cream cards with an espresso edge; the main one is a strip of red label tape with raised white
   capitals, cut off at both ends by the label maker (the tape is drawn on ::before, so its shadow follows the cut) */
.key {
  --face: var(--card); --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.3em; border: 2px solid var(--rim); border-radius: 10px;
  background: var(--face); color: var(--on); font: 650 var(--fs-2)/1 var(--text); letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge);
  transform: translateY(0); transition: transform .06s ease-out, box-shadow .06s ease-out, background-color .12s, filter .06s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --face: #fff; }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
.key.go {
  --lift: 4px;
  position: relative; isolation: isolate; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #fff7f2; font: 700 var(--fs-2)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-shadow: var(--emboss);
  filter: drop-shadow(0 var(--lift) 0 var(--red-lo)) drop-shadow(0 calc(var(--lift) + 3px) 5px rgba(60, 30, 10, .28));
}
.key.go::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tape-red); clip-path: var(--cut); }
.key.go:hover::before { background: linear-gradient(180deg, #f6846f 0 2px, #e75a44 2px, #dc4632 30%, #c8392a 78%, #a42a1b); }
.key.go:active { transform: translateY(3px); --lift: 1px; box-shadow: none; }
.key.go:disabled { transform: none; --lift: 4px; }
.key.go:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 2px; }
.key.dark { --face: var(--ink); --edge: #000; --rim: #000; --on: #fff; }
.key.big { min-height: 62px; padding: 0 1.7em; font-size: 1.1875rem; box-shadow: 0 5px 0 var(--edge); }
.key.go.big { --lift: 5px; padding: 0 1.6em; font-size: 1.25rem; box-shadow: none; }
.key.go.big:active { --lift: 1px; transform: translateY(4px); }
.key.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.key.small { min-height: 40px; padding: 0 1em; font-size: var(--fs-1); box-shadow: 0 3px 0 var(--edge); }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.key.go.small { --lift: 3px; padding: 0 1.05em; font-size: .9375rem; box-shadow: none; }
.key.go.small:active { --lift: 1px; transform: translateY(2px); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 650; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--red); }

/* ---------- a strip of black label tape: the credit and other figures, raised white letters in the mono face */
.slip { position: relative; isolation: isolate; color: #fff7f2; text-shadow: var(--emboss); filter: drop-shadow(0 2px 0 #000) drop-shadow(0 4px 4px rgba(40, 20, 5, .25)); }
.slip::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tape-black); clip-path: var(--cut); }
.slip b, .slip .num { font-family: var(--mono); font-weight: 700; letter-spacing: .06em; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: var(--grain), color-mix(in srgb, var(--ground) 94%, 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 2.1rem/1 var(--display); letter-spacing: -.005em; color: var(--ink); }
.brand span { translate: 0 -1px; }
.brand svg { width: 40px; height: 40px; }
.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(--red); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a strip of black label tape with the amount, pressable */
.credit { display: inline-flex; align-items: center; padding: 6px; border: 0; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .slip { display: block; min-width: 96px; padding: 11px 14px 10px; font: 700 1.0625rem/1 var(--mono); letter-spacing: .08em; text-align: center; }
.credit:hover .slip::before { background: linear-gradient(180deg, #7a7271 0 2px, #4a4241 2px, #36302f 30%, #262120 78%, #141110); }
.menu-btn { display: none; }


/* ---------- the kit (drawn by kit.js as one SVG; here only its size and its motion) */
.kit { position: relative; flex: none; display: block; width: var(--bw, 520px); aspect-ratio: 560 / 660; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.kit svg { width: 100%; height: auto; overflow: visible; }
/* pointing at it: the hat tips (hello), the coat on its hook sways */
.kit .hat { transform-box: view-box; transform-origin: 340px 214px; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.kit .hung .hat { transform-origin: 130px 170px; }
.kit .hung .coat { transform-box: view-box; transform-origin: 280px 170px; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
button.kit:hover .worn .hat { transform: translate(-4px, -16px) rotate(-9deg); }
button.kit:hover .hung .hat { transform: rotate(5deg); }
button.kit:hover .hung .coat { transform: rotate(-2deg); }
button.kit:active .hat { transform: translateY(2px); transition-duration: .06s; }
button.kit:focus-visible { outline-offset: 8px; border-radius: 14px; }
/* the face of nobody bobs a little in the air */
.kit .worn .face { animation: bob 4.6s ease-in-out infinite; }
.kit .worn .stache { animation: bob 4.6s ease-in-out infinite -.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
/* a new line: the tape feeds out of the label maker; the kit just put on: the pieces drop into place, the hat last */
.kit .label.fresh { animation: feed .7s steps(9, end) both; }
@keyframes feed { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.kit .worn.shut .coat { animation: drop .7s cubic-bezier(.25, 1.4, .4, 1) both; }
.kit .worn.shut .feet { animation: drop .5s cubic-bezier(.25, 1.4, .4, 1) both .05s; }
.kit .worn.shut .face { animation: drop .6s cubic-bezier(.25, 1.6, .4, 1) both .35s; }
.kit .worn.shut .hat { animation: drop .7s cubic-bezier(.25, 1.7, .4, 1) both .55s; }
@keyframes drop { 0% { transform: translateY(-70px); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; } }

/* ---------- 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, 60px); }
.hero h1 { font: 400 var(--fs-5)/1.02 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--red); display: block; }
.hero .lead { margin-top: 26px; max-width: 31em; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 38px; }

.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: -.008em; color: var(--ink); text-wrap: balance; }
.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: 600 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: 500 1.0625rem var(--text); white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums lining-nums; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 650; padding-right: 12px; }
.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(--red); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 70%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 650; }

/* code: on the charcoal felt of the hat, strings in khaki */
.code { background: #1c1819; color: #efe9e4; 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: 8px 8px 0 0; font: 600 var(--fs-1)/1 var(--text); color: #a59a95; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #2c2627; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #2c2627; overflow-x: auto; font: 400 .9375rem/1.6 var(--mono); tab-size: 2; }
.code pre .c { color: #958a85; font-style: italic; } .code pre .s { color: var(--khaki-hi); } .code pre .k { color: #fff; font-weight: 600; }
.copy { background: #3d3637; color: #efe9e4; border: 0; border-radius: 7px; padding: 7px 11px; font: 650 var(--fs-0)/1 var(--text); }
.copy:hover { background: #4b4344; }
.copy.done { background: var(--khaki); color: var(--ink); }

/* the dark band: charcoal felt with a red hat band along its top edge */
.band.dark { background: linear-gradient(180deg, #8c1f13 0 2px, #d43d2a 2px 12px, #8c1f13 12px 14px, transparent 14px), var(--grain), radial-gradient(120% 90% at 70% 0%, rgba(255, 255, 255, .05), transparent 60%), linear-gradient(180deg, var(--felt-hi), var(--felt) 35%, var(--felt-lo)); color: #ece4de; border-top: 0; }
.band.dark h2 { color: #fbf3dc; }
.band.dark .intro { color: #c6bbb3; }
.band.dark .more:hover { text-decoration-color: var(--red-hi); }
.band.dark + .band { border-top: 0; }

/* what is kept */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 700 var(--fs-3)/1.1 var(--text); letter-spacing: -.01em; 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.4em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem); font: italic 400 1.6rem/1 var(--display); color: var(--red); }
/* what is never kept is struck out once, in red */
.ledger .no li { position: relative; color: var(--ink-2); }
.ledger .no li span { position: relative; display: inline-block; }
.ledger .no li span::after { content: ''; position: absolute; left: -.25em; right: -.3em; top: 52%; height: 3px; border-radius: 2px; background: var(--red); transform: rotate(-1.5deg); }
.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: 650 1.25rem/1.3 var(--text); letter-spacing: -.005em; 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(--red); }
.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: 650; }
.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: 18px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(18, 21, 25, .38);
}
dialog.sheet::backdrop { background: rgba(14, 16, 19, .58); 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 2.1rem/1.05 var(--display); letter-spacing: -.005em; color: var(--ink); }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 9px; 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 manila luggage tag */
.keyline { margin: 8px 2px 18px; padding: 14px 18px 13px; background: linear-gradient(135deg, #fbeed0, #ecd6a4); border-radius: 4px; box-shadow: inset 0 0 0 1.5px #b8975a, 0 3px 0 #d8bf86; font: 500 1rem/1.5 var(--mono); word-break: break-all; user-select: all; }
/* the credit: a longer strip of black label tape */
.balance { margin: 10px 5px 20px; padding: 20px 24px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 2.6rem; line-height: .95; }
.balance span { font: 600 var(--fs-0)/1.25 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #e9dfd8; 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(--red); }
.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; background: var(--ink); }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 13px; 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: 999px; 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: 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: 500 .875rem/1.4 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 600 1.4rem/1.1 var(--mono); }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 7px 10px; 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: 10px; background: var(--ground-lo); font-weight: 700; font-size: var(--fs-1); }
.status.seen { background: #f8dfa0; }
.status.ok { background: var(--ink); color: var(--card); }
/* waiting: a brass hook-plate, slowly catching the light */
.wait { width: 15px; height: 15px; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff1b8, #e2b04a 45%, #6d4710); box-shadow: 0 0 0 2px #5a3a0c; animation: wait 1.2s ease-in-out infinite; }
@keyframes wait { 0%, 100% { filter: brightness(.6) saturate(.6); } 50% { filter: brightness(1.2); box-shadow: 0 0 0 2px #5a3a0c, 0 0 12px 3px rgba(226, 176, 74, .6); } }
.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 0 4px; }
.credited .slip { margin: 6px 6px 0; padding: 22px 16px 24px; }
.credited .slip small { display: block; font: 600 var(--fs-0)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: #e9dfd8; }
.credited .slip b { display: block; font-size: 3.2rem; line-height: .95; }
.credited p { margin: 18px 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: 10px; 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.5rem, 1.5rem + 4vw, 4.4rem)/1.03 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.3125rem; line-height: 1.42; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 400 2rem/1.12 var(--display); letter-spacing: -.005em; color: var(--ink); margin: 52px 0 14px; }
.prose h3 { font: 800 1.25rem/1.2 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(--red); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .95em 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: 1120px) {
  .hero .kit { --bw: 430px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .kit { --bw: min(460px, 100%); margin: 30px 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(40, 25, 10, .14); font-size: 1.3125rem; 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(--red); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 9px; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.75rem; gap: 8px; }
  .brand svg { width: 34px; height: 34px; }
  .credit .slip { min-width: 0; font-size: .9375rem; padding: 9px 11px 8px; }
  .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): ein Streifen Hutfilz mit rotem Hutband unten, Ticker in Khaki */
.ca-bar { background: var(--felt); color: var(--card); font-size: 14px; box-shadow: inset 0 -4px 0 var(--red); }
.ca-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; min-height: 38px; padding-block: 6px 10px; }
.ca-t { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--khaki-hi); }
.ca-v { font-family: var(--mono); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 650; color: var(--ink); background: var(--card); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--khaki); color: var(--ink); }
