/* billphotobooth — one stylesheet, monochrome only */

@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ECEBE8;
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-soft: #6B6B6B; /* only on --paper: fails AA on --bg */
  --rule: rgba(17, 17, 17, .4);

  --font: "Space Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --receipt-w: min(360px, calc(100vw - 32px));
  --pad: 22px;
  --tooth: 12px;
  --tooth-h: 6px;
  --feed-ms: 2400ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, p, ol, ul { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; z-index: 50; text-decoration: none;
}
.skip:focus { top: 12px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */

.btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: progress; }

.link {
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- booth + receipt ---------- */

.booth {
  padding: 8px 8px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.receipt-wrap {
  width: var(--receipt-w);
  /* drop-shadow follows the torn edge; box-shadow would be clipped by the mask */
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .06)) drop-shadow(0 12px 16px rgba(0, 0, 0, .08));
}

.receipt {
  position: relative;
  background: var(--paper);
  padding: 18px var(--pad) calc(18px + var(--tooth-h));
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--tooth-h) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--tooth-h) repeat-x;
}

/* crumpled paper, multiplied over everything on the paper (same file as the export) */
.receipt::after, .sign::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/paper.jpg") center / cover;
  mix-blend-mode: multiply;
  opacity: .8; /* a touch lighter on screen so the live receipt stays easy to read */
  pointer-events: none;
  z-index: 3;
}

.r-head { text-align: center; }
.r-head h1 { font-size: inherit; font-weight: inherit; line-height: 1; }
.brand {
  display: block;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: .2em;
  margin-right: -.2em; /* balance trailing letter-spacing */
  text-transform: uppercase;
}
.r-sub { font-size: 13px; line-height: 20px; }
.r-head { margin-bottom: 14px; } /* matches the export's gap under the header */

.r-sec {
  border-top: 1px dashed var(--rule);
  padding: 12px 0;
}
.feed > .r-sec:first-child { border-top: 0; }
.feed > .r-sec:last-child { padding-bottom: 0; }

.r-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
}

/* date — a transparent native picker sits on top of the text */
.date { position: relative; white-space: nowrap; }
#date-text { text-decoration: underline dotted; text-underline-offset: 3px; }
.date input {
  position: absolute;
  inset: -12px -6px;
  width: calc(100% + 12px);
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  font-size: 16px; /* stops iOS zoom on focus */
}
.date:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }

/* photo */
.photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--paper);
  overflow: hidden;
}


.photo-canvas, .photo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-canvas { cursor: grab; touch-action: none; }
.photo-canvas:active { cursor: grabbing; }
.photo-canvas:focus-visible { outline-offset: -4px; outline-color: var(--paper); box-shadow: inset 0 0 0 6px var(--ink); }

.photo-video {
  object-fit: cover;
  background: var(--ink);
  filter: grayscale(1) contrast(1.2);
}
.photo-video.mirror { transform: scaleX(-1); }

.photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  text-align: center;
}
.photo-btns { display: flex; flex-direction: column; gap: 10px; width: min(200px, 100%); }
.photo-msg { font-size: 13px; line-height: 1.5; max-width: 26ch; }
.photo-msg::before { content: "* "; }

.cam-ui { position: absolute; inset: 0; }
.cam-btn {
  position: absolute;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.cam-close { top: 10px; right: 10px; }
.cam-switch { bottom: 18px; right: 14px; }
.cam-shutter {
  position: absolute;
  left: 50%; bottom: 12px;
  width: 64px; height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--ink);
  cursor: pointer;
}
.cam-shutter:active { transform: scale(.94); }
.cam-ui :focus-visible { outline-color: var(--paper); outline-offset: 2px; }
.receipt[data-state="countdown"] .cam-ui { display: none; }

.countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.countdown:empty { display: none; }
.countdown.tick { animation: tick 1s ease-out both; }
@keyframes tick {
  from { transform: scale(1.35); opacity: 0; }
  20% { transform: scale(1); opacity: 1; }
  to { transform: scale(.9); opacity: .85; }
}

.photo-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 -8px;
  font-size: 12px;
}
.hint { color: var(--ink-soft); }

/* note */
.note { position: relative; }
.note-head { display: flex; align-items: center; gap: 10px; margin: -10px 0 -8px; }

