/* Playlist Zentrale project page. Built from the app's own design (web/app.css): dark by design,
   one accent (sunset amber) that means "act" or "this is the data", Bricolage Grotesque for
   display, Instrument Sans for text, JetBrains Mono for numbers. Fonts are self-hosted (SIL OFL,
   licences next to the files). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --surface: #15171a;
  --surface-2: #1c1f23;
  --surface-3: #252930;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --fg: #f3f1ec;
  --fg-2: #c3c0b8;
  --muted: #8b8880;
  --faint: #5c5a55;
  --accent: #f5a524;
  --accent-hover: #ffb53f;
  --accent-ink: #1a1204;
  --accent-soft: rgba(245, 165, 36, 0.14);
  --up: #7fcf8f;
  --down: #e8806f;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --page: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono, code, pre { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.86em; color: var(--fg-2); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
b { font-weight: 600; color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: transform 200ms var(--ease-out); }
.skip:focus { transform: translateY(64px); }

/* ------------------------------------------------------------------ header (the app's .top) */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - var(--page)) / 2));
  background: rgba(13, 14, 16, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--bg) 0 18%, var(--accent) 19% 100%);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.brand-name { font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.top-nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.top-nav a { padding: 5px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; transition: color 150ms var(--ease-press), background 150ms var(--ease-press); }
.top-nav a:hover { color: var(--fg); background: var(--surface-2); }

/* ------------------------------------------------------------------ buttons (the app's .btn) */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; font-weight: 600; font-size: 15px;
  transition: transform 120ms var(--ease-press), background 150ms var(--ease-press), color 150ms var(--ease-press), border-color 150ms var(--ease-press);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--fg-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12px; }
.top .btn { flex: none; }

/* ------------------------------------------------------------------ type */

main { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font: 700 clamp(44px, 7.4vw, 92px)/0.96 var(--display); letter-spacing: -0.03em; margin: 0 0 24px; text-wrap: balance; }
h2 { font: 700 clamp(32px, 4.4vw, 48px)/1.02 var(--display); letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; margin: 0 0 8px; }
.lead { color: var(--fg-2); font-size: 19px; line-height: 1.6; max-width: 600px; margin: 0 0 32px; }
.sub { color: var(--muted); max-width: 640px; margin: 0; }
.fine { color: var(--faint); font-size: 13px; margin: 20px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding: 104px 0 96px; }
.hero-copy { min-width: 0; }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 420px; }

/* The record. The grooves are rings, so only an inner layer (sheen and label) turns. The disc
   itself stands still and clips that layer to its circle: a turning square's box would otherwise
   be wider than the disc and widen a phone-sized page. */
.disc {
  position: relative; width: min(400px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(0, 0, 0, 0.35) 31.5% 32%, transparent 33%),
    repeating-radial-gradient(circle, #1d1f23 0 1.5px, #131417 1.5px 3.5px);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 120px rgba(245, 165, 36, 0.13), inset 0 0 0 10px #101113;
}
.disc-spin { position: absolute; inset: 0; border-radius: 50%; animation: spin 12s linear infinite; }
.disc-spin::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0 8%, rgba(255, 255, 255, 0.07) 12%, transparent 18% 58%, rgba(255, 255, 255, 0.05) 62%, transparent 68%);
}
.disc-label {
  position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 9%, var(--accent) 10% 100%);
  box-shadow: inset 0 0 0 2px rgba(26, 18, 4, 0.25);
}
.disc-label::before {
  content: ""; position: absolute; left: 50%; top: 14%; width: 22%; height: 6%; margin-left: -11%;
  border-radius: 999px; background: var(--accent-ink); opacity: 0.55;
}
.disc.paused .disc-spin { animation-play-state: paused; }
.disc.rewind .disc-spin { animation: rewind 720ms var(--ease-out); }

.undo-demo { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; width: max-content; max-width: 100%; }
.undo {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 5px 5px 5px 16px; border-radius: 999px;
  background: rgba(40, 30, 12, 0.92); color: var(--accent); font-size: 14px; font-weight: 500;
  border: 1px solid rgba(245, 165, 36, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.undo .btn-ghost { border-color: rgba(245, 165, 36, 0.3); color: var(--fg); }
.undo-text { display: inline-block; transition: opacity 180ms var(--ease-in), filter 180ms var(--ease-in), transform 180ms var(--ease-in); }
.undo-text.swap { opacity: 0; filter: blur(4px); transform: translateY(-4px); }
.undo-log { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(21, 23, 26, 0.9); border: 1px solid var(--line); color: var(--muted); font-size: 11px; transition: opacity 220ms var(--ease-out); }

/* ------------------------------------------------------------------ sections */

.section { padding: 96px 0 0; }
.section-head { margin-bottom: 40px; }

/* The app's tab bar, with its sliding amber ink. */
.tabs {
  position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 4px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; z-index: 1; flex: none; white-space: nowrap;
  border: 0; background: none; cursor: pointer; padding: 7px 16px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 14px;
  transition: color 150ms var(--ease-press);
}
.tabs button:hover { color: var(--fg-2); }
.tabs button[aria-selected="true"] { color: var(--accent-ink); }
.tab-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--accent); transition: transform 380ms var(--ease-out), width 380ms var(--ease-out); }

