/* Shade. One scene carries the look: noon on a whitewashed terrace above a pool. A market parasol in Positano orange
   and cream throws a hard blue shade down the wall and over the terracotta tiles; a slatted lounger and a café table
   stand in it. The valance of the parasol is printed with what matters. Without a key the lounger is empty; with a key
   somebody lies there with a straw hat over the face; the lemonade in the glass is the credit left.
   The page is the sunlit whitewash, ink is a blue-black. The main button is a flap of the orange valance with its
   scalloped edge and cream piping; the credit sits on a tag of deep shade. Orange only for the canvas, the second
   headline line and what is current; the deep shade for the dark band; lemon only for the lemonade and code strings. */

@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Azeret Mono'; src: url('/fonts/azeret.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #f6f1e6;
  --ground-hi: #fcfaf4;
  --ground-lo: #ebe4d4;
  --line: #ddd3c0;
  --ink: #1c2233;
  --ink-2: #3c4357;
  --mute: #6c7082;
  --deep: #262d4d;
  --deep-hi: #343c62;
  --deep-lo: #181d35;
  --shade: #c5c6da;
  --sun: #e8692c;
  --sun-hi: #f58a4a;
  --sun-lo: #a9431a;
  --cream: #fff3dc;
  --lemon: #f2cf3b;
  --lemon-hi: #fbe57a;
  --pool: #33b2c3;
  --tile: #d98258;
  --card: #fffdf8;
  --card-lo: #efe8da;
  --good: #23775a;
  --bad: #b4381c;

  --display: 'Bodoni Moda', 'Didot', Georgia, 'Times New Roman', serif;
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Azeret 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.2rem);
  --fs-5: clamp(2.8rem, 1.4rem + 4vw, 5.1rem);

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

  /* a fine grain in the whitewash, 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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .22 0 0 0 0 .15 .22 0 0 0 -.1'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  /* the valance flap: orange canvas, a cream piping line above the scalloped bottom edge */
  --flap: linear-gradient(to top, transparent 7px, var(--cream) 7px 9px, transparent 9px), linear-gradient(180deg, #f07a3c, #e2612a 55%, #c9501d);
  --flap-hi: linear-gradient(to top, transparent 7px, var(--cream) 7px 9px, transparent 9px), linear-gradient(180deg, #f78c50, #ea6c33 55%, #d25a24);
  --scallop: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, radial-gradient(circle 6.5px at 50% 0, #000 96%, transparent) bottom / 13px 7px repeat-x;
}

*, *::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(--sun); }
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: cards of whitewashed board with a blue-black edge; the main one is a flap of the parasol's orange
   valance: scalloped bottom edge, cream piping above it, cream letters (the canvas is drawn on ::before and masked,
   so its shadow follows the scallops) */
.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: 9px;
  background: var(--face); color: var(--on); font: 700 var(--fs-2)/1 var(--text); letter-spacing: -.005em;
  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;
  padding-bottom: 6px; color: var(--cream); font: 750 var(--fs-2)/1 var(--text); letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(120, 40, 10, .45);
  filter: drop-shadow(0 var(--lift) 0 var(--sun-lo)) drop-shadow(0 calc(var(--lift) + 3px) 6px rgba(60, 40, 80, .28));
}
.key.go::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--flap); border-radius: 5px 5px 0 0; -webkit-mask: var(--scallop); mask: var(--scallop); }
.key.go:hover::before { background: var(--flap-hi); }
.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: 4px; }
.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 7px; 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 6px; 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: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--sun); }

/* ---------- a tag of deep shade: the credit and other figures, cream numbers in the mono face, a thin orange
   piping along the top like the valance */
