/* Small Mac apps by Paul Arterburn: shared "hardware" style.
   Layout: aluminum ground, white bands for information, and one rendered object
   (keycaps or a trackpad) as each hero. Each page sets its accent on <body>. */

:root {
  --bg: #e9eaed;
  --band: #ffffff;
  --raised: #f6f7f8;
  --ink: #111318;
  --ink-2: #4b505a;
  --ink-3: #737884;
  --line: #dcdfe4;
  --key-top: #fdfdfd;
  --key-bottom: #eceef1;
  --key-edge: #c5c8ce;
  --key-inset: #d9dce1;
  --key-ink: #2a2d33;
  --shadow: rgba(17, 19, 24, 0.28);
  --btn-bg: #111318;
  --btn-ink: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: clamp(16px, 4.5vw, 48px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --band: #1c1f24;
    --raised: #23262c;
    --ink: #f1f2f4;
    --ink-2: #b9bdc6;
    --ink-3: #8a909b;
    --line: #2d3138;
    --key-top: #3a3e46;
    --key-bottom: #2b2e35;
    --key-edge: #0d0e11;
    --key-inset: #24272d;
    --key-ink: #eef0f3;
    --shadow: rgba(0, 0, 0, 0.6);
    --btn-bg: #f1f2f4;
    --btn-ink: #111318;
    color-scheme: dark;
  }
}

