/* The homepage (see docs/site-brief.md): a dark room, living light, and the real wheel. */

.home { background: #05050a; overflow-x: hidden; --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, .9, .3, 1.35); }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.home main, .home footer { position: relative; z-index: 1; }
/* A wheel's glow overhangs its box; on a narrow screen that mustn't widen the page. */
.home main { overflow-x: clip; }

/* ---------- The light (aurora.js draws it; the pools stand in without WebGL) ---------- */
#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
#aurora.on { opacity: 1; }
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#aurora.on + .sky { display: none; }
.pool { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
.p1 { left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(123, 108, 255, .6), transparent 70%); animation: drift1 64s ease-in-out infinite alternate; }
.p2 { right: -26vmax; top: -6vmax; background: radial-gradient(closest-side, rgba(255, 70, 160, .38), transparent 70%); animation: drift2 78s ease-in-out infinite alternate; }
.p3 { left: 10vmax; top: 20vmax; background: radial-gradient(closest-side, rgba(60, 130, 255, .32), transparent 70%); animation: drift1 92s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.14); } }
@keyframes drift2 { to { transform: translate3d(-11vmax, 9vmax, 0) scale(.9); } }

/* ---------- Type ---------- */
.home h2 { font-size: clamp(34px, 5.4vw, 68px); letter-spacing: -.042em; line-height: 1.02; margin: 12px 0 18px; font-weight: 700; text-wrap: balance; }
.home h2.giant { font-size: clamp(44px, 8.4vw, 124px); letter-spacing: -.05em; line-height: .96; }
.home em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background: linear-gradient(100deg, #cfc8ff 0%, #ff9fd0 55%, #ffd29a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.home .sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; color: #b9b8cc; text-wrap: pretty; }
.home .sub b { color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.home .kicker { letter-spacing: .14em; font-size: 11.5px; color: #b9b2ff; }

/* Things rise into place as they arrive. Without script they're simply there. */
.js .rise { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rise.in { opacity: 1; transform: none; filter: none; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 30; transition: background .35s, backdrop-filter .35s, border-color .35s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.topbar.stuck { background: rgba(6, 6, 11, .58); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border-bottom-color: rgba(255, 255, 255, .07); }
.topbar .nav { padding: 16px 0; }

/* ---------- 1. Hero: the whole first screen is the stage ---------- */
.hero { position: relative; min-height: max(100vh, 560px); min-height: max(100svh, 560px); display: flex; flex-direction: column; align-items: center; overflow: clip; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; padding: 0 !important; }
.hero.open { cursor: none; }
.hero-copy { position: relative; z-index: 3; text-align: center; padding: clamp(84px, 11.5vh, 140px) 20px 0; pointer-events: none; }
.home .hero .headline { font-size: clamp(50px, min(10.4vw, 17vh), 158px); letter-spacing: -.058em; line-height: .9; margin: 0; font-weight: 800; background: none; color: inherit; }
.headline span { display: inline-block; background: linear-gradient(180deg, #fff 30%, #b9b4dc); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .02em .08em; transition: opacity .4s ease, transform .5s var(--spring), filter .4s; animation: word-in 1.1s var(--ease) backwards; }
.headline span:nth-child(2) { animation-delay: .12s; }
.headline span:nth-child(3) { animation-delay: .24s; }
@keyframes word-in { from { opacity: 0; transform: translateY(.38em) rotate(2.5deg); filter: blur(14px); } }
/* While a gesture is under way the headline is a status line: only the current word is lit. */
.headline.live span { opacity: .2; filter: blur(1.5px); }
.headline.live span.on { opacity: 1; filter: drop-shadow(0 0 34px rgba(190, 170, 255, .7)); transform: translateY(-.03em) scale(1.035); }
.hero .lead { font-size: clamp(16px, 1.9vw, 21px); color: #ecebf7; text-shadow: 0 1px 14px rgba(5, 5, 10, .6); margin: 22px auto 0; max-width: 560px; text-wrap: pretty; animation: word-in 1.1s var(--ease) .4s backwards; transition: opacity .3s; }
/* The wheel opens over these words: they step back while it's there. */
.hero.busy .lead { opacity: 0; }
@media (max-height: 700px) { .hero-copy { padding-top: 76px; } .hero .lead { margin-top: 12px; } }
.hero .lead em { font-size: 1.08em; }

/* The wheel asleep: a bead of glass that breathes, and blooms when pressed. */
.bead { position: absolute; left: 50%; top: 60%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .05) 46%), rgba(22, 20, 40, .34);
  backdrop-filter: blur(18px) saturate(1.9); -webkit-backdrop-filter: blur(18px) saturate(1.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), inset 0 2px 3px rgba(255, 255, 255, .4), inset 0 -26px 34px -24px rgba(0, 0, 0, .5), 0 30px 80px -10px rgba(110, 80, 255, .55);
  animation: breathe 8s ease-in-out infinite; transition: opacity .25s, transform .3s var(--spring); }
.bead i { position: absolute; inset: 22px; border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .13); }
.bead i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 12deg, #d9d2ff, #8f7dff 16%, #5a8cff 22%, transparent 23%); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); animation: spin 14s linear infinite; }
.bead b { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px rgba(255, 255, 255, .9); animation: lean 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lean { 0%, 100% { transform: translate(7px, -7px); } 50% { transform: translate(11px, -11px); } }
.hero.busy .bead { opacity: 0; transform: scale(.6); }

.hero .orb-host { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 4; }
#ghost { z-index: 5; position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgba(255, 255, 255, .16), 0 8px 26px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: transform 1s cubic-bezier(.5, 0, .2, 1), opacity .4s, width .2s, height .2s, margin .2s, box-shadow .2s; will-change: transform; }
#ghost.on { opacity: .92; }
#ghost.down { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 14px rgba(190, 175, 255, .3), 0 8px 26px rgba(0, 0, 0, .5); }

.receipt, .story-receipt { display: flex; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 999px; background: rgba(10, 9, 20, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 18px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); font-size: 14.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s, transform .45s var(--spring); }
.receipt { z-index: 6; position: absolute; left: 50%; top: 0; font-size: 16px; padding: 13px 20px; transform: translate(-50%, -50%) scale(.8); }
.receipt.on { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .16s; }
.receipt b, .story-receipt b { font-weight: 650; }
.receipt kbd, .story-receipt kbd, .win-fired kbd { font: 600 12.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, .12); color: #f0edff; }
.receipt .t { color: #c9bfff; font-variant-numeric: tabular-nums; font-weight: 650; }
.receipt .demo { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ok { width: 18px; height: 18px; border-radius: 50%; background: #5cf0a8; color: #06140d; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }

.hero-foot { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4.5vh, 46px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 20px; pointer-events: none; animation: word-in 1.1s var(--ease) .6s backwards; }
.hero-foot a { pointer-events: auto; }
.hint { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; color: #e3e1f4; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(10, 9, 20, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .3s; }
.hint b { color: #fff; font-weight: 650; }
.hint small { display: block; font-size: 12px; color: #c4c2d8; margin-top: 1px; }
.hero.busy .hint, .hero.busy .tally { opacity: 0; }
/* A little mouse whose right button is being held. */
.mouse { width: 22px; height: 32px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); position: relative; flex: none; }
.mouse::before { content: ""; position: absolute; left: 50%; top: 4px; width: 1.5px; height: 9px; background: rgba(255, 255, 255, .5); }
.mouse i { position: absolute; right: 2.5px; top: 2.5px; width: 7.5px; height: 11px; border-radius: 2px 9px 2px 2px; background: #c9bfff; animation: held 2.8s ease-in-out infinite; }
@keyframes held { 0%, 18%, 82%, 100% { opacity: .15; } 30%, 70% { opacity: 1; box-shadow: 0 0 12px #c9bfff; } }
.tally { color: #c8c6dc; font-size: 14px; margin: 0; min-height: 0; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.tally:empty { display: none; }
.tally b { color: #fff; font-weight: 650; }
.hero-foot .fine { margin-top: 0; text-wrap: balance; color: #f1f0f8; text-shadow: 0 1px 10px rgba(5, 5, 10, .8); }
.scroll-cue { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(18px, 4.5vh, 46px); z-index: 3; width: 26px; height: 44px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.scroll-cue i { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- 2. The story: the words scroll, the wheel stays and acts each step out ---------- */
/* The three steps are ordinary text that moves with the visitor's hand, so it can never stall,
   blur or stutter. The wheel beside them is pinned and plays each step in its own time as that
   step reaches the middle of the screen (home.js: story()). */
.story { position: relative; padding: 0 0 14vh !important; }
.story-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); width: min(1180px, 100% - 32px); }
.story-steps article { position: relative; isolation: isolate; min-height: 64vh; min-height: 64svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
/* The step being read is lit; the others wait, dimmed but readable. Nothing moves but the page. */
.js .story-steps article { opacity: .22; transition: opacity .55s ease; }
.js .story-steps article.on { opacity: 1; }
.story-steps h2 { font-size: clamp(64px, 8.2vw, 116px); letter-spacing: -.055em; line-height: .95; margin: 8px 0 20px; }
.story-steps p b { color: #fff; font-weight: 650; }
.story-steps p { color: #c2c0d6; font-size: clamp(15.5px, 1.5vw, 18.5px); max-width: 480px; margin: 0; }
.story-steps { grid-column: 2; }
/* The wheel and the rail are fixed to the screen (home.js places them over the grid's outer
   columns) and shown only while the steps are being read. Fixed, not sticky: Safari keeps fixed
   layers perfectly still while the page scrolls. */
.story-stage, .story-rail { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.story.inview :is(.story-stage, .story-rail) { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.story-stage { position: fixed; z-index: 2; top: 0; left: var(--stage-x, 55%); width: var(--stage-w, 40%); pointer-events: none; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.story-wheel { position: relative; display: grid; place-items: center; }
.story-wheel .orb-host { position: relative; }
.story-receipt { position: absolute; left: 50%; top: 50%; font-size: 17px; padding: 14px 22px; transform: translate(-50%, -50%) scale(.8); }
.story-receipt.on { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .18s; }
/* The rail: three marks, one per step, and a line that fills as the page moves through them. */
.story-rail { position: fixed; z-index: 2; top: 0; left: var(--rail-x, 16px); width: 96px; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 34px; }
.story-rail a { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; text-decoration: none; color: #8e8ca6; font: 650 11.5px var(--font); letter-spacing: .12em; text-transform: uppercase; transition: color .35s; }
.story-rail b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--font); letter-spacing: 0; color: #c9c7dc; background: #0d0c16; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); transition: color .35s, background .35s, box-shadow .35s, transform .45s var(--spring); }
.story-rail a.past b { color: #fff; box-shadow: inset 0 0 0 1.5px #b9a8ff; }
.story-rail a.on { color: #fff; }
.story-rail a.on b { color: #0b0a14; background: linear-gradient(135deg, #e3dcff, #ff9fd0); box-shadow: 0 0 26px rgba(185, 168, 255, .6); transform: scale(1.12); }
.story-track { position: absolute; left: 19px; top: calc(50% - 72px); height: 144px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.story-track i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(#cfc8ff, #ff9fd0); transform-origin: top; transform: scaleY(0); }
/* Short screens (a phone on its side): the steps need less room. */
@media (max-height: 560px) { .story-steps article { min-height: 92vh; } .story-steps h2 { font-size: 30px; } }
/* Without script the wheel can't act anything out: the three steps simply read in order. */
html:not(.js) :is(.story-stage, .story-rail) { display: none; } html:not(.js) .story-grid { grid-template-columns: 1fr; } html:not(.js) .story-steps article { min-height: 0; }
/* …and the pieces only the script can fill are left out rather than shown empty. */
html:not(.js) :is(.bead, .hint, .scroll-cue, .app-tabs, .app-show, .live-wheel, .readout, .yours-wheel, .yours-pick) { display: none; }

/* ---------- Sections ---------- */
.home section { padding: clamp(46px, 7vh, 86px) 0; }

/* ---------- 3. Apps: the wheel over the app it belongs to ---------- */
.apps { --app: #4c8df6; }
.app-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.app-tabs button { font: 600 14px var(--font); color: #c6c4da; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); border: 0; padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: color .2s, background .25s, box-shadow .25s, transform .25s var(--spring); }
.app-tabs button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.app-tabs button:hover { color: #fff; transform: translateY(-2px); }
.app-tabs button.on { color: #fff; background: color-mix(in srgb, var(--c) 30%, rgba(10, 10, 20, .5)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 75%, transparent), 0 12px 34px -10px var(--c); }
.app-show { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .9fr); gap: clamp(26px, 5vw, 70px); align-items: center; margin-top: 34px; }
@media (max-width: 940px) { .app-show { grid-template-columns: 1fr; } }

.tilt { transform: perspective(1100px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform .5s var(--ease); will-change: transform; }
.tilt.live-tilt { transition: transform .08s linear; }

.window { position: relative; aspect-ratio: 16 / 10.4; border-radius: 18px; background: linear-gradient(170deg, rgba(40, 40, 60, .55), rgba(14, 14, 22, .7)); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .2), 0 60px 120px -40px color-mix(in srgb, var(--app) 60%, #000), 0 30px 60px -30px rgba(0, 0, 0, .8); transition: box-shadow .8s; }
.win-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.win-bar i:first-child { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; font-size: 12.5px; color: #a8a6bd; font-weight: 500; }
.win-body { position: absolute; inset: 39px 0 0 0; overflow: hidden; border-radius: 0 0 18px 18px; --ink: rgba(255, 255, 255, .15); --ink2: rgba(255, 255, 255, .08); animation: body-in .5s var(--ease); }
@keyframes body-in { from { opacity: 0; transform: scale(.985); } }
.window.fire .win-body { animation: fire .5s ease-out; }
@keyframes fire { 0% { box-shadow: inset 0 0 0 2px var(--app), inset 0 0 90px color-mix(in srgb, var(--app) 45%, transparent); } 100% { box-shadow: inset 0 0 0 2px transparent, inset 0 0 90px transparent; } }
.win-fired { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px; border-radius: 12px; background: rgba(8, 8, 16, .78); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app) 60%, transparent), 0 14px 34px rgba(0, 0, 0, .5); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .2s, transform .4s var(--spring); pointer-events: none; }
.win-fired.on { opacity: 1; transform: none; }
.win-wheel { position: absolute; right: -7%; bottom: -13%; z-index: 4; }
@media (max-width: 940px) { .win-wheel { right: 50%; transform: translateX(50%); bottom: -34%; } .window { margin-bottom: 30%; } }
.win-wheel .orb-host { position: relative; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }

/* Sketches of the apps, drawn with boxes: enough to say which app it is. */
.sk { position: absolute; inset: 0; display: grid; font-size: 0; }
.sk i, .sk b { display: block; border-radius: 5px; background: var(--ink); }
.sk .dim { background: var(--ink2); }
.sk .tint { background: color-mix(in srgb, var(--app) 55%, transparent); }
.sk .lines { display: grid; gap: 9px; align-content: start; }
.sk .lines i { height: 8px; width: var(--w, 80%); }
.sk-browser { grid-template-rows: 34px 36px 1fr; }
.sk-browser .tabs { display: flex; gap: 6px; align-items: end; padding: 0 12px; background: rgba(255, 255, 255, .03); }
.sk-browser .tabs i { width: 17%; height: 24px; border-radius: 8px 8px 0 0; background: var(--ink2); }
.sk-browser .tabs i.on { background: var(--ink); box-shadow: inset 0 2px 0 var(--app); }
.sk-browser .url { padding: 7px 14px; } .sk-browser .url i { height: 22px; border-radius: 11px; background: var(--ink2); }
.sk-browser .page { padding: 16px 9% 0; display: grid; gap: 16px; align-content: start; }
.sk-browser .page .hero-b { height: 78px; border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--app) 60%, transparent), rgba(255, 255, 255, .06)); }
.sk-browser .page .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .sk-browser .page .cols i { height: 62px; border-radius: 10px; background: var(--ink2); }
.sk-design { grid-template-columns: 17% 1fr 19%; }
.sk-design .side { padding: 14px 12px; border-right: 1px solid rgba(255, 255, 255, .06); } .sk-design .side.r { border: 0; border-left: 1px solid rgba(255, 255, 255, .06); }
.sk-design .canvas { position: relative; background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 18px 18px; }
.sk-design .frame { position: absolute; border-radius: 8px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.sk-design .f1 { left: 12%; top: 14%; width: 38%; height: 62%; } .sk-design .f2 { left: 56%; top: 26%; width: 32%; height: 46%; box-shadow: 0 0 0 1.5px var(--app); }
.sk-design .f1 i { position: absolute; left: 12%; right: 12%; top: 12%; height: 30%; border-radius: 6px; background: color-mix(in srgb, var(--app) 55%, transparent); } .sk-design .f1 b { position: absolute; left: 12%; top: 52%; width: 50%; height: 8px; }
.sk-design .f2 i { position: absolute; left: 22%; top: 18%; width: 56%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--app), #ff9fd0); }
.sk-design.photo .f1 { left: 16%; top: 12%; width: 68%; height: 72%; background: linear-gradient(140deg, #23324f, color-mix(in srgb, var(--app) 70%, #000) 55%, #ffb37a); } .sk-design.photo .f1 i, .sk-design.photo .f1 b, .sk-design.photo .f2 { display: none; }
.sk-design .tools { display: grid; gap: 8px; align-content: start; justify-items: center; padding: 12px 0; border-right: 1px solid rgba(255, 255, 255, .06); } .sk-design .tools i { width: 20px; height: 20px; border-radius: 6px; } .sk-design.photo { grid-template-columns: 44px 1fr 21%; }
.sk-code { grid-template-columns: 42px 19% 1fr; grid-template-rows: 1fr 26%; }
.sk-code .act { grid-row: 1 / 3; display: grid; gap: 12px; align-content: start; justify-items: center; padding: 14px 0; background: rgba(0, 0, 0, .25); } .sk-code .act i { width: 18px; height: 18px; border-radius: 5px; }
.sk-code .tree { grid-row: 1 / 3; padding: 14px 12px; border-right: 1px solid rgba(255, 255, 255, .06); }
.sk-code .ed { padding: 16px 18px; display: grid; gap: 9px; align-content: start; } .sk-code .ed div { display: flex; gap: 7px; padding-left: calc(var(--in, 0) * 16px); } .sk-code .ed i { height: 8px; width: var(--w); background: var(--c, var(--ink)); opacity: .9; }
.sk-code .term { border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .28); padding: 12px 16px; }
.sk-chat { grid-template-columns: 24% 1fr; }
.sk-chat .chan { padding: 14px 12px; background: color-mix(in srgb, var(--app) 16%, rgba(0, 0, 0, .25)); }
.sk-chat .msgs { padding: 16px 18px; display: grid; gap: 15px; align-content: start; } .sk-chat .msgs div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; } .sk-chat .msgs b { width: 28px; height: 28px; border-radius: 8px; background: var(--c, var(--ink)); } .sk-chat .msgs span { display: grid; gap: 7px; align-content: center; } .sk-chat .msgs span i { height: 8px; width: var(--w); }
.sk-sheet { grid-template-rows: 30px 1fr; }
.sk-sheet .fx { margin: 6px 12px; border-radius: 6px; background: var(--ink2); }
.sk-sheet .grid { position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .07) calc(12.5% - 1px) 12.5%), repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, .07) 25px 26px); }
.sk-sheet .grid i { position: absolute; left: 25%; top: 52px; width: 12.5%; height: 26px; border-radius: 0; background: color-mix(in srgb, var(--app) 30%, transparent); box-shadow: inset 0 0 0 2px var(--app); }
.sk-sheet .grid b { position: absolute; left: 12.5%; width: var(--w); top: var(--t); height: 8px; margin: 9px 6px; }
.sk-edit { grid-template-rows: 54% 1fr; }
.sk-edit .mon { margin: 12px auto 8px; aspect-ratio: 16 / 9; height: calc(100% - 20px); border-radius: 8px; background: linear-gradient(150deg, #1b2440, color-mix(in srgb, var(--app) 65%, #000), #ff8fb8); }
.sk-edit .tl { position: relative; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 6px; padding: 10px 12px; align-content: start; }
.sk-edit .tl div { position: relative; height: 18px; border-radius: 4px; background: rgba(255, 255, 255, .03); } .sk-edit .tl div i { position: absolute; left: var(--x); width: var(--w); top: 0; bottom: 0; border-radius: 4px; background: var(--c, var(--ink)); }
.sk-edit .tl::after { content: ""; position: absolute; left: 44%; top: 4px; bottom: 4px; width: 2px; background: #ff5f57; box-shadow: 0 0 10px #ff5f57; animation: play 9s linear infinite; }
@keyframes play { from { left: 14%; } to { left: 86%; } }

.app-name { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: color-mix(in srgb, var(--app) 70%, #fff); margin-bottom: 10px; transition: color .6s; }
#app-keys { list-style: none; margin: 0; padding: 0; }
#app-keys li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 13px; font-size: 15.5px; color: #cdcbe0; cursor: default; transition: background .2s, transform .3s var(--spring), color .2s; animation: row-in .5s var(--ease) backwards; animation-delay: calc(var(--k) * 35ms); }
@keyframes row-in { from { opacity: 0; transform: translateX(16px); } }
#app-keys li .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #cfcde0; flex: none; transition: background .25s, color .25s, box-shadow .25s; }
#app-keys li .ic svg { width: 15px; height: 15px; }
#app-keys li span { flex: 1; }
#app-keys li kbd { font: 600 12.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #d5d3e6; }
#app-keys li.on { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
#app-keys li.on .ic { background: var(--app); color: #fff; box-shadow: 0 0 22px var(--app); }
.apps .note { color: #b4b2c8; }

.marquee { margin-top: 0; display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
/* The row holds the names twice; the padding makes half its width exactly one copy and its gap, so the loop has no seam. */
.marquee .row { display: flex; gap: 10px; padding-right: 10px; width: max-content; animation: slide 150s linear infinite; }
.marquee .row.rev { animation-direction: reverse; animation-duration: 185s; }
.marquee .row span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; padding: 11px 20px; border-radius: 999px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #d7d5e8; white-space: nowrap; }
.marquee .row span img { width: 22px; height: 22px; margin-left: -6px; border-radius: 6px; }
.marquee .row.slow { animation-duration: 210s; }
.marquee .row:empty { display: none; }
.marquee-note { text-align: center; color: #a3a1ba; font-size: 15px; margin: clamp(44px, 7vh, 72px) auto 16px; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .row { animation-play-state: paused; }

/* ---------- 5. The price: the one surface that glows ---------- */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: clamp(30px, 5vw, 64px); border-radius: 40px; background: linear-gradient(135deg, rgba(140, 120, 255, .22), rgba(10, 10, 20, .72) 58%); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); isolation: isolate; }
.price-card::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; z-index: -1; background: conic-gradient(from var(--turn), rgba(255, 255, 255, .1), #d9d2ff 10%, #ff9fd0 16%, #5a8cff 24%, rgba(255, 255, 255, .1) 38%, rgba(255, 255, 255, .1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: turn 8s linear infinite; }
@keyframes turn { to { --turn: 360deg; } }
.amount { font-size: clamp(150px, 26vw, 330px); font-weight: 800; letter-spacing: -.07em; line-height: .8; display: flex; align-items: flex-start; background: linear-gradient(170deg, #fff 25%, #c9bfff 60%, #ff9fd0); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 14px 0 26px -.04em; filter: drop-shadow(0 20px 60px rgba(150, 120, 255, .5)); }
.amount sup { font-size: .32em; letter-spacing: 0; margin: .16em .04em 0 0; }
.amount small { align-self: flex-end; font-size: 20px; letter-spacing: 0; font-weight: 500; color: #c2c0d6; -webkit-text-fill-color: #c2c0d6; margin: 0 0 .7em .5em; white-space: nowrap; }
.price-main p { color: #c2c0d6; font-size: 17px; margin: 0; max-width: 420px; text-wrap: pretty; }
.home h2.kicker { margin: 0; line-height: 1.5; text-wrap: wrap; }
.price-side { display: grid; gap: 26px; }
.price-side .ticks { grid-template-columns: 1fr; gap: 12px; font-size: 16.5px; color: #e3e1f2; }
.price-side .btn { padding: 17px 26px; font-size: 16px; }
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; gap: 26px; border-radius: 30px; } }

/* ---------- The last word ---------- */
.last { text-align: center; padding: clamp(40px, 6vh, 70px) 0 clamp(64px, 10vh, 110px) !important; }
.last h2 { max-width: 1000px; margin: 0 auto 34px; }
.home .faq details { border-color: rgba(255, 255, 255, .1); }
/* Download and the questions are short: on a wide screen they share the width instead of each
   leaving half of it empty. */
@media (min-width: 980px) {
  .home .faq .wrap > div:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  .home .faq details:nth-last-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  #download { padding-bottom: 0 !important; }
}
.home footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); border-top-color: rgba(255, 255, 255, .08); background: rgba(5, 5, 10, .6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.home .card { background: rgba(12, 12, 20, .5); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- For everyone ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 40; padding: 11px 18px; border-radius: 999px; background: #fff; color: #07070b; font: 600 14px var(--font); text-decoration: none; }
.skip:focus { top: 12px; }
/* Fingers need more room than a cursor does. */
@media (pointer: coarse) {
  .topbar .nav > a:not(.btn) { padding: 12px 0; } .home .faq summary { padding: 10px 0; margin: -10px 0; }
  .app-tabs button { min-height: 44px; } .dots button { position: relative; } .dots button::after { content: ""; position: absolute; inset: -9px; }
}
@media (forced-colors: active) { .amount, .headline span, .home em { forced-color-adjust: none; background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; filter: none; } }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .hero-copy { padding-top: 88px; }
  .bead { top: 57%; width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .hint { font-size: 13.5px; padding: 8px 14px 8px 10px; } .hint small { font-size: 11.5px; }
  .scroll-cue { display: none; }
  .amount small { font-size: 16px; }
  /* The hero's small print breaks between its two halves, not mid-list. */
  .hero-foot .fine span { display: block; } .hero-foot .fine i { display: none; }
  /* The app window is taller here, so its wheel sits inside it, and what was just fired is
     named at the top, clear of the wheel. */
  .window { aspect-ratio: 4 / 3.5; margin-bottom: 15%; }
  .win-wheel { bottom: -13%; }
  .win-fired { left: 12px; top: 50px; bottom: auto; }
  .home .dl { gap: 14px; padding: 20px; } .home .dl .os { width: 46px; height: 46px; } .home .dl p { text-wrap: balance; }
}
/* The phrase a heading leans on stays in one piece when the heading wraps. */
.home h2 em { white-space: nowrap; }
.fine i { font-style: normal; }
/* Said only where Flick can't be installed: on a phone or a tablet. */
.on-phone { display: none; }
@media (hover: none) and (pointer: coarse) {
  .on-phone { display: block; max-width: 640px; margin: -12px 0 26px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #c9c7dc; font-size: 15px; }
}

/* ---------- Reduce motion: the light holds still, nothing loops, everything still works ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pool, .bead, .bead i::after, .bead b, .mouse i, .scroll-cue i, .marquee .row, .price-card::before, .pair i::after, .pulse i, .clicks span, .sk-edit .tl::after, .headline span, .hero .lead, .hero-foot { animation: none !important; }
  .js .rise { opacity: 1; transform: none; filter: none; transition: none; }
  #ghost { display: none; }
  .marquee .row { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; } .marquee :is(.row.rev, .row.slow) { display: none; } .marquee { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); max-height: 190px; }
  .hero.busy .lead { opacity: 1; }
  .js .story-steps article { opacity: 1; transition: none; }
  .tilt { transform: none !important; }
}
