/* Pinshot's landing page: flat and quiet, after Apple's product pages. White and #f5f5f7 sections
   alternate (black and #1d1d1f in dark mode), one accent blue for links and buttons, the system font.
   The only gradient is the wallpaper of the hero's desktop, where the live stack sits. */

:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --card: #f5f5f7;
  --card-on-alt: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0071e3;
  --inline-code: rgb(0 0 0 / 0.05);
  --shot-shadow: 0 12px 40px rgb(0 0 0 / 0.12);
  --nav: rgb(251 251 253 / 0.8);
  --nav-rule: #e8e8ed;
  --nav-link: #424245;
  --eyebrow: #bf4800;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #1d1d1f;
    --card: #1d1d1f;
    --card-on-alt: #000;
    --text: #f5f5f7;
    --muted: #86868b;
    --rule: #424245;
    --link: #2997ff;
    --inline-code: rgb(255 255 255 / 0.1);
    --shot-shadow: 0 12px 40px rgb(0 0 0 / 0.6);
    --nav: rgb(22 22 23 / 0.8);
    --nav-rule: #2d2d2f;
    --nav-link: #d2d2d7;
    --eyebrow: #ff9f0a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0 0 0.4em; font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; margin-top: 1.6em; }
p { margin: 0 0 1em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

code { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--inline-code);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  font-weight: 600;
}
.skip:focus { top: 0.6rem; }

/* Buttons: Apple's pill. */

.pill {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pill:hover { background: var(--accent-hover); text-decoration: none; }
.pill-small { padding: 0.3em 0.85em; font-size: 0.75rem; }
/* Opens System Settings straight on Privacy & Security, where Open Anyway lives. */
.steps .pill { display: inline-block; margin: -0.3rem 0 1rem; font-size: 0.85rem; }
.pill-large { padding: 0.8em 1.8em; font-size: 1.1rem; }

.more::after { content: " ›"; }

/* Local nav, sticky like a product page's. */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--nav-rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 1024px;
  height: 48px;
  margin: 0 auto;
  padding: 0 22px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 20px; height: 20px; border-radius: 5px; }
.nav .pill-small { justify-self: end; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--nav-link); font-size: 12px; }
.nav-links a:hover { color: var(--link); opacity: 1; text-decoration: none; }
@media (max-width: 700px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}

/* Sections. */

.section { padding: clamp(72px, 11vw, 128px) 22px; }
.alt { background: var(--bg-alt); }
.wrap { max-width: 980px; margin: 0 auto; }
.center { text-align: center; }
.eyebrow { margin-bottom: 0.5em; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; }
.intro {
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.4;
}
.center .intro { margin-inline: auto; }

/* Hero. */

.hero { padding: clamp(48px, 7vw, 72px) 22px clamp(72px, 10vw, 110px); text-align: center; }
.hero-eyebrow { margin: 0 0 6px; color: var(--eyebrow); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.pitch {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.004em;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 26px 0 0; }
.actions .pill { padding: 12px 22px; font-size: 17px; font-weight: 400; }
.actions .more { font-size: 19px; }

.cards-short .card { padding: 30px 28px 34px; border-radius: 18px; }
.cards-short h3 { margin: 14px 0 0; font-size: 21px; font-weight: 600; }
.cards-short p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.cards-short .card-icon { margin: 0; color: var(--text); font-size: 30px; line-height: 1.2; }

/* What it shows: copy beside a screenshot. */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* The stack section's key: what each gesture on a thumbnail does. */
.key { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.key li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 0.9rem; align-items: baseline; }
.key-what { font-weight: 600; }

kbd { font: inherit; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.card kbd { color: var(--text); }

.shot { margin: 0; text-align: center; }
.shot img {
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: var(--shot-shadow);
}
.shot figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* Feature cards. */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  text-align: left;
}
.card { padding: 34px 30px 26px; border-radius: 24px; background: var(--card); }
.card h3 { margin: 0 0 0.7em; font-size: 1.6rem; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { margin-bottom: 0.9em; font-size: 0.95rem; color: var(--muted); }
.card li::first-line { color: var(--text); }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 40px;
  align-items: start;
  margin-top: clamp(56px, 8vw, 96px);
}

/* How it works. */

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 48px;
  margin-top: 2.4rem;
}
.columns h3 { margin-top: 0; }

.code {
  margin: 1.4rem 0 0;
  padding: 24px 26px;
  overflow: auto;
  border-radius: 18px;
  background: var(--card-on-alt);
  font: 0.85rem/1.6 var(--mono);
  letter-spacing: 0;
}

/* Download. */

.download { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin: 2rem 0 0; }
.requirements { color: var(--muted); font-size: 0.9rem; }

