/* Visor. One object carries the look: a dark full-face motorcycle helmet on a concrete ledge at dawn. Its visor is
   closed and mirrored: it reflects the sunrise and the road ahead, so you see out and nobody sees in. The visor is
   the button and says what to do next in the light green-white type of a head-up display; the higher the sun stands
   in the reflection, the more credit is on the key. The page is dawn-lit concrete, the buttons you press are small
   smoked visors with an iridium edge, dusk violet marks what is yours, apricot is the racing stripe. */

@font-face { font-family: 'Michroma'; src: url('/fonts/michroma.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('/fonts/redhat-text.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('/fonts/redhat-text-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Share Tech Mono'; src: url('/fonts/sharetech-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ground: #f1ebe4;
  --ground-hi: #faf7f3;
  --ground-lo: #e6ddd3;
  --line: #ddd2c6;
  --line-2: #c5b8aa;
  --ink: #16171c;
  --ink-2: #3d3e46;
  --mute: #6d696c;
  --dusk: #5a3fc0;
  --dusk-hi: #6c52d6;
  --dusk-lo: #3e2a8c;
  --shell: #1d1f25;
  --shell-hi: #3a3d47;
  --shell-lo: #0c0d11;
  --smoke: #12131a;
  --apricot: #f29a5a;
  --apricot-hi: #ffc58f;
  --hud: #e9fff4;
  --hud-dim: #a9cfc0;
  --sky-1: #6d63b8;
  --sky-2: #b9789a;
  --sky-3: #f0a47e;
  --sky-4: #ffd59a;
  --good: #23744d;
  --bad: #b8322f;

  --iridium: linear-gradient(90deg, #4b3fe0, #9a4fc9 26%, #e0587c 50%, #f2a25a 72%, #1fa2ab);

  --display: 'Michroma', 'Eurostile', 'Arial Black', sans-serif;
  --text: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Share Tech 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.7rem, 1.1rem + 1.9vw, 2.55rem);
  --fs-5: clamp(2.05rem, .9rem + 3vw, 3.2rem);

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

  /* poured concrete: a soft grain and a few pores */
  --concrete: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .26 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--concrete), var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.6 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: .07em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; text-decoration-color: var(--dusk); }
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(--dusk); color: #fff; }
:focus-visible { outline: 3px solid var(--dusk); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .95em; }
.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. Light ones are pearl shell with a firm edge. The one you press next is a little smoked visor:
   dark glass with a highlight at the top and the iridium coating as a thin line along its lower edge. */
.key {
  --face: var(--ground-hi); --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.35em; border: 1.5px solid var(--rim); border-radius: 11px;
  background: var(--face); color: var(--on); font: 650 var(--fs-2)/1 var(--text); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 var(--edge);
  transform: translateY(0); transition: transform .06s ease-out, box-shadow .06s ease-out, background-color .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --face: #fff; }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
.key.go {
  --edge: #000; --rim: #000; --on: #fff;
  background: var(--iridium) left bottom / 100% 3px no-repeat, linear-gradient(180deg, #474a55 0%, #25272e 42%, #14151a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--edge);
}
.key.go:hover { background: var(--iridium) left bottom / 100% 3px no-repeat, linear-gradient(180deg, #555966 0%, #2d3038 42%, #17181e 100%); }
.key.go:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 0 var(--edge); }
.key.dark { --face: var(--shell); --edge: #000; --rim: #000; --on: #fff; }
.key.big { min-height: 60px; padding: 0 1.75em; font-size: 1.1875rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 5px 0 var(--edge); }
.key.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.key.small { min-height: 40px; padding: 0 1em; font-size: var(--fs-1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 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 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 var(--edge); }
.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: .07em; text-underline-offset: .22em; }
.plain:hover { text-decoration-thickness: .12em; text-decoration-color: var(--dusk); }

/* ---------- a plate: every place that shows the credit is a strip of smoked visor glass, the amount in head-up type,
   and a small window in which the sun stands as high as the credit (full daylight at $25). */
.plate {
  position: relative; border-radius: 9px; color: var(--hud);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 45%), linear-gradient(160deg, #2b2440, var(--smoke) 55%, #0b0c10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1.5px #000, 0 3px 0 #000;
}
.amt-hud { font-family: var(--mono); color: var(--hud); letter-spacing: .02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 .35em rgba(160, 255, 220, .35); }
.sun { --sun: 0; position: relative; flex: none; width: 22px; height: 16px; overflow: hidden; border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 45%, var(--sky-3) 80%, var(--sky-4)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.sun::before { content: ''; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff1d6;
  box-shadow: 0 0 6px 2px rgba(255, 200, 130, .7); transform: translateY(calc(16px - var(--sun) * 13px)); transition: transform .9s cubic-bezier(.3, .1, .2, 1); }
.sun::after { content: ''; position: absolute; inset: 62% 0 0; background: linear-gradient(180deg, #2a2230, #0c0d13); box-shadow: 0 -1px 0 #ffe0ad; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 400 1.32rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand span { translate: 0 1px; }
.brand svg { width: 38px; 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: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current='page'] { border-bottom-color: var(--apricot); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a plate of visor glass with the sun window and the amount */
.credit { display: inline-flex; align-items: center; padding: 0; margin: 4px 4px 7px; border: 0; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .plate { display: flex; align-items: center; gap: 10px; min-width: 108px; padding: 9px 12px 8px 10px; line-height: 1; }
.credit .amt-hud { font-size: 1.1rem; margin-left: auto; }
.menu-btn { display: none; }

/* ---------- the scene: the helmet on the ledge. Everything is measured in em, so it scales with one font-size. */
.scene { --u: 16px; --sun: 0; position: relative; flex: none; width: 36em; height: 31em; font-size: var(--u); }
.ledge { position: absolute; left: -2em; right: -2em; bottom: 0; width: calc(100% + 4em); height: 6.6em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.helmet { position: absolute; left: 4.6em; top: 0; width: 25.6em; height: 27.52em; overflow: visible; }
.helmet .sunball { transform: translateY(calc(18px - var(--sun) * 64px)); transition: transform 1.6s cubic-bezier(.3, .1, .2, 1); }
.helmet .sheen { transform: translateX(-260px); }
.helmet.sweep .sheen { animation: sheen 1.15s cubic-bezier(.45, .05, .3, 1); }
@keyframes sheen { from { transform: translateX(-260px); } to { transform: translateX(300px); } }

/* the visor: it is the button. A line of small type at the top, one big line, and the models running along the bottom,
   all in the head-up type, as if the display inside were showing through the mirror. */
.lens {
  position: absolute; left: 7.9em; top: 8.5em; width: 19.6em; height: 11.3em; padding: 1.15em 1.4em 1.35em 1.7em; border: 0; border-radius: 5em 5em 3.4em 3.4em / 2.4em 2.4em 1.6em 1.6em;
  display: grid; grid-template-rows: auto 1fr auto auto; justify-items: start; text-align: left; background: none; color: var(--hud);
  font-family: var(--mono); transition: transform .18s ease-out; -webkit-tap-highlight-color: transparent;
}
.lens:hover { transform: translateY(-.12em); }
.lens:active { transform: translateY(.06em); }
.lens:focus-visible { outline-offset: .3em; border-radius: 5em 5em 3.4em 3.4em / 2.4em 2.4em 1.6em 1.6em; }
.lens .hud-top { font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--hud-dim); white-space: nowrap; }
.lens .hud-big { grid-row: 3; margin-bottom: .12em; font-size: 2.5em; line-height: 1.05; letter-spacing: .01em; white-space: nowrap; text-shadow: 0 0 .25em rgba(160, 255, 220, .35), 0 .06em .1em rgba(0, 0, 0, .6); }
.lens .hud-big.l11 { font-size: 2.2em; }
.lens .hud-big.l14 { font-size: 1.85em; }
.lens .feed { grid-row: 4; position: relative; display: block; height: 1.4em; overflow: hidden; }
.lens .feed > span { display: flex; align-items: baseline; gap: .7em; font-size: .9em; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--hud); }
.lens .feed small { font-size: .9em; color: var(--apricot-hi); }
/* a new line types itself in, one letter after the other */
.type { animation: type .9s steps(14, end) both; }
@keyframes type { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }
.lens .hud-big.type { animation: type .9s steps(12, end) both, flick 1.4s ease-out both; }
@keyframes flick { 0% { opacity: .55; } 12% { opacity: 1; } 18% { opacity: .7; } 26%, 100% { opacity: 1; } }

/* the key on the ledge: it appears when you have one; its leather tag shows the last four characters */
.fob { position: absolute; left: 25.6em; top: 23.5em; width: 11em; height: 3.85em; opacity: 0; transform: translateY(-.8em) rotate(-4deg); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.fob.on { opacity: 1; transform: translateY(0) rotate(-4deg); }
.fob svg { width: 100%; height: 100%; overflow: visible; }
.fob-t { position: absolute; left: 59%; top: 34%; width: 38%; transform: rotate(4deg); font: 400 .82em/1 var(--mono); letter-spacing: .14em; color: var(--apricot-hi); text-align: center; }

/* ---------- home */
.hero { padding: clamp(24px, 5vw, 60px) 0 clamp(56px, 8vw, 104px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero h1 { font: 400 var(--fs-5)/1.14 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { display: block; margin-top: .12em; font-style: normal; color: var(--dusk); }
.hero .lead { margin-top: 26px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero .lead b { font-weight: 700; color: var(--ink); }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }

.band { padding: clamp(52px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 400 var(--fs-4)/1.16 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.band h2 em { font-style: normal; color: var(--dusk); }
.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-family: var(--mono); font-size: 1.02rem; white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 600; padding-right: 12px; }
.prices tr.front td:first-child { font-weight: 700; font-size: 1.125rem; }
.prices tr.front td:first-child::before { content: ''; display: inline-block; width: .5em; height: 3px; margin: 0 .5em .28em 0; border-radius: 2px; background: var(--apricot); }
.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 tr.front .id { margin-left: 1em; }
.prices .tag { font: italic 600 var(--fs-0)/1 var(--text); color: var(--dusk); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 80%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }

/* code: on smoked visor glass */
.code { background: #0b0c11; color: #e7eaf0; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 0 0 1.5px #000; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 10px; background: var(--iridium) left bottom / 100% 2px no-repeat; }
.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: #9aa1b0; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #1a1b23; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #1a1b23; overflow-x: auto; font: 400 .9rem/1.7 var(--mono); tab-size: 2; }
.code pre .c { color: #7f8698; } .code pre .s { color: var(--apricot-hi); } .code pre .k { color: var(--hud); }
.copy { background: #2c2e38; color: #e7eaf0; border: 0; border-radius: 7px; padding: 7px 12px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #393c48; }
.copy.done { background: var(--apricot); color: var(--shell-lo); }

/* the dark band: the helmet shell, gloss graphite, with the racing stripe along its top */
.band.dark { background: var(--grain), radial-gradient(120% 140% at 22% 0%, #4a4e5a, var(--shell) 46%, var(--shell-lo)); color: #eceef2; border-top: 0;
  box-shadow: inset 0 6px 0 var(--apricot), inset 0 8px 0 #f4efe8, inset 0 11px 0 var(--apricot); }
.band.dark .intro { color: #b8bcc7; }
.band.dark h2 em { color: var(--apricot-hi); }
.band.dark .more:hover { text-decoration-color: var(--apricot); }
.band.dark + .band { border-top: 0; }

/* what the key remembers, and what never reaches us */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 700 1.3rem/1.2 var(--text); letter-spacing: -.005em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ledger li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.mem { counter-reset: mem; }
.mem li { display: grid; grid-template-columns: 2.6em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: '0' counter(mem); font: 400 1rem/1 var(--mono); color: var(--dusk); letter-spacing: .04em; }
/* never kept: each line blacked out by the visor's smoke, the words still readable through it */
.ledger .no li { color: var(--ink-2); }
.ledger .no li span { text-decoration: line-through; text-decoration-color: var(--dusk); text-decoration-thickness: .12em; }
.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.1875rem/1.3 var(--text); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 1.5rem/1 var(--mono); color: var(--mute); flex: none; }
.qa details[open] summary::after { content: '\2013'; color: var(--dusk); }
.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: 600; }
.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: 16px;
  background: var(--concrete), var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 1.5px var(--ink), 0 30px 70px rgba(20, 16, 30, .42);
}
dialog.sheet::backdrop { background: rgba(20, 17, 30, .62); 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.5rem/1.2 var(--display); letter-spacing: -.005em; }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 50%; font: 400 1.7rem/1 var(--text); 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 card */
.keyline { margin: 4px 0 16px; padding: 15px 16px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; font: 400 1.02rem/1.45 var(--mono); word-break: break-all; user-select: all; }
/* the credit: on a plate of visor glass, the sun window beside it */
.balance { margin: 6px 0 18px; padding: 16px 20px 14px; display: flex; align-items: center; gap: 18px; }
.balance b { font-size: 2.6rem; line-height: 1; font-weight: 400; }
.balance .sun { width: 44px; height: 32px; border-radius: 7px 7px 5px 5px; }
.balance .sun::before { width: 14px; height: 14px; margin-left: -7px; transform: translateY(calc(32px - var(--sun) * 25px)); }
.balance span { margin-left: auto; font: 400 var(--fs-0)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hud-dim); 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: 3px solid var(--apricot); }
.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(--shell); --edge: #000; --on: #fff; }
.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 27px; border: 1.5px solid var(--ink); border-radius: 11px; background: #fff; font: 650 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: 8px; box-shadow: 0 0 0 1.5px var(--ink); }
.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: 400 .84rem/1.4 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 400 1.4rem/1.1 var(--mono); letter-spacing: .01em; }
.mini { background: var(--shell); color: #fff; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); flex: none; box-shadow: 0 2px 0 #000; }
.mini:hover { background: var(--shell-hi); }
.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: 600; font-size: var(--fs-1); }
.status.seen { background: #e6e0f6; }
.status.ok { background: var(--dusk); color: #fff; }
/* waiting: three head-up dots lighting one after the other */
.wait { width: 26px; height: 8px; flex: none; background:
  radial-gradient(circle at 4px 4px, var(--dusk) 3.2px, transparent 3.6px) 0 0 / 9px 8px repeat-x;
  animation: wait 1.5s steps(4) infinite; }
@keyframes wait { 0% { clip-path: inset(0 100% 0 0); } 25% { clip-path: inset(0 66% 0 0); } 50% { clip-path: inset(0 33% 0 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 16px; border: 1.5px solid var(--ink); border-radius: 11px; background: #fff; font: 400 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 4px 4px; }
.credited .plate { padding: 18px 16px 20px; margin: 4px 4px 8px; }
.credited .plate small { display: block; font: 400 var(--fs-0)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hud-dim); margin-bottom: 12px; }
.credited .plate b { display: block; font-size: 3.4rem; line-height: 1.05; font-weight: 400; }
.credited p { margin: 20px 0 20px; font-size: var(--fs-2); }

.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 90; background: var(--shell); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: var(--fs-1); box-shadow: 0 0 0 1.5px #000, 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(2rem, 1.1rem + 2.9vw, 3.3rem)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.page h1 em { font-style: normal; color: var(--dusk); }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 400 1.45rem/1.25 var(--display); letter-spacing: -.005em; margin: 52px 0 14px; }
.prose h3 { font: 700 1.1875rem/1.25 var(--text); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ul li::marker { color: var(--apricot); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .92em 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: 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: 1100px) {
  .scene { --u: 13.5px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .scene { --u: clamp(8px, (100vw - 2 * var(--gutter)) / 37, 16px); margin: 18px 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(20, 16, 30, .14); font-size: 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'] { border-bottom-color: var(--line); color: var(--dusk); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 50%; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.14rem; }
  .brand svg { width: 34px; height: 36px; }
  .credit .plate { min-width: 0; padding: 8px 10px 7px 8px; gap: 8px; }
  .credit .amt-hud { font-size: 1rem; }
  .ledger { grid-template-columns: 1fr; gap: 34px; }
  .prices .ctx { display: none; }
  .pay { grid-template-columns: 1fr; }
  .qr { margin-inline: auto; }
  .amounts { grid-template-columns: repeat(4, 1fr); }
  .amounts label { grid-column: 1 / -1; }
  .sheet-in { padding: 22px 18px 24px; }
  .hero .acts .key.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* CA-Leiste (nur wenn COIN_CA gesetzt ist) */
.ca-bar { background: var(--shell); color: var(--apricot-hi); font-size: 13px; box-shadow: inset 0 -2px 0 var(--apricot); }
.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-size: 14px; letter-spacing: .04em; color: var(--apricot-hi); }
.ca-v { font-family: var(--mono); color: var(--hud); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--ground-hi); border: 0; border-radius: 7px; padding: 4px 11px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--apricot); color: var(--shell-lo); }
