/* Shredz. One object carries the look: a desk paper shredder in ultramarine plastic. Your question is the sheet
   going in, the strips below are what is left of it. Its red LED window shows what matters (key, credit); every
   button is one of the machine's plastic keys. The ground is a cool grey desk. */

@font-face { font-family: 'Hubot Sans'; src: url('/fonts/hubot-sans.woff2') format('woff2'); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/fonts/mona-sans.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Kode Mono'; src: url('/fonts/kode-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --desk: #e6e7eb;
  --desk-hi: #f3f4f7;
  --desk-lo: #d9dbe1;
  --line: #c8cbd3;
  --ink: #0f1117;
  --body: #2a2d38;
  --mute: #5a5f6e;
  --paper: #ffffff;
  --paper-edge: #cfd2da;
  --blue: #2733c8;
  --blue-hi: #4553ea;
  --blue-lo: #1a2191;
  --blue-deep: #10145f;
  --plastic: #f7f8fa;
  --plastic-lo: #b3b7c3;
  --glass: #0b0c11;
  --led: #ff3b2f;
  --good: #157a46;
  --bad: #c42a1c;

  --display: 'Hubot Sans', 'Mona Sans', system-ui, sans-serif;
  --text: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Kode Mono', ui-monospace, 'SF Mono', Menlo, monospace;

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

  --page: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--desk); 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; }
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(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue-hi); 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; }
/* Kode Mono joins // and similar pairs: in code and addresses every character stands alone */
:where(code, pre, .mono, .led, .id, .keyslip b, .field b, .meta, .n) { font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; }
.mute { color: var(--mute); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- plastic keys: every button on the site */
.key {
  --face: var(--plastic); --edge: var(--plastic-lo); --on: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em; border: 0; border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--face) 88%, #fff) 0%, var(--face) 40%, color-mix(in srgb, var(--face) 92%, #000) 100%);
  color: var(--on); font: 650 var(--fs-2)/1 var(--text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge), 0 6px 12px rgba(15, 17, 23, .16), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: translateY(0); transition: transform .06s ease-out, box-shadow .06s ease-out;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { filter: brightness(1.04); }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 2px 4px rgba(15, 17, 23, .18), inset 0 1px 0 rgba(255, 255, 255, .4); }
.key:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.key.go { --face: var(--blue); --edge: var(--blue-deep); --on: #fff; box-shadow: 0 4px 0 var(--edge), 0 6px 12px rgba(16, 20, 95, .28), inset 0 1px 0 rgba(255, 255, 255, .28); }
.key.go:active, .key.go[aria-pressed='true'] { box-shadow: 0 1px 0 var(--edge), 0 2px 4px rgba(16, 20, 95, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.key.dark { --face: #23262f; --edge: #050608; --on: #f3f4f7; box-shadow: 0 4px 0 var(--edge), 0 6px 12px rgba(15, 17, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .14); }
.key.big { min-height: 58px; padding: 0 1.6em; font-size: 1.1875rem; border-radius: 12px; }
.key.small { min-height: 38px; padding: 0 .95em; font-size: var(--fs-1); border-radius: 8px; box-shadow: 0 3px 0 var(--edge), 0 4px 8px rgba(15, 17, 23, .14), inset 0 1px 0 rgba(255, 255, 255, .55); }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .3); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.plain:hover { text-decoration-thickness: .14em; }

/* ---------- the LED window: where the machine shows values */
.led {
  display: block; background: var(--glass); color: var(--led); border-radius: 8px;
  font-family: var(--mono); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.led-frame { background: linear-gradient(180deg, var(--blue-hi), var(--blue) 40%, var(--blue-lo)); padding: 8px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--blue-deep), 0 8px 18px rgba(16, 20, 95, .2); }
.led .dim { opacity: .45; }

/* ---------- paper: what you keep in your hand */
.slip { position: relative; background: var(--paper); border-radius: 3px; box-shadow: 0 0 0 1px var(--paper-edge), 0 10px 22px rgba(15, 17, 23, .1); }

/* ---------- the mark */
.mark { flex: none; }
.mark .m-body { fill: var(--blue); }
.mark .m-slot { fill: var(--glass); }
.mark .m-paper { fill: #fff; }
.mark .m-ink { fill: var(--ink); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--desk) 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: 10px; text-decoration: none; font: 900 1.75rem/1 var(--display); font-stretch: 108%; letter-spacing: -.035em; }
.brand svg { width: 34px; height: 34px; }
.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: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--ink); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit window in the header: the machine's LED, in a blue bezel you can press */
.credit { display: inline-flex; align-items: center; border: 0; padding: 5px; border-radius: 11px; background: linear-gradient(180deg, var(--blue-hi), var(--blue) 45%, var(--blue-lo)); box-shadow: 0 3px 0 var(--blue-deep), 0 5px 10px rgba(16, 20, 95, .25), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .06s; }
.credit:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--blue-deep); }
.credit .led { padding: 8px 12px 7px; font-size: 1.125rem; line-height: 1; min-width: 92px; text-align: right; border-radius: 6px; }
.menu-btn { display: none; }

