/* Jumpr site. One stylesheet, no build step.
   The only color is the label yellow; everything else is warm greys.
   Light and dark follow the system. */

:root {
  color-scheme: light dark;

  --yellow: #FFD60A;           /* the app's default label color (Settings.swift) */
  --yellow-hover: #FFE04A;
  --on-yellow: #000;
  --label: #FFD60A;            /* every label on the page; the "Make it yours" swatches change it */
  --on-label: #000;

  --bg: #f4f3ef;
  --surface: #fbfaf7;
  --text: #17171b;
  --muted: #45454d;
  --faint: #65656e;
  --line: rgba(23, 23, 27, 0.12);
  --line-strong: rgba(23, 23, 27, 0.28);
  --focus: #17171b;
  --art: #eceae5;              /* the ground of the drawings below the demo */
  --key: #ffffff;
  --key-edge: rgba(23, 23, 27, 0.22);
  --shadow: rgba(0, 0, 0, 0.28);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* the mock desktop */
  --bezel: #1b1b1f;
  --wall: linear-gradient(155deg, #dcdfe3 0%, #c9ced5 52%, #dbd5cd 100%);
  --m-bar: rgba(250, 250, 251, 0.72);
  --m-text: #1f1f23;
  --m-muted: #84848d;
  --m-win: #ffffff;
  --m-side: #f2f2f4;
  --m-line: #e2e2e6;
  --m-sel: #e1e1e6;
  --m-menu: rgba(251, 251, 252, 0.98);
  --m-in: #ececf0;
  --m-out: #2b2b30;
  --m-out-text: #ffffff;
  --m-skel: #e5e5e9;
  --m-dock: rgba(255, 255, 255, 0.45);
  --m-light: #d3d3d8;
  --m-shadow: rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d10;
    --surface: #16161a;
    --text: #f3f3f5;
    --muted: #c4c4cc;
    --faint: #a3a3ad;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.30);
    --focus: #FFD60A;
    --art: #1c1c21;
    --key: #26262c;
    --key-edge: rgba(255, 255, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.6);

    --bezel: #222227;
    --wall: linear-gradient(155deg, #2b2e34 0%, #1c1d21 55%, #2a2622 100%);
    --m-bar: rgba(28, 28, 32, 0.72);
    --m-text: #ececf0;
    --m-muted: #8f8f99;
    --m-win: #26262b;
    --m-side: #1f1f23;
    --m-line: #36363c;
    --m-sel: #3a3a41;
    --m-menu: rgba(44, 44, 50, 0.98);
    --m-in: #36363c;
    --m-out: #e9e9ee;
    --m-out-text: #18181b;
    --m-skel: #38383f;
    --m-dock: rgba(70, 70, 76, 0.45);
    --m-light: #4a4a51;
    --m-shadow: rgba(0, 0, 0, 0.45);
  }
}

/* ---------- base ---------- */

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

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.12em 0.5em;
  font: 600 0.85em/1.4 var(--sans);
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  vertical-align: 0.05em;
}
kbd + kbd { margin-left: 0.2em; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
:root { --gutter: 28px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--on-yellow);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 16px; }

/* ---------- header and footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* The mark is a Jumpr label: yellow, black monospaced bold, quarter radius. */
.brand-mark, .mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1;
  color: var(--on-label);
  background: var(--label);
  border-radius: 0.25em;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6);
}
.brand-mark { font-size: 17px; height: 1.3em; padding: 0 0.32em; }

.header-link {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
}
.header-link:hover { color: var(--text); text-decoration: underline; }

.site-footer {
  margin-top: 120px;
  padding-top: 36px;
  padding-bottom: 56px;
  /* a rule as wide as the content, not the padding */
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.footer-brand .brand-mark { font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

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

.hero { text-align: center; padding-top: 18px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.hero .sub {
  margin: 14px auto 0;
  max-width: 62ch;
  text-wrap: balance;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--muted);
}

/* ---------- the demo ---------- */

.demo { margin-top: 36px; }

.stage {
  border-radius: 18px;
  outline-offset: 10px;
}
.stage:focus { outline: none; }
.stage:focus-visible, .stage.is-active { outline: 3px solid var(--focus); outline-offset: 10px; }

.displays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: end;
}

.display {
  container-type: inline-size;
  padding: 7px;
  background: var(--bezel);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  position: relative;
  margin-bottom: 22px;
}
.stand {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 16%;
  height: 16px;
  transform: translateX(-50%);
  background: var(--bezel);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}
.stand::after { content: none; }

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background: var(--wall);
  color: var(--m-text);
  font-size: 1.62cqw;
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

[data-act] { cursor: pointer; }

/* menu bar */
.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3.9cqw;
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0 1.4cqw;
  background: var(--m-bar);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 3;
}
.menubar.is-dim { opacity: 0.6; }
.mb-app { font-weight: 700; padding: 0.25em 0.6em; }
.mb-item, .mb-icon {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.6em;
  border-radius: 0.35em;
}
.mb-icon svg { width: 1.2em; height: 1em; }
.mb-icon .mini-label { font-size: 0.8em; height: 1.35em; padding: 0 0.3em; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.5); }
.mb-item.is-open, .mb-icon.is-open { background: rgba(127, 127, 135, 0.28); }
.mb-spacer { flex: 1; }
.mb-clock { padding: 0 0.4em; }