.window { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.window-bar em { margin-left: 10px; font-style: normal; font-size: 11px; color: var(--faint); }
.shot { margin: 0; }
.shot + .shot { border-top: 1px solid var(--line); }
.shot img { width: 100%; height: auto; background: var(--bg); }
@media (max-width: 600px) {
  /* Phone screens of the app on phones: the top of the page, cropped to a comfortable height. */
  .shot img { aspect-ratio: 390 / 720; object-fit: cover; object-position: top; }
}
.shot figcaption { padding: 14px 18px 16px; color: var(--fg-2); font-size: 14px; border-top: 1px solid var(--line); }

.watch { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.watch a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(245, 165, 36, 0.4); text-underline-offset: 3px; transition: text-decoration-color 150ms var(--ease-press); }
.watch a:hover { text-decoration-color: var(--accent); }

/* With JavaScript the six screens share one frame and slide like the app's panes. */
.js .shots { display: grid; }
.js .shot { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms; }
.js .shot + .shot { border-top: 0; }
.js .shot.from-left { transform: translateX(-24px); }
.js .shot.active { opacity: 1; visibility: visible; transform: none; transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s; }

/* ------------------------------------------------------------------ cards, rows, badges */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; flex: none;
  font: 500 10px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  background: var(--surface-3); color: var(--fg-2);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: rgba(127, 207, 143, 0.14); color: var(--up); }

.chat { display: grid; gap: 14px; }
.chat .eyebrow { margin: 0; }
.msg { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.msg p { margin: 0; color: var(--fg-2); }
.msg.you p { color: var(--fg); }
.msg.call p { color: var(--accent); font-size: 13px; }
.who { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.rows { list-style: none; margin: 0 0 0 60px; padding: 0; display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); transition: background 150ms var(--ease-press); }
.row:hover { background: var(--surface-2); }
.cover { width: 40px; height: 40px; border-radius: 4px; }
.row-main { display: grid; min-width: 0; }
.row-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 12px; }

.log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.log-head .eyebrow { margin: 0; overflow-wrap: anywhere; }
.entries { list-style: none; margin: 0; padding: 0; font-size: 12px; }
/* Fixed columns, so every row lines up with the next and set_playlist_cover fits whole. */
.entries li {
  display: grid; grid-template-columns: 60px 84px 132px minmax(0, 1fr) 96px; gap: 10px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.entries .badge { justify-self: end; }
.entries .t { color: var(--faint); }
.entries .c { color: var(--muted); }
.entries .o { color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.entries .p { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entries .undone .o { color: var(--up); }
.refusal { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--fg-2); font-size: 14px; }
.refusal b { color: var(--accent); }
.refusal .mono { font-size: 12.5px; color: var(--fg); }

/* The app's "How is this computed?" disclosure. */
.how { margin-top: 16px; color: var(--muted); font-size: 13px; }
.how summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.how summary::-webkit-details-marker { display: none; }
.how summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 11px; transition: transform 250ms var(--ease-out); }
.how[open] summary::before { transform: rotate(45deg); }
.how summary:hover { color: var(--fg-2); }
.how p { margin: 10px 0 0; line-height: 1.6; }

/* ------------------------------------------------------------------ guardrails */

.guards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.guards li { padding: 22px 0 28px; border-top: 1px solid var(--line-strong); transition: border-color 250ms var(--ease-out); }
.guards li:hover { border-top-color: var(--accent); }
.guards .num { display: block; color: var(--accent); font-size: 12px; margin-bottom: 14px; }
.guards p { margin: 0; color: var(--fg-2); font-size: 14px; }

/* ------------------------------------------------------------------ receipt (the app's easter egg) */

.reads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: start; }
.reads .section-head { margin: 0; }
.facts { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; }
.facts li { display: flex; align-items: baseline; gap: 12px; color: var(--fg-2); }
.facts b { min-width: 40px; color: var(--accent); font-size: 22px; font-weight: 600; }
.code {
  margin: 0; padding: 14px 16px; border-radius: var(--r); max-width: 100%; overflow-x: auto;
  background: #101114; border: 1px solid var(--line); color: var(--fg); font-size: 13px; line-height: 1.65;
}
.code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.dim { color: var(--faint); }