.first-launch {
  max-width: 640px;
  margin: clamp(48px, 7vw, 72px) auto;
  padding: 34px 32px 18px;
  border-radius: 24px;
  background: var(--card);
  text-align: left;
}
.first-launch h3 { margin-top: 0; }
.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 2.6rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
}
.after-download { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 0.95rem; }

/* Footer. */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 28px 22px 36px;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}
.footer p { margin: 0; }
.footer strong { color: var(--text); font-weight: 600; }


/* ---------------------------------------------------------------------------------------------
   The play area: a Mac desktop with Pinshot running. Sizes follow the app, scaled to the desk:
   240pt thumbnails with 10pt corners, 20pt from the screen's corner, 12pt apart (OverlayStack.swift),
   white 22pt HUD buttons (ThumbnailView.swift). Everything inside .surface is what a capture sees.
   --------------------------------------------------------------------------------------------- */

.play {
  --wallpaper: linear-gradient(155deg, #7fb2ff 0%, #5a6fd8 38%, #8c5bbf 72%, #e58aa8 100%);
  --w-bg: #fff;
  --w-bar: #ececec;
  --w-side: #f3f3f5;
  --w-line: #dcdce1;
  --w-ink: #3a3a3c;
  --w-sec: #6e6e73;
  --w-bubble: #e9e9eb;
  --m-bg: rgb(246 246 246 / 0.97);
  --m-text: #1d1d1f;
  --m-sec: #8e8e93;
  --m-line: rgb(0 0 0 / 0.1);

  max-width: 980px;
  margin: 54px auto 0;
}

@media (prefers-color-scheme: dark) {
  .play {
    --wallpaper: linear-gradient(155deg, #1f3566 0%, #2b2a6b 40%, #4a2a62 75%, #6b3350 100%);
    --w-bg: #1e1e20;
    --w-bar: #2c2c2e;
    --w-side: #252528;
    --w-line: #3a3a3d;
    --w-ink: #e5e5ea;
    --w-sec: #98989d;
    --w-bubble: #3a3a3c;
    --m-bg: rgb(50 50 52 / 0.97);
    --m-text: #f5f5f7;
    --m-sec: #98989d;
    --m-line: rgb(255 255 255 / 0.12);
  }
}

.play-hint { max-width: 780px; margin: 0 auto 24px; }
.play-title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.play-hint p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips button { padding: 6px 13px; border: 0; border-radius: 980px; background: var(--card); color: var(--text);
  font: inherit; font-size: 13px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.chips button:hover { background: var(--rule); }
.chips kbd { margin-right: 0.3em; color: var(--muted); }
.chips .is-on { background: #ff3b30; color: #fff; }
.chips .is-on:hover { background: #ff453a; }
.chips .is-on kbd { color: rgb(255 255 255 / 0.8); }

.desk {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shot-shadow);
}
.desk button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.desk :focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* The surface sizes its windows in its own units, so a frozen copy of it lays out the same. */
.surface {
  position: absolute;
  inset: 0;
  container-type: size;
  overflow: hidden;
  background: var(--wallpaper);
  font: 13px/1.3 var(--sans);
  letter-spacing: 0;
}
.surface.clone { inset: auto; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
.only-window { background: var(--w-bg); }
.only-window .mb, .only-window .pins, .win[hidden] { display: none; }

.mb {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 28px;
  padding: 0 14px;
  background: rgb(255 255 255 / 0.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.mb-left { display: flex; gap: 16px; flex: 1; min-width: 0; overflow: hidden; }
.mb-left b { font-weight: 700; }
.mb-glyph { display: grid; place-items: center; padding: 3px 7px; border: 0; border-radius: 5px; background: none; cursor: default; }
.mb-glyph[aria-expanded="true"] { background: rgb(255 255 255 / 0.25); }
.glyph { display: block; width: 18px; height: 16px; }
.mb-date { margin-right: 0.5em; }

/* The made-up windows: positions in % of the screen, chrome in cqmin so a small desk shrinks it. */

.scene { position: absolute; inset: 0; }
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6cqmin;
  background: var(--w-bg);
  box-shadow: 0 2cqmin 6cqmin rgb(0 0 0 / 0.3), 0 0 0 0.5px rgb(0 0 0 / 0.25);
}
.win-photo { left: 5%; top: 13%; width: 41%; height: 52%; }
.win-chart { left: 51%; top: 9%; width: 43%; height: 50%; }
.win-chat { left: 34%; top: 50%; width: 34%; height: 42%; }
@container (orientation: portrait) {
  .win-photo { left: 5%; top: 9%; width: 78%; height: 30%; }
  .win-chart { left: 16%; top: 34%; width: 80%; height: 28%; }
  .win-chat { left: 28%; top: 58%; width: 66%; height: 34%; }
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 1cqmin;
  flex: none;
  height: 4.4cqmin;
  padding: 0 1.6cqmin;
  background: var(--w-bar);
  color: var(--w-sec);
  font-size: 2cqmin;
  font-weight: 600;
}
.win-bar i { width: 1.5cqmin; height: 1.5cqmin; border-radius: 50%; background: #ff5f57; }
.win-bar i + i { background: #febc2e; }
.win-bar i + i + i { background: #28c840; }
.win-bar span { flex: 1; padding-right: 6cqmin; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-art { display: block; flex: 1; width: 100%; min-height: 0; }
.chat { display: flex; flex-direction: column; gap: 1.5cqmin; flex: 1; padding: 2cqmin; }
.bubble { width: var(--w); height: 3.6cqmin; margin: 0; border-radius: 1.8cqmin; background: var(--w-bubble); }
.bubble.me { align-self: flex-end; background: #4f7cff; }
.win.drop { box-shadow: 0 0 0 3px #4f7cff, 0 2cqmin 6cqmin rgb(0 0 0 / 0.3); }

/* The stack. .thumb sits at the bottom-left corner; play.js moves it up the column with transform. */

.stack { position: absolute; top: 28px; right: 0; bottom: 0; left: 0; z-index: 5; pointer-events: none; }
.stack.hidden { visibility: hidden; }
.thumb {
  position: absolute;
  left: 0; bottom: 0;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  touch-action: pan-y;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.thumb.leaving { transition-duration: 0.2s; transition-timing-function: ease-in; pointer-events: none; }
.thumb.swiping { transition: none; }
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: inherit;
  pointer-events: none;
}
.snap { position: absolute; inset: 0; overflow: hidden; }
.badge-play { position: absolute; left: 7px; bottom: 7px; width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.4)); }
.hov { position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 0.12s; }

.ctl { position: absolute; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.thumb:hover .hov, .thumb:focus-within .hov, .thumb.touched .hov, .thumb.hovering .hov { opacity: 1; }
.thumb:hover .ctl, .thumb:focus-within .ctl, .thumb.touched .ctl, .thumb.hovering .ctl { opacity: 1; pointer-events: auto; }
.thumb.leaving .ctl { pointer-events: none; }
.rb {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: #000 !important;
  cursor: pointer;
}
.rb .i, .ctl .i { display: block; width: 9px; height: 9px; }
.ctl-close { top: 6px; left: 6px; }
.ctl-pin { top: 6px; right: 6px; }
.ctl-reveal { right: 6px; bottom: 6px; }
.ctl-edit { left: 6px; bottom: 6px; }
.ctl-pills { top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, -50%); }
.hud {
  width: 76px;
  padding: 3px 0;
  border: 0;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.92);
  color: #000 !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
/* A short thumbnail keeps its buttons clear of the corners. */
.compact .ctl-pills { gap: 3px; }
.compact .hud { width: 62px; padding: 1px 0; font-size: 10px !important; }
.rb:hover, .hud:hover { background: #fff; }
.rb:active, .hud:active { filter: brightness(0.9); }
.desk .rb:focus-visible, .desk .hud:focus-visible { outline: 2px solid #0a84ff; outline-offset: 1px; }

/* A thumbnail on its way out of the window, dragged by the pointer. */
.ghost { position: absolute; top: 0; left: 0; z-index: 20; border-radius: 10px; overflow: hidden; opacity: 0.85; pointer-events: none;
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.4); transition: transform 0.2s ease, opacity 0.2s ease; }

/* Pins (PinnedPanel.swift): the capture at its own size, 6pt corners, a shadow, above every window. */
.pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pin {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
  pointer-events: auto;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.45), 0 0 0 0.5px rgb(0 0 0 / 0.3);
  cursor: grab;
  touch-action: none;
  transition: opacity 0.12s;
}
.pin.held { cursor: grabbing; }
.pin.leaving { opacity: 0 !important; transition-duration: 0.15s; }
.desk .pin:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; border-radius: 6px; }

/* Picking what to capture: screencapture's crosshair for screenshots, Pinshot's dimmed overlay for
   recordings (SelectionOverlay.swift). */
.picker { position: absolute; inset: 0; z-index: 8; cursor: crosshair; touch-action: none; }
.picker[hidden] { display: none; }
.picker-record { background: rgb(0 0 0 / 0.35); }
.picker-record.has-sel { background: none; }
.picker-window { cursor: pointer; }
.sel { position: absolute; }
.sel[hidden], .size[hidden], .hl[hidden] { display: none; }
.picker-area .sel { background: rgb(255 255 255 / 0.16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.85); }
.picker-record .sel { box-shadow: 0 0 0 4000px rgb(0 0 0 / 0.35), 0 0 0 1px #fff; }
.hl { position: absolute; border-radius: 8px; background: rgb(80 150 255 / 0.38); }
.size { position: absolute; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgb(0 0 0 / 0.7); white-space: nowrap; }
.picker-record .size { padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / 0.7); font-size: 12px; text-shadow: none; transform: translateX(-50%); }
.hint {
  position: absolute;
  top: 50%; left: 50%;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.has-sel .hint { display: none; }

/* The red frame just outside the recorded area (Recorder.showOutline). */
.outline { position: absolute; z-index: 7; border: 2px solid #ff3b30; border-radius: 3px; pointer-events: none; }
.outline[hidden] { display: none; }

/* The menu bar menu. */
.menu {
  position: absolute;
  z-index: 10;
  min-width: 232px;
  padding: 5px;
  border-radius: 8px;
  background: var(--m-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.25), 0 0 0 0.5px rgb(0 0 0 / 0.22);
  color: var(--m-text);
  font: 13px/1.3 var(--sans);
  letter-spacing: 0;
}
.menu[hidden] { display: none; }
.menu button {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--m-text);
  text-align: left;
  cursor: default;
}
.menu kbd { color: var(--m-sec); font-weight: 400; }
.menu button:hover, .menu button:focus-visible { background: var(--accent); color: #fff; outline: none; }
.menu button:hover kbd, .menu button:focus-visible kbd { color: rgb(255 255 255 / 0.85); }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--m-line); }

.toast {
  position: absolute;
  top: 40px; left: 50%;
  z-index: 12;
  max-width: calc(100% - 28px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.8);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: absolute; left: 50%; bottom: 20px; margin: 0; padding: 6px 12px; border-radius: 8px;
  background: rgb(0 0 0 / 0.7); color: #fff; font-size: 13px; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  .thumb, .thumb.leaving, .hov, .ctl, .ghost, .pin, .toast, .chips button { transition: none; }
}

@media (max-width: 860px) {
  .desk { border-radius: 22px; }
  .mb-left span { display: none; }
}
@media (max-width: 600px) {
  .desk { aspect-ratio: 4 / 5; border-radius: 18px; }
  .mb { gap: 10px; padding: 0 10px; }
  .mb-date { display: none; }
  .play-title { font-size: 24px; }
  .menu { min-width: 0; width: calc(100% - 20px); }
  .hint { font-size: 12px; }
}

/* The stack section's figure: one thumbnail, drawn as if the pointer were over it. */
.anatomy { display: grid; place-items: center; padding: 36px 24px; border-radius: 24px; background: linear-gradient(155deg, #7fb2ff, #8c5bbf); }
@media (prefers-color-scheme: dark) {
  .anatomy { background: linear-gradient(155deg, #1f3566, #4a2a62); }
}
.anatomy .thumb { position: relative; width: 100%; max-width: 320px; aspect-ratio: 400 / 240; touch-action: auto; }
.anatomy-art { display: block; width: 100%; height: 100%; }
.anatomy .ctl { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #000; }
.anatomy .ctl .i { width: 12px; height: 12px; }
.anatomy .ctl-close { top: 10px; left: 10px; }
.anatomy .ctl-pin { top: 10px; right: 10px; }
.anatomy .ctl-reveal { right: 10px; bottom: 10px; }
.anatomy .ctl-edit { left: 10px; bottom: 10px; }
.anatomy .ctl-pills { display: flex; width: auto; height: auto; border-radius: 0; background: none; gap: 8px; }
.anatomy .hud { display: block; width: 116px; padding: 6px 0; border-radius: 14px; font-size: 13px !important; }

/* The coffee note that opens with a download: a centred card, a bottom sheet on a phone. */

.coffee {
  width: min(400px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.25);
}
@media (prefers-color-scheme: dark) {
  .coffee { background: #1d1d1f; }
}
.coffee::backdrop { background: rgb(0 0 0 / 0.4); }
.coffee-body { display: flex; flex-direction: column; align-items: center; padding: 32px 28px 20px; text-align: center; }
.coffee-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: #a2672e;
}
@media (prefers-color-scheme: dark) {
  .coffee-icon { background: #2c2c2e; color: #e0a46a; }
}
.coffee h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.coffee p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.coffee .pill { padding: 11px 22px; font-size: 17px; font-weight: 400; }
.coffee-later {
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.coffee-later:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .coffee[open] { animation: coffee-in 0.22s ease-out; }
  @keyframes coffee-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
}

@media (max-width: 520px) {
  .coffee {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }
  .coffee-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .coffee .pill { align-self: stretch; }
  @media (prefers-reduced-motion: no-preference) {
    .coffee[open] { animation: coffee-sheet 0.25s ease-out; }
    @keyframes coffee-sheet { from { transform: translateY(100%); } }
  }
}