/* menus */
.menu {
  position: absolute;
  top: 4.1cqw;
  min-width: 15cqw;
  padding: 0.5cqw;
  background: var(--m-menu);
  border-radius: 0.9cqw;
  box-shadow: 0 1cqw 3cqw var(--m-shadow), 0 0 0 1px var(--m-line);
  z-index: 4;
}
.mi, .mi-head {
  padding: 0.4em 1.8em 0.4em 2.9em;
  border-radius: 0.4em;
  white-space: nowrap;
  position: relative;
}
.mi-head { color: var(--m-muted); font-weight: 600; padding-left: 0.8em; }
.mi.is-checked::after { content: "✓"; position: absolute; right: 0.6em; }
.mi:hover { background: var(--m-sel); }
.mi-sep { height: 1px; margin: 0.4cqw 0.6cqw; background: var(--m-line); }

/* windows */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--m-win);
  border-radius: 1.1cqw;
  box-shadow: 0 1.2cqw 3.2cqw var(--m-shadow), 0 0 0 1px var(--m-line);
  overflow: hidden;
}
.titlebar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  height: 4.2cqw;
  padding: 0 1.3cqw;
  background: var(--m-side);
  border-bottom: 1px solid var(--m-line);
}
.lights { display: inline-flex; gap: 0.55cqw; flex: none; }
.lights i { width: 1.15cqw; height: 1.15cqw; border-radius: 50%; background: var(--m-light); }
.win-title { font-weight: 600; color: var(--m-muted); }

/* chat app (display 1) */
.chat { left: 4%; top: 10.5%; width: 66%; height: 70%; }
.chat-body { flex: 1; display: grid; grid-template-columns: 31% 1fr; min-height: 0; }
.chat.no-sidebar .chat-body { grid-template-columns: 1fr; }
.chat.no-sidebar .sidebar { display: none; }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35cqw;
  padding: 1.2cqw 1cqw;
  background: var(--m-side);
  border-right: 1px solid var(--m-line);
  min-width: 0;
}
.newchat {
  align-self: flex-start;
  margin-bottom: 0.8cqw;
  padding: 0.45em 0.8em;
  font-weight: 600;
  background: var(--m-win);
  border-radius: 0.5em;
  box-shadow: 0 0 0 1px var(--m-line);
}
.chat-item {
  padding: 0.45em 0.7em;
  border-radius: 0.45em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item.is-sel { background: var(--m-sel); font-weight: 600; }
.chat-main { display: flex; flex-direction: column; padding: 1.3cqw 1.6cqw; min-width: 0; }
.chat-title { font-weight: 700; margin-bottom: 1cqw; }
.chat-msgs { display: flex; flex-direction: column; gap: 0.7cqw; flex: 1; overflow: hidden; }
.bubble {
  max-width: 78%;
  padding: 0.45em 0.8em;
  border-radius: 0.9em;
  background: var(--m-in);
  align-self: flex-start;
}
.bubble.out { align-self: flex-end; background: var(--m-out); color: var(--m-out-text); }
.chat-empty { color: var(--m-muted); margin: auto; }
.compose { display: flex; gap: 0.8cqw; align-items: center; }
.compose-input {
  flex: 1;
  padding: 0.45em 0.9em;
  border-radius: 1em;
  color: var(--m-muted);
  box-shadow: 0 0 0 1px var(--m-line);
}
.compose-input.is-focus { box-shadow: 0 0 0 1px var(--m-muted), 0 0 0 0.35cqw var(--m-sel); }
.caret { display: none; width: 1px; height: 1em; margin-left: 2px; background: var(--m-text); vertical-align: -0.15em; }
.compose-input.is-focus .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
.send {
  padding: 0.45em 1em;
  border-radius: 1em;
  font-weight: 600;
  background: var(--m-out);
  color: var(--m-out-text);
}

/* desktop folders (display 1) */
.desk-icons {
  position: absolute;
  right: 4%;
  top: 12%;
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  align-items: center;
}
.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqw;
  font-size: 0.9em;
  padding: 0.6cqw;
  border-radius: 0.6cqw;
  color: var(--m-text);
}
.folder {
  position: relative;
  width: 6.4cqw;
  height: 4.8cqw;
  border-radius: 0.6cqw;
  background: #a9b2bd;
  box-shadow: inset 0 0.9cqw 0 rgba(255, 255, 255, 0.25);
}
.folder::before {
  content: "";
  position: absolute;
  left: 0; top: -0.7cqw;
  width: 2.6cqw; height: 1.2cqw;
  border-radius: 0.5cqw 0.5cqw 0 0;
  background: #a9b2bd;
}
.desk-icon.is-sel { background: rgba(127, 127, 135, 0.3); }

