/* snipmunk.app: the page works like the product. You type a shortcut, a paper slip comes out.
   Colours and faces follow design/DIRECTION.md (paper tones, one orange, Manrope for the tool,
   Newsreader for what the user wrote, monospace only for the shortcut). */

@font-face { font-family: "Manrope"; src: url("fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --desk: #efe8db; --paper: #fffdf9; --ink: #2d1a0c; --muted: #625749; --line: #d9cfbf;
  --accent: #c2570c; --mark: #a04608; --tint: #fdeedd; --keyedge: #e2c7a4; --slot: #24160b;
  --ui: "Manrope", system-ui, sans-serif; --note: "Newsreader", Georgia, serif; --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(20px, 3vw, 44px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .cta and friends set display; hidden must still win */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 17px/1.5 var(--ui); overflow-x: hidden; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }   /* one ring for links, buttons, fields (keyboard only; text fields always show it, as browsers do). The dark sections set --accent to the light orange, so the ring is light on dark */
.tip :focus-visible { outline-color: #ffb068; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* the shortcut as a key: the one signature, at every size */
.key { display: inline-block; font: 500 .92em/1.25 var(--mono); background: var(--tint); color: var(--ink); border-radius: .32em; padding: .08em .42em .1em;
  box-shadow: 0 .09em 0 var(--keyedge), 0 .16em .3em rgb(45 26 12 / .14); text-decoration: none; white-space: nowrap; border: 0; }
a.key, button.key { cursor: pointer; transition: transform .09s, box-shadow .09s; }
a.key:hover, button.key:hover { transform: translateY(-1px); }
a.key:active, button.key:active, button.key[aria-pressed="true"] { transform: translateY(.09em); box-shadow: 0 0 0 var(--keyedge), 0 .05em .12em rgb(45 26 12 / .2); }
button.key[aria-pressed="true"] { background: #fbdfc0; }
mark { background: var(--tint); color: var(--mark); border-radius: .18em; padding: 0 .14em; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 23px; border: 0; background: var(--ink); color: var(--paper); font: 500 16px/1 var(--ui); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, transform .09s; }
.cta:hover { background: var(--mark); } .cta:active { transform: translateY(1px); }
.cta--quiet { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta--quiet:hover { background: var(--ink); color: var(--paper); }
.cta--big { min-height: 64px; padding: 0 36px; border-radius: 32px; font-size: 20px; }
.link { color: var(--mark); text-underline-offset: 3px; }

h2 { font: 400 clamp(40px, 5.4vw, 84px)/.98 var(--note); letter-spacing: -.035em; text-wrap: balance; }
.lead { margin-top: 22px; max-width: 40ch; color: var(--muted); font-size: 19px; }
section { padding: clamp(64px, 11vh, 132px) var(--pad); }

/* a torn foot for slips and receipts */
.torn { --t: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--t)) var(--t) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--t)) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--t)) var(--t) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--t)) no-repeat; }