/* note idea categories: a row of chips that scrolls sideways */
.note-cats {
  position: relative;
  z-index: 4; /* above the paper texture */
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 6px calc(var(--pad) * -1) 6px;
  padding: 4px var(--pad);
  scrollbar-width: none;
  scroll-padding: 0 var(--pad);
}
.note-cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px; /* tap target */
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:focus-visible { outline-offset: 2px; }
.note label { flex: 1; font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: .08em; }
.note-shuffle {
  position: relative;
  z-index: 4; /* above the paper texture */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px 0 8px;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.note-shuffle span { text-decoration: underline; text-underline-offset: 3px; }
.note-shuffle:active svg { transform: rotate(180deg); }
.note-shuffle svg { transition: transform .25s; }
.note textarea {
  display: block;
  width: 100%;
  resize: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
  font-size: 16px; /* >=16px keeps iOS from zooming */
  line-height: 22px;
  height: 114px; /* 5 lines */
  overflow: hidden;
}
.note textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.note textarea:focus-visible { outline-offset: 4px; }
.note-count { font-size: 11px; line-height: 20px; color: var(--ink-soft); }

/* footer of the receipt */
.r-foot { text-align: center; font-size: 13px; line-height: 20px; padding-top: 16px; }
.barcode { width: 80%; height: 52px; margin: 0 auto 2px; }
#barcode-no { letter-spacing: .3em; margin-right: -.3em; margin-bottom: 8px; }

/* ---------- print: the paper feeds out of the slot ---------- */

.paper-out.is-printing .receipt-wrap { animation: feedout var(--feed-ms) steps(32, end) both; }
@keyframes feedout {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

/* ---------- below the receipt ---------- */


.actions {
  margin-top: 18px;
  width: var(--receipt-w);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.actions .btn-board { grid-column: 1 / -1; }
.actions:has(#btn-share[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions .btn { padding: 0 6px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  font-size: 13px;
  z-index: 30;
}

.flash {
  position: fixed;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
.flash.go { animation: flash 250ms linear; }
@keyframes flash {
  0% { opacity: 0; }
  30% { opacity: .9; }
  100% { opacity: 0; }
}

/* ---------- the booth page: the machine ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(4px, env(safe-area-inset-top)) 12px 0;
  font-size: 13px;
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
}
.topbar-back:hover { text-decoration: underline; }
.topbar-brand { font-weight: 700; letter-spacing: .2em; font-size: 12px; }

.machine {
  position: relative;
  z-index: 2;
  width: min(404px, calc(100vw - 16px));
  background: linear-gradient(#262626, var(--ink) 30%);
  color: var(--paper);
  border-radius: 22px 22px 12px 12px;
  padding: 10px 12px 0;
  box-shadow: 0 2px 0 #000, 0 18px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.machine-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 4px 6px;
  font-size: 11px;
  letter-spacing: .2em;
}
.machine-name { font-weight: 700; flex: 1; }
.machine-model { opacity: .6; letter-spacing: .1em; font-size: 10px; }
.machine-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}
.booth:has(.paper-out.is-printing) .machine-led { animation: blink .3s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.window {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #000, inset 0 4px 14px rgba(0, 0, 0, .25);
}
.window-lede { font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.window-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  text-align: center;
}
.window-big { font-weight: 700; font-size: 22px; letter-spacing: .2em; }

.machine-foot { position: relative; height: 40px; }
.machine-grille {
  position: absolute;
  left: 14px; right: 14px; top: 8px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #333 0 3px, transparent 3px 7px);
  opacity: .8;
}
.machine-slot {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: calc(var(--receipt-w) + 14px);
  height: 8px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 4px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .08), 0 1px 0 rgba(255, 255, 255, .15);
}

/* the paper hangs from the slot; clip only its top so it seems to come out of the machine */
.paper-out {
  position: relative;
  z-index: 1;
  margin-top: -12px;
  width: var(--receipt-w);
  clip-path: inset(0 -60px -120px -60px);
}

.booth .actions { margin-top: 24px; }

/* ---------- the landing page: the board ---------- */

.hero {
  position: relative;
  min-height: max(100svh, 620px);
  display: grid;
  place-items: center;
  padding: 72px 16px;
  overflow: hidden;
}

.scatter {
  --tw: min(31vw, 150px);
  position: absolute;
  inset: 0;
  list-style: none;
}
.scatter li {
  position: absolute;
  width: var(--tw);
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
}
.scatter li:nth-child(n + 9) { display: none; }
.scatter li:nth-child(1) { --x: 1%; --y: 1%; --r: -7deg; }
.scatter li:nth-child(2) { --x: 67%; --y: -2%; --r: 6deg; }
.scatter li:nth-child(3) { --x: 34%; --y: -16%; --r: 2deg; }
.scatter li:nth-child(4) { --x: -9%; --y: 62%; --r: 5deg; }
.scatter li:nth-child(5) { --x: 70%; --y: 64%; --r: -6deg; }
.scatter li:nth-child(6) { --x: 33%; --y: 76%; --r: 3deg; }
.scatter li:nth-child(7) { --x: -15%; --y: 28%; --r: 8deg; }
.scatter li:nth-child(8) { --x: 85%; --y: 30%; --r: -4deg; }

@media (min-width: 760px) {
  .scatter { --tw: clamp(130px, 12.5vw, 200px); }
  .scatter li:nth-child(n + 9) { display: block; }
  .scatter li:nth-child(n + 13) { display: none; }
  .scatter li:nth-child(1) { --x: 24%; --y: 30%; --r: -6deg; }
  .scatter li:nth-child(2) { --x: 64%; --y: 25%; --r: 5deg; }
  .scatter li:nth-child(3) { --x: 11%; --y: 3%; --r: -3deg; }
  .scatter li:nth-child(4) { --x: 77%; --y: 53%; --r: -4deg; }
  .scatter li:nth-child(5) { --x: 1%; --y: 39%; --r: 4deg; }
  .scatter li:nth-child(6) { --x: 86%; --y: 5%; --r: 7deg; }
  .scatter li:nth-child(7) { --x: 16%; --y: 63%; --r: 3deg; }
  .scatter li:nth-child(8) { --x: 60%; --y: 67%; --r: -7deg; }
  .scatter li:nth-child(9) { --x: -4%; --y: 76%; --r: -5deg; }
  .scatter li:nth-child(10) { --x: 91%; --y: 71%; --r: 3deg; }
  .scatter li:nth-child(11) { --x: 31%; --y: -9%; --r: 6deg; }
  .scatter li:nth-child(12) { --x: 53%; --y: -13%; --r: -3deg; }
}

.scatter li::before, .sign::before { /* the pin */
  content: "";
  position: absolute;
  top: -3px; left: 50%; /* pushed through the top edge, clear of the header text */
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #666, var(--ink) 60%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
  z-index: 4;
}
.scatter img { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .16)); }

.pin-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.scatter li:hover, .scatter li:focus-within { z-index: 1; }
.pin-btn:hover img, .pin-btn:focus-visible img { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28)); }
.mine .tag {
  position: absolute;
  left: calc(50% + 12px); top: -6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: .12em;
  padding: 1px 6px;
  white-space: nowrap;
  z-index: 3;
}
.mine.drop { animation: drop 800ms cubic-bezier(.2, .9, .3, 1.15) 300ms both; }
.mine.drop::before { animation: pinpush 800ms ease-out 300ms both; }
@keyframes drop {
  from { translate: 0 -90px; scale: 1.25; opacity: 0; }
  55% { opacity: 1; }
}
@keyframes pinpush {
  0%, 60% { transform: scale(2.4); opacity: 0; }
  80% { transform: scale(.8); opacity: 1; }
}

