/* Yaap's site. Colours, type and motion follow design/README.md: the
   panel is Graphite, and the rest is Yaap's identity, grown from the ツ
   ("The site" there). Headings in Geist, bundled; the rest in the system
   font. Nothing is loaded from elsewhere. */


:root {
  /* the page */
  --bg: #FFFFFF;
  --bg-alt: #F7F7F6;
  --ink: #1A1A19;
  --sub: #3F3E3B;
  --muted: #6B6A66;
  --line: #E6E5E2;
  --tile: #F0EFEC;
  --code-bg: #F4F4F2;
  --blue: #3573FF;
  --blue-press: #2A63E8;
  --link: #2A63E8;
  --shadow: 0 1px 2px rgba(26, 26, 25, .05), 0 8px 24px rgba(26, 26, 25, .06);
  --menubar: rgba(255, 255, 255, .6);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 14px;
  --display: "Geist", system-ui, sans-serif;

  /* the little desktops' wallpaper, plain like a Mac's (tools/wallpaper.py);
     then Yaap's identity: the hero's halo of the ツ, a fine grain, the blue
     tiles, and the ツ's eye as a mask */
  --wall: url("assets/wallpaper-day.jpg") center / cover no-repeat;
  --sky-50: #F3F6FC;
  --hero-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 1400'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='80'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M169.68 -708.29L100.37 -684.47C79.68 -677.36 73.36 -661.18 82.57 -641.33C110.08 -582.01 150.11 -482.52 172.04 -419.95C178.51 -401.48 193.27 -394.11 211.66 -400.81L283.46 -426.97C300.53 -433.19 307.47 -447.57 301.15 -464.61C276.94 -529.87 234.30 -631.10 206.27 -692.71C199.40 -707.82 185.38 -713.69 169.68 -708.29Z M448.60 -771.00L380.60 -748.69C360.39 -742.06 353.73 -726.28 362.23 -706.79C388.14 -647.32 422.54 -556.82 442.48 -496.98C448.64 -478.48 463.29 -470.94 481.70 -477.37L551.10 -501.61C567.780 -507.43 575.00 -521.41 569.40 -538.16C548.30 -601.16 508.76 -701.30 484.03 -755.81C477.46 -770.31 463.73 -775.96 448.60 -771.00Z M896.97 -708.47L814.16 -732.21C792.98 -738.28 778.67 -728.55 775.35 -706.77C753.49 -563.26 695.29 -409.77 626.00 -322.00C535.89 -208.03 403.63 -124.51 279.56 -79.69C249.79 -68.94 244.71 -50.29 267.09 -27.91L329.31 34.31C337.80 42.80 349.91 45.45 361.03 40.94C498.12 -14.55 635.41 -112.80 736.00 -245.00C819.00 -354.00 876.00 -513.00 904.00 -622.00C907.56 -635.07 912.19 -650.96 917.66 -666.94C924.55 -687.10 917.45 -702.60 896.97 -708.470Z' fill='%233573FF' fill-opacity='.26' filter='url(%23b)' transform='translate(232 977) scale(.8)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --blue-tile: linear-gradient(160deg, #5C90FF 0%, #3573FF 48%, #2A62EC 100%);
  --blue-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(12, 40, 120, .2), 0 0 0 .5px #2456D6,
    0 2px 4px rgba(36, 86, 214, .25), 0 14px 28px -12px rgba(53, 115, 255, .75);
  --eye-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='63 -724 254 340'%3E%3Cpath d='M169.68 -708.29L100.37 -684.47C79.68 -677.36 73.36 -661.18 82.57 -641.33C110.08 -582.01 150.11 -482.52 172.04 -419.95C178.51 -401.48 193.27 -394.11 211.66 -400.81L283.46 -426.97C300.53 -433.19 307.47 -447.57 301.15 -464.61C276.94 -529.87 234.30 -631.10 206.27 -692.71C199.40 -707.82 185.38 -713.69 169.68 -708.29Z'/%3E%3C/svg%3E");

  /* the panel: Graphite tokens, as in the app */
  --p-surface: #FFFFFF;
  --p-strip: #FAFAF9;
  --p-ghost: #F7F7F6;
  --p-ghost-shadow: rgba(26, 26, 25, .06);
  --p-edge: rgba(26, 26, 25, .14);
  --p-line: #ECEBE8;
  --p-line-strong: #D9D8D4;
  --p-track: #E6E5E2;
  --p-ink: #1A1A19;
  --p-sub: #3F3E3B;
  --p-muted: #6B6A66;
  --p-mark: #A3A29E;
  --p-chip: #F2F2F0;
  --p-selected: #F4F4F2;
  --p-hover: #F7F7F5;
  --p-code: #FAFAF9;
  --p-code-ink: #1A1A19;
  --p-prompt: #15803D;
  --p-code-k: #1D4ED8;
  --p-code-s: #9A4A0B;
  --p-code-n: #7C3AED;
  --p-plus: #15803D;
  --p-minus: #B91C1C;
  --p-rm-row: #FEF3F2;
  --p-rm-mark: #FDCDCA;
  --p-add-row: #F0FBF3;
  --p-add-mark: #BDEFCC;
  --accent: #3573FF;
  --accent-press: #2A63E8;
  --accent-edge: #2A63E8;
  --accent-half: rgba(53, 115, 255, .35);
  --ring: rgba(53, 115, 255, .35);
  --p-shadow: 0 0 0 .5px rgba(26, 26, 25, .2), 0 1px 2px rgba(26, 26, 25, .06), 0 8px 24px rgba(26, 26, 25, .08), 0 24px 56px rgba(26, 26, 25, .12);
}

