/* Proxy. One scene carries the look: a desk seen from behind the office chair, and in the chair a life-size cardboard
   cutout of a person, the stand-in, typing to the AI for you. You are nowhere in the picture. Kraft board with a
   corrugated edge, packing tape, a stencil print; a periwinkle office chair; a monitor whose screen says what matters.
   The page is the pale lavender-grey of an office wall, ink is aubergine-black. The main button is a piece of kraft
   board with its corrugated edge under it and a strip of tape on its end; the credit sits on a little lit screen.
   Periwinkle only for the chair, the second headline line and what is current; kraft for what is cardboard. */

@font-face { font-family: 'Tilt Warp'; src: url('/fonts/tilt-warp.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Parkinsans'; src: url('/fonts/parkinsans.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Intel One Mono'; src: url('/fonts/intel-one-mono.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Big Shoulders Stencil'; src: url('/fonts/stencil.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #ebe9f0;
  --ground-hi: #f7f6fa;
  --ground-lo: #dedbe6;
  --line: #cdc9d8;
  --ink: #1e1b2b;
  --ink-2: #3d3850;
  --mute: #6a657e;
  --bake: #1d1c24;
  --bake-hi: #2c2a36;
  --bake-lo: #111016;
  --kraft: #c8955a;
  --kraft-hi: #e2b77f;
  --kraft-lo: #8d6234;
  --flute: #7a5126;
  --amber: #e2b77f;
  --amber-hi: #f0d3a6;
  --nickel: #c3c1cd;
  --card: #fbfafc;
  --card-lo: #e4e1ea;
  --red: #5552c9;
  --red-hi: #7f7de6;
  --red-lo: #33318a;
  --peri: #5552c9;
  --screen-hi: #f1f2ff;
  --good: #2d6b4f;
  --bad: #b3361a;

  --display: 'Tilt Warp', 'Avenir Next', system-ui, sans-serif;
  --text: 'Parkinsans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Intel One Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --stencil: 'Big Shoulders Stencil', Impact, sans-serif;

  --fs-0: .875rem;
  --fs-1: 1rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.95rem, 1.3rem + 1.9vw, 2.85rem);
  --fs-5: clamp(2.5rem, 1.3rem + 3.6vw, 4.4rem);

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

  /* a fine grain on the office 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 .12 0 0 0 0 .1 0 0 0 0 .2 .3 0 0 0 -.13'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  /* the lit screen: white in the middle, a cool periwinkle at the edges */
  --glass: radial-gradient(ellipse at 50% 45%, #ffffff, #f1f2ff 55%, #d3d6fb);
  /* kraft board: the board with its flutes showing faintly */
  --board: repeating-linear-gradient(90deg, rgba(110, 74, 34, .1) 0 1px, transparent 1px 6px), linear-gradient(180deg, #e2b77f, #c8955a 55%, #b9844a);
  /* the corrugated edge under a piece of board: the flutes seen end-on */
  --edge: repeating-linear-gradient(90deg, #7a5126 0 3px, #b78450 3px 5px, #7a5126 5px 6px);
}

*, *::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.5 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: white paper cards with an ink edge; the main one is a piece of kraft board, its corrugated edge
   showing under it, a strip of packing tape folded over its left end */
.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: 700 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;
  -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); }
/* the kraft board: ink print on it, the corrugated edge drawn as a strip under the face, the tape over the left end */
.key.go {
  --lift: 5px; --tape: 1.15em;
  position: relative; isolation: isolate; border: 0; border-radius: 3px; padding-left: 1.9em; padding-right: 1.5em;
  background: var(--board); color: var(--ink); font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, .6), inset 0 -1px 0 rgba(90, 58, 24, .35), 0 var(--lift) 0 -1px #7a5126, 0 calc(var(--lift) + 3px) 6px rgba(30, 27, 43, .22);
}
.key.go::after {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: calc(-1 * var(--lift)); height: var(--lift);
  background: var(--edge); border-radius: 0 0 3px 3px;
}
.key.go::before {
  content: ''; position: absolute; left: .45em; top: -4px; bottom: -4px; width: var(--tape);
  background: linear-gradient(180deg, rgba(246, 226, 188, .8), rgba(222, 186, 132, .62) 50%, rgba(205, 164, 108, .78));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .35), inset -1px 0 0 rgba(140, 100, 50, .25);
  transform: rotate(-4deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 85% 97%, 70% 100%, 50% 97%, 30% 100%, 15% 97%, 0 100%);
}
.key.go:hover { background: repeating-linear-gradient(90deg, rgba(110, 74, 34, .1) 0 1px, transparent 1px 6px), linear-gradient(180deg, #ebc28c, #d29f63 55%, #c08b50); }
.key.go:active { transform: translateY(4px); --lift: 1px; }
.key.go:disabled { transform: none; --lift: 5px; }
.key.go:focus-visible { outline: 3px solid var(--peri); outline-offset: 5px; }
.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: 6px; padding-left: 2.25em; padding-right: 1.8em; box-shadow: inset 0 1px 0 rgba(255, 244, 220, .6), inset 0 -1px 0 rgba(90, 58, 24, .35), 0 var(--lift) 0 -1px #7a5126, 0 calc(var(--lift) + 4px) 8px rgba(30, 27, 43, .24); }
.key.go.big:active { --lift: 1px; transform: translateY(5px); }
.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: 4px; --tape: .9em; padding-left: 1.6em; padding-right: 1.1em; box-shadow: inset 0 1px 0 rgba(255, 244, 220, .6), 0 var(--lift) 0 -1px #7a5126, 0 calc(var(--lift) + 2px) 4px rgba(30, 27, 43, .2); }
.key.go.small:active { --lift: 1px; transform: translateY(3px); }
.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(--peri); }

/* ---------- a little lit screen: cool white glass in a dark bezel, the figure in ink in the display face */
.slip {
  position: relative; color: var(--ink); background: var(--glass); border-radius: 6px;
  box-shadow: 0 0 0 4px #1d1c24, 0 0 0 5.5px #4b4858, 0 0 20px 6px rgba(190, 196, 255, .45), 0 4px 8px 4px rgba(30, 27, 43, .2);
}
.slip b, .slip .num { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

/* ---------- 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 1.95rem/1 var(--display); letter-spacing: 0; color: var(--ink); }
.brand span { translate: 0 1px; }
.brand svg { width: 38px; height: 38px; }
.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(--peri); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a little lit sign with the amount on it, 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: 100px; padding: 10px 14px 9px; font: 400 1.1875rem/1 var(--display); letter-spacing: .02em; text-align: center; }
.credit:hover .slip { box-shadow: 0 0 0 4px #1d1c24, 0 0 0 5.5px #6a6780, 0 0 26px 9px rgba(190, 196, 255, .7), 0 4px 8px 4px rgba(30, 27, 43, .24); }
.menu-btn { display: none; }


/* ---------- the desk (drawn by desk.js as one SVG; here only its size and its motion) */
.desk { position: relative; flex: none; display: block; width: var(--bw, 540px); aspect-ratio: 560 / 620; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.desk svg { width: 100%; height: auto; overflow: visible; }
/* the stand-in rocks on its seat when you point at it: it is only cardboard */
.desk .cutout { transform-box: view-box; transform-origin: 232px 472px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.desk .chair { transform-box: view-box; transform-origin: 232px 520px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
button.desk:hover .cutout { transform: rotate(-1.8deg); }
button.desk:hover .chair { transform: rotate(-1.2deg); }
button.desk:active .cutout { transform: rotate(.8deg); transition-duration: .06s; }
button.desk:focus-visible { outline-offset: 8px; border-radius: 14px; }
/* a new line: the screen flicks on; a new stand-in: lowered into the chair, rocks once; the caret blinks; steam rises */
.desk .screen.fresh { transform-box: view-box; transform-origin: 330px 165px; animation: flick .55s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes flick { 0% { opacity: 0; transform: scale(1.04, .02); } 35% { opacity: 1; transform: scale(1, .06); } 100% { opacity: 1; transform: none; } }
.desk .caret { animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.desk .cutout.shut { animation: seat 1.1s cubic-bezier(.25, .9, .3, 1) both; }
@keyframes seat { 0% { transform: translateY(-120px) rotate(-6deg); opacity: 0; } 30% { opacity: 1; } 60% { transform: translateY(4px) rotate(2.4deg); } 80% { transform: rotate(-1.2deg); } 100% { transform: none; } }
.desk .steam path { animation: steam 3.2s ease-in-out infinite; }
.desk .steam path + path { animation-delay: -1.6s; }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: .9; transform: translateY(-4px); } }

/* ---------- 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.04 var(--display); letter-spacing: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--peri); display: block; }
.hero .lead { margin-top: 26px; max-width: 30em; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.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.12 var(--display); letter-spacing: 0; 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: 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: 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: 700; 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(--peri); 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: 700; }

/* code: on the black of the monitor bezel, strings in kraft */
.code { background: #15141b; color: #ecebf2; 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: 700 var(--fs-1)/1 var(--text); color: #9a96ad; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #24222e; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #24222e; overflow-x: auto; font: 400 .9375rem/1.6 var(--mono); tab-size: 2; }
.code pre .c { color: #8a86a0; font-style: italic; } .code pre .s { color: var(--amber-hi); } .code pre .k { color: #fff; font-weight: 600; }
.copy { background: #34313f; color: #ecebf2; border: 0; border-radius: 7px; padding: 7px 11px; font: 700 var(--fs-0)/1 var(--text); }
.copy:hover { background: #423f50; }
.copy.done { background: var(--kraft-hi); color: var(--ink); }

/* the dark band: the black bezel of the monitor under a thin steel edge, the headline in the light of its screen */
.band.dark { background: linear-gradient(180deg, #ffffff 0 1px, #b9b6c6 1px 3px, #4b4858 3px 4px, transparent 4px), radial-gradient(120% 90% at 70% 0%, rgba(150, 156, 255, .16), transparent 60%), linear-gradient(180deg, var(--bake-hi), var(--bake) 35%, var(--bake-lo)); color: #e6e5ee; border-top: 0; }
.band.dark h2 { color: var(--screen-hi); text-shadow: 0 0 22px rgba(190, 196, 255, .35); }
.band.dark .intro { color: #b9b6c9; }
.band.dark .more:hover { text-decoration-color: var(--kraft-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: 800 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: 800 1.5rem/1 var(--stencil); color: var(--kraft-lo); }
/* what is never kept is crossed out once, with a strip of packing tape */
.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: -.3em; right: -.4em; top: 30%; height: .5em; background: linear-gradient(180deg, rgba(232, 200, 148, .55), rgba(200, 158, 100, .45)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); transform: rotate(-1.4deg); clip-path: polygon(0 0, 100% 0, 98% 30%, 100% 60%, 98% 100%, 0 100%, 2% 70%, 0 35%); }
.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.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(--peri); }
.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: 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 1.9rem/1.1 var(--display); letter-spacing: 0; 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: printed on a white label with a kraft border, like the label on a shipping box */
.keyline { margin: 8px 2px 18px; padding: 14px 18px 13px; background: linear-gradient(180deg, #fffdf8, var(--card) 60%, var(--card-lo)); border-radius: 3px; box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4.5px var(--kraft), 0 0 0 1px var(--line), 0 3px 0 var(--card-lo); font: 400 1rem/1.5 var(--mono); word-break: break-all; user-select: all; }
/* the credit: a larger lit screen */
.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: 3rem; line-height: .95; }
.balance span { font: 700 var(--fs-0)/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); 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(--kraft); }
.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: #fbe9bd; }
.status.ok { background: var(--ink); color: var(--card); }
/* waiting: the power light of the monitor, breathing periwinkle */
.wait { width: 15px; height: 15px; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f1f2ff, #7f7de6 45%, #33318a); box-shadow: 0 0 0 2px #1d1c24; animation: wait 1.2s ease-in-out infinite; }
@keyframes wait { 0%, 100% { filter: brightness(.6) saturate(.6); } 50% { filter: brightness(1.15); box-shadow: 0 0 0 2px #1d1c24, 0 0 12px 3px rgba(127, 125, 230, .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: 700 var(--fs-0)/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-2); }
.credited .slip b { display: block; font-size: 3.8rem; 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.3rem, 1.5rem + 3.6vw, 4rem)/1.06 var(--display); letter-spacing: 0; 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 1.75rem/1.16 var(--display); letter-spacing: 0; 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(--kraft-lo); }
.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 .desk { --bw: 440px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .desk { --bw: min(480px, 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(18, 21, 25, .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(--peri); }
  .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.55rem; gap: 8px; }
  .brand svg { width: 32px; height: 32px; }
  .credit .slip { min-width: 0; font-size: 1rem; padding: 8px 11px 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): ein Streifen Monitor-Schwarz, Ticker in Kraft, Knöpfe wie Papier und Pappe */
.ca-bar { background: var(--bake); color: var(--card); font-size: 14px; box-shadow: inset 0 -3px 0 var(--kraft); }
.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(--display); font-weight: 400; font-size: 17px; color: var(--kraft-hi); }
.ca-v { font-family: var(--mono); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--card); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--kraft); color: var(--ink); }