/* ---------- the shredder. Everything is in em: 1em is a 44th of its width. */
.shredder { --w: 440px; display: flow-root; position: relative; width: var(--w); flex: none; font-size: calc(var(--w) / 44); line-height: 1.3; }
.shredder::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -2.4em; height: 4.2em; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 24, 40, .34), rgba(20, 24, 40, .12) 60%, transparent); }

/* the sheet, standing in the feed slot: its lower edge sits at the middle of the slot */
.sheet {
  position: absolute; left: 50%; top: 0; z-index: 2; width: 28em; height: 24.6em; translate: -50% 0;
  padding: 2.3em 2.4em 0; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #fff 0, #fff 15em, #eceef3 19.6em, #cdd0da 21.6em);
  box-shadow: 0 0 0 .1em rgba(15, 17, 23, .07), .6em -.2em 1.6em rgba(15, 17, 23, .08);
}
.sheet p { font: 500 1.62em/1.48 var(--text); letter-spacing: -.01em; text-wrap: pretty; }
.sheet p.empty { color: #9aa0ae; }
.sheet .rule { display: block; margin-top: 1.4em; height: .5em; width: 62%; border-top: .12em solid #e3e5ea; }

.head { position: relative; margin-top: 19em; }
/* the top of the head, seen from above: narrower at the back */
.head-top {
  position: relative; height: 5em; clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #5d68f0 0%, #4a56e6 55%, #3d49dc 100%);
}
.slot { position: absolute; left: 50%; top: 1.9em; width: 31em; height: 1.4em; translate: -50% 0; border-radius: .7em; background: linear-gradient(180deg, #05060c, #10132b); box-shadow: 0 -.1em 0 rgba(0, 0, 0, .25); }
/* the front half of the slot and the lip in front of it, drawn over the sheet */
.lip {
  position: absolute; left: 0; right: 0; top: 2.6em; height: 2.4em; z-index: 3; clip-path: polygon(1.44% 0, 98.56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #5d68f0 0%, #4a56e6 55%, #3d49dc 100%) 0 -2.6em / 100% 5em no-repeat;
}
.lip::before { content: ''; position: absolute; left: 50%; top: 0; width: 31em; height: .7em; translate: -50% 0; border-radius: 0 0 .7em .7em; background: linear-gradient(180deg, #10132b, #1d2250); box-shadow: 0 .12em 0 rgba(255, 255, 255, .35); }
.face {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 2em; height: 10.4em; padding: 0 2.4em 0 2.6em;
  border-radius: 0 0 1.4em 1.4em;
  background: linear-gradient(180deg, #3340d4 0%, var(--blue) 18%, var(--blue) 70%, #2029b0 100%);
  box-shadow: inset 0 .14em 0 rgba(255, 255, 255, .34), inset 0 -.5em .8em rgba(10, 12, 60, .35), 0 .5em 1.4em rgba(16, 20, 95, .3);
}
.maker { font: 900 2.5em/1 var(--display); font-stretch: 110%; letter-spacing: -.04em; color: #1c2499; text-shadow: 0 .04em 0 rgba(255, 255, 255, .22), 0 -.03em 0 rgba(0, 0, 40, .35); }
/* the start key: round, white plastic, pressable */
.start {
  flex: none; width: 5.2em; height: 5.2em; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--blue);
  background: radial-gradient(circle at 50% 35%, #fff 0 30%, #eef0f5 62%, #d2d6e0 100%);
  box-shadow: 0 .4em 0 #8f95ab, 0 .6em 1em rgba(0, 0, 30, .45), inset 0 .1em 0 #fff, 0 0 0 .45em #1c2499;
  transition: transform .06s, box-shadow .06s;
}
.start:active { transform: translateY(.3em); box-shadow: 0 .1em 0 #8f95ab, 0 .2em .4em rgba(0, 0, 30, .45), inset 0 .1em 0 #fff, 0 0 0 .45em #1c2499; }
.start svg { width: 2.2em; height: 2.2em; }
.window-led { margin-left: auto; flex: none; width: 17.4em; padding: .7em; border-radius: 1.1em; background: #151a6e; box-shadow: inset 0 .15em .3em rgba(0, 0, 30, .6), 0 .1em 0 rgba(255, 255, 255, .25); }
.window-led .led { display: flex; flex-direction: column; justify-content: center; gap: .35em; height: 6.6em; padding: 0 1.1em; border-radius: .55em; }
.led-big { font-size: 2.7em; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.led-small { font-size: 1.12em; line-height: 1.1; letter-spacing: .06em; white-space: nowrap; }

/* the bin: smoked plastic with a window, the strips hanging inside */
.bin {
  position: relative; width: 41em; height: 25em; margin: 0 auto; padding: 1.7em 2em 2.2em;
  border-radius: 0 0 1.6em 1.6em;
  background: linear-gradient(180deg, #1c2050 0%, #262b62 12%, #2a2f6a 100%);
  box-shadow: inset 0 -.4em .8em rgba(0, 0, 20, .4), inset .2em 0 0 rgba(255, 255, 255, .05), inset -.2em 0 0 rgba(0, 0, 0, .15);
}
.bin::before { content: ''; position: absolute; left: 50%; top: .5em; width: 9em; height: .7em; translate: -50% 0; border-radius: .35em; background: #11143a; box-shadow: 0 .1em 0 rgba(255, 255, 255, .12); }
.window { position: relative; height: 100%; overflow: hidden; border-radius: .9em; background: #3a3f63; box-shadow: inset 0 .2em .6em rgba(0, 0, 20, .55); }
.window .strips { width: 100%; height: 100%; }
/* smoked glass over the strips, and one reflection */
.window::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(112deg, transparent 0 58%, rgba(255, 255, 255, .1) 58% 66%, transparent 66%), linear-gradient(180deg, rgba(24, 28, 70, .5), rgba(24, 28, 70, .18) 30%, rgba(24, 28, 70, .3)); pointer-events: none; }
.strips .hang { transform-box: view-box; }

/* motion: the strips feed out once when the page opens, and again when an answer is done */
@keyframes blink { 50% { opacity: 0; } }
@keyframes feed { from { transform: translateY(-14px); } to { transform: none; } }
@keyframes sink { from { translate: -50% -1.2em; } to { translate: -50% 0; } }
.shredder.fed .strips .hang { animation: feed 1.6s cubic-bezier(.3, .7, .2, 1) both; }
.shredder.fed .sheet { animation: sink 1.6s cubic-bezier(.3, .7, .2, 1) both; }

/* ---------- 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, 6vw, 90px); }
.hero h1 { font: 850 var(--fs-5)/.9 var(--display); font-stretch: 106%; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: 28px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .6vw, 1.4375rem); line-height: 1.42; color: var(--body); text-wrap: pretty; }
.hero .lead b { font-weight: 650; color: var(--ink); }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 38px; }
.hero .shredder { margin: 10px clamp(0px, 2vw, 30px) 40px 0; }

.band { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 850 var(--fs-4)/1 var(--display); font-stretch: 104%; letter-spacing: -.035em; text-wrap: balance; }
.band .intro { margin-top: 16px; max-width: 36em; color: var(--body); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 84px); align-items: start; }

/* what is kept: the server's short ledger next to the sheet that went through */
.kept { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(34px, 6vw, 90px); align-items: start; margin-top: clamp(30px, 5vw, 56px); }
.kept h3 { font: 800 var(--fs-3)/1.1 var(--display); font-stretch: 104%; letter-spacing: -.02em; }
.ledger-list { margin-top: 14px; border-top: 2px solid var(--ink); counter-reset: row; }
.ledger-list li { display: grid; grid-template-columns: 2.6em 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: row; }
.ledger-list li::before { content: counter(row, decimal-leading-zero); font: 700 var(--fs-1)/1 var(--mono); color: var(--blue); }
.gone-sheet { position: relative; padding: 26px 28px 30px; background: var(--paper); box-shadow: 0 0 0 1px var(--paper-edge); }
.gone-sheet h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.gone-sheet ul { margin-top: 4px; }
.gone-sheet li { padding: 12px 0; border-bottom: 1px solid #e4e6eb; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--bad); }
.gone-sheet li:last-child { border-bottom: 0; }
/* the bottom of the sheet: cut into strips that hang loose */
.gone-sheet .cuts { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 52 - 1.6px), var(--desk) calc(100% / 52 - 1.6px) calc(100% / 52)); }
.gone-sheet .tail { position: absolute; left: 0; top: 100%; width: 100%; height: 86px; }
.gone-sheet .tail g:first-child rect { stroke: var(--paper-edge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.kept-note { margin-top: clamp(110px, 12vw, 140px); max-width: 46em; color: var(--body); }
.kept-note a { font-weight: 650; }

/* 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-family: var(--mono); font-size: .9375rem; white-space: nowrap; padding-left: 18px; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 650; padding-right: 12px; }
.prices tr.frontier td:first-child { font-weight: 800; }
.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: 600 var(--fs-0)/1 var(--text); color: var(--blue); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--desk-hi) 70%, transparent); }
.more { display: inline-block; margin-top: 22px; font-weight: 700; }

/* code */
.code { background: var(--glass); color: #e6e8f2; border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 26px rgba(15, 17, 23, .18); }
.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: #9095ad; }
.code-tabs button[aria-selected='true'] { background: #1a1c25; color: #f3f4f7; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #1a1c25; overflow-x: auto; font: 400 .875rem/1.65 var(--mono); tab-size: 2; }
.code pre .c { color: #7a7f99; } .code pre .s { color: #b9c1ff; } .code pre .k { color: #ff6d62; }
.copy { background: #2b2e3b; color: #e6e8f2; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #383c4c; }
.copy.done { background: var(--blue); color: #fff; }

/* the blue band: the machine's plastic as ground */
.band.blue { background: var(--blue); color: #fff; border-top: 0; }
.band.blue .intro { color: #d6daff; }
.band.blue .more { color: #fff; }
.band.blue .code { box-shadow: 0 .5em 0 var(--blue-deep), 0 18px 40px rgba(5, 8, 50, .4); }
.band.blue + .band { border-top: 0; }

/* 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'; }
.qa p { padding: 0 0 20px; max-width: 44em; color: var(--body); }

.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-box {
  width: min(100% - 24px, 500px); max-height: min(100dvh - 24px, 860px); padding: 0; border: 0; border-radius: 22px;
  background: var(--desk-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 1px rgba(15, 17, 23, .08), 0 34px 80px rgba(15, 17, 40, .42);
}
dialog.sheet-box::backdrop { background: rgba(18, 20, 40, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet-box[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: 850 1.8rem/1.05 var(--display); font-stretch: 104%; 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(--desk-lo); color: var(--ink); }
.sheet-in p { font-size: var(--fs-1); line-height: 1.5; }
/* the key, printed on a slip of paper you keep */
.keyslip { margin: 4px 0 16px; padding: 18px 18px 16px; }
.keyslip small { display: block; margin-bottom: 6px; font: 600 var(--fs-0)/1.2 var(--text); color: var(--mute); }
.keyslip b { display: block; font: 600 1rem/1.45 var(--mono); word-break: break-all; user-select: all; }
.keyslip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 7px; background: radial-gradient(circle at 50% 100%, var(--desk-hi) 3px, transparent 3.5px) 0 0 / 12px 7px repeat-x; }
.balance-led { margin: 4px 0 16px; }
.balance-led .led { padding: 16px 18px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance-led b { font-size: 2.8rem; line-height: .9; }
.balance-led span { font-size: .9375rem; line-height: 1.15; 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(--blue); }
.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(--blue); --edge: var(--blue-deep); --on: #fff; }
.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: 49px; padding: 0 8px 0 26px; border: 2px solid var(--ink); border-radius: 10px; 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: 4px; box-shadow: 0 0 0 1px var(--paper-edge), 0 6px 14px rgba(15, 17, 23, .1); }
.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: 500 .8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 700 1.375rem/1.1 var(--mono); letter-spacing: -.01em; }
.mini { background: var(--ink); color: var(--desk-hi); border: 0; border-radius: 7px; padding: 7px 10px; font: 600 var(--fs-0)/1 var(--text); flex: none; box-shadow: 0 2px 0 #000; }
.mini:hover { background: #2a2d38; }
.mini:active { transform: translateY(1px); box-shadow: none; }
.mini.done { background: var(--good); }
.status { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--desk-lo); font-weight: 600; font-size: var(--fs-1); }
.status.seen { background: #dfe2ff; }
.status.ok { background: var(--blue); color: #fff; }
/* waiting: three strips feeding out, one after another */
.wait { width: 26px; height: 14px; flex: none; background: linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px, var(--ink) 10px 16px, transparent 16px 20px, var(--ink) 20px 26px); animation: wait 1.2s steps(4) infinite; }
@keyframes wait { 0% { clip-path: inset(0 0 100% 0); } 25% { clip-path: inset(0 0 66% 0); } 50% { clip-path: inset(0 0 33% 0); } 75%, 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: 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: 10px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 500 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 .led { padding: 24px 16px 22px; }
.credited .led small { display: block; font-size: 1rem; letter-spacing: .08em; margin-bottom: 8px; }
.credited .led b { display: block; font-size: 3.8rem; line-height: .9; }
.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: var(--desk-hi); padding: 12px 18px; border-radius: 10px; 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: 850 clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem)/.96 var(--display); font-stretch: 106%; letter-spacing: -.04em; text-wrap: balance; }
.page .lead { margin-top: 18px; max-width: 36em; font-size: 1.25rem; line-height: 1.45; color: var(--body); }
.prose { max-width: 44em; }
.prose h2 { font: 850 1.8rem/1.1 var(--display); font-stretch: 104%; letter-spacing: -.03em; margin: 52px 0 14px; }
.prose h3 { font: 750 1.1875rem/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 ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--blue); }
.prose code { font: 500 .9em var(--mono); background: var(--desk-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: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .shredder { --w: min(440px, 88vw); margin: 34px auto 30px; }
  .split, .kept { grid-template-columns: 1fr; }
  .kept { gap: 40px; }
}
@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(--desk); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15, 17, 23, .14); font-size: 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .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.5rem; }
  .brand svg { width: 30px; height: 30px; }
  .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%; }
  .gone-sheet { padding: 22px 20px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