@media (prefers-color-scheme: dark) {
  /* themes.py */
  :root:not([data-theme="light"]) { --bg: #111110;
    --bg-alt: #171716;
    --ink: #F5F5F4;
    --sub: #D4D3D0;
    --muted: #A3A29E;
    --line: #2A2A28;
    --tile: #222221;
    --code-bg: #1B1B1A;
    --link: #6196FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --wall: url("assets/wallpaper-night.jpg") center / cover no-repeat;
    --sky-50: #10131A;
    --hero-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 1400'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='80'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M169.68 -708.29L100.37 -684.47C79.68 -677.36 73.36 -661.18 82.57 -641.33C110.08 -582.01 150.11 -482.52 172.04 -419.95C178.51 -401.48 193.27 -394.11 211.66 -400.81L283.46 -426.97C300.53 -433.19 307.47 -447.57 301.15 -464.61C276.94 -529.87 234.30 -631.10 206.27 -692.71C199.40 -707.82 185.38 -713.69 169.68 -708.29Z M448.60 -771.00L380.60 -748.69C360.39 -742.06 353.73 -726.28 362.23 -706.79C388.14 -647.32 422.54 -556.82 442.48 -496.98C448.64 -478.48 463.29 -470.94 481.70 -477.37L551.10 -501.61C567.780 -507.43 575.00 -521.41 569.40 -538.16C548.30 -601.16 508.76 -701.30 484.03 -755.81C477.46 -770.31 463.73 -775.96 448.60 -771.00Z M896.97 -708.47L814.16 -732.21C792.98 -738.28 778.67 -728.55 775.35 -706.77C753.49 -563.26 695.29 -409.77 626.00 -322.00C535.89 -208.03 403.63 -124.51 279.56 -79.69C249.79 -68.94 244.71 -50.29 267.09 -27.91L329.31 34.31C337.80 42.80 349.91 45.45 361.03 40.94C498.12 -14.55 635.41 -112.80 736.00 -245.00C819.00 -354.00 876.00 -513.00 904.00 -622.00C907.56 -635.07 912.19 -650.96 917.66 -666.94C924.55 -687.10 917.45 -702.60 896.97 -708.470Z' fill='%233573FF' fill-opacity='.38' filter='url(%23b)' transform='translate(232 977) scale(.8)'/%3E%3C/svg%3E");
    --menubar: rgba(20, 20, 19, .5);

    --p-surface: #1B1B1A;
    --p-strip: #20201F;
    --p-ghost: #222221;
    --p-ghost-shadow: rgba(0, 0, 0, .3);
    --p-edge: rgba(255, 255, 255, .1);
    --p-line: #2A2A28;
    --p-line-strong: #3B3A37;
    --p-track: #33322F;
    --p-ink: #F5F5F4;
    --p-sub: #D4D3D0;
    --p-muted: #A3A29E;
    --p-mark: #6B6A66;
    --p-chip: #262625;
    --p-selected: #252524;
    --p-hover: #222221;
    --p-code: #131312;
    --p-code-ink: #E8E7E4;
    --p-prompt: #4ADE80;
    --p-code-k: #8DB4FF;
    --p-code-s: #F5C27A;
    --p-code-n: #C4A1FF;
    --p-plus: #4ADE80;
    --p-minus: #F87171;
    --p-rm-row: rgba(248, 113, 113, .1);
    --p-rm-mark: rgba(248, 113, 113, .3);
    --p-add-row: rgba(74, 222, 128, .09);
    --p-add-mark: rgba(74, 222, 128, .27);
    --accent-edge: #4D86FA;
    --accent-half: rgba(97, 150, 255, .4);
    --ring: rgba(97, 150, 255, .45);
    --p-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3), 0 24px 56px rgba(0, 0, 0, .45); }
}
:root[data-theme="dark"] { --bg: #111110;
    --bg-alt: #171716;
    --ink: #F5F5F4;
    --sub: #D4D3D0;
    --muted: #A3A29E;
    --line: #2A2A28;
    --tile: #222221;
    --code-bg: #1B1B1A;
    --link: #6196FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --wall: url("assets/wallpaper-night.jpg") center / cover no-repeat;
    --sky-50: #10131A;
    --hero-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 1400'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='80'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M169.68 -708.29L100.37 -684.47C79.68 -677.36 73.36 -661.18 82.57 -641.33C110.08 -582.01 150.11 -482.52 172.04 -419.95C178.51 -401.48 193.27 -394.11 211.66 -400.81L283.46 -426.97C300.53 -433.19 307.47 -447.57 301.15 -464.61C276.94 -529.87 234.30 -631.10 206.27 -692.71C199.40 -707.82 185.38 -713.69 169.68 -708.29Z M448.60 -771.00L380.60 -748.69C360.39 -742.06 353.73 -726.28 362.23 -706.79C388.14 -647.32 422.54 -556.82 442.48 -496.98C448.64 -478.48 463.29 -470.94 481.70 -477.37L551.10 -501.61C567.780 -507.43 575.00 -521.41 569.40 -538.16C548.30 -601.16 508.76 -701.30 484.03 -755.81C477.46 -770.31 463.73 -775.96 448.60 -771.00Z M896.97 -708.47L814.16 -732.21C792.98 -738.28 778.67 -728.55 775.35 -706.77C753.49 -563.26 695.29 -409.77 626.00 -322.00C535.89 -208.03 403.63 -124.51 279.56 -79.69C249.79 -68.94 244.71 -50.29 267.09 -27.91L329.31 34.31C337.80 42.80 349.91 45.45 361.03 40.94C498.12 -14.55 635.41 -112.80 736.00 -245.00C819.00 -354.00 876.00 -513.00 904.00 -622.00C907.56 -635.07 912.19 -650.96 917.66 -666.94C924.55 -687.10 917.45 -702.60 896.97 -708.470Z' fill='%233573FF' fill-opacity='.38' filter='url(%23b)' transform='translate(232 977) scale(.8)'/%3E%3C/svg%3E");
    --menubar: rgba(20, 20, 19, .5);

    --p-surface: #1B1B1A;
    --p-strip: #20201F;
    --p-ghost: #222221;
    --p-ghost-shadow: rgba(0, 0, 0, .3);
    --p-edge: rgba(255, 255, 255, .1);
    --p-line: #2A2A28;
    --p-line-strong: #3B3A37;
    --p-track: #33322F;
    --p-ink: #F5F5F4;
    --p-sub: #D4D3D0;
    --p-muted: #A3A29E;
    --p-mark: #6B6A66;
    --p-chip: #262625;
    --p-selected: #252524;
    --p-hover: #222221;
    --p-code: #131312;
    --p-code-ink: #E8E7E4;
    --p-prompt: #4ADE80;
    --p-code-k: #8DB4FF;
    --p-code-s: #F5C27A;
    --p-code-n: #C4A1FF;
    --p-plus: #4ADE80;
    --p-minus: #F87171;
    --p-rm-row: rgba(248, 113, 113, .1);
    --p-rm-mark: rgba(248, 113, 113, .3);
    --p-add-row: rgba(74, 222, 128, .09);
    --p-add-mark: rgba(74, 222, 128, .27);
    --accent-edge: #4D86FA;
    --accent-half: rgba(97, 150, 255, .4);
    --ring: rgba(97, 150, 255, .45);
    --p-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3), 0 24px 56px rgba(0, 0, 0, .45); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