/* Dock (display 1) */
.dock {
  position: absolute;
  left: 50%;
  bottom: 1cqw;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.8cqw;
  background: var(--m-dock);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 1.6cqw;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.dock-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.8cqw;
  height: 4.8cqw;
  border-radius: 1.15cqw;
  background: var(--c);
  box-shadow: 0 0.3cqw 0.8cqw rgba(0, 0, 0, 0.18);
}
.dock-icon svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-icon.is-running::after {
  content: "";
  position: absolute;
  bottom: -0.65cqw;
  width: 0.45cqw; height: 0.45cqw;
  border-radius: 50%;
  background: var(--m-text);
}
.dock-icon.is-bouncing { animation: bounce 0.9s ease-out; }
.dock-sep { width: 1px; align-self: stretch; margin: 0.4cqw 0.2cqw; background: rgba(127, 127, 135, 0.45); }

/* browser (display 2) */
.browser { left: 4%; top: 10.5%; width: 61%; height: 83%; }
.tabs { display: flex; gap: 0.5cqw; min-width: 0; }
.tab {
  padding: 0.3em 0.8em;
  border-radius: 0.5em;
  white-space: nowrap;
  color: var(--m-muted);
}
.tab.is-active { background: var(--m-win); color: var(--m-text); font-weight: 600; box-shadow: 0 0 0 1px var(--m-line); }
.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.8cqw 1.3cqw;
  border-bottom: 1px solid var(--m-line);
}
.back { display: grid; place-items: center; width: 2.8cqw; height: 2.6cqw; border-radius: 0.5cqw; color: var(--m-text); }
.back svg { width: 70%; height: 70%; }
.addr {
  flex: 1;
  padding: 0.3em 0.9em;
  border-radius: 0.6em;
  background: var(--m-side);
  color: var(--m-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page { padding: 1.8cqw 2.2cqw; overflow: hidden; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-bottom: 2cqw; }
.site-nav { display: flex; gap: 0.6cqw; }
.link { text-decoration: underline; text-underline-offset: 0.15em; padding: 0.1em 0.3em; border-radius: 0.3em; }
.page-title { margin: 0 0 1.4cqw; font-size: 2.3cqw; letter-spacing: -0.02em; }
.skel { height: 1cqw; width: var(--w); border-radius: 0.5cqw; background: var(--m-skel); margin-bottom: 1cqw; }
.read-more { margin-top: 1.8cqw; color: var(--m-muted); }
.read-more .link { color: var(--m-text); }

/* settings (display 2) */
.prefs { left: 68.5%; top: 18%; width: 28%; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8cqw;
  padding: 1cqw 1.3cqw;
  border-top: 1px solid var(--m-line);
  white-space: nowrap;
}
.pref-row:first-of-type { border-top: 0; }
.toggle {
  position: relative;
  flex: none;
  width: 3.8cqw;
  height: 2.2cqw;
  border-radius: 1.1cqw;
  background: var(--m-skel);
  transition: background-color 0.15s;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 0.25cqw; left: 0.25cqw;
  width: 1.7cqw; height: 1.7cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1cqw 0.3cqw rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.toggle.is-on { background: var(--m-out); }
.toggle.is-on::after { transform: translateX(1.6cqw); }

/* the click */
.is-pressed { transform: scale(0.93); filter: brightness(0.88); transition: transform 0.08s, filter 0.08s; }
.dock-icon.is-pressed { transform: scale(0.88); }

/* ---------- labels (match Overlay.swift: mono bold, 1.3em tall, .3em padding, radius size/4, .5px dark border) ---------- */

.labels { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.lbl {
  position: absolute;
  height: 1.3em;
  padding: 0 0.3em;
  display: inline-flex;
  align-items: center;
  font: 700 clamp(10px, 2.3cqw, 16px)/1 var(--mono);
  color: var(--on-label);
  background: var(--label);
  border-radius: 0.25em;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: pointer;
  animation: lbl-in 0.11s ease-out backwards;
  transition: opacity 0.09s, transform 0.09s;
}
.lbl.is-out { animation: none; opacity: 0; transform: scale(0.8); pointer-events: none; }
.lbl.is-hit { animation: lbl-hit 0.19s ease-out both; }

@keyframes lbl-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes lbl-hit { 0% { transform: none; } 45% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 0.4; } }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-55%); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-22%); }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- under the demo ---------- */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 14px;
  padding: 14px 16px 14px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.caption {
  flex: 1 1 280px;
  min-height: 1.55em;
  font-weight: 600;
  font-size: 1.02rem;
}
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.prompt { color: var(--muted); font-size: 0.98rem; }
.kbd-label {
  font-family: var(--mono);
  font-weight: 700;
  background: var(--label);
  color: var(--on-label);
  border-color: rgba(0, 0, 0, 0.6);
}

