/* heystacky.com - one black page: the demo phone and Stacky beside it (7 Nov 2026). Night Gallery tokens from app/styles/tokens.css. */
/* Samsung Internet's Force Dark looks for these before it leaves a page alone (see tokens.css) */
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
@media (prefers-color-scheme: light) { :root { color-scheme: dark; } }

:root {
  color-scheme: dark;
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  --ink: #fff; --ink-2: rgba(235, 235, 245, .6); --ink-3: rgba(235, 235, 245, .3);
  --cell: #1c1c1e; --edge: rgba(255, 255, 255, .13); --tint: #0a84ff;
  --pad: clamp(20px, 5vw, 56px);
  /* Midnight: the brand black (Sal, 7 Nov 2026) - a cool near-black, used on the site, the store graphics and the app */
  --bg: #0b0c10; --bg-2: #12141a; --cell-2: #1a1d24;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); overflow-x: clip; }
body { min-height: 100vh; min-height: 100svh; position: relative;
  background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
  background: rgba(11, 12, 16, .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; min-height: 44px; }
.mark img { width: 20px; height: 26px; margin-top: -3px; }
.top-cta { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--edge); color: var(--ink); transition: background .15s; }
.top-cta:hover { background: rgba(255, 255, 255, .08); }

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px 72px; align-items: center; min-height: calc(100svh - 72px); padding: 32px 0 72px; }
h1 { font-weight: 700; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.sub { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.actions { margin-top: 32px; display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--tint); color: #fff; font-weight: 600; font-size: 17px; transition: transform .12s cubic-bezier(.22, 1, .36, 1), background .15s; }
.btn:hover { background: #2490ff; }
.btn:active { transform: scale(.97); }
.quiet { min-height: 44px; font-weight: 500; font-size: 17px; color: var(--ink-2); }
.quiet:hover { color: var(--ink); }
.soon { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* the stage: the phone, and Stacky standing beside it */
.stage { --pw: 300px; --sw: 108px; position: relative; padding-inline-end: calc(var(--sw) + 36px); padding-bottom: 8px; }
.stage::before { content: ""; position: absolute; inset: -12% -20% -8% -20%; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); pointer-events: none; }
.phone { position: relative; width: var(--pw); aspect-ratio: 9 / 19.5; border-radius: calc(var(--pw) * .16); background: #0c0c0e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px rgba(0, 0, 0, .6); }
.screen { position: absolute; inset: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .13); overflow: hidden; background: #000; font-size: calc(var(--pw) * .036); line-height: 1.3; contain: strict; }
.home { position: absolute; inset-inline-end: 0; bottom: 62px; width: var(--sw); height: calc(var(--sw) / .718); }
.walker { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; transform-origin: 50% 95%; z-index: 2; }
.walker.held { cursor: grabbing; }
.stacky { width: 100%; height: 100%; }
.floor-shadow { position: absolute; left: -6%; right: -6%; bottom: calc(var(--sw) / .718 * .02); height: calc(var(--sw) * .16); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); transition: opacity .2s, transform .2s; }
.hint { position: absolute; top: calc(100% + 14px); inset-inline-end: 0; white-space: nowrap; font-size: 13px; color: var(--ink-3); transition: opacity .6s; }
.hint.gone { opacity: 0; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 72px; }
  .stage { --pw: min(236px, 60vw); --sw: 64px; padding-inline-end: 0; display: grid; justify-items: center; margin-top: 8px; }
  .home { inset-inline-end: calc((100% - var(--pw)) / 2 - var(--sw) - 4px); }
  .hint { display: none; }
}

/* the demo inside the phone (sizes in em: 1em is 3.6% of the phone's width) */
.screen > * { position: absolute; }
.screen [hidden] { display: none !important; }
:where(.screen) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: inherit; }
.screen svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.d-src { inset: 0; background: #000; }
/* a video page (generic) */
.d-vid { position: relative; margin-top: 3em; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.d-vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-play { position: absolute; left: 50%; top: 50%; width: 4.4em; height: 4.4em; margin: -2.2em 0 0 -2.2em; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.d-play::after { content: ""; position: absolute; left: 1.7em; top: 1.3em; border-left: 1.4em solid #fff; border-top: .9em solid transparent; border-bottom: .9em solid transparent; }
.d-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .3em; background: rgba(255, 255, 255, .25); }
.d-bar i { display: block; width: 34%; height: 100%; background: #fff; }
.d-vid-body { padding: 1.1em 1.3em; }
.d-vid-t { display: block; font-size: 1.3em; line-height: 1.25; }
.d-vid-m { margin-top: .3em; font-size: 1em; color: var(--ink-2); }
.d-pills { display: flex; gap: .6em; margin-top: 1em; }
.d-pills span { display: inline-flex; align-items: center; gap: .4em; padding: .55em .9em; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 1em; font-weight: 600; }
.d-pills svg { width: 1.4em; height: 1.4em; }
.d-next { margin: 1.6em 0 .8em; font-size: 1.05em; font-weight: 600; }
.d-next-row { display: flex; gap: .8em; margin-bottom: .8em; }
.d-next-row img { width: 9em; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .6em; }
.d-next-row p { flex: 1; display: grid; gap: .5em; align-content: start; padding-top: .3em; }
.d-next-row b, .d-next-row i { display: block; height: .8em; border-radius: .4em; background: rgba(255, 255, 255, .14); }
.d-next-row i { width: 60%; background: rgba(255, 255, 255, .08); }
/* the photo viewer (generic) */
.d-photo > img { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-52%); width: 100%; max-height: 74%; object-fit: contain; }
.d-photo-top { position: absolute; top: 3em; left: 1.2em; right: 1.2em; display: flex; align-items: center; gap: .8em; font-size: 1.1em; color: var(--ink-2); }
.d-photo-top svg, .d-photo-bar svg { width: 2.2em; height: 2.2em; color: #fff; display: block; }
.d-photo-bar { position: absolute; left: 0; right: 0; bottom: 2.6em; display: flex; justify-content: space-around; }
/* a feed post (generic) */
.d-post-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-post-shade { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.d-post-who { position: absolute; inset-inline-start: 1.4em; bottom: 8.4em; display: flex; align-items: center; gap: .7em; font-size: 1.2em; }
.d-ava { width: 2.2em; height: 2.2em; border-radius: 50%; background: #3a3a3c; box-shadow: 0 0 0 .15em #fff; }
.d-post-cap { position: absolute; inset-inline: 1.4em 5.4em; bottom: 4.6em; font-size: 1.15em; color: rgba(255, 255, 255, .9); }
.d-post-acts { position: absolute; inset-inline-end: 1.2em; bottom: 5em; display: grid; gap: 1.9em; color: #fff; }
.d-post-acts i { display: block; width: 2.5em; height: 2.5em; }
.d-post-acts svg { width: 100%; height: 100%; }
/* the share sheet */
.d-sheet { inset-inline: 0; bottom: 0; background: #1c1c1e; border-radius: 2em 2em 0 0; padding: 1.2em 1.2em 3.2em; }
.d-sheet::before { content: ""; display: block; width: 3.4em; height: .4em; border-radius: 1em; background: rgba(255, 255, 255, .25); margin: 0 auto 1em; }
.d-sheet-prev { display: flex; align-items: center; gap: .8em; padding: .7em; border-radius: 1em; background: rgba(255, 255, 255, .06); }
.d-sheet-prev img { width: 3.6em; height: 3.6em; border-radius: .6em; object-fit: cover; }
.d-sheet-prev p { display: grid; min-width: 0; }
.d-sheet-prev b { font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-sheet-prev small { font-size: .95em; color: var(--ink-2); }
.d-sheet-t { font-weight: 600; font-size: 1.1em; color: var(--ink-2); margin: 1.1em 0 .9em; }
.d-targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.d-target { display: grid; justify-items: center; gap: .6em; }
.d-target small { font-size: .95em; color: var(--ink-2); white-space: nowrap; }
.d-circle { width: 4.6em; height: 4.6em; border-radius: 50%; background: var(--c); display: grid; place-items: center; color: #fff; transition: transform .12s cubic-bezier(.22, 1, .36, 1); }
.d-circle svg { width: 2.2em; height: 2.2em; }
.d-circle img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.d-target.press .d-circle { transform: scale(.88); }
.d-sent { left: 50%; bottom: 3em; display: flex; align-items: center; gap: .7em; padding: .7em 1.3em .7em .8em; border-radius: 999px; background: #2c2c2e; box-shadow: 0 .6em 2em rgba(0, 0, 0, .5); white-space: nowrap; font-size: 1.15em; }
.d-sent img { width: 2.2em; height: 2.2em; border-radius: 50%; }
/* the app: his shelf (as the real app: large title + mascot, Gallery/List, count, chips with counts, masonry, dock) */
.d-app { inset: 0; background: #000; padding: 3.4em 1.1em 0; display: flex; flex-direction: column; }
.d-head { display: flex; align-items: center; gap: .4em; }
.d-head b { font-size: 2.6em; font-weight: 800; letter-spacing: -.03em; }
.d-head img { width: 3.6em; height: 3.6em; margin-top: -.4em; }
.d-gap { flex: 1; }
.d-seg { display: flex; padding: .25em; border-radius: 1em; background: #1c1c1e; }
.d-seg button { width: 3.1em; height: 2.6em; border-radius: .75em; display: grid; place-items: center; color: var(--ink-2); }
.d-seg button[aria-pressed="true"] { background: #3a3a3c; color: #fff; }
.d-seg svg { width: 1.45em; height: 1.45em; }
.d-count { font-size: 1.1em; color: var(--ink-2); margin: .5em 0 .8em; }
.d-chips { display: flex; gap: .5em; overflow-x: auto; scrollbar-width: none; flex: none; }
.d-chips::-webkit-scrollbar { display: none; }
.screen .d-chips button { flex: none; display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; font-size: 1.1em; font-weight: 600; padding: .55em 1em; border-radius: 999px; background: #1c1c1e; cursor: pointer; }
.d-chips button span { color: var(--ink-3); font-weight: 500; }
.screen .d-chips button.on { background: #fff; color: #000; }
.d-chips button.on span { color: rgba(0, 0, 0, .55); }
.d-chips i { width: .65em; height: .65em; border-radius: 50%; }
.d-shelf { flex: 1; overflow-y: auto; scrollbar-width: none; margin-top: 1em; padding-bottom: 7em; }
.d-shelf::-webkit-scrollbar { display: none; }
.d-shelf.is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; align-items: start; }
.d-col { display: grid; gap: .7em; }
.d-tile { position: relative; border-radius: 1.3em; overflow: hidden; background: #1c1c1e; transform-origin: 50% 50%; cursor: pointer; }
.is-grid .d-tile img { display: block; width: 100%; height: auto; min-height: 7em; object-fit: cover; }
.is-grid .d-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); pointer-events: none; }
.is-grid .d-tile > i { position: absolute; left: .8em; top: .8em; width: .8em; height: .8em; border-radius: 50%; box-shadow: 0 0 0 .15em rgba(0, 0, 0, .35); z-index: 2; }
.d-badge { position: absolute; right: .7em; top: .7em; z-index: 2; font-size: .85em; font-weight: 700; padding: .25em .55em; border-radius: .5em; background: var(--tint); color: #fff; }
.is-grid .d-tile p { position: absolute; left: .8em; right: .8em; bottom: .7em; z-index: 2; font-size: 1.05em; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* list: grouped by category, rounded rows */
.d-by { font-size: 1.05em; color: var(--ink-2); margin: .2em 0 .2em .2em; }
.d-glabel { font-size: 1em; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); margin: 1.1em 0 .5em .2em; }
.d-rowi { display: flex; align-items: center; gap: .9em; padding: .8em .9em; margin-bottom: .5em; border-radius: 1.1em; background: #1c1c1e; }
.d-rowi img { width: 4.4em; height: 4.4em; border-radius: .7em; object-fit: cover; flex: none; }
.d-rowi p { flex: 1; min-width: 0; display: grid; gap: .25em; }
.d-rowi b { font-size: 1.15em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-rowi small { font-size: 1em; color: var(--ink-2); white-space: nowrap; }
.d-rowi em { font-style: normal; font-weight: 500; }
.d-rowi u { text-decoration: none; color: var(--tint); }
.d-rowi > svg { width: 1.3em; height: 1.3em; color: var(--ink-3); flex: none; }
.d-skel { position: absolute; inset: 0; background: #1c1c1e; overflow: hidden; z-index: 3; }
.d-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%); animation: d-shimmer 1.1s linear infinite; }
@keyframes d-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.d-dock { position: absolute; left: 50%; bottom: 1.6em; transform: translateX(-50%); display: flex; align-items: center; gap: 1.2em; padding: .5em .5em .5em 1.4em; border-radius: 999px; background: rgba(30, 30, 32, .86); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 1em 2em rgba(0, 0, 0, .5); }
.screen .d-dock button { display: flex; align-items: center; gap: .5em; font-size: 1.15em; font-weight: 600; cursor: pointer; }
.d-dock svg { width: 1.5em; height: 1.5em; }
.screen .d-plus { width: 3.6em; height: 3.6em; border-radius: 50%; background: #fff; color: #000; justify-content: center; font-size: 1em; }
.d-plus svg { width: 1.9em; height: 1.9em; stroke-width: 2.2; }
/* an item: the app's detail sheet */
.d-item { inset: 2.6em 0 0; background: #121214; border-radius: 2em 2em 0 0; overflow: hidden; box-shadow: 0 -1em 3em rgba(0, 0, 0, .5); z-index: 3; }
.d-item::before { content: ""; position: absolute; left: 50%; top: .6em; width: 3.4em; height: .4em; margin-left: -1.7em; border-radius: 1em; background: rgba(255, 255, 255, .25); z-index: 2; }
.screen .d-x { position: absolute; right: .9em; top: .9em; z-index: 4; width: 3em; height: 3em; border-radius: 50%; background: rgba(44, 44, 46, .9); display: grid; place-items: center; cursor: pointer; }
.d-x svg { width: 1.5em; height: 1.5em; stroke-width: 2.4; }
.d-item-scroll { height: 100%; overflow-y: auto; scrollbar-width: none; }
.d-item-scroll::-webkit-scrollbar { display: none; }
.d-pic { padding: 4.4em 1.3em 0; }
.d-item-img { display: block; width: 100%; height: 13em; object-fit: cover; border-radius: 1.4em; }
.d-item-body { padding: 1.2em 1.3em 2.4em; }
.d-catrow { display: flex; align-items: center; justify-content: space-between; }
.d-chip { display: inline-flex; align-items: center; gap: .55em; font-size: 1.05em; font-weight: 700; letter-spacing: .03em; padding: .45em .9em; border-radius: .7em; background: #1c1c1e; }
.d-chip i { width: .65em; height: .65em; border-radius: 50%; }
.d-star { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: #1c1c1e; color: var(--ink-3); font-size: 1.15em; cursor: pointer; }
.d-star.on { color: #ffd60a; background: rgba(255, 214, 10, .15); }
.d-item h3 { font-size: 2.15em; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: .45em 0 .1em; }
.d-saved { font-size: 1.05em; color: var(--ink-2); }
.d-sum { font-size: 1.2em; line-height: 1.4; color: var(--ink-body, #e5e5ea); margin: .8em 0 0; }
.d-h { display: flex; align-items: center; gap: .6em; font-size: 1.05em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 1.6em 0 .7em; }
.d-h i { width: .3em; height: 1.2em; border-radius: .2em; }
.d-box { border-radius: 1.2em; background: #1c1c1e; overflow: hidden; }
.screen .d-link { display: flex; align-items: center; gap: .9em; width: 100%; padding: .9em 1em; cursor: pointer; transition: background .15s; }
.d-link + .d-link { border-top: 1px solid rgba(84, 84, 88, .45); }
.d-arr { flex: none; width: 2.6em; height: 2.6em; border-radius: .7em; background: rgba(10, 132, 255, .16); color: var(--tint); display: grid; place-items: center; }
.d-arr svg { width: 1.4em; height: 1.4em; stroke-width: 2.2; }
.d-link b { display: block; color: var(--tint); font-size: 1.2em; font-weight: 600; }
.d-link small { font-size: 1em; color: var(--ink-2); }
.screen .d-link.hi, .screen .d-link:active { background: rgba(10, 132, 255, .14); }
.d-facts p { display: flex; justify-content: space-between; gap: 1em; font-size: 1.15em; padding: .9em 1em; }
.d-facts p + p { border-top: 1px solid rgba(84, 84, 88, .45); }
.d-facts p span:first-child { color: var(--ink-2); }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .3em .8em; margin-top: 2em; }
/* Done as in the app (app.css .action--primary): full width, filled blue, 44 px tall, radius 12 px, 600 15 px; Share and Delete quiet under it.
   Here 1em = 3.6% of the phone = the app's 15 px on a 390 px phone, so 3em tall. */
.screen .d-done { grid-column: 1 / -1; height: 3em; border-radius: .8em; background: var(--tint); color: #fff; font-weight: 600; font-size: 1.1em; text-align: center; cursor: pointer; }
.screen .d-act { height: 3em; font-size: 1em; font-weight: 600; color: var(--ink-2); text-align: center; cursor: pointer; }
.screen .d-act.d-del { color: var(--danger, #ff453a); }
.d-ptoast { left: 50%; bottom: 3em; transform: translate(-50%, .8em); opacity: 0; padding: .7em 1.2em; border-radius: 999px; background: #3a3a3c; font-size: 1.05em; white-space: nowrap; transition: opacity .2s, transform .25s cubic-bezier(.22, 1, .36, 1); z-index: 8; pointer-events: none; }
.d-ptoast.on { opacity: 1; transform: translate(-50%, 0); }
.d-finger { left: 0; top: 0; width: 3.6em; height: 3.6em; margin: -1.8em 0 0 -1.8em; border-radius: 50%; background: rgba(255, 255, 255, .32); box-shadow: 0 0 0 .18em rgba(255, 255, 255, .6); z-index: 9; pointer-events: none; }
/* "try it": the shelf works under the finger */
.screen { cursor: pointer; }
.screen.exploring { cursor: auto; }
.exploring .d-item { transform: translateY(104%); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.exploring .d-item.open { transform: none; }
.exploring .d-tile:active { transform: scale(.97); }
.d-x, .d-actions, .d-star { pointer-events: none; }
.exploring .d-x, .exploring .d-actions, .exploring .d-star { pointer-events: auto; }
.try { display: flex; justify-content: center; margin-top: 18px; width: var(--pw); }
.try button { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--edge); color: var(--ink); transition: background .15s; }
.try button:hover { background: rgba(255, 255, 255, .08); }

/* the screenshot that flies from the phone into Stacky */
.flyer-layer { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.flyer { position: absolute; left: 0; top: 0; width: 58px; height: 72px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); will-change: transform, opacity; }
.flyer img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* how it works, and the closing call */
.how { padding: 96px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.how-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; }
.how h2 { margin-top: 20px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.how p { margin-top: 8px; color: var(--ink-2); max-width: 22em; }
@media (max-width: 760px) { .how { padding: 64px 0; } .how-list { grid-template-columns: 1fr; gap: 32px; } }
.end { padding: 112px 0 128px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; justify-items: center; }
.end h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.end .sub { margin: 16px 0 32px; }
.foot { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px var(--pad) calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--ink-3); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot a:hover { color: var(--ink-2); }
.credit { flex-basis: 100%; font-size: 12px; color: rgba(235, 235, 245, .22); }
@media (prefers-reduced-motion: reduce) { .d-skel::after { animation: none; } }

/* the mascot's own CSS (app/styles/app.css, "Stacky" block) */
.shelfy-svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.shelfy-slab rect { transition: fill .35s ease; }
.shelfy-f { animation: shelfy-float 3.4s steps(12, jump-none) infinite; }
.shelfy-f2 { animation-delay: -.6s; }
.shelfy-f3 { animation-delay: -1.2s; }
@keyframes shelfy-float { 50% { transform: translateY(-2.4px); } }
.shelfy-fallen .shelfy-f { animation: none; }
.shelfy-z { font-weight: 800; fill: #fff; opacity: 0; }
.shelfy-sleeping .shelfy-z { animation: shelfy-zz 2.6s ease-out infinite; }
.shelfy-sleeping .shelfy-z2 { animation-delay: .9s; }
.shelfy-sleeping .shelfy-z3 { animation-delay: 1.8s; }
@keyframes shelfy-zz { 0% { opacity: 0; transform: translate(0,0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(12px,-30px) scale(1.1); } }
.shelfy-stars { opacity: 0; transition: opacity .25s ease; }
.shelfy-fallen .shelfy-stars { opacity: 1; animation: shelfy-twinkle .7s ease-in-out infinite; }
@keyframes shelfy-twinkle { 50% { opacity: .35; } }
.shelfy-tile { transition: opacity .35s ease, transform .55s cubic-bezier(.3,.8,.3,1); transform-box: fill-box; transform-origin: 50% 50%; }
.shelfy-loop { opacity: 0; }
.shelfy-paused .shelfy-f, .shelfy-paused .shelfy-z, .shelfy-paused .shelfy-stars { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .shelfy-f, .shelfy-sleeping .shelfy-z, .shelfy-fallen .shelfy-stars { animation: none; } }

.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: var(--cell); border: 1px solid var(--edge); font-size: 15px; transition: opacity .25s, transform .3s cubic-bezier(.3, .8, .3, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* /test: the three steps */
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 12px; max-width: 620px; counter-reset: s; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 20px 22px; border-radius: 22px; background: var(--cell); border: 1px solid rgba(255,255,255,.06); counter-increment: s; }
.step::before { content: counter(s); grid-row: span 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; }
.step h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; padding-top: 7px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step .btn { justify-self: start; margin-top: 12px; min-height: 46px; font-size: 16px; padding: 0 22px; }
.step .btn[aria-disabled="true"] { background: rgba(255,255,255,.08); color: var(--ink-3); pointer-events: none; }
.note { margin-top: 22px; max-width: 620px; font-size: 14px; color: var(--ink-2); }
.page-test { display: grid; grid-template-rows: auto 1fr auto; }
.page-test main { max-width: none; padding: 0; }
.page-test .hero { display: block; min-height: 0; padding-inline: var(--pad); }
.page-test .hero { padding-top: clamp(32px, 7vh, 72px); padding-bottom: 40px; }
.page-test h1 { font-size: clamp(36px, 6vw, 60px); }
.mini { width: 58px; height: 81px; margin-bottom: 22px; cursor: pointer; touch-action: manipulation; }
