/* Scroll Receipt. Qulok's hallway at night: ink, door light gold, cream paper.
   Geist and Geist Mono (SIL OFL 1.1), Instrument Serif (SIL OFL 1.1), self hosted. */
@font-face { font-family: "Geist"; src: url(fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Regular.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Italic.ttf) format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0E0F14;
  --ink-2: #171821;
  --ink-3: #222330;
  --line: #2E2F3D;
  --text: #F4EEE4;
  --muted: #ABA59B;
  --faint: #8A847C;
  --gold: #F0B76A;
  --gold-light: #F8CF8F;
  --gold-deep: #DFA04A;
  --gold-ink: #2A1C05;
  --paper: #F7F0E3;
  --paper-ink: #24201C;
  --paper-muted: #6E665C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(248, 207, 143, 0.08), transparent 70%);
  color: var(--text);
  font: 17px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-underline-offset: 3px; }
.wrap { max-width: 560px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 48px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.free { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

h1 { font: 400 clamp(42px, 11vw, 60px)/1.02 "Instrument Serif", Georgia, serif; margin: 0; letter-spacing: -0.01em; }
h1 em { color: var(--gold); }
.lede { color: var(--muted); margin: 14px 0 28px; font-size: 18px; }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
legend { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); margin-left: 6px; }
.time { display: flex; gap: 12px; }
.time label { flex: 1; display: flex; align-items: baseline; gap: 8px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; }
.time label:focus-within { border-color: var(--gold); }
.time input { width: 100%; min-width: 0; background: none; border: 0; color: var(--text); font: 500 44px/1.1 "Geist Mono", ui-monospace, monospace; outline: none; }
.time span { color: var(--muted); font-size: 16px; }
.help { font-size: 14px; color: var(--faint); margin: 10px 0 0; }

.apps { display: grid; gap: 8px; margin-bottom: 10px; }
.app-row { display: grid; grid-template-columns: 1fr 76px 76px 44px; gap: 6px; }
.app-row input { min-width: 0; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: 16px "Geist", system-ui, sans-serif; padding: 12px; }
.app-row input[type="number"] { font-family: "Geist Mono", ui-monospace, monospace; }
.app-row input:focus { outline: none; border-color: var(--gold); }
.app-row .x { background: none; border: 0; color: var(--faint); font-size: 22px; cursor: pointer; border-radius: 12px; }
.app-row .x:hover { color: var(--text); background: var(--ink-3); }

button { font: 600 17px "Geist", system-ui, sans-serif; border-radius: 999px; min-height: 52px; padding: 0 22px; cursor: pointer; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.gold { width: 100%; background: var(--gold); color: var(--gold-ink); }
.gold:hover { background: var(--gold-light); }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.ghost:hover { background: var(--ink-3); }
.quiet { background: none; color: var(--muted); }
#addApp { min-height: 44px; font-size: 15px; }
.privacy { font-size: 13px; color: var(--faint); text-align: center; margin: 12px 0 0; }

/* The receipt slides out of a slot like a till roll. */
.out { margin-top: 28px; }
.slot { height: 14px; margin: 0 8px; border-radius: 8px; background: #050508; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.8); position: relative; z-index: 2; }
.receipt {
  position: relative;
  margin: -6px 22px 0;
  background: var(--paper);
  color: var(--paper-ink);
  font: 500 14px/1.55 "Geist Mono", ui-monospace, monospace;
  padding: 26px 20px 30px;
  transform-origin: top;
  animation: print 1.4s cubic-bezier(.2, .7, .2, 1) both;
  --edge: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--edge) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--edge) 100%;
  padding-bottom: 40px;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } }
.r-head { text-align: center; }
.r-title { font: 400 30px/1 "Instrument Serif", Georgia, serif; letter-spacing: 0.01em; }
.r-sub { color: var(--paper-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.r-rule { border: 0; border-top: 1.5px dashed #B9AE9E; margin: 14px 0; }
.r-row { display: flex; justify-content: space-between; gap: 12px; }
.r-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.r-row span:last-child { white-space: nowrap; text-align: right; }
.r-indent { padding-left: 14px; color: var(--paper-muted); }
.r-label { color: var(--paper-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.r-total { font-size: 18px; font-weight: 500; }
.r-big { font: 400 40px/1.05 "Instrument Serif", Georgia, serif; text-align: center; margin: 4px 0 2px; }
.r-big-sub { text-align: center; color: var(--paper-muted); font-size: 13px; }
.r-paid { text-align: center; letter-spacing: 0.06em; }
.r-stamp { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.r-stamp img { width: 64px; height: 64px; }
.r-stamp p { margin: 0; font-size: 13px; color: var(--paper-muted); }
.r-bars { height: 46px; margin-top: 16px; display: flex; gap: 2px; align-items: stretch; justify-content: center; }
.r-bars i { display: block; background: var(--paper-ink); }
.r-url { text-align: center; font-size: 12px; color: var(--paper-muted); margin-top: 6px; letter-spacing: 0.06em; }

.actions { display: grid; gap: 10px; margin: 24px 0 0; }

.app { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-2), var(--ink)); }
.app img { flex: none; }
.app h2 { font: 400 26px/1.1 "Instrument Serif", Georgia, serif; margin: 0 0 6px; }
.app p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 420px) { .app { flex-direction: column; text-align: center; } }

.foot { margin-top: 36px; color: var(--faint); font-size: 13px; text-align: center; }
.foot p { margin: 0 0 10px; }

.app .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; margin-top: 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.app .cta:hover { background: var(--gold-light); }
.app .soon { margin-top: 10px; font-size: 14px; color: var(--faint); }
.foot a { display: inline-block; padding: 12px 6px; }
.foot .links { margin-top: 4px; }
/* Wider screens: the same single column, with more air above it. */
@media (min-width: 900px) { .wrap { padding-top: 40px; } }