.btn-quiet {
  font: 600 0.95rem/1 var(--sans);
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75em 1.1em;
  min-height: 44px;
  cursor: pointer;
}
.btn-quiet:hover { border-color: var(--text); }

.fineprint {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--faint);
}
.fineprint kbd { font-size: 0.8em; }

/* ---------- call to action ---------- */

.cta { text-align: center; margin-top: 48px; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.55em 1.6em;   /* room above and below if a label wraps on a narrow phone */
  line-height: 1.25;
  text-align: center;
  border-radius: 12px;
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
}
.btn-primary {
  color: var(--on-yellow);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}
.btn-primary:hover { background: var(--yellow-hover); }
.btn-secondary { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.cta-note { margin-top: 16px; color: var(--muted); font-size: 0.98rem; }

/* =========================================================================
   Below the demo. Every section shows Jumpr doing something, drawn in the
   app's own language: the label, the keycap, the mock desktop. Pieces that
   animate are hidden only under html.anim (set by site.js when motion is
   allowed); without it every drawing shows its finished state.
   ========================================================================= */

/* --- shared pieces --- */

html:not(.js) .js-only, html:not(.js) .tile-btn, html:not(.js) .swatches, html:not(.js) .swatch-note { display: none; }

.sec-head { display: grid; justify-items: start; gap: 10px; max-width: 760px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; }
.sec-sub { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* a Jumpr label: section tags, and the chips inside the drawings */
.tag, .chip {
  display: inline-flex;
  align-items: center;
  height: 1.3em;
  padding: 0 0.3em;
  font: 700 15px/1 var(--mono);
  color: var(--on-label);
  background: var(--label);
  border-radius: 0.25em;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.chip { font-size: 12px; }
.chip-md { font-size: 16px; }
.chip-lg { font-size: 22px; }
/* the app's placement: off a small target's bottom-right corner, or inside a row's right end */
.chip-corner { position: absolute; right: -0.9em; bottom: -0.55em; }
.chip-in { position: absolute; right: 0.4em; top: 50%; transform: translateY(-50%); }

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 12px;
  font: 600 1.25rem/1 var(--sans);
  color: var(--text);
  background: var(--key);
  border: 1px solid var(--key-edge);
  border-bottom-width: 4px;
  border-radius: 11px;
  box-shadow: 0 10px 18px -12px var(--shadow);
}
.key-wide { min-width: 104px; font-size: 0.95rem; letter-spacing: 0.01em; }
.key-letter { font-family: var(--mono); font-weight: 700; }
.key-sm { min-width: 34px; height: 34px; padding: 0 8px; font-size: 0.95rem; border-bottom-width: 3px; border-radius: 8px; box-shadow: none; }
.key-sm.key-wide { min-width: 64px; font-size: 0.85rem; }

/* --- 2. press, type, clicked --- */

.how { margin-top: 104px; }
/* --gap and --art-h also place the arrow, so it stays centred when either changes */
.how-steps { --gap: 44px; --art-h: 132px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.how-step { position: relative; min-width: 0; }
.how-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--art-h);
  margin-bottom: 18px;
  background: var(--art);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.how-step + .how-step::before {          /* the arrow between steps */
  content: "";
  position: absolute;
  left: calc(var(--gap) / -2 - 7px);      /* the middle of the gap between two panels */
  top: calc(var(--art-h) / 2 - 5px);      /* the panels' middle line */
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}
.how-n { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; }
.how-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.how-step p:last-child { color: var(--muted); }

.fx-btn {
  position: relative;
  padding: 0.7em 1.1em;
  font: 600 1.05rem/1 var(--sans);
  color: var(--text);
  background: var(--key);
  border: 1px solid var(--key-edge);
  border-radius: 11px;
}
.fx-btn::after {                          /* the click landing */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--label);
  opacity: 0;
}
.fx-btn .chip { font-size: 15px; }

.how-steps.play .k-cmd { animation: key-hold 1.5s ease 0.3s both; }
.how-steps.play .k-shift { animation: key-hold 1.3s ease 0.45s both; }
.how-steps.play .k-space { animation: key-tap 0.5s ease 0.8s both; }
.how-steps.play .k-d { animation: key-tap 0.45s ease 2.1s both; }
.how-steps.play .k-f { animation: key-tap 0.45s ease 2.55s both; }
.how-steps.play .fx-btn { animation: btn-press 0.35s ease 3.05s both; }
.how-steps.play .fx-btn::after { animation: click-ring 0.7s ease-out 3.1s both; }
.how-steps.play .fx-hit { animation: chip-hit 0.35s ease 3s both; }

@keyframes key-hold {
  0%, 100% { transform: none; border-bottom-width: 4px; background: var(--key); color: var(--text); }
  12%, 82% { transform: translateY(3px); border-bottom-width: 2px; background: var(--label); color: var(--on-label); }
}
@keyframes key-tap {
  0%, 100% { transform: none; border-bottom-width: 4px; background: var(--key); color: var(--text); }
  25%, 60% { transform: translateY(3px); border-bottom-width: 2px; background: var(--label); color: var(--on-label); }
}
@keyframes btn-press { 0%, 100% { transform: none; } 40% { transform: scale(0.94); } }
@keyframes click-ring { 0% { opacity: 0.9; box-shadow: 0 0 0 0 var(--label); } 100% { opacity: 0; box-shadow: 0 0 0 14px var(--label); } }
@keyframes chip-hit { 0%, 100% { transform: none; } 45% { transform: scale(1.2); } }

/* --- 3. the feature grid --- */

.features { margin-top: 104px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.tile-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 192px;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--art);
  border-radius: 14px;
}
.tile h3 { margin: 0 12px 8px; font-size: 1.2rem; }
.tile p { margin: 0 12px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tile p a { color: var(--text); }

.t-displays { grid-column: span 4; }
.t-speed, .t-narrow, .t-menus, .t-web, .t-private { grid-column: span 2; }
.t-yours { grid-column: span 4; }
.t-oss { grid-column: span 6; }

/* the pop-in: hidden only when it is going to be played */
.anim [data-play]:not(.play) .pop { opacity: 0; }
.play .pop { animation: chip-pop 0.16s cubic-bezier(0.2, 0.8, 0.3, 1.3) backwards; }
@keyframes chip-pop { from { opacity: 0; transform: scale(0.5); } }
.play .pop:nth-child(2n) { animation-delay: 0.03s; }
.play .pop:nth-child(3n) { animation-delay: 0.06s; }

/* every display */
.fx-screens { display: flex; align-items: flex-end; justify-content: center; gap: 4%; width: 92%; }
.fx-screen {
  position: relative;
  flex: 0 0 29%;
  aspect-ratio: 16 / 10;
  background: var(--wall);
  border: 5px solid var(--bezel);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 24px -16px var(--shadow);
}
.fx-screen-main { flex-basis: 34%; }
.fx-screen i { position: absolute; background: var(--m-win); border-radius: 3px; box-shadow: 0 2px 6px var(--m-shadow); }
.fx-screen b { position: absolute; height: 9%; background: var(--m-dock); border-radius: 3px; }
.fx-screen .chip { position: absolute; font-size: 11px; }
.t-displays.play .fx-screen:nth-child(1) .pop { animation-delay: 0.35s; }
.t-displays.play .fx-screen:nth-child(2) .pop { animation-delay: 0.38s; }
.t-displays.play .fx-screen:nth-child(3) .pop { animation-delay: 0.41s; }

/* speed */
.fx-speed { width: 84%; }
.fx-speed-fig { font: 700 clamp(2.6rem, 5vw, 3.6rem)/1 var(--mono); letter-spacing: -0.04em; margin-bottom: 30px; }
.fx-speed-fig span { font-size: 0.45em; margin-left: 0.15em; color: var(--muted); letter-spacing: 0; }
.fx-track { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.fx-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; border-radius: 4px; background: var(--text); }
.fx-land { position: absolute; left: 10%; bottom: 14px; display: flex; gap: 4px; transform: translateX(-30%); }
.fx-scale { display: flex; justify-content: space-between; margin-top: 10px; font: 500 0.78rem/1 var(--mono); color: var(--faint); }
.t-speed.play .fx-fill { animation: fill-in 0.1s linear 0.5s backwards; }
.t-speed.play .fx-land .pop { animation-delay: 0.6s; }
@keyframes fill-in { from { width: 0; } }

/* type to narrow */
.fx-narrow { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 18px; }
.fx-narrow .chip { font-size: 16px; transition: opacity 0.18s, transform 0.18s; }
.fx-narrow.is-narrowed .chip:not(.keep) { opacity: 0.1; transform: scale(0.8); }
.tile-btn {
  align-self: flex-start;
  margin: 16px 12px 0;
  min-height: 44px;
  padding: 0 14px;
  font: 600 0.95rem/1 var(--sans);
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.tile-btn:hover { border-color: var(--text); }
.tile-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tile-btn[aria-pressed="true"] kbd { color: var(--on-label); background: var(--label); border-color: rgba(0, 0, 0, 0.6); }
.tile-btn kbd { margin-left: 4px; font-family: var(--mono); }

/* menus, Dock, menu bar */
.fx-desk { position: absolute; inset: 0; background: var(--wall); font-size: 12px; color: var(--m-text); }
.fx-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: var(--m-bar); }
.fx-bar b { margin-right: 6px; }
.fx-mi { position: relative; padding: 3px 7px; border-radius: 4px; }
.fx-mi.is-open { background: rgba(127, 127, 135, 0.28); }
.fx-sp { flex: 1; }
.fx-ico svg { width: 15px; height: 12px; display: block; }
.fx-menu {
  position: absolute;
  left: 52px;
  top: 32px;
  display: grid;
  width: 150px;
  padding: 5px;
  background: var(--m-menu);
  border-radius: 8px;
  box-shadow: 0 10px 24px var(--m-shadow), 0 0 0 1px var(--m-line);
}
.fx-menu > span { position: relative; padding: 6px 10px; border-radius: 4px; }
.fx-dock {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 9px;
  padding: 7px;
  transform: translateX(-50%);
  background: var(--m-dock);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.fx-dock i { position: relative; width: 30px; height: 30px; border-radius: 8px; background: #8e98a6; }
.fx-dock i:nth-child(2) { background: #7f8c8d; }
.fx-dock i:nth-child(3) { background: #9a948a; }
.fx-dock i:nth-child(4) { background: #a39a7e; }
.fx-desk .chip { font-size: 10px; }
.t-menus.play .fx-bar .pop { animation-delay: 0.3s; }
.t-menus.play .fx-menu .pop { animation-delay: 0.36s; }
.t-menus.play .fx-dock .pop { animation-delay: 0.33s; }

/* web pages */
.fx-browser {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 22px;
  bottom: -12px;
  overflow: hidden;
  background: var(--m-win);
  border-radius: 10px;
  box-shadow: 0 12px 26px -10px var(--shadow), 0 0 0 1px var(--m-line);
  font-size: 12px;
  color: var(--m-text);
}
.fx-btop { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: var(--m-side); border-bottom: 1px solid var(--m-line); }
.fx-dots { display: inline-flex; gap: 4px; }
.fx-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--m-light); }
.fx-url { flex: 1; padding: 3px 9px; border-radius: 6px; background: var(--m-win); color: var(--m-muted); font-size: 11px; }
.fx-bpage { padding: 12px 16px; }
.fx-bnav { display: flex; gap: 30px; margin-bottom: 14px; }
.fx-a { position: relative; text-decoration: underline; text-underline-offset: 0.15em; }
.fx-h { width: 64%; height: 12px; margin-bottom: 10px; border-radius: 4px; background: var(--m-text); opacity: 0.85; }
.fx-l { height: 7px; margin-bottom: 7px; border-radius: 4px; background: var(--m-skel); }
.fx-bpage > .fx-a { display: inline-block; margin-top: 6px; }
.fx-browser .chip { font-size: 10px; }
.t-web.play .pop { animation-delay: 0.35s; }

/* make it yours */
.fx-yours { display: flex; align-items: center; justify-content: center; gap: 9%; width: 100%; }
.fx-big { font-size: 44px; }
.fx-prefs {
  display: grid;
  width: min(300px, 52%);
  padding: 4px 14px;
  font-size: 0.82rem;
  color: var(--m-text);
  background: var(--m-win);
  border-radius: 12px;
  box-shadow: 0 12px 26px -12px var(--shadow), 0 0 0 1px var(--m-line);
}
.fx-prefs > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--m-line); }
.fx-prefs > div:first-child { border-top: 0; }
.fx-sw { width: 30px; height: 18px; border-radius: 5px; background: var(--label); box-shadow: 0 0 0 1px var(--line-strong); }
.fx-sw-text { background: var(--on-label); }
.fx-slider { position: relative; width: 84px; height: 4px; border-radius: 2px; background: var(--m-skel); }
.fx-slider b { position: absolute; left: 34%; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.fx-hk { font: 600 0.78rem/1 var(--mono); padding: 4px 7px; border-radius: 5px; background: var(--m-side); box-shadow: 0 0 0 1px var(--m-line); }
.t-yours.play .pop { animation-delay: 0.3s; }
.yours-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.yours-body > div:first-child { flex: 1 1 280px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 12px; }
.swatch {
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  font: 700 15px/1 var(--mono);
  color: #000;
  background: var(--sw);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.swatch-note { margin-top: 12px !important; font-size: 0.9rem !important; color: var(--faint) !important; }

/* nothing leaves your Mac */
.fx-net { display: flex; align-items: center; width: 88%; }
.fx-mac {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.fx-mac-t { font: 600 0.85rem/1 var(--mono); color: var(--muted); }
.fx-mac-c { display: flex; gap: 5px; }
.fx-mac .chip { font-size: 14px; }
.fx-wire { position: relative; flex: 1; min-width: 24px; height: 0; border-top: 2px dashed var(--line-strong); margin: 0 8px; }
.fx-pulse { position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); opacity: 0; }
.t-private.play .fx-pulse { animation: wire 1.4s ease-in-out 0.6s; }
@keyframes wire { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.fx-host { flex: none; font: 500 0.8rem/1.35 var(--mono); color: var(--muted); text-align: left; }

/* free and open source: a wide, low band */
.t-oss { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 26px 30px; }
.t-oss h3, .t-oss p { margin-left: 0; margin-right: 0; }
.oss-copy { flex: 1 1 300px; }
.tile-link { display: inline-block; margin-top: 12px; font-weight: 600; text-underline-offset: 0.2em; }
.tile-link::after { content: " →"; }
.fx-repo {
  flex: 0 1 420px;
  padding: 16px 18px;
  font: 500 0.88rem/1.4 var(--mono);
  background: var(--art);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fx-repo-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fx-repo-top svg { width: 16px; height: 16px; color: var(--muted); }
.fx-pill { margin-left: auto; padding: 2px 9px; font-size: 0.74rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; }
.fx-repo-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.8rem; }
.fx-repo-meta i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--faint); vertical-align: -0.05em; }

/* --- 4. questions --- */

.qa { margin-top: 104px; }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 0; }
.qa-item { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.qa-item dt { font-weight: 650; font-size: 1.12rem; margin-bottom: 8px; }
.qa-item dd { margin: 0; color: var(--muted); }
.qa-item kbd { font-size: 0.8em; }

/* --- 5. closing band and more apps --- */

.closing { margin-top: 104px; }
.closing-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 40px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.closing-copy { flex: 1 1 420px; }
.closing-copy h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; }
.closing-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; color: var(--muted); font-size: 0.98rem; }
.closing-keys > span:last-child { margin-left: 8px; }
.closing-actions { display: grid; justify-items: center; gap: 12px; }
.closing-note { font: 500 0.82rem/1.4 var(--mono); color: var(--muted); }

.more { margin-top: 72px; }
.more > h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 18px; }
.app-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.app-card:hover { border-color: var(--line-strong); }
.app-icon-box { flex: none; display: grid; place-items: center; width: 96px; height: 96px; background: var(--art); border-radius: 20px; }
.app-icon { width: 60px; height: auto; }
.app-text { display: grid; gap: 6px; }
.app-name { font-size: 1.25rem; font-weight: 700; }
.app-desc { color: var(--muted); font-size: 0.97rem; }
.app-link { font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.2em; }