.receipt-wrap { padding-top: 8px; }
.receipt {
  position: relative; max-width: 360px; margin: 0 auto; padding: 26px 22px 34px;
  background: #f4f1e8; color: #1b1a17; font: 400 12.5px/1.65 var(--mono);
  transform: rotate(1.2deg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
  background: linear-gradient(135deg, #f4f1e8 50%, transparent 50%) 0 0 / 12px 12px repeat-x, linear-gradient(-135deg, #f4f1e8 50%, transparent 50%) 0 0 / 12px 12px repeat-x;
}
.receipt h3 { font: 700 19px/1 var(--mono); text-align: center; letter-spacing: 0.06em; margin: 0 0 6px; }
.receipt p { margin: 0; }
.receipt .r-center { text-align: center; }
.receipt .r-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; }
.receipt .r-total { font-weight: 700; font-size: 14px; }
.receipt hr { border: 0; border-top: 1px dashed #1b1a17; margin: 12px 0; }
.receipt .barcode { height: 42px; margin-top: 14px; background: repeating-linear-gradient(90deg, #1b1a17 0 2px, transparent 2px 4px, #1b1a17 4px 5px, transparent 5px 8px, #1b1a17 8px 11px, transparent 11px 12px); }

/* ------------------------------------------------------------------ steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.steps h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.steps .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; }

/* The app's segmented control. */
.seg { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; margin-bottom: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: none; cursor: pointer; padding: 5px 12px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background 200ms var(--ease-out), color 150ms var(--ease-press); }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--fg); }
.cfg + .cfg { margin-top: 10px; }
.js .cfg + .cfg { margin-top: 0; }

/* ------------------------------------------------------------------ seats, privacy */

.seats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; padding-bottom: 104px; }
.seats-copy p:not(.eyebrow) { color: var(--fg-2); max-width: 560px; }
.seats .cta { margin-top: 28px; }
.privacy ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.privacy li { position: relative; padding-left: 18px; color: var(--fg-2); font-size: 14px; }
.privacy li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* The mood diary strip: one square per hour, brighter means more energy. */
.strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.strip i { height: 12px; border-radius: 3px; background: var(--surface-2); }
.strip i:nth-child(8), .strip i:nth-child(9) { background: rgba(245, 165, 36, 0.3); }
.strip i:nth-child(11), .strip i:nth-child(12) { background: rgba(245, 165, 36, 0.45); }
.strip i:nth-child(18), .strip i:nth-child(19) { background: rgba(245, 165, 36, 0.85); }
.strip i:nth-child(20) { background: var(--accent); }
.strip i:nth-child(22), .strip i:nth-child(23) { background: rgba(245, 165, 36, 0.6); }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); padding: 36px max(24px, calc((100vw - var(--page)) / 2)) 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; color: var(--muted); font-size: 13px; }
.foot p { margin: 0; max-width: 560px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 700 15px var(--display); white-space: nowrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a:hover { color: var(--fg); }
.foot a.inline { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color 150ms var(--ease-press), text-decoration-color 150ms var(--ease-press); }
.foot a.inline:hover { color: var(--fg); text-decoration-color: var(--accent); }

/* ------------------------------------------------------------------ motion */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rewind { from { transform: rotate(0deg); } to { transform: rotate(-540deg); } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20px 0); } }

/* Reveal on scroll, only when JavaScript can undo it: content is never hidden without it. */
.js [data-reveal] { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out), filter 480ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js .receipt[data-print]:not(.in) { clip-path: inset(0 0 100% 0); }
.js .receipt.in { animation: print 1100ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .disc-spin { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .receipt[data-print]:not(.in) { clip-path: none; }
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 64px 0 56px; }
  .hero-stage { min-height: 0; padding: 8px 0 72px; }
  .disc { width: min(320px, 80vw); }
  .split, .reads, .seats { grid-template-columns: 1fr; }
  .reads { gap: 40px; }
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .section { padding-top: 72px; }
  .rows { margin-left: 0; }
  .entries li { grid-template-columns: 64px minmax(0, 1fr) 96px; row-gap: 2px; }
  .entries .c { grid-column: 2; grid-row: 1; }
  .entries .o { grid-column: 1 / 3; }
  .entries .p { grid-column: 1 / 3; }
  .entries .badge { grid-column: 3; grid-row: 1; }
}
@media (max-width: 520px) {
  main { padding: 0 16px; }
  .top { padding: 10px 16px; }
  .lead { font-size: 17px; }
  .guards { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .msg { grid-template-columns: 1fr; gap: 2px; }
  .undo { font-size: 13px; }
  .tabs button { padding: 7px 12px; font-size: 13px; }
  .foot { padding: 32px 16px 40px; }
}