.slip { position: relative; isolation: isolate; color: var(--cream); border-radius: 8px; background: linear-gradient(180deg, var(--sun) 0 3px, transparent 3px), linear-gradient(180deg, var(--deep-hi), var(--deep) 45%, var(--deep-lo)); box-shadow: 0 3px 0 #0e1124, 0 6px 12px rgba(30, 30, 70, .22); }
.slip b, .slip .num { font-family: var(--mono); font-weight: 700; 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: 600 2.05rem/1 var(--display); letter-spacing: -.01em; 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(--sun); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small tag of deep shade 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: 12px 14px 10px; font: 700 1.0625rem/1 var(--mono); letter-spacing: .02em; text-align: center; }
.credit:hover .slip { background: linear-gradient(180deg, var(--sun-hi) 0 3px, transparent 3px), linear-gradient(180deg, #414a74, var(--deep-hi) 45%, var(--deep)); }
.menu-btn { display: none; }


/* ---------- the scene (drawn by scene.js as one SVG; here only its size, its type and its motion) */
.scene { position: relative; flex: none; display: block; width: var(--bw, 580px); aspect-ratio: 600 / 640; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.scene svg { width: 100%; height: auto; overflow: visible; }
.scene .vtext, svg .vtext { font: 800 25px/1 var(--display); letter-spacing: .2em; }
.scene .lno, svg .lno { font: 500 10px/1 var(--mono); letter-spacing: .06em; }
.shadecast { mix-blend-mode: multiply; }
/* the water moves a little, the valance stirs */
.scene .caustic { animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-10px); } to { transform: translateX(12px); } }
.scene .valance { transform-box: view-box; transform-origin: 232px 180px; animation: stir 5.5s ease-in-out infinite; }
@keyframes stir { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(-1.2deg); } }
/* pointing at it: the hat lifts off the face, and under it there is only shade */
.scene .hatface { transform-box: view-box; transform-origin: 283px 372px; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
button.scene:hover .hatface { transform: translate(12px, -12px) rotate(8deg); }
button.scene:active .hatface { transform: none; transition-duration: .06s; }
button.scene:focus-visible { outline-offset: 8px; border-radius: 14px; }
/* new words: printed onto the valance; somebody arrives: lies down in the shade, the hat goes over the face last */
.scene .vtext.fresh { animation: print .8s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes print { from { opacity: 0; letter-spacing: .34em; } to { opacity: 1; } }
.scene .lay.arrive .who { animation: settle .8s cubic-bezier(.25, 1.2, .4, 1) both; }
.scene .lay.arrive .hatface { animation: cover .7s cubic-bezier(.25, 1.6, .4, 1) both .55s; }
@keyframes settle { 0% { transform: translateY(-40px); opacity: 0; } 50% { opacity: 1; } 100% { transform: none; } }
@keyframes cover { 0% { transform: translate(-30px, -60px) rotate(-40deg); 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: 500 var(--fs-5)/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--sun); 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: 500 var(--fs-4)/1.08 var(--display); letter-spacing: -.015em; 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(--sun); 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: in the deep shade, strings in lemon */
.code { background: var(--deep-lo); color: #e9ebf5; 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: #9aa0bd; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #222846; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #222846; overflow-x: auto; font: 400 .9375rem/1.6 var(--mono); tab-size: 2; }
.code pre .c { color: #8c93b3; font-style: italic; } .code pre .s { color: var(--lemon-hi); } .code pre .k { color: #fff; font-weight: 600; }
.copy { background: #343c62; color: #e9ebf5; border: 0; border-radius: 7px; padding: 7px 11px; font: 650 var(--fs-0)/1 var(--text); }
.copy:hover { background: #424b78; }
.copy.done { background: var(--lemon); color: var(--ink); }

/* the dark band: the deep shade under the valance, its scalloped edge along the top */
.band.dark { position: relative; background: var(--grain), radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .05), transparent 60%), linear-gradient(180deg, var(--deep-hi), var(--deep) 35%, var(--deep-lo)); color: #e6e8f2; border-top: 0; }
.band.dark::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 14px; background: radial-gradient(circle 14px at 50% 0, var(--ground) 96%, transparent) top / 28px 14px repeat-x; }
.band.dark h2 { color: var(--cream); }
.band.dark .intro { color: #b9bdd3; }
.band.dark .more:hover { text-decoration-color: var(--sun-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 500 1.6rem/1 var(--display); color: var(--sun); }
/* what is never kept is struck out once, in orange */
.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(--sun); 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(--sun); }
.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: 500 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: printed on a strip of cream towel with orange stripes at the ends */
.keyline { margin: 8px 2px 18px; padding: 14px 26px 13px; background: linear-gradient(90deg, var(--sun) 0 6px, transparent 6px 10px, var(--sun) 10px 13px, transparent 13px calc(100% - 13px), var(--sun) calc(100% - 13px) calc(100% - 10px), transparent calc(100% - 10px) calc(100% - 6px), var(--sun) calc(100% - 6px)), #fff8ea; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #e2cfae, 0 3px 0 #dccdb2; font: 500 1rem/1.5 var(--mono); word-break: break-all; user-select: all; }
/* the credit: a larger tag of deep shade */
.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: #c9cde2; 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(--sun); }
.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: #fbe9a8; }
.status.ok { background: var(--ink); color: var(--card); }
/* waiting: an ice cube in the sun, catching the light */
.wait { width: 15px; height: 15px; flex: none; border-radius: 4px; background: linear-gradient(135deg, #ffffff, #cfeef4 45%, #86cfdc); box-shadow: 0 0 0 2px #3b8ea3; transform: rotate(12deg); animation: wait 1.3s ease-in-out infinite; }
@keyframes wait { 0%, 100% { filter: brightness(.85); transform: rotate(12deg); } 50% { filter: brightness(1.15); transform: rotate(-6deg); box-shadow: 0 0 0 2px #3b8ea3, 0 0 12px 3px rgba(134, 207, 220, .7); } }
.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: #c9cde2; }
.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: 500 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: 500 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(--sun); }
.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 .scene { --bw: 460px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .scene { --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(30, 30, 70, .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(--sun); }
  .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 tiefer Schatten mit orangem Paspel unten, Ticker in Zitrone */
.ca-bar { background: var(--deep); color: var(--card); font-size: 14px; box-shadow: inset 0 -4px 0 var(--sun); }
.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: .04em; color: var(--lemon-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(--sun); color: var(--cream); }