/* ---------------------------------------------------------------- header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 26px var(--pad); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--ui); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 15px; }
.top .lang { font: 500 14px/1 var(--ui); color: var(--muted); text-decoration: none; padding: 8px 4px; }
.top .lang:hover { color: var(--ink); }

/* ---------------------------------------------------------------- the stage: you type, Snipmunk prints */
.stage { position: relative; min-height: 100svh; padding: clamp(92px, 12.5vh, 128px) var(--pad) 30px; display: grid; grid-template-rows: auto auto 1fr auto; }
.tag { display: flex; align-items: center; gap: 12px; font: 500 14px/1 var(--ui); color: var(--muted); }
.tag::after { content: ""; height: 1px; width: 56px; background: var(--line); }
.line { margin: 6px 0 0 -.04em; font: 500 clamp(60px, min(14.5vw, 23vh), 232px)/1 var(--mono); letter-spacing: -.07em; white-space: nowrap; min-height: 1em; }
.line .caret { display: inline-block; width: .09em; height: .78em; margin-left: .06em; background: var(--accent); vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
.line.is-typing .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.printer { position: relative; margin-top: clamp(10px, 2vh, 22px); width: min(1040px, 100%); }
.slot { position: relative; z-index: 2; height: 12px; border-radius: 6px; background: var(--slot); box-shadow: inset 0 3px 3px rgb(0 0 0 / .55), 0 1px 0 rgb(255 255 255 / .5); }
.feed { position: relative; z-index: 1; margin: -6px 22px 0; overflow: hidden; padding-bottom: 26px; min-height: 120px; }
.slip { position: relative; background: var(--paper); padding: clamp(22px, 3.2vh, 36px) clamp(22px, 3vw, 46px) clamp(26px, 3.6vh, 42px);
  font: 400 clamp(22px, min(2.5vw, 4vh), 38px)/1.28 var(--note); letter-spacing: -.01em; filter: drop-shadow(0 14px 18px rgb(45 26 12 / .16));
  transform: translateY(-104%); transition: transform .75s cubic-bezier(.2, .8, .2, 1); }
.slip.is-out { transform: translateY(0); }
.slip.is-gone { transform: translateY(46px) rotate(1.4deg); opacity: 0; transition: transform .28s ease-in, opacity .28s ease-in; }
.slip small { display: block; margin-top: .9em; font: 400 15px/1.4 var(--ui); letter-spacing: 0; color: var(--muted); }
.slip small a { color: var(--mark); }
.slip:has(.pic) { display: flow-root; }
.slip .pic { float: right; width: clamp(140px, 19vw, 236px); margin: -.15em 0 .3em .9em; padding: 6px; background: #fff;
  box-shadow: 0 6px 14px rgb(45 26 12 / .18); rotate: 2.5deg; }
.slip .pic img { display: block; width: 100%; height: auto; }
.count { display: grid; gap: 8px; margin: 2px 22px 0; font: 500 15px/1 var(--mono); }
.count div { display: flex; align-items: center; gap: 10px; }
.count i { display: block; flex: none; height: 10px; border-radius: 5px; background: var(--ink); width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.count div + div i { background: var(--accent); }
.foot { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-top: 22px; }
.pitch { max-width: 700px; }
.pitch h1 { font: 500 clamp(26px, 2.5vw, 36px)/1.12 var(--ui); letter-spacing: -.03em; text-wrap: balance; }
.pitch p { margin: 10px 0 18px; color: var(--muted); max-width: 48ch; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.try .key { font-size: 15px; }
.hoard { position: absolute; right: var(--pad); top: clamp(92px, 12.5vh, 128px); width: 250px; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.hoard__who { display: flex; align-items: center; gap: 10px; font: 500 13px/1.2 var(--ui); color: var(--muted); text-align: right; }
.hoard__who img { width: 54px; height: 54px; border-radius: 14px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.hoard.is-munch .hoard__who img { transform: scale(1.14) rotate(-5deg); }
.pile { position: relative; width: 232px; height: 210px; }
.pile > div { position: absolute; right: 0; top: 0; width: 220px; padding: 12px 14px 14px; background: var(--paper); box-shadow: 0 6px 14px rgb(45 26 12 / .14);
  font: 400 15px/1.3 var(--note); opacity: 0; transform: translateY(-30px); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.pile > div.is-in { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
.pile .key { font-size: 12px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- templates that ask: a slip you fill in */
.sheet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.form { position: relative; background: var(--paper); padding: clamp(26px, 3vw, 48px); transform: rotate(-1.2deg); box-shadow: 0 2px 2px rgb(45 26 12 / .05), 0 26px 44px rgb(45 26 12 / .16); font: 400 clamp(23px, 2.5vw, 38px)/1.5 var(--note); }
.form > .key { position: absolute; top: -18px; left: 34px; font-size: 16px; transform: rotate(-3deg); }
.form input { font: inherit; color: var(--mark); background: var(--tint); border: 0; border-bottom: 2px solid var(--accent); border-radius: 6px 6px 0 0; padding: 0 .2em; width: 6.4em; max-width: 100%; }
.form input:focus { background: #fbdfc0; }   /* the ring comes from :focus-visible; the tint alone was 1.12:1 */
.form input.w-s { width: 3.4em; } .form input.w-l { width: 9.2em; }
.picks { display: grid; gap: 10px; margin-top: 24px; font: 400 14px/1.4 var(--ui); color: var(--muted); }
.picks div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.picks .key { font-size: 14px; }
.arrives { margin: 30px 0 0 auto; max-width: 78%; transform: rotate(.8deg); background: var(--ink); color: var(--paper); border-radius: 22px 22px 4px 22px; padding: 16px 20px; font: 400 17px/1.45 var(--ui); }
.arrives small { display: block; margin-bottom: 4px; font-size: 13px; opacity: .75; }
.memos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(28px, 6vh, 72px); }
.memo { position: relative; background: var(--paper); padding: 30px 26px 26px; box-shadow: 0 12px 24px rgb(45 26 12 / .12); transform: rotate(var(--r, 0deg)); }
.memo::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 3px rgb(45 26 12 / .3); }
.memo h3 { font: 400 28px/1.1 var(--note); letter-spacing: -.02em; }
.memo p { margin-top: 10px; color: var(--muted); font-size: 16px; }
/* a small picture on each memo, drawn from the same parts as the page: chat bar, slip text, keys */
.pic { margin: 16px 0 4px; font: 500 12px/1.2 var(--ui); color: var(--muted); }
.memo .pic p { margin: 0; color: var(--ink); font: 400 18px/1.35 var(--note); }
/* a chat as WhatsApp shows it, upright like a phone (shapes as on the template pages' phone, vorlage.css .app):
   the name in its head is the name in the text; site.js draws the arrow between the two from where they really are */
@media (min-width: 1181px) { .memos:has(.memo--split) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
/* too narrow for three: the chat card on the left over two rows, date and keyboard stacked beside it */
@media (min-width: 901px) and (max-width: 1180px) { .memos:has(.memo--split) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .memo--split { grid-row: span 2; align-self: start; } }
.memo--split { display: grid; grid-template-columns: minmax(0, 1fr) 176px; grid-template-rows: auto 1fr; grid-template-areas: "h pic" "t pic"; column-gap: 20px; }
.memo--split h3 { grid-area: h; } .memo--split > p { grid-area: t; } .memo--split .pic { grid-area: pic; margin: 0; }
.chat { position: relative; display: flex; flex-direction: column; height: 300px; overflow: hidden; border: 4px solid #120b06; border-radius: 22px; background: #ebe6de; font: 400 12.5px/1.35 var(--ui); color: #1e1b18; }
.chat__head { flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 9px; background: #fff; border-bottom: 1px solid #e8e5df; font-weight: 500; }
.chat__head i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d9cfc2; font: 500 9px/1 var(--ui); font-style: normal; color: #6b645c; }
.chat__head b, .chat__compose mark { white-space: nowrap; font-weight: 500; background: #fbdfc0; color: inherit; border-radius: 4px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.chat__msgs { flex: 1; display: grid; align-content: start; gap: 6px; padding: 10px 8px; }
.memo .pic .chat__in { justify-self: start; max-width: 72%; margin: 0; padding: 6px 9px; border-radius: 3px 11px 11px 11px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .08); color: inherit; font: inherit; }
.memo .pic .chat__compose { flex: none; margin: 0 6px 6px; padding: 8px 11px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .1); color: inherit; font: inherit; }
.chat__arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.chat__arrow path:first-child { stroke-dasharray: 3 4; }
@media (max-width: 520px) {
  .memo--split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "pic" "t"; }
  .memo--split .pic { margin-top: 16px; }
  .chat { max-width: 240px; height: 270px; }
}
.pic--cal > div { display: flex; gap: 4px; }
.pic--cal > div > span { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 6px 0 7px; border-radius: 7px; background: var(--tint); }
.pic--cal b { font: 500 15px/1 var(--mono); color: var(--ink); }
.pic--cal .is-off { background: none; box-shadow: inset 0 0 0 1px var(--line); opacity: .55; }
.pic--cal .is-off b { text-decoration: line-through; text-decoration-color: var(--muted); }
.pic--cal .is-today { background: var(--ink); color: var(--paper); } .pic--cal .is-today b { color: var(--paper); }
.pic--cal .is-hit { background: var(--accent); color: #fff; } .pic--cal .is-hit b { color: #fff; }
.pic--cal > footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pic--cal > footer .key { font-size: 12px; }
.pic--kbd p { padding: 8px 10px; border-radius: 8px; background: var(--desk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pic--kbd s { color: var(--muted); text-decoration-color: var(--accent); text-decoration-thickness: 2px; margin-right: .2em; }
.pic--kbd > div { display: grid; gap: 4px; margin-top: 6px; padding: 7px 6px; border-radius: 8px; background: var(--desk); }
.pic--kbd > div > div { display: flex; justify-content: center; gap: 3px; }
.pic--kbd kbd { flex: 0 1 22px; min-width: 0; height: 22px; border-radius: 4px; background: var(--paper); box-shadow: 0 1px 0 var(--keyedge); font: 500 11px/22px var(--mono); text-align: center; color: var(--muted); }
.pic--kbd kbd.is-lit { background: var(--tint); color: var(--mark); box-shadow: 0 1px 0 var(--accent); }

/* ---------------------------------------------------------------- the hoard: a library you can search */
.vorrat__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.search { display: grid; gap: 14px; }
.search input { width: 100%; height: 60px; padding: 0 22px; border: 0; border-radius: 30px; background: var(--slot); color: var(--paper); font: 500 20px/1 var(--mono); box-shadow: inset 0 3px 4px rgb(0 0 0 / .5); }
.search input::placeholder { color: #b9a892; }
.folders { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.folders [data-count] { margin-left: auto; font: 500 14px/1 var(--mono); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 20px; margin-top: clamp(32px, 6vh, 64px); list-style: none; padding: 0; }
.cards li { background: var(--paper); padding: 16px 18px 20px; box-shadow: 0 8px 16px rgb(45 26 12 / .12); transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; min-height: 132px; }
.cards li:nth-child(4n+1) { --r: -1.4deg; } .cards li:nth-child(4n+2) { --r: .9deg; } .cards li:nth-child(4n+3) { --r: -.5deg; } .cards li:nth-child(4n) { --r: 1.6deg; }
.cards li.is-off { opacity: .16; transform: rotate(var(--r)) scale(.94); }
.cards b { display: block; margin: 10px 0 4px; font: 500 16px/1.25 var(--ui); }
.cards span.t { display: block; font: 400 16px/1.3 var(--note); color: var(--muted); }
.cards .key { font-size: 13px; }

/* ---------------------------------------------------------------- teams: a draft gets its stamp */
.team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.team p + p { margin-top: 14px; }
.desk { position: relative; }
.draft { position: relative; background: var(--paper); padding: clamp(24px, 2.8vw, 40px); transform: rotate(1deg); box-shadow: 0 2px 2px rgb(45 26 12 / .05), 0 22px 40px rgb(45 26 12 / .15); font: 400 clamp(21px, 2.1vw, 30px)/1.4 var(--note); }
.draft header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font: 400 14px/1.3 var(--ui); color: var(--muted); }
.stamp { position: absolute; right: 26px; top: 18px; padding: 6px 16px; border: 3px solid var(--accent); border-radius: 8px; color: var(--accent); font: 600 22px/1.1 var(--mono); transform: rotate(-9deg) scale(2.2); opacity: 0; pointer-events: none; }
.is-released .stamp { opacity: .92; transform: rotate(-9deg) scale(1); transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .1s; }
.seats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.seat { display: grid; justify-items: center; gap: 6px; font: 500 12px/1.2 var(--ui); color: var(--muted); }
.seat i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); font: 500 14px/1 var(--ui); font-style: normal; color: var(--ink); box-shadow: 0 2px 0 var(--keyedge); transition: background .3s, color .3s, transform .3s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 90ms + 200ms); }
.is-released .seat i { background: var(--mark); color: #fff; transform: translateY(-3px); }
.seats-row .cta { margin-left: auto; }

/* ---------------------------------------------------------------- privacy: what our server sees */
.schutz { background: #171412; color: #f3eee8; --ink: #f3eee8; --muted: #cfc6bc; --paper: #211d1a; --tint: #5a3210; --mark: #ffb068; --accent: #ffb068; --line: #453e38;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 0; font: 400 15px/1.5 var(--mono); max-width: 480px; }
.facts dt { color: var(--muted); padding-right: 20px; } .facts dd { margin: 0; text-align: right; }
.facts dt, .facts dd { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.vault { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 2.6vw, 38px); }
.vault p { font: 400 clamp(21px, 2.1vw, 30px)/1.4 var(--note); min-height: 5.6em; overflow-wrap: anywhere; }
.vault p.is-cipher { font: 400 clamp(16px, 1.5vw, 20px)/1.9 var(--mono); color: var(--muted); }
.vault footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; font: 400 14px/1.4 var(--ui); color: var(--muted); }
.vault .cta { background: #ffb068; color: #171412; }
.vault .cta:hover { background: #f3eee8; }

/* ---------------------------------------------------------------- prices as till receipts */
.bills__row { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px); margin-top: clamp(40px, 7vh, 80px); align-items: flex-start; }
.bill { flex: 1 1 260px; max-width: 390px; background: var(--paper); padding: 26px 24px 34px; font: 400 15px/1.5 var(--mono); filter: drop-shadow(0 16px 20px rgb(45 26 12 / .15)); transform: rotate(var(--r, 0deg)); --t: 8px; }
.bill h3 { font: 400 44px/1 var(--note); letter-spacing: -.03em; }
.bill hr { border: 0; border-top: 1px dashed var(--muted); margin: 14px 0; opacity: .6; }
.bill dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.bill dd { margin: 0; text-align: right; }
.bill .sum { font: 500 30px/1.15 var(--mono); letter-spacing: -.04em; }
.bill .sum small { font-size: 13px; letter-spacing: 0; color: var(--muted); }
.bill__alt { margin-top: 4px; font-size: 14px; color: var(--muted); }
.bill__foot { margin-top: 18px; text-align: center; font-size: 12px; line-height: 1.7; }
/* four receipts in one row; two by two below (on your phone / through our server).
   Each row stands alone, so one long value (the seat stepper) cannot squeeze every label. */
.bills__row--four { display: grid; grid-template-columns: repeat(4, minmax(0, 370px)); gap: 22px; }
.bills__row--four .bill { max-width: none; padding-inline: 20px; font-size: 14px; }
.bills__row--four .bill dl { display: block; }
.bills__row--four .bill dt { float: left; clear: left; margin: 0 12px 4px 0; }
.bills__row--four .bill dd { margin-bottom: 4px; }
.bills__row--four .bill dl::after { content: ""; display: block; clear: both; }
@media (max-width: 1239px) { .bills__row--four { grid-template-columns: repeat(2, minmax(0, 390px)); gap: 28px; } .bills__row--four .bill { padding-inline: 24px; font-size: 15px; } }
@media (max-width: 640px) { .bills__row--four { grid-template-columns: minmax(0, 1fr); } }
.bill .cta { margin-top: 18px; width: 100%; }
.bill.thanks { max-width: 520px; }
.thanks-page { padding-top: clamp(120px, 18vh, 200px); }
.bill .steps dt { font: 500 22px/1.3 var(--note); }
.bill .steps dd { text-align: left; }
.bill .steps { grid-template-columns: auto 1fr; gap: 10px 16px; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--tint); font: 500 18px/1 var(--mono); cursor: pointer; box-shadow: 0 2px 0 var(--keyedge); }
.stepper button:active { transform: translateY(2px); box-shadow: none; }
.stepper output { min-width: 2ch; text-align: center; font: 500 20px/1 var(--mono); }
.fine { margin-top: 30px; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* ---------------------------------------------------------------- roles (Teams page): four badges */
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(36px, 6vh, 72px); }
.badge { position: relative; background: var(--paper); padding: 46px 22px 24px; border-radius: 14px; box-shadow: 0 12px 24px rgb(45 26 12 / .12); transform: rotate(var(--r, 0deg)); }
.badge::before { content: ""; position: absolute; top: 16px; left: 50%; width: 54px; height: 10px; margin-left: -27px; border-radius: 5px; background: var(--desk); box-shadow: inset 0 2px 2px rgb(45 26 12 / .25); }
.badge h3 { font: 400 34px/1 var(--note); letter-spacing: -.02em; }
.badge p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* ---------------------------------------------------------------- questions, the close, the footer */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq dl { margin: 0; display: grid; gap: 30px; }
.faq dt { font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--note); letter-spacing: -.02em; }
.faq dd { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
/* "what should come next": one tap per platform, counted anonymously (site.js) */
.votes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.vote { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); color: var(--ink); font: 500 15px/1 var(--ui); cursor: pointer; transition: background .15s, box-shadow .15s; }
.vote:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.vote[aria-pressed="true"] { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--mark); color: var(--mark); cursor: default; }
.vote__thanks { color: var(--mark); font-size: 15px; }
.vote__thanks[hidden] { display: none; }
.end { text-align: left; padding-bottom: clamp(48px, 8vh, 96px); }
.end .line { font-size: clamp(60px, min(15vw, 26vh), 250px); margin-bottom: 24px; }
.end__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.end__row p { color: var(--muted); max-width: 44ch; }
footer.site { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer.site a { text-decoration: none; } footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site .brand { font-size: 18px; color: var(--ink); } footer.site .brand img { width: 28px; height: 28px; border-radius: 7px; }
footer.site span:last-child { margin-left: auto; }
/* one quiet line of guides under the footer row; order keeps it last while the copyright stays the last child */
footer.site .guides { order: 2; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; }
footer.site .guides b { font-weight: 500; color: var(--ink); }

/* ---------------------------------------------------------------- guide pages (support, switching): receipts as lists, a foreign source */
.bill ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bill li { padding-left: 1.4em; text-indent: -1.4em; }
.bill li::before { content: "+ "; color: var(--accent); }
.bill ul.out li::before { content: "~ "; color: var(--muted); }
.bill .label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.bill .file { overflow-wrap: anywhere; }
.form--src { font: 400 clamp(16px, 1.5vw, 21px)/1.6 var(--mono); overflow-wrap: anywhere; }
.form--src code { font: inherit; color: var(--mark); background: var(--tint); border-radius: .2em; padding: 0 .15em; }
.sheet > .memos:first-child { margin-top: 0; }
.cards.static li:hover { transform: rotate(var(--r)); }

/* ---------------------------------------------------------------- 404: the printer has no such slip */
.lost { min-height: 100svh; padding-top: clamp(110px, 16vh, 170px); display: grid; align-content: start; gap: 0; }
.lost .slip { font-size: clamp(21px, 2.3vw, 32px); }
.lost .slip h1 { font: inherit; }
.lost .slip p { margin-top: .5em; }
.lost .slip p[lang="en"] { margin-top: .9em; font-size: .78em; color: var(--muted); }
.lost .ways { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; }
.lost .art { margin-top: 26px; max-width: 220px; }

/* ---------------------------------------------------------------- scrolling
   site.js sets .anim on <html> (never with reduced motion) and marks what has come into view with .is-seen.
   Only the headings perform: each section's shortcut is typed and its heading comes out. Everything else is there when the visitor
   arrives. Papers without controls straighten a little under the pointer; receipts, the form and the vault hold still,
   because their buttons must stay where the visitor aims. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .memo, .draft, .arrives, .badge { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .memo:hover, .badge:hover { transform: rotate(0) translateY(-4px); }
  .draft:hover { transform: rotate(0) translateY(-3px); }
  .arrives:hover { transform: rotate(0); }
  .cards li:hover { transform: rotate(0) translateY(-4px); }
}
/* a heading expands from its shortcut: the key is typed, goes down, the words come out */
.anim .rv-head { position: relative; }
.anim .rv-head .h2t { display: block; clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.2, .8, .2, 1); }
.anim .rv-head.is-open .h2t { clip-path: inset(-.2em -.1em -.3em -.1em); }
.xkey { position: absolute; left: 0; top: .3em; min-width: 1.3em; min-height: 1.43em; font-size: clamp(17px, .3em, 26px); letter-spacing: 0; pointer-events: none; transition: transform .09s, box-shadow .09s, opacity .3s .14s; }
.xkey.is-down { transform: translateY(.09em); box-shadow: 0 0 0 var(--keyedge), 0 .05em .12em rgb(45 26 12 / .2); opacity: 0; }
@media print { .anim .h2t { opacity: 1 !important; clip-path: none !important; animation: none !important; } }

@media (max-width: 1100px) { .hoard { display: none; } .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sheet, .vorrat__head, .team, .schutz, .faq { grid-template-columns: minmax(0, 1fr); }
  .memos { grid-template-columns: minmax(0, 1fr); }
  .memo { transform: none; }
}
@media (max-width: 700px) {
  .top { gap: 12px; }
  .top nav { display: none; }
  .top .brand { font-size: 20px; }
  .top .cta { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .feed, .count { margin-inline: 10px; }
  .slip .pic { float: none; display: block; width: min(210px, 72%); margin: 0 auto .7em; }
  .arrives { max-width: 92%; }
  .seats-row .cta { margin-left: 0; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .cards li { padding: 12px 12px 14px; min-height: 0; } .cards span.t { display: none; }
  .badges { grid-template-columns: minmax(0, 1fr); } .badge { transform: none; }
  footer.site span:last-child { margin-left: 0; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slip, .count i, .pile > div, .bill, .cards li, .stamp, .seat i { transition: none !important; }
  .line .caret { animation: none; }
}