.app-notico { --accent: #f4cf2a; --accent-top: #ffe56a; --accent-edge: #c9a512; --accent-ink: #7a5d00; --accent-soft: rgba(244, 207, 42, 0.28); }
.app-emg { --accent: #2f6bff; --accent-top: #5a8cff; --accent-edge: #1f4fd1; --accent-ink: #1f4fd1; --accent-soft: rgba(47, 107, 255, 0.18); }
@media (prefers-color-scheme: dark) {
  .app-notico { --accent-ink: #f4d561; --accent-soft: rgba(244, 207, 42, 0.22); }
  .app-emg { --accent: #4f83ff; --accent-ink: #9ab8ff; --accent-soft: rgba(79, 131, 255, 0.26); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--btn-bg); color: var(--btn-ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--btn-ink); background: var(--btn-bg); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { color: var(--btn-ink); }
@media (max-width: 680px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- Type ---------- */
.label { font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 22px 0 0; max-width: 32em; }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn small { font-weight: 400; font-size: 15px; opacity: 0.65; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px var(--accent-soft); }
.text-link { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink-2); }
.text-link:hover { color: var(--ink); }
.tip-line { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; font: 500 12.5px/1.4 var(--mono); color: var(--ink-3); letter-spacing: 0.02em; }
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.stage { display: grid; place-items: center; gap: 22px; min-width: 0; }
.demo-video { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3; border-radius: 18px; background: #e9eaed; }
@media (prefers-color-scheme: dark) { .demo-video { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.35); } }
.stage-caption { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: center; min-height: 1.4em; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .stage { order: -1; } }

/* Keycaps */
.keys { display: flex; gap: clamp(10px, 1.6vw, 20px); }
.key {
  width: clamp(76px, 10vw, 128px); aspect-ratio: 1; border-radius: 22%;
  display: grid; place-items: center; font: 400 clamp(30px, 4vw, 50px)/1 var(--sans); color: var(--key-ink);
  background: linear-gradient(var(--key-top), var(--key-bottom));
  box-shadow: 0 4px 0 var(--key-edge), 0 22px 34px -14px var(--shadow), inset 0 -3px 0 var(--key-inset);
}
.key.hot { color: #2a2200; background: linear-gradient(var(--accent-top), var(--accent)); box-shadow: 0 4px 0 var(--accent-edge), 0 22px 34px -14px var(--shadow), inset 0 -3px 0 var(--accent-edge); }
/* The shortcut is typed as a chord: hold ⌃, add ⌥, tap N, release together. */
.key { --ke: var(--key-edge); --ki: var(--key-inset); }
.key.hot { --ke: var(--accent-edge); --ki: var(--accent-edge); }
.keys.pressing .key:nth-child(1) { animation: chord-1 4.2s ease-in-out infinite; }
.keys.pressing .key:nth-child(2) { animation: chord-2 4.2s ease-in-out infinite; }
.keys.pressing .key:nth-child(3) { animation: chord-3 4.2s ease-in-out infinite; }
@keyframes chord-1 {
  0%, 12%, 64%, 100% { transform: translateY(0); box-shadow: 0 4px 0 var(--ke), 0 22px 34px -14px var(--shadow), inset 0 -3px 0 var(--ki); }
  16%, 58% { transform: translateY(5px); filter: brightness(0.93); box-shadow: 0 0 0 var(--ke), 0 10px 18px -12px var(--shadow), inset 0 -3px 0 var(--ki); }
}
@keyframes chord-2 {
  0%, 26%, 64%, 100% { transform: translateY(0); box-shadow: 0 4px 0 var(--ke), 0 22px 34px -14px var(--shadow), inset 0 -3px 0 var(--ki); }
  30%, 58% { transform: translateY(5px); filter: brightness(0.93); box-shadow: 0 0 0 var(--ke), 0 10px 18px -12px var(--shadow), inset 0 -3px 0 var(--ki); }
}
@keyframes chord-3 {
  0%, 40%, 64%, 100% { transform: translateY(0); box-shadow: 0 4px 0 var(--ke), 0 22px 34px -14px var(--shadow), inset 0 -3px 0 var(--ki); }
  44%, 58% { transform: translateY(5px); filter: brightness(0.93); box-shadow: 0 0 0 var(--ke), 0 10px 18px -12px var(--shadow), inset 0 -3px 0 var(--ki); }
}

/* Trackpad */
.pad {
  position: relative; width: min(100%, 460px); aspect-ratio: 1.55; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--key-top), var(--key-bottom));
  box-shadow: 0 4px 0 var(--key-edge), 0 34px 50px -24px var(--shadow), inset 0 -2px 0 var(--key-inset);
}
.pad .g { position: absolute; inset: 0; opacity: 0; animation: cycle 14s infinite; }
.pad .g:nth-child(2) { animation-delay: 3.5s; }
.pad .g:nth-child(3) { animation-delay: 7s; }
.pad .g:nth-child(4) { animation-delay: 10.5s; }
@keyframes cycle { 0% { opacity: 0; } 3%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
.f { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft); }
.g-rotate .spin { position: absolute; inset: 0; animation: spin 3.5s cubic-bezier(.5,0,.3,1) infinite; }
.g-rotate .f:nth-child(1) { transform: translate(-46px, 10px); }
.g-rotate .f:nth-child(2) { transform: translate(46px, -10px); }
@keyframes spin { 0%, 18% { transform: rotate(0); } 62%, 100% { transform: rotate(75deg); } }
.g-pinch .f:nth-child(1) { animation: pinchA 3.5s ease-in-out infinite; }
.g-pinch .f:nth-child(2) { animation: pinchB 3.5s ease-in-out infinite; }
@keyframes pinchA { 0%, 18% { transform: translate(-80px, 30px); } 62%, 100% { transform: translate(-18px, 6px); } }
@keyframes pinchB { 0%, 18% { transform: translate(80px, -30px); } 62%, 100% { transform: translate(18px, -6px); } }
.g-swipe .row { position: absolute; inset: 0; animation: swipe 3.5s ease-in-out infinite; }
.g-swipe .f:nth-child(1) { transform: translate(-63px, 8px); }
.g-swipe .f:nth-child(2) { transform: translate(-21px, -6px); }
.g-swipe .f:nth-child(3) { transform: translate(21px, -8px); }
.g-swipe .f:nth-child(4) { transform: translate(63px, 4px); }
@keyframes swipe { 0%, 18% { transform: translateX(70px); } 62%, 100% { transform: translateX(-70px); } }
.g-tap .f { animation: tap 3.5s ease-out infinite; }
.g-tap .f:nth-child(1) { transform: translate(-40px, 6px); }
.g-tap .f:nth-child(2) { transform: translate(0, -6px); }
.g-tap .f:nth-child(3) { transform: translate(40px, 6px); }
@keyframes tap { 0%, 30% { box-shadow: 0 0 0 10px var(--accent-soft); } 40% { box-shadow: 0 0 0 26px transparent; } 41%, 100% { box-shadow: 0 0 0 10px var(--accent-soft); } }
.pad .cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 480px) { .f { width: 22px; height: 22px; margin: -11px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .keys.pressing .key, .pad .g, .pad .g *, .g-rotate .spin, .g-swipe .row { animation: none !important; }
  .pad .g:first-child { opacity: 1; }
  .g-rotate .spin { transform: rotate(35deg); }
}

/* ---------- White information bands ---------- */
.band { background: var(--band); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head > p { color: var(--ink-2); margin: 0; max-width: 32em; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } }

/* The three (or four) beats right under the hero */
.beats.four { --n: 4; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.beats li { padding: clamp(28px, 3.5vw, 40px) clamp(20px, 3vw, 36px); border-left: 1px solid var(--line); min-width: 0; }
.beats li:first-child { border-left: 0; padding-left: 0; }
.beats .label { margin-bottom: 12px; }
.beats h3 { font-size: 20px; margin-bottom: 6px; }
.beats p { margin: 0; color: var(--ink-2); font-size: 16px; }
.band-note { margin: 0; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.band-note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) {
  .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beats li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .beats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .beats.three li:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .beats { grid-template-columns: 1fr; }
  .beats li { border-left: 0; padding-left: 0; padding-right: 0; }
  .beats li + li { border-top: 1px solid var(--line); }
  .beats.three li:nth-child(3) { grid-column: auto; }
}

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
figure { margin: 0; min-width: 0; }
.shot { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 40px); display: grid; place-items: center; }
.shot img { border-radius: 10px; box-shadow: 0 24px 40px -24px var(--shadow); }
.shot.dark { background: #1b1d22; border-color: #1b1d22; }
.card { background: var(--band); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p:last-child { margin: 0; }
.shot img.bare { box-shadow: none; border-radius: 0; }
figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 0; }
.features div { background: var(--band); padding: 26px 26px 28px; }
.features dt { font-weight: 650; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.features dd { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Split: text beside an image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font: 600 15px/1 var(--sans); color: var(--key-ink); background: linear-gradient(var(--key-top), var(--key-bottom)); box-shadow: 0 2px 0 var(--key-edge), inset 0 -2px 0 var(--key-inset); }
.steps h3 { font-size: 17px; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Chips: use cases and app presets */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.tags li img { width: 24px; height: 24px; margin-left: -4px; }

/* Inline keycap */
kbd { display: inline-block; min-width: 1.6em; padding: 0.05em 0.4em; font: 500 0.88em/1.4 var(--sans); text-align: center; color: var(--key-ink); background: linear-gradient(var(--key-top), var(--key-bottom)); border-radius: 6px; box-shadow: 0 2px 0 var(--key-edge), inset 0 -1px 0 var(--key-inset); vertical-align: 0.06em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font: 500 18px/1 var(--sans); color: var(--key-ink); background: linear-gradient(var(--key-top), var(--key-bottom)); box-shadow: 0 2px 0 var(--key-edge); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }
.faq .answer h3 { margin: 1.4em 0 0.3em; color: var(--ink); font-size: 16px; }
.faq .answer ul { padding-left: 1.2em; }

/* Closing call */
.closing { text-align: center; padding: clamp(72px, 10vw, 120px) 0; }
.closing h2 { max-width: 15em; margin-inline: auto; }
.closing p { color: var(--ink-2); margin: 16px auto 0; max-width: 30em; }
.closing .actions { justify-content: center; }

/* ---------- Footer: the family of apps ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--ink-2); }
.family { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.family p { margin: 0; }
.sibling { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 18px; background: var(--band); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.sibling img { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.sibling strong { display: block; }
.sibling span span { color: var(--ink-3); font-size: 14px; }
.sibling:hover { border-color: var(--ink-3); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.legal p { margin: 0; max-width: 46em; }
.legal nav { display: flex; gap: 20px; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); }
@media (max-width: 680px) { .family { grid-template-columns: 1fr; } }

/* ---------- Screenshot lightbox ---------- */
.zoom { display: block; max-width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.zoom:hover img { transform: scale(1.015); }
.zoom img { transition: transform 0.2s ease; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border: 0; background: transparent; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(10, 11, 14, 0.82); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(100%, 1200px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 12px; cursor: default; }
.lightbox figcaption { color: #d7dae0; text-align: center; margin: 0; }
.lightbox figcaption b { color: #fff; }
.lightbox-close { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font: 400 26px/1 var(--sans); cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } .zoom:hover img { transform: none; } }
.shot-wide { padding: clamp(8px, 1.5vw, 16px); }
.shot-wide img { border-radius: 12px; }

/* ---------- App preset chips: gentle idle wiggle, click for details ---------- */
.chip-hint { margin: 14px 0 0; font: 500 13px/1.4 var(--mono); color: var(--ink-3); letter-spacing: 0.02em; }
.app-chips li { padding: 0; background: none; border: 0; }
.app-groups { display: grid; gap: 10px; min-width: 0; }
.app-group-label { margin: 14px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.app-group-label:first-child { margin-top: 0; }
.presets-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.presets .app-groups { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px clamp(24px, 4vw, 48px); align-items: start; }
.app-group { display: grid; gap: 10px; align-content: start; }
.app-group .app-group-label { margin-top: 0; }
.app-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font: 500 15px/1.4 var(--sans); color: var(--ink); cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.app-chip img { width: 24px; height: 24px; transform-origin: 50% 70%; }
.app-chip:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: 0 6px 16px -10px var(--shadow); }
.app-chip:hover img, .app-chip.is-wiggling img { animation: chip-wiggle 0.7s ease-in-out; }
.app-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-chip:active { transform: translateY(0) scale(0.97); }
@keyframes chip-wiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-11deg) scale(1.08); }
  35% { transform: rotate(9deg) scale(1.08); }
  55% { transform: rotate(-6deg) scale(1.04); }
  75% { transform: rotate(3deg) scale(1.02); }
}

.app-sheet { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--band); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); overflow: auto; }
.app-sheet::backdrop { background: rgba(10, 11, 14, 0.5); backdrop-filter: blur(4px); }
.app-sheet[open] { animation: sheet-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.app-sheet header { display: flex; align-items: center; gap: 14px; padding: 22px 22px 14px; }
.app-sheet header img { width: 52px; height: 52px; flex: none; }
.app-sheet h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.app-sheet header p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.app-sheet-close { margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 0; background: var(--raised); color: var(--ink-2); font: 400 22px/1 var(--sans); cursor: pointer; }
.app-sheet-close:hover { color: var(--ink); }
.app-sheet ul { list-style: none; margin: 0; padding: 0 22px; }
.app-sheet li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.app-sheet .gesture { font-weight: 600; font-size: 15.5px; }
.app-sheet .does { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.app-sheet .sends { text-align: right; font-size: 13.5px; color: var(--ink-2); }
.app-sheet .sends kbd + kbd { margin-left: 3px; }
.app-sheet .menu-path { display: block; font: 500 12px/1.5 var(--mono); color: var(--ink-3); }
.app-sheet .note { margin: 0; padding: 14px 22px 22px; font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
.app-sheet .empty { padding: 6px 22px 18px; color: var(--ink-2); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .app-chip { transition: none; }
  .app-chip:hover { transform: none; }
  .app-chip:hover img, .app-chip.is-wiggling img { animation: none; }
  .app-sheet[open] { animation: none; }
}

/* Practice note with the Try them here screenshot */
.band-note.practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(32px, 4vw, 48px); }
.band-note.practice p { margin: 0; }
@media (max-width: 760px) { .band-note.practice { grid-template-columns: 1fr; } }