/* --- 6. footer --- */

.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand { text-decoration: none; }
.footer-legal { margin-top: 18px; font: 500 0.8rem/1.4 var(--mono); color: var(--faint); }

/* --- widths --- */

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-displays, .t-yours, .t-oss { grid-column: span 2; }
  .t-speed, .t-narrow, .t-menus, .t-web, .t-private { grid-column: span 1; }
  .how-steps { --gap: 36px; }
  .key { min-width: 44px; height: 44px; padding: 0 10px; font-size: 1.1rem; }
  .key-wide { min-width: 84px; font-size: 0.85rem; }
}

@media (max-width: 760px) {
  .how, .features, .qa, .closing { margin-top: 80px; }
  .how-steps { grid-template-columns: 1fr; gap: 32px; --art-h: 124px; }
  .how-step + .how-step::before { display: none; }
  .key { min-width: 52px; height: 52px; padding: 0 12px; font-size: 1.25rem; }
  .key-wide { min-width: 104px; font-size: 0.95rem; }
  .bento { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: auto; }
  .tile-art { height: 196px; }
  .t-displays .tile-art { height: 140px; }
  .fx-screens { width: 96%; gap: 3%; }
  .fx-screen { border-width: 3px; border-radius: 6px; }
  .fx-screen .chip { font-size: 10px; }
  .fx-yours { gap: 6%; }
  .fx-big { font-size: 30px; }
  .fx-prefs { width: 64%; padding: 2px 10px; }
  .fx-prefs > div { padding: 7px 0; white-space: nowrap; }
  .fx-slider { width: 56px; }
  .fx-bnav { gap: 26px; }
  .t-oss { padding: 22px 20px; }
  .qa-grid { grid-template-columns: 1fr; }
  .closing-band { padding: 32px 22px; border-radius: 22px; }
  .closing-actions { width: 100%; justify-items: stretch; text-align: center; }
  .app-cards { grid-template-columns: 1fr; }
  .app-card { align-items: flex-start; padding: 18px; gap: 16px; }
  .app-icon-box { width: 64px; height: 64px; border-radius: 14px; }
  .app-icon { width: 40px; }
  .more { margin-top: 64px; }
}