.sign {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  background: var(--paper);
  padding: 34px 24px calc(26px + var(--tooth-h));
  text-align: center;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--tooth-h) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--tooth-h) repeat-x;
}
.sign-wrap {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .08)) drop-shadow(0 16px 24px rgba(0, 0, 0, .2));
}
.sign-wrap .sign { width: 100%; }
.sign::before { top: 12px; }
.sign-icon { margin: 8px auto 10px; }
.sign h1 { font-size: inherit; font-weight: inherit; }
.sign .brand { font-size: 21px; }
.sign-sub { font-size: 13px; margin-top: 2px; }
.sign-copy {
  margin: 18px 0 20px;
  padding: 14px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
  line-height: 1.6;
}
.btn-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  font-size: 16px;
  letter-spacing: .35em;
  text-decoration: none;
}
.sign-note { margin-top: 14px; font-size: 12px; color: var(--ink-soft); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  padding: 0 14px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.cta-line { text-align: center; margin-top: 24px; }
.cta-line .btn { display: inline-flex; align-items: center; text-decoration: none; }

/* viewer for your pinned receipts */
.viewer {
  border: 0;
  padding: 16px;
  background: transparent;
  max-width: min(440px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
}
.viewer::backdrop { background: rgba(17, 17, 17, .72); }
.viewer img { width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; }
.viewer-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* ---------- landing content ---------- */

.info {
  width: min(560px, calc(100vw - 32px));
  margin: 56px auto 0;
}
.info h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}
.info h2::before, .info h2::after { content: " — "; font-weight: 400; }

.card {
  background: var(--paper);
  padding: 8px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08);
}

.steps { list-style: none; }
.steps li {
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
}
.steps li:first-child { border-top: 0; }
.steps span { font-weight: 400; margin-right: 12px; }

.lede { margin-top: 20px; font-size: 14px; line-height: 1.7; }

.faq { padding: 4px 20px; }
.faq details { border-top: 1px dashed var(--rule); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 28px 12px 0;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; line-height: 1.7; }

.site-foot {
  margin: 64px auto 0;
  padding: 24px 16px max(32px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  line-height: 2;
}
.site-foot a { display: inline-block; min-height: 24px; text-underline-offset: 3px; }

/* ---------- simple pages (privacy, 404) ---------- */

.page {
  width: min(560px, calc(100vw - 32px));
  margin: 40px auto 0;
}
.page .card { padding: 24px 22px; }
.page h1 { font-size: 18px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.page p { line-height: 1.7; margin-top: 12px; }
.page .back { display: inline-block; margin-top: 24px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .paper-out.is-printing .receipt-wrap, .countdown.tick, .mine.drop, .mine.drop::before, .machine-led { animation: none !important; }
  .flash { display: none; }
  .btn:active, .cam-shutter:active { transform: none; }
}