code { font-family: var(--mono); font-size: .92em; }
p code, li code, td code { background: var(--code-bg); border-radius: 5px; padding: 1px 5px; box-shadow: inset 0 0 0 .5px var(--line); }
kbd { font: 500 .88em var(--mono); background: var(--code-bg); border-radius: 5px; padding: 1px 5px; box-shadow: inset 0 0 0 .5px var(--line), 0 1px 0 var(--line); white-space: nowrap; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.wrap.mid { max-width: 920px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- icons (Phosphor, drawn by morph) ---------- */
.i { width: 16px; height: 16px; flex: none; overflow: visible; }
.i-lg { width: 28px; height: 28px; flex: none; overflow: visible; }
.tsu { flex: none; }
svg.tsu { overflow: visible; }

/* ---------- buttons ----------
   The blue one is the panel's Allow at page size: lit from the top like
   the app icon, a crisp edge, a blue shadow. Point at it and a band of
   light crosses it once (700 ms); a Download arrow also dips 2 px, the way
   a download goes. The second one is a soft blue tint. Never the logo in a
   button. Press: 0.97 in 160 ms; hover only with a pointer. */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: -.01em;
  height: 46px; padding: 0 18px; border-radius: 11px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .link:focus-visible, .copy:focus-visible, summary:focus-visible, .kind-tab:focus-visible, .menu-button:focus-visible, .nav a:focus-visible, .replay-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; border-radius: 8px;
}
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; text-shadow: 0 1px 0 rgba(12, 40, 120, .22);
  background: linear-gradient(180deg, #4C84FF 0%, #3573FF 52%, #2F6CF6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(12, 40, 120, .16),
    0 0 0 .5px #2456D6, 0 1px 2px rgba(36, 86, 214, .3), 0 10px 22px -10px rgba(53, 115, 255, .7);
}
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 .5px #2456D6, 0 1px 2px rgba(36, 86, 214, .3), 0 6px 14px -8px rgba(53, 115, 255, .6); }
.btn-primary .i { transition: transform 200ms var(--ease-out); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%);
}
.btn-quiet {
  color: #1F4FD6; background: color-mix(in srgb, var(--blue) 10%, var(--bg));
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--blue) 18%, transparent);
}
.btn-small {
  height: 34px; padding: 0 14px; font-size: 14px; border-radius: 9px; color: var(--bg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 86%, var(--bg)) 0%, var(--ink) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 .5px var(--ink), 0 1px 2px rgba(0, 0, 0, .12);
}
.btn .i { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.06) saturate(1.05); }
  .btn-quiet:hover { background: color-mix(in srgb, var(--blue) 16%, var(--bg)); }
  .btn-small:hover { filter: brightness(1.15); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover .i[data-icon="Download"] { transform: translateY(2px); }
  .btn-primary:hover::after { transform: translateX(110%); transition: transform 700ms var(--ease-out); }
}
@media (prefers-color-scheme: dark) {
  /* themes.py */
  :root:not([data-theme="light"]) .btn-quiet { color: #A9C3FF; background: rgba(97, 150, 255, .14); box-shadow: inset 0 0 0 .5px rgba(97, 150, 255, .22); }
  :root:not([data-theme="light"]) .btn-quiet:hover { color: #C7D7FF; background: rgba(97, 150, 255, .2); }
  :root:not([data-theme="light"]) .btn-small { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 .5px rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .3); }
  :root:not([data-theme="light"]) .btn-small:hover { filter: brightness(.94); }
}
:root[data-theme="dark"] .btn-quiet { color: #A9C3FF; background: rgba(97, 150, 255, .14); box-shadow: inset 0 0 0 .5px rgba(97, 150, 255, .22); }
:root[data-theme="dark"] .btn-quiet:hover { color: #C7D7FF; background: rgba(97, 150, 255, .2); }
:root[data-theme="dark"] .btn-small { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 .5px rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .btn-small:hover { filter: brightness(.94); }

/* Replay: one control for every "again" on the site; its arrow turns back
   once when pressed. */
.replay-button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sub); background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 1px 2px rgba(26, 26, 25, .05);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.replay-button[hidden] { display: none; }
.replay-button .i { width: 15px; height: 15px; }
.replay-button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .replay-button:hover { color: var(--ink); background: var(--bg-alt); } }

/* a text link with an arrow that leans the way it goes */
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); text-decoration: none; }
.link .i { width: 15px; height: 15px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover .i { transform: translateX(2px); }
  .link:hover .i.up { transform: translate(2px, -2px); }
}
.link-button { font: inherit; font-size: 14px; font-weight: 600; color: var(--link); background: none; border: 0; padding: 4px 2px; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.brand .tsu { width: 22px; height: 22px; color: var(--blue); }
/* The name, drawn: "yaap" in the ツ's own font, its corners softened like
   the mark's (#yaap; brand/README.md). The words stay for screen readers. */
.brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand .wordmark { display: block; height: 19px; aspect-ratio: 2292 / 805; margin-top: 3px; color: var(--ink); }
.nav-links { display: flex; gap: 24px; margin-left: 8px; font-size: 14.5px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color 120ms ease; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn-small { margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.menu-button {
  display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: var(--ink);
  cursor: pointer; place-items: center; -webkit-tap-highlight-color: transparent;
}
.menu-button svg { width: 20px; height: 20px; }
.menu-sheet {
  position: absolute; inset: 60px 0 auto; padding: 8px 24px 20px; background: var(--bg);
  border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
}
.menu-sheet a { display: block; padding: 12px 0; font-size: 17px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-sheet a:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-button { display: grid; }
  .nav .btn-small { margin-left: auto; }
}
@media (min-width: 821px) { .menu-sheet { display: none; } }
/* light or dark, as you choose; the system's until you do */
.theme-button {
  display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 10px;
  background: none; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.theme-button svg { width: 20px; height: 20px; }
.theme-button:active { transform: scale(.94); }
.theme-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .theme-button:hover { color: var(--ink); background: var(--bg-alt); } }
.theme-button + .btn-small { margin-left: 0; }

/* ---------- the ツ's face ----------
   The ツ is a face, so it acts like one, built only from its
   own parts: each eye closes along its own 21° slant (not straight down),
   and the smile lifts from its lower end.
   - Point at it in the header or footer: it smiles and winks.
   - Once a visit, as you arrive: it winks.
   - In the hero's menu bar: it dozes while there's nothing to answer,
     perks up when a request arrives, and smiles when you've answered all.
   All once, never looping; with Reduce Motion it just stays a ツ. */
svg.tsu .eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 320ms cubic-bezier(.23, 1, .32, 1); }
svg.tsu .smile { transform-box: fill-box; transform-origin: 4% 96%; }
svg.tsu.face-sleep .eye { transform: rotate(-21deg) scaleY(0.28) rotate(21deg); }
@keyframes yaap-wink { 0%, 100% { transform: rotate(-21deg) scaleY(1) rotate(21deg); } 40%, 55% { transform: rotate(-21deg) scaleY(0.1) rotate(21deg); } }
@keyframes yaap-squint { 0%, 100% { transform: rotate(-21deg) scaleY(1) rotate(21deg); } 30%, 72% { transform: rotate(-21deg) scaleY(0.5) rotate(21deg); } }
@keyframes yaap-wide { 0%, 100% { transform: rotate(-21deg) scaleY(1) rotate(21deg); } 35% { transform: rotate(-21deg) scaleY(1.2) rotate(21deg); } }
@keyframes yaap-smile { 0%, 100% { transform: none; } 35%, 72% { transform: rotate(-8deg) scale(1.07); } }
@keyframes yaap-hop { 0%, 100% { transform: none; } 35% { transform: translateY(-14%); } }
@media (prefers-reduced-motion: no-preference) {
  svg.tsu.face-wink .eye + .eye { animation: yaap-wink 300ms cubic-bezier(.23, 1, .32, 1); }
  svg.tsu.face-blink .eye { animation: yaap-wink 280ms cubic-bezier(.23, 1, .32, 1); }
  svg.tsu.face-happy .eye { animation: yaap-squint 720ms cubic-bezier(.23, 1, .32, 1); }
  svg.tsu.face-happy .smile { animation: yaap-smile 720ms cubic-bezier(.34, 1.4, .64, 1); }
  svg.tsu.face-alert { animation: yaap-hop 340ms cubic-bezier(.23, 1, .32, 1); }
  svg.tsu.face-alert .eye { animation: yaap-wide 340ms cubic-bezier(.23, 1, .32, 1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.brand:hover svg.tsu .eye + .eye { animation: yaap-wink 300ms cubic-bezier(.23, 1, .32, 1); }
  a.brand:hover svg.tsu .smile { animation: yaap-smile 620ms cubic-bezier(.34, 1.4, .64, 1); }
}

/* ---------- type ----------
   Headings in Geist Medium at -0.02em (assets/fonts/geist, OFL;
   brand/direction.md); the rest in the system font, like the app. */
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("assets/fonts/geist/Geist-Medium.woff2") format("woff2"); }
h1 { font-family: var(--display); font-size: clamp(40px, 5.6vw, 62px); line-height: 1; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 500; text-wrap: balance; }
h1 .soft { display: inline-block; margin-top: .18em; font-size: .62em; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 500; text-wrap: balance; }
h3 { font-family: var(--display); font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 8px; font-weight: 500; }
.lede { font-size: 19px; color: var(--sub); margin: 0 0 28px; max-width: 34em; text-wrap: pretty; }
.lede.small { font-size: 17px; }
.section-head { margin-bottom: 48px; max-width: 40em; }
.section-head .lede { margin-bottom: 0; }
.fine { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.prose p, .prose li { color: var(--sub); text-wrap: pretty; }
.prose h2 { font-size: 26px; margin: 0 0 12px; }
.prose > div + div { margin-top: 52px; }
.prose > h2 + div { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }

/* A page's own title, under the nav, over the ツ blurred into light and
   drawn as an ordered dither of Yaap-blue dots, a dot every 3 px (identity.js),
   fading toward the words, under a fine grain. */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 40px; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .25; mix-blend-mode: soft-light; }
.dither {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  image-rendering: pixelated; opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 75%); mask-image: linear-gradient(to right, transparent 25%, #000 75%);
}
.page-head h1 { font-size: clamp(38px, 5vw, 54px); }
.page-head .lede { margin-bottom: 0; }
@media (max-width: 600px) { .page-head { padding: 48px 0 24px; } }

/* ---------- hero ---------- */
/* a halo of the ツ in blue around the live desktop, its light falling under it */
.hero {
  position: relative; padding: 72px 0 88px;
  background: var(--hero-art) right -220px center / 1200px auto no-repeat, linear-gradient(180deg, var(--bg) 0%, var(--sky-50) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; background: var(--hero-art) center bottom -200px / 1000px auto no-repeat, linear-gradient(180deg, var(--bg) 0%, var(--sky-50) 100%); }
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* The eye ribbon: the ツ's eye, again and again at its own slant, in
   four blues (identity.js). It drifts right to left only while you scroll,
   and blinks in a wave the first time it comes into view: each eye 24 ms
   after the one before, along its own slant. */
.ribbon { display: block; position: absolute; left: 0; right: 0; height: 18px; overflow: hidden; pointer-events: none; z-index: 1; }
.ribbon svg { height: 100%; width: auto; display: block; will-change: transform; }
.ribbon-hero { bottom: -9px; }
.ribbon-footer { top: -9px; }
.rb-eye { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon.blinking .rb-eye { animation: yaap-wink 300ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i) * 24ms); }
}

/* the desktop the panel floats on */
.scene {
  position: relative; border-radius: 20px; background: var(--wall); min-height: 500px;
  padding: 44px 16px 64px; box-shadow: var(--shadow), 0 60px 120px -60px rgba(53, 115, 255, .55), inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent);
  overflow: hidden;
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-size: 12.5px; background: var(--menubar); color: var(--ink); z-index: 4;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mb-left { display: flex; gap: 14px; } .mb-left b { font-weight: 700; }
.mb-right { display: flex; align-items: center; gap: 13px; font-variant-numeric: tabular-nums; }
.mb-yaap { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mb-yaap .tsu { width: 15px; height: 15px; }
.mb-yaap #mb-count:empty { display: none; }
.mb-glyph { width: 15px; height: 15px; } .mb-glyph.wide { width: 22px; height: 11px; }
@media (max-width: 520px) { .mb-left span { display: none; } }

.window {
  position: absolute; left: 22px; top: 62px; width: 56%; border-radius: 10px; overflow: hidden;
  background: #161615; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); opacity: .92;
}
.window-bar { height: 26px; display: flex; gap: 7px; align-items: center; padding: 0 11px; background: #22221F; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #464540; }
.window-text { margin: 0; padding: 12px 14px 18px; color: #E8E7E4; font: 12px/1.6 var(--mono); white-space: pre-wrap; }
.window-text .dim { color: #8C8A86; }
@media (max-width: 640px) { .window { display: none; } }

/* text on the wallpaper: white, as macOS draws it on a desktop */
.status { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 2px rgba(8, 24, 80, .35); padding: 0 16px; }
.status code { font: 12px var(--mono); background: none; box-shadow: none; padding: 0; }
.status .replay-button { margin-left: 8px; vertical-align: middle; height: 28px; font-size: 13px; }

/* ---------- the panel: Graphite, the working prototype of design/README.md ---------- */
.panel {
  position: relative; margin-left: auto; width: min(420px, 100%); z-index: 2; outline: none;
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", sans-serif; color: var(--p-ink);
  transform-origin: top right;
}
.panel.is-hidden { visibility: hidden; }
.stack { position: relative; padding-bottom: 14px; }   /* room for the cards waiting behind */
.layers { position: relative; }
.shell, .ghost { border-radius: 12px; }
.shell {
  position: relative; z-index: 3; overflow: hidden; background: var(--p-surface); box-shadow: var(--p-shadow);
  transition: height 220ms var(--ease-out), box-shadow 160ms ease;
}

/* The queue: up to two card edges peek out under the front card. A card
   joining slides out from under it; the front card never moves. */
.ghost {
  position: absolute; inset: 0; transform-origin: 50% 100%; background: var(--p-ghost);
  box-shadow: 0 0 0 .5px var(--p-edge), 0 4px 12px var(--p-ghost-shadow);
  opacity: 0; transition: transform 220ms var(--ease-out), opacity 160ms var(--ease-out);
}
.g1 { z-index: 2; }
.g2 { z-index: 1; transform: translateY(7px) scale(.96); }
.stack:is([data-depth="1"], [data-depth="2"]) .g1 { opacity: 1; transform: translateY(7px) scale(.96); }
.stack[data-depth="2"] .g2 { opacity: .7; transform: translateY(14px) scale(.92); }

.p-card { display: flex; flex-direction: column; }
.p-card > * { min-width: 0; }
.instant, .instant * { transition: none !important; }

/* band 1: who is asking, and from where */
.p-strip { padding: 10px 16px 9px; background: var(--p-strip); border-bottom: 1px solid var(--p-line); }
.p-who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.p-who b { font-weight: 600; }
.app-icon { flex: none; width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; }
.app-icon.term { background: #1D1D1C; color: #E8E7E4; font: 700 8px var(--mono); }
.app-icon.desk { background: linear-gradient(#FDFDFC, #E7E6E3); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.branch { display: inline-flex; align-items: center; gap: 3px; font: 11.5px var(--mono); color: var(--p-muted); white-space: nowrap; }
.branch svg { width: 11px; height: 11px; }
.count { margin-left: auto; font: 500 11.5px var(--mono); color: var(--p-muted); font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.count-n { display: inline-block; }
.p-where { font-size: 11.5px; color: var(--p-muted); padding-left: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* band 2: what Claude wants */
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.p-kind { font-size: 11.5px; font-weight: 500; color: var(--p-muted); }
.p-kindrow { display: flex; align-items: center; gap: 10px; }
.p-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-top: 1px; }
.p-titlerow { display: flex; align-items: flex-end; gap: 12px; }
.p-titlerow > div { flex: 1; min-width: 0; }
.stat { flex: none; font: 500 12px var(--mono); padding-bottom: 2px; font-variant-numeric: tabular-nums; }
.plus { color: var(--p-plus); } .minus { color: var(--p-minus); }
.segs { margin-left: auto; display: flex; gap: 3px; }
.segs i { width: 18px; height: 3px; border-radius: 2px; background: var(--p-track); }
.segs i.done { background: var(--accent); }
.segs i.now { background: var(--accent-half); }

/* the exact thing: follows light and dark, wraps, never scrolls sideways */
.term {
  background: var(--p-code); color: var(--p-code-ink); border-radius: 8px; box-shadow: inset 0 0 0 .5px var(--p-edge);
  font: 12.5px/1.55 var(--mono); padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.term .prompt { color: var(--p-prompt); font-weight: 600; }
.term.diff { padding: 9px 0 10px; white-space: normal; overflow: hidden; }
.term.diff .path { padding: 0 12px 8px; font-size: 12px; color: var(--p-muted); }
.term.diff .row { display: flex; gap: 8px; padding: 1px 12px; }
.term.diff .ln { min-width: 0; white-space: pre-wrap; }
.term.diff .rm { background: var(--p-rm-row); } .term.diff .rm .s { color: var(--p-minus); }
.term.diff .add { background: var(--p-add-row); } .term.diff .add .s { color: var(--p-plus); }
/* code colors, by file type: color only (design/README.md, What Claude wants) */
.term .t-k { color: var(--p-code-k); }
.term .t-s { color: var(--p-code-s); }
.term .t-n { color: var(--p-code-n); }
.term .t-c { color: var(--p-muted); }
/* a notebook cell: numbered lines, no rows */
.term.diff.nb .s { color: var(--p-muted); min-width: 1ch; text-align: right; }
.stat.cell { font: 500 12px var(--mono); color: var(--p-muted); }
/* a plan: prose, headings in semibold, lists as lists */
.term.plan-text { font-family: inherit; font-size: 13px; line-height: 1.5; color: var(--p-sub); white-space: normal; display: grid; gap: 3px; }
.term.plan-text .h { font-weight: 600; color: var(--p-ink); }
.term.plan-text .li { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); }
.term.plan-text .m { color: var(--p-muted); font-variant-numeric: tabular-nums; }
.term.plan-text code { font: 12px var(--mono); color: var(--p-code-ink); }
.term mark { color: inherit; border-radius: 3px; padding: 0 1px; }
.term .rm mark { background: var(--p-rm-mark); }
.term .add mark { background: var(--p-add-mark); }

/* "Always allow": a deliberate second step, never where Allow is */
.always { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--p-sub); cursor: pointer; }
.always code { font: 12px var(--mono); color: var(--p-ink); background: var(--p-chip); border-radius: 4px; padding: 0 4px; }
.always input, .mark {
  appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0; width: 14px; height: 14px;
  display: grid; place-items: center; background: var(--p-surface); box-shadow: inset 0 0 0 1.25px var(--p-mark);
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.always input { border-radius: 4px; cursor: pointer; }
.always input:disabled { opacity: .45; cursor: default; }
.mark.check { border-radius: 4px; }
.mark.radio { border-radius: 50%; }
.always input::after, .mark.check::after {
  content: ""; width: 7px; height: 4px; border-left: 1.6px solid var(--p-surface); border-bottom: 1.6px solid var(--p-surface);
  transform: translateY(-1px) rotate(-45deg) scale(.5); opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.mark.radio::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p-surface);
  transform: scale(.5); opacity: 0; transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.always input:checked, [aria-checked="true"] > .mark, .other.on > .mark { background: var(--p-ink); box-shadow: none; }
.always input:checked::after, [aria-checked="true"] > .mark.check::after, .other.on > .mark.check::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
[aria-checked="true"] > .mark.radio::after, .other.on > .mark.radio::after { opacity: 1; transform: scale(1); }

/* band 3: your answer. Buttons sleep for 0.4 s, then wake up. */
.p-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--p-line); padding: 12px 16px; }
.p-actions .spacer { flex: 1; }
/* Deny and Allow stay together; on a narrow card they move below "Answer in …" rather than squeeze. */
.p-actions { flex-wrap: wrap; row-gap: 8px; }
.p-pair { display: flex; gap: 8px; margin-left: auto; }
.p-btn {
  font: inherit; font-size: 13px; font-weight: 500; border: 0; cursor: pointer; border-radius: 7px;
  min-height: 30px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  color: var(--p-ink); background: var(--p-surface); box-shadow: inset 0 0 0 1px var(--p-line-strong);
  transition: transform 120ms var(--ease-out), opacity 160ms var(--ease-out), background-color 120ms ease, color 120ms ease;
}
.p-btn:active:not(:disabled) { transform: scale(.97); }
.p-btn:disabled { opacity: .45; cursor: default; }
.p-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.p-btn.primary {
  background: var(--accent); color: #fff; font-weight: 600; min-width: 104px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 .5px var(--accent-edge), 0 1px 2px rgba(53, 115, 255, .3);
}
.p-btn.primary.narrow { min-width: 88px; }
.p-btn.quiet { background: transparent; color: var(--p-muted); box-shadow: none; padding: 0 6px; margin-left: -6px; gap: 4px; }
.p-btn.unseen { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .p-btn:hover:not(:disabled) { background: var(--p-selected); }
  .p-btn.primary:hover:not(:disabled) { background: var(--accent-press); }
  .p-btn.quiet:hover:not(:disabled) { background: transparent; color: var(--p-ink); }
}
/* two labels in one cell: the button keeps the wider one's width, and the
   change crossfades with a little blur */
.swap { display: grid; justify-items: center; }
.swap > span { grid-area: 1 / 1; transition: opacity 180ms ease, filter 180ms ease; }
.swap > .b, .alt > .swap > .a { opacity: 0; filter: blur(2px); }
.alt > .swap > .b { opacity: 1; filter: none; }

/* questions: one at a time, in a card as tall as the tallest step */
.q-steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.q-step { grid-area: 1 / 1; min-width: 0; visibility: hidden; display: flex; flex-direction: column; gap: 10px; }
.q-step.current, .q-step.leaving { visibility: visible; }
.q-step.leaving { pointer-events: none; }
.panel.is-hidden .q-step { visibility: hidden; }   /* a visible child would show through its hidden panel */
.q-opts, .review-rows { display: flex; flex-direction: column; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--p-line); overflow: hidden; }
.q-opt {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 9px 12px; border: 0; background: transparent; transition: background-color 120ms ease;
}
.q-opt + .q-opt { border-top: 1px solid var(--p-line); }
.q-opt .mark { margin: 0; }
.q-opt[aria-checked="true"], .q-opt.other.on { background: var(--p-selected); }
.q-opt[aria-checked="true"] .l { font-weight: 600; }
.q-opt:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.q-label { flex: 1; min-width: 0; }
.q-label .d { color: var(--p-muted); font-size: 12.5px; }
.kbd { font: 500 10.5px var(--mono); padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 .5px currentColor; color: var(--p-muted); }
.q-opt .num { opacity: 0; transition: opacity 120ms ease; }
.panel:focus-within .q-opt .num { opacity: 1; }
.q-opt.other { cursor: text; }
.q-opt.other input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; color: inherit; outline: none; }
.q-opt.other input::placeholder { color: var(--p-muted); }
.review-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; text-align: left;
  font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; padding: 9px 12px;
  transition: background-color 120ms ease;
}
.review-row + .review-row { border-top: 1px solid var(--p-line); }
.rv-q { font-size: 12px; color: var(--p-muted); }
.rv-a { font-weight: 600; overflow-wrap: anywhere; }
.rv-edit { font-size: 12px; color: var(--p-muted); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .q-opt:hover:not([aria-checked="true"]):not(.on), .review-row:hover { background: var(--p-hover); }
}

/* The keys, while ⌘ is held with the panel focused: a chip on each button's
   top-right corner, over it, so nothing moves. They come and go at once. */
.p-btn { position: relative; }
.kchip {
  display: none; position: absolute; top: -8px; right: -7px; min-width: 18px; height: 16px; padding: 0 4px;
  place-items: center; border-radius: 4px; background: var(--p-surface); color: var(--p-ink);
  box-shadow: inset 0 0 0 1px var(--p-line-strong); font: 600 10px/1 var(--mono); pointer-events: none;
}
.kchip svg { width: 10px; height: 10px; }
.panel.keys .kchip { display: grid; }
.panel.keys .p-btn.unseen .kchip { display: none; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: 80px 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section.tight { padding: 56px 0; } }

/* A claim and the demo that shows it, side by side; every other one swaps. */
.claims { display: grid; gap: 120px; }
.claim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.claim > * { min-width: 0; }
.claim:nth-child(even) > .claim-text { order: 2; }
/* a claim's icon, and privacy's: white on a Yaap-blue tile, lit like the buttons */
:is(.claim-text, .trust) .i-lg {
  box-sizing: content-box; width: 26px; height: 26px; padding: 13px; border-radius: 15px;
  color: #fff; background: var(--blue-tile); box-shadow: var(--blue-tile-shadow);
}
.claim-text .i-lg { margin-bottom: 22px; }
.claim-text p { color: var(--sub); margin: 0 0 12px; font-size: 17px; max-width: 30em; text-wrap: pretty; }
.claim-text .fine { font-size: 14px; }
@media (max-width: 900px) {
  .claims { gap: 80px; }
  .claim { grid-template-columns: 1fr; gap: 28px; }
  .claim:nth-child(even) > .claim-text { order: 0; }
}
/* a demo that needs the room: the text above, the demo full width below */
.claim.wide { grid-template-columns: 1fr; gap: 32px; }
.claim.wide > .claim-text { order: 0; max-width: 40em; }
.more { margin-top: 72px; display: flex; justify-content: center; }

/* ---------- the demos' stages ---------- */
.demo { position: relative; }
.demo:empty { min-height: 420px; }
.stage {
  position: relative; border-radius: 18px; background: var(--wall); overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent);
}
/* every little desktop: the wallpaper (--wall), under a fine grain */
:is(.scene, .stage, .kind-stage) { isolation: isolate; }
:is(.scene, .stage, .kind-stage)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: var(--grain); opacity: .35; mix-blend-mode: soft-light;
}
.demo-caption { margin: 14px 4px 0; min-height: 3.1em; font-size: 14px; color: var(--sub); text-wrap: pretty; }
.demo-caption code { font-size: 12.5px; }
.demo-controls { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 12px; font-size: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--sub); cursor: pointer; }
.toggle input { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; }
.only-touch { display: none; }
@media (hover: none), (pointer: coarse) { .only-touch { display: flex; } }

/* A demo's panel: the real card, at its real size, in a small desktop. */
.demo-panel { width: min(400px, 100%); margin: 0; }
.demo-panel .p-card { transition: opacity 120ms ease; }
.demo-panel.is-hidden { visibility: hidden; }

/* the app that asked: two windows and the panel */
.stage.desk { height: 440px; }
.desk .win {
  position: absolute; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; text-align: left; cursor: pointer;
  font: inherit; box-shadow: 0 12px 32px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .2);
  transition: transform 220ms var(--ease-out), filter 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.desk .win:not(.front) { filter: saturate(.7) brightness(.97); transform: scale(.985); }
.desk .win.front { z-index: 2; box-shadow: 0 18px 44px rgba(0, 0, 0, .26), 0 0 0 .5px rgba(0, 0, 0, .25); }
.desk .win:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); outline-offset: 3px; }
.win-bar { height: 24px; display: flex; gap: 6px; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 600; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFCDC8; }
.win-bar span { margin-left: 8px; opacity: .75; }
.win.front .win-bar i:nth-child(1) { background: #FF5F57; }
.win.front .win-bar i:nth-child(2) { background: #FEBC2E; }
.win.front .win-bar i:nth-child(3) { background: #28C840; }
.win-term { left: 20px; top: 52px; width: 58%; background: #161615; color: #E8E7E4; }
.win-term .win-bar { background: #22221F; color: #E8E7E4; }
.win-term .win-bar i { background: #464540; }
.win-text { display: block; padding: 10px 12px 16px; font: 11.5px/1.6 var(--mono); white-space: pre-wrap; }
.win-text .dim { color: #8C8A86; }
.win-web { right: 20px; bottom: 56px; width: 62%; height: 200px; background: #FFFFFF; color: #1A1A19; }
.win-web .win-bar { background: #F2F1EE; }
.win-page { display: grid; gap: 10px; padding: 18px 20px; }
.win-page i { height: 10px; border-radius: 5px; background: #E9E8E4; }
.win-page i:first-child { width: 55%; height: 16px; background: #DAD9D4; }
.win-page i.short { width: 40%; }
.desk .demo-panel { position: absolute; top: 40px; right: 14px; z-index: 3; width: min(340px, calc(100% - 28px)); }
@media (max-width: 520px) { .stage.desk { height: 460px; } .win-term { width: 80%; } .win-web { width: 84%; } }

/* throw it: a small screen, a panel to throw, a tab when tucked */
.stage.screen { width: 100%; aspect-ratio: 16 / 10; touch-action: none; user-select: none; -webkit-user-select: none; }
@media (max-width: 600px) { .stage.screen { aspect-ratio: 3 / 4; } }   /* room to throw on a phone */
.slots i {
  position: absolute; left: 0; top: 0; border-radius: 8px; opacity: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--bg) 25%, transparent); transition: opacity 160ms ease;
}
.dragging .slots i { opacity: 1; }
.thrown { position: absolute; left: 0; top: 0; z-index: 3; cursor: grab; outline: none; will-change: transform; }
.thrown:active { cursor: grabbing; }
.thrown:focus-visible .thrown-card .shell { box-shadow: var(--p-shadow), 0 0 0 3px var(--ring); }
.thrown-card { transition: opacity 160ms ease; }
.thrown-card .shell { width: 340px; transform: scale(var(--s, .55)); transform-origin: 0 0; pointer-events: none; font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--p-ink); }
.thrown .tab {
  position: absolute; top: 50%; width: 16px; height: 46px; margin-top: -23px; display: grid; place-items: center; gap: 2px; align-content: center;
  background: var(--p-surface); color: var(--p-ink); box-shadow: var(--p-shadow); font: 600 10px/1 var(--mono);
  opacity: 0; pointer-events: none; transition: opacity 160ms ease;
}
.thrown .tab .tsu { width: 10px; height: 10px; color: var(--blue); }
.thrown[data-edge="right"] .tab { left: 0; border-radius: 8px 0 0 8px; }
.thrown[data-edge="left"] .tab { right: 0; border-radius: 0 8px 8px 0; }
.thrown.tucked .thrown-card { opacity: 0; }
.thrown.tucked .tab { opacity: 1; pointer-events: auto; cursor: pointer; }

/* buttons that wait */
.stage.plain { padding: 56px 24px; display: grid; place-items: center; min-height: 380px; }
.demo-panel .shell { position: relative; }
/* asleep for 0.4 s (the app's buttons, design/README.md), Allow filling as it wakes */
.asleep .p-btn.armable { opacity: .45; cursor: default; }
.wake-fill { position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .28); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* first answer wins: Claude's prompt beside the card */
.stage.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px; padding: 32px; align-items: start; min-height: 360px; }
.terminal { border-radius: 10px; overflow: hidden; background: #161615; color: #E8E7E4; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.terminal .win-bar { background: #22221F; color: #E8E7E4; }
.terminal .win-bar i { background: #464540; }
.terminal-text { padding: 12px 14px 18px; font: 12px/1.6 var(--mono); white-space: pre-wrap; min-height: 236px; }
.terminal-text .dim { color: #8C8A86; }
.terminal-text .ok { color: #4ADE80; }
.terminal-text button { display: block; width: calc(100% + 8px); font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 0 4px 0 2.2em; margin: 0 -4px; text-indent: -1.8em; border-radius: 4px; cursor: pointer; white-space: normal; }
.terminal-text button:first-of-type { color: #8AB4FF; }
@media (hover: hover) and (pointer: fine) { .terminal-text button:hover { background: rgba(255, 255, 255, .08); } }
.terminal-text button:focus-visible { outline: 2px solid #8AB4FF; }
.first-side .demo-panel { width: 100%; }
@media (max-width: 760px) { .stage.split { grid-template-columns: 1fr; padding: 16px; } .terminal-text { min-height: 0; } }

/* what you approve: a tab for each kind of request */
.kind-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.kind-tab {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.kind-tab svg { width: 16px; height: 16px; flex: none; }
.kind-tab { white-space: nowrap; }
.kind-tab:active { transform: scale(.97); }
.kind-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .kind-tab:not([aria-selected="true"]):hover { color: var(--ink); background: var(--bg-alt); } }
.kind-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: start center; padding: 40px 20px; border-radius: 18px; background: var(--wall); min-height: 420px; box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.kind-panel .shell { overflow: hidden; }
@media (max-width: 520px) { .kind-stage { padding: 24px 12px; } }
.kind-note { text-align: center; }
.term.url { color: var(--link); overflow-wrap: anywhere; }
.term.mcp { display: grid; gap: 2px; }
.term.mcp .tool { font-weight: 600; margin-bottom: 4px; }
.term.mcp .kv { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
.term.mcp .k { color: var(--p-muted); }

/* ---------- works with ---------- */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.works > div { background: var(--bg); padding: 22px 20px; }
.works h3 { font-size: 16px; margin: 12px 0 4px; }
.works p { margin: 0; font-size: 14px; color: var(--sub); }
.works .i {
  box-sizing: content-box; width: 20px; height: 20px; padding: 10px; border-radius: 12px;
  color: #fff; background: var(--blue-tile); box-shadow: var(--blue-tile-shadow);
}
.works .soon .i { color: var(--muted); background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--tile); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
@media (max-width: 900px) { .works { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .works { grid-template-columns: 1fr; } }

/* ---------- install ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); background: var(--bg); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.section.alt .steps > li { background: var(--bg); }
.steps p { margin: 0 0 14px; color: var(--sub); }
.steps .fine { margin: 12px 0 0; }
.steps h3 { font-size: 18px; }
.n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: var(--ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.code { display: flex; align-items: center; gap: 12px; background: var(--code-bg); border-radius: 10px; padding: 8px 8px 8px 14px; margin-bottom: 8px; box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--line) 80%, transparent); }
.code code { font: 13.5px var(--mono); flex: 1; overflow-x: auto; white-space: nowrap; background: none; box-shadow: none; padding: 0; scrollbar-width: none; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; border: 0; border-radius: 7px;
  padding: 6px 10px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  transition: transform 120ms var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.copy .i { width: 14px; height: 14px; }
.copy:active { transform: scale(.96); }
.copy .swap > span { transition: opacity 180ms ease, filter 180ms ease; }
.copy .swap > .b, .copy.alt > .swap > .a { opacity: 0; filter: blur(2px); }
.copy.alt > .swap > .b { opacity: 1; filter: none; }
.copy .swap { justify-items: start; }

/* ---------- privacy ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.trust .i-lg { margin-bottom: 14px; }
.trust h3 { font-size: 17px; }
.trust p { margin: 0; font-size: 15px; color: var(--sub); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- the night band ----------
   Where a page asks you to download or tip, the section goes dark, edge to
   edge, in both themes. Its second button is the dark theme's. */
.section:has(> .wrap > .free-note) {
  position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; color: #F5F5F4;
  background:
    radial-gradient(60% 120% at 80% 110%, rgba(53, 115, 255, .28), transparent 65%),
    linear-gradient(180deg, #151A24 0%, #0B0D12 100%);
}
.section:has(> .wrap > .free-note)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .3; mix-blend-mode: soft-light;
}
.free-note { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 36em); gap: 28px; color: #F5F5F4; }
.free-note h2 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 6px; }
.free-note p { margin: 0; color: #B9C2D6; font-size: 17px; max-width: 34em; }
.free-note .btn-quiet { color: #A9C3FF; background: rgba(97, 150, 255, .14); box-shadow: inset 0 0 0 .5px rgba(97, 150, 255, .22); }
@media (hover: hover) and (pointer: fine) { .free-note .btn-quiet:hover { color: #C7D7FF; background: rgba(97, 150, 255, .2); } }

/* The board: a checkerboard in two night blues, the whole height of the
   band on its right, fading out toward the words. Its pieces are faces
   that appear and take a few turns, once, as it comes into view
   (identity.js); two squares are lit, and a few hold an eye. */
.mosaic {
  display: grid; grid-template-columns: repeat(10, 64px); grid-auto-rows: 64px;
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.mosaic i { display: grid; place-items: center; }
.mosaic .a { background: #16213C; }
.mosaic .b { background: #1C2A4B; }
.mosaic .blue { background: linear-gradient(160deg, #5C90FF, #2F6CF6); color: #fff; }
.mosaic i { color: #8FB0FF; }
.mosaic svg.tsu { width: 30px; height: 30px; }
/* the pieces: faces, one square each, moved by identity.js */
.mosaic .pieces { position: absolute; inset: 0; }
.mosaic .piece {
  position: absolute; left: 0; top: 0; width: calc(100% / 10); height: calc(100% / 7);
  display: grid; place-items: center; color: #8FB0FF; opacity: 0; transition: color 200ms ease;
}
.mosaic .piece.lit { color: #fff; }
.mosaic .eye-shape { width: 14px; height: 20px; background: currentColor; -webkit-mask: var(--eye-shape) center / contain no-repeat; mask: var(--eye-shape) center / contain no-repeat; }
@media (max-width: 900px) {
  /* narrow: the board is its own strip under the words, at the band's foot */
  .section:has(> .wrap > .free-note) { padding-bottom: 0; }
  .mosaic {
    position: relative; top: auto; transform: none; width: 100%; max-width: 560px; margin: 48px 0 0 auto;
    grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); grid-auto-rows: auto; aspect-ratio: 10 / 7;
  }
  .mosaic svg.tsu { width: 22px; height: 22px; }
}

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; border-radius: 20px; padding: 32px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.plan.later { background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.plan-name .i, .plan-name .tsu { color: var(--blue); width: 20px; height: 20px; }
.plan.later .plan-name .i { color: var(--muted); }
.price { font-family: var(--display); font-size: 48px; font-weight: 500; letter-spacing: -.02em; line-height: 1; margin: 22px 0 6px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan > p { margin: 0 0 24px; color: var(--sub); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--sub); font-size: 15px; }
.plan li .i { width: 16px; height: 16px; margin-top: 3px; color: var(--blue); }
.plan.later li .i { color: var(--muted); }
.plan .btn, .plan .not-yet { margin-top: auto; }
.not-yet { display: block; text-align: center; padding: 13px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- questions ---------- */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 16px; justify-content: space-between; cursor: pointer; list-style: none;
  padding: 20px 2px; font-weight: 600; font-size: 17px; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .i { color: var(--ink); } }
.faq-a { overflow: hidden; }
.faq-a > div { padding: 0 40px 22px 2px; color: var(--sub); }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- changelog ---------- */
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; padding-top: 0; }
.release-meta h2 { font-size: 22px; margin: 0 0 4px; }
.release-meta p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- the tour's index ---------- */
.tour-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tour-index a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--sub); transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .tour-index a:hover { background: var(--bg-alt); color: var(--ink); } }

/* ---------- tip ---------- */
.tip-line { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--sub); font-size: 15px; }
.tip-line .i { color: var(--blue); width: 20px; height: 20px; }

/* ---------- footer ---------- */
.footer { position: relative; padding: 56px 0 64px; }   /* its top edge is the eye ribbon */
.footer .brand .wordmark { height: 17px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 22em; }
.footer nav { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.footer nav h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 0 0 4px; }
.footer nav a { color: var(--muted); text-decoration: none; width: fit-content; transition: color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .footer nav a:hover { color: var(--ink); } }
.disclaimer { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- reveals: once, 12 px up and in, siblings 50 ms apart ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .shell { transition: box-shadow 160ms ease; }
  .ghost { transition: opacity 160ms ease; }
  .p-btn:active:not(:disabled), .btn:active, .copy:active, .kind-tab:active { transform: none; }
  .js [data-reveal] { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .desk .win { transition: filter 160ms ease, box-shadow 160ms ease; }
  .link .i { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .q-opt .num { display: none; }   /* no keyboard to hint at */
  .scene { min-height: 0; padding-bottom: 72px; }
  .p-btn { padding: 0 12px; }
  .p-btn.primary { min-width: 0; }
  .hero { padding-bottom: 56px; }
  .stage.plain { padding: 32px 12px; }
}

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* the theme's crossfade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: ease; }