@media (max-width: 360px) {
  .key { min-width: 46px; height: 46px; font-size: 1.1rem; }
  .key-wide { min-width: 88px; }
  .fx-narrow { gap: 12px 12px; }
}

/* ---------- plain pages (thank you, privacy, terms) ---------- */

.doc { max-width: 760px; padding-top: 40px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.03em; }
.doc .lede { margin-top: 16px; font-size: 1.2rem; color: var(--muted); }
.doc .updated { margin-top: 12px; color: var(--faint); font-size: 0.95rem; }
.doc h2 { font-size: 1.3rem; margin: 48px 0 12px; }
.doc h3 { font-size: 1.1rem; margin: 32px 0 10px; }
.doc .lede + h2 { margin-top: 40px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--text); }
.doc code { font-family: var(--mono); font-size: 0.9em; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 56px;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1em;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  font: 700 17px/1 var(--mono);
  color: var(--on-yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6);
}
.steps strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 2px; }
.doc .btn { margin-top: 12px; }

/* ---------- small screens ---------- */

/* the "every display" line only shows on phones, where the demo has one display */
.phone-note { display: none; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  /* Phones: one mock display, with its status line and button right under it. */
  .displays { grid-template-columns: 1fr; }
  .display-2 { display: none; }
  .stand { display: none; }
  .display { margin-bottom: 0; }
  .demo { margin-top: 24px; }
  .phone-note { display: block; margin: 0 0 12px; text-align: center; font-size: 0.92rem; color: var(--muted); }
  .phone-note kbd { font-size: 0.8em; }
  .lbl { font-size: clamp(9px, 3.3cqw, 16px); } /* scales with the display, so labels never collide */
  .demo-bar { margin-top: 10px; padding: 10px 10px 10px 16px; gap: 10px 14px; flex-wrap: nowrap; }
  .caption { flex: 1 1 auto; font-size: 0.98rem; min-height: 0; }
  .demo-controls { flex: none; }
  .btn-quiet { white-space: nowrap; }
  .fineprint { display: none; }
  .btn { width: 100%; }
  .site-footer { margin-top: 88px; }
}

/* Phones with a keyboard (a narrow desktop window) keep the key hint and fine print. */
@media (max-width: 760px) and (pointer: coarse) {
  .prompt { display: none; }
}
@media (max-width: 760px) and (pointer: fine) {
  .demo-bar { flex-wrap: wrap; }
  .caption { flex-basis: 100%; }
  .demo-controls { width: 100%; justify-content: space-between; }
  .fineprint { display: block; }
}

/* ---------- reduced motion: no animation, labels simply appear ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
