/* Unfold landing page. Same design system as the app (src/style.css there): color is state (one flat mood color per
   section, tone-on-tone UI), one type family, chunky 3D buttons, grain over everything. Tokens and components are the
   app's own; only the layout is new (scrolling sections instead of phone screens). No full-screen rays, anywhere. */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #14102F;
  --paper: #FFF8EA;
  --blue: #2D3BFF; --pink: #FF5CA8; --lime: #C9F23A; --sun: #FFD21F; --tang: #FF7A2B;
  --violet: #6B3DFF; --coral: #FF6B5B; --sky: #44C8FF;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(22px, 5.5vw, 64px);
  --gap: clamp(60px, 9vw, 120px);
  --top: max(env(safe-area-inset-top, 0px), 14px);
  font-family: 'Bricolage', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #0C0924; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: clip; background: #0C0924; color: #fff; touch-action: manipulation; }
body::after { content: ''; position: fixed; inset: 0; z-index: 300; pointer-events: none; background-image: var(--grain); background-size: 128px 128px; opacity: .4; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- themes: one mood color each (the app's values) */
.t-blue   { --bg: #2D3BFF; --fg: #fff; --soft: rgba(255,255,255,.8); --chip: rgba(255,255,255,.17); --line: rgba(255,255,255,.42); --btn: #C9F23A; --btn-fg: var(--ink); --shade: #7F9E12; --soon: var(--sun); --dot: rgba(255,255,255,.28); }
.t-violet { --bg: #6B3DFF; --fg: #fff; --soft: rgba(255,255,255,.82); --chip: rgba(255,255,255,.17); --line: rgba(255,255,255,.42); --btn: #FFD21F; --btn-fg: var(--ink); --shade: #A9830A; --soon: var(--pink); --dot: rgba(255,255,255,.28); }
.t-pink   { --bg: #FF5CA8; --fg: var(--ink); --soft: rgba(20,16,47,.76); --chip: rgba(20,16,47,.12); --line: rgba(20,16,47,.4); --btn: #C9F23A; --btn-fg: var(--ink); --shade: #6C8A0B; --soon: var(--sun); --dot: rgba(255,255,255,.4); }
.t-lime   { --bg: #C9F23A; --fg: var(--ink); --soft: rgba(20,16,47,.74); --chip: rgba(20,16,47,.12); --line: rgba(20,16,47,.4); --btn: var(--ink); --btn-fg: #C9F23A; --shade: #040214; --soon: var(--pink); --dot: rgba(20,16,47,.18); }
.t-sun    { --bg: #FFD21F; --fg: var(--ink); --soft: rgba(20,16,47,.76); --chip: rgba(20,16,47,.11); --line: rgba(20,16,47,.4); --btn: #2D3BFF; --btn-fg: #fff; --shade: #141F9B; --soon: var(--pink); --dot: rgba(20,16,47,.16); }
.t-ink    { --bg: #14102F; --fg: #fff; --soft: rgba(255,255,255,.72); --chip: rgba(255,255,255,.12); --line: rgba(255,255,255,.35); --btn: #C9F23A; --btn-fg: var(--ink); --shade: #7F9E12; --soon: var(--sun); --dot: rgba(255,255,255,.12); }

/* ---- sections: stacked like sheets, each one overlapping the last with rounded top corners */
.sec { position: relative; isolation: isolate; overflow: clip; background: var(--bg); color: var(--fg); padding: var(--gap) var(--pad) calc(var(--gap) + 36px); transition: background-color .5s var(--ease), color .3s; }
.sec + .sec { margin-top: -36px; border-radius: 36px 36px 0 0; }
.sec.last { padding-bottom: calc(var(--gap) * .6); }
.inner { position: relative; width: min(1120px, 100%); margin: 0 auto; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev > :first-child { order: 2; }
}
/* halftone corners: the same dots the app uses on its screens */
.dots-tr::before, .dots-bl::after { content: ''; position: absolute; z-index: -1; width: min(80%, 520px); height: 300px; pointer-events: none; background: radial-gradient(circle, var(--dot) 2.4px, transparent 3px) 0 0 / 17px 17px; }
.dots-tr::before { top: 0; right: 0; -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 72%); }
.dots-bl::after { bottom: 36px; left: 0; -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 72%); }

/* ---- shared parts */
.topbar { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 10px; }
.ib { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--chip); transition: transform .12s var(--ease); }
.ib svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ib.is-down { transform: scale(.88); }
.mark { display: inline-flex; align-items: center; gap: 8px; font-size: 32px; font-weight: 800; font-stretch: 75%; letter-spacing: -.015em; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--chip); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.hl { font-size: clamp(50px, 14vw, 78px); font-weight: 800; font-stretch: 75%; line-height: .9; letter-spacing: -.01em; word-spacing: .05em; text-wrap: balance; }
.hl.xl { font-size: clamp(60px, 19vw, 150px); }
.hl.m { font-size: clamp(46px, 12.4vw, 104px); }
/* The font's optical-size axis defaults to its ultra-tight display cut at big sizes (opsz 96 is 17% narrower than opsz 36),
   and negative tracking on top made letters touch. Pinned here so every glyph keeps its own space. */
.hl, .mark, .step h3, .step .n, .card .q, .moment .word, .sheet h2, .vibe .giant .w, .pcard input, .rollout .big { font-optical-sizing: none; font-variation-settings: 'opsz' 36; }
.sub { margin-top: 16px; max-width: 23em; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.28; font-weight: 500; color: var(--soft); text-wrap: pretty; }
.fine { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--soft); text-wrap: pretty; }
.fine.mid { text-align: center; }

.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 68px; padding: 0 26px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); font-size: 24px; font-weight: 800; font-stretch: 80%; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 6px 0 var(--shade); transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .15s, background-color .2s, opacity .2s; }
.btn.is-down { transform: translateY(5px) scale(.985); box-shadow: 0 1px 0 var(--shade); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 3px var(--line); }
.btn.ghost.is-down { transform: scale(.97); box-shadow: inset 0 0 0 3px var(--line); }
.btn.sm { min-height: 54px; font-size: 20px; }
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cta { display: grid; gap: 12px; max-width: 460px; margin-top: 26px; }
.cta .fine { margin-top: 0; text-align: center; }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.store { gap: 8px; padding: 0 14px; font-size: 18px; }
.soon { display: inline-block; padding: 3px 9px 4px; border-radius: 999px; background: var(--soon); color: var(--ink); font-size: 13px; font-style: normal; font-weight: 800; font-stretch: 85%; line-height: 1.1; rotate: -6deg; }
.link { align-self: center; padding: 10px 14px; font-size: 17px; font-weight: 700; color: var(--soft); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- art animation hooks (see art.js) */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.68); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes tumble { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }
@keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg) translateY(-6px); } }
@keyframes poploop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.bob { animation: bob 3.4s ease-in-out infinite; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
.twinkle > * { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.twinkle > *:nth-child(2) { animation-delay: -.7s; } .twinkle > *:nth-child(3) { animation-delay: -1.4s; } .twinkle > *:nth-child(4) { animation-delay: -2s; }
.drift { animation: drift 3.2s ease-in-out infinite; }
.tumble { transform-box: view-box; animation: tumble 4.2s ease-in-out infinite; }
.sway { transform-box: view-box; animation: sway 1.6s ease-in-out infinite; }
.pop-loop { transform-box: view-box; animation: poploop 1.8s ease-in-out infinite; }

/* ---- blobs */
.blob { display: block; width: 100%; height: 100%; overflow: visible; }
.bl { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--s) * 1%); aspect-ratio: 1; translate: -50% -50%; rotate: var(--r, 0deg); animation: bob 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); cursor: pointer; }
.bl.boing { animation: boing .6s var(--spring); }
@keyframes boing { 0% { transform: scale(1); } 25% { transform: scale(1.2, .78); } 50% { transform: scale(.86, 1.16); } 75% { transform: scale(1.06, .96); } 100% { transform: scale(1); } }

/* ---- entrance beats: the hero plays on load, every other section plays once when it scrolls in */
@keyframes popin { from { opacity: 0; transform: scale(.82) translateY(24px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes slamin { from { opacity: 0; transform: translateY(34px) rotate(-3deg) scale(.94); } 60% { opacity: 1; transform: translateY(-4px) rotate(.6deg); } to { opacity: 1; transform: none; } }
@keyframes upin { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.pop-in { animation: popin .7s var(--spring) backwards; animation-delay: var(--dl, .08s); }
.slam-in { animation: slamin .6s var(--ease) backwards; animation-delay: var(--dl, .22s); }
.up-in { animation: upin .5s var(--ease) backwards; animation-delay: var(--dl, .4s); }
.js .sec:not(.in) :is(.slam-in, .up-in, .pop-in) { animation-play-state: paused; }

/* ---- 1 · home */
.home { min-height: 100svh; display: flex; padding-top: calc(var(--top) + 10px); }
.home .inner { display: flex; flex-direction: column; }
.home-grid { flex: 1; display: grid; gap: 14px; align-content: center; padding-top: 6px; }
.blobs { order: -1; position: relative; width: min(100%, 440px); aspect-ratio: 1 / .72; margin: 0 auto; }
@media (min-width: 880px) {
  .home-grid { grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
  .blobs { order: 0; aspect-ratio: 1; width: min(100%, 540px); margin: 0 0 0 auto; }
  .hl.xl { font-size: clamp(100px, 11.4vw, 150px); }
}

/* ---- 2 · players (the app's player cards) */
.pcards { display: grid; gap: 14px; }
.pcard { position: relative; display: grid; grid-template-columns: 108px 1fr; align-items: center; column-gap: 14px; padding: 16px 18px 16px 12px; border-radius: 36px; background: var(--pc); color: var(--pc-fg); transition: transform .3s var(--spring); }
.pcard.p1 { --pc: #2D3BFF; --pc-fg: #fff; --pc-chip: rgba(255,255,255,.2); --pc-line: rgba(255,255,255,.4); transform: rotate(-1.2deg); }
.pcard.p2 { --pc: #FF5CA8; --pc-fg: var(--ink); --pc-chip: rgba(20,16,47,.13); --pc-line: rgba(20,16,47,.35); transform: rotate(1.2deg); }
.pcard:focus-within { transform: rotate(0) scale(1.02); }
.pcard .av { width: 108px; height: 108px; margin-left: -4px; }
.pcard input { width: 100%; min-width: 0; padding: 4px 0 2px; border: 0; border-bottom: 4px solid var(--pc-line); background: transparent; color: inherit; font-size: 36px; font-weight: 800; font-stretch: 78%; letter-spacing: -.01em; outline: none; border-radius: 0; }
.pcard input::placeholder { color: inherit; opacity: .45; }
.pcard input:focus { border-bottom-color: currentColor; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.pchip { min-height: 42px; padding: 0 15px; border-radius: 999px; background: var(--pc-chip); color: inherit; font-size: 17px; font-weight: 700; transition: transform .15s var(--spring), background .2s, color .2s; }
.pchip[aria-checked="true"] { background: var(--ink); color: #fff; transform: scale(1.06); }
.say { grid-column: 1 / -1; display: block; width: 100%; min-height: 68px; margin-top: 12px; padding: 12px 16px; border-radius: 22px; background: var(--pc-chip); color: inherit; font-size: 18px; font-weight: 700; line-height: 1.15; text-align: left; transition: transform .15s var(--spring); }
.say.is-down { transform: scale(.98); }

/* ---- 3 · vibe (the app's mood slider: face + whole-section color + giant label, all tone-on-tone) */
.sec.vibe { --bg: var(--v-bg, #C9F23A); --fg: var(--v-ink, #1D3A0E); --soft: var(--v-ink, #1D3A0E); --chip: rgba(0,0,0,.1); --btn: var(--v-ink, #1D3A0E); --btn-fg: var(--v-bg, #C9F23A); --shade: rgba(0,0,0,.28); --dot: rgba(0,0,0,.1); transition: none; }
.vibe .sub { opacity: .85; }
.vibe-stage { width: 100%; max-width: 520px; margin: 0 auto; }
.vibe .bigface { display: grid; place-items: center; }
.vibe .bigface svg { width: min(80vw, 340px); height: auto; overflow: visible; }
.vibe .giant { position: relative; height: clamp(96px, 26vw, 140px); margin-top: 4px; overflow: hidden; }
.vibe .giant .w { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(92px, 31vw, 140px); font-weight: 800; font-stretch: 75%; letter-spacing: 0; line-height: 1; color: var(--v-tone, #9DC31F); white-space: nowrap; }
.vibe .tagline { min-height: 28px; margin: 4px 0 16px; text-align: center; font-size: 19px; font-weight: 700; }
.rail { position: relative; height: 76px; margin-bottom: 4px; touch-action: pan-y; cursor: grab; }
.rail::before { content: ''; position: absolute; left: 32px; right: 32px; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--v-ink, #1D3A0E); opacity: .2; }
.rail .det { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--v-ink, #1D3A0E); opacity: .38; }
.rail .thumb { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--v-ink, #1D3A0E); color: var(--v-bg, #C9F23A); box-shadow: 0 8px 0 rgba(0,0,0,.16); will-change: left; }
.rail .thumb svg { position: absolute; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .15s, transform .25s var(--spring); }
.rail .thumb svg:not(.on) { opacity: 0; transform: scale(.4) rotate(-40deg); }
.rail.drag .thumb { transform: scale(1.12); }
.names { display: flex; justify-content: space-between; margin: 0 6px 22px; font-size: 16px; font-weight: 700; }
.names span { opacity: .55; cursor: pointer; transition: opacity .2s; }
.names span.on { opacity: 1; }

/* ---- 4 · roll */
.diecol { width: min(100%, 440px); margin: 0 auto; text-align: center; }
.dieart { position: relative; }
.dieart .art { display: block; width: 100%; height: auto; overflow: visible; }
.die-hit { position: absolute; inset: 12% 8% 6%; border-radius: 42%; }
.dieart.rolling .tumble { animation: dieroll 1.1s var(--ease) both; }
@keyframes dieroll { 0% { transform: translateY(0) rotate(-3deg); } 18% { transform: translateY(-64px) rotate(-24deg) scale(1.03); } 36% { transform: translateY(0) rotate(14deg) scale(1.08, .92); } 52% { transform: translateY(-34px) rotate(-12deg); } 68% { transform: translateY(0) rotate(7deg) scale(1.05, .95); } 82% { transform: translateY(-10px) rotate(-3deg); } 100% { transform: translateY(0) rotate(-3deg); } }
.rollout { min-height: 220px; margin-top: 22px; }
.rollout .hint { display: inline-block; padding: 12px 18px; border-radius: 999px; background: var(--chip); font-size: 18px; font-weight: 700; }
.rollout .big { font-size: clamp(120px, 34vw, 190px); font-weight: 800; font-stretch: 75%; line-height: .8; letter-spacing: -.02em; text-shadow: 7px 8px 0 rgba(20,16,47,.28); }
.rollout .big small { display: block; margin-top: 6px; font-size: 34px; font-stretch: 82%; letter-spacing: -.02em; text-shadow: none; }
.rollout .rline { margin-top: 10px; font-size: 20px; font-weight: 700; }
.rollout .btn { margin: 16px auto 0; max-width: 260px; }

/* ---- 5 · play (the swipe card) */
.demo { width: 100%; max-width: 460px; margin: 0 auto; }
.stackwrap { position: relative; height: clamp(360px, 104vw, 460px); margin-bottom: 20px; }
.card { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px 26px 22px; border-radius: 42px; background: var(--paper); color: var(--ink); touch-action: pan-y; will-change: transform; box-shadow: 0 10px 0 rgba(0,0,0,.16); -webkit-user-select: none; user-select: none; }
.card.back { transform: rotate(3.2deg) translateY(12px) scale(.955); filter: brightness(.9); pointer-events: none; box-shadow: none; }
.card .cat { align-self: flex-start; padding: 7px 16px 8px; border-radius: 999px; background: var(--cat, #FFD21F); font-size: 18px; font-weight: 800; font-stretch: 84%; letter-spacing: -.005em; }
.card .q { margin: auto 0; font-size: clamp(32px, 9.6vw, 46px); font-weight: 800; font-stretch: 80%; line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.card .cfoot { font-size: 16px; font-weight: 600; color: rgba(20,16,47,.55); }
.card .stamp { position: absolute; top: 24px; right: 22px; padding: 4px 14px; border: 5px solid currentColor; border-radius: 14px; font-size: 38px; font-weight: 800; font-stretch: 75%; opacity: 0; }
.card .stamp.ate { color: #159C3B; rotate: 9deg; opacity: var(--ate, 0); }
.card .stamp.veto { color: #D01E64; rotate: -9deg; opacity: var(--veto, 0); }
.card.enter { animation: cardin .55s var(--spring) backwards; }
@keyframes cardin { from { opacity: 0; transform: translateY(70px) rotate(5deg) scale(.92); } to { opacity: 1; transform: none; } }
.acts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.aura { margin-top: 22px; }
.aura b { font-size: 22px; font-weight: 800; }
.verdict { margin-top: 14px; min-height: 52px; max-width: 22em; font-size: 20px; font-weight: 700; line-height: 1.15; }
.zing { position: absolute; left: 50%; top: 44%; z-index: 5; width: min(80%, 280px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; animation: zing .7s var(--ease) both; }
.zing svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zing b { position: absolute; inset: 0; display: grid; place-items: center; rotate: -8deg; font-size: clamp(60px, 17vw, 92px); font-weight: 800; font-stretch: 75%; letter-spacing: -.03em; color: var(--ink); }
@keyframes zing { 0% { transform: scale(.3) rotate(-14deg); opacity: 0; } 25% { transform: scale(1.1) rotate(3deg); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }

/* ---- 6 · receipt */
.artbox { width: min(100%, 460px); margin: 0 auto; }
.artbox .art { display: block; width: 100%; height: auto; overflow: visible; }

/* ---- 7 · get */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: start; padding: 20px 22px 22px 20px; border-radius: 32px; background: var(--pc); color: var(--pc-fg); }
.step:nth-child(1) { --pc: #2D3BFF; --pc-fg: #fff; rotate: -1.1deg; }
.step:nth-child(2) { --pc: #FF5CA8; --pc-fg: var(--ink); rotate: 1.1deg; }
.step:nth-child(3) { --pc: #6B3DFF; --pc-fg: #fff; rotate: -.8deg; }
.step .n { font-size: 72px; font-weight: 800; font-stretch: 75%; line-height: .8; letter-spacing: -.05em; }
.step h3 { font-size: 30px; font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.step p { margin-top: 8px; font-size: 17px; line-height: 1.25; font-weight: 500; opacity: .92; text-wrap: pretty; }

/* ---- footer */
.foot .mark { font-size: 44px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot p.line { margin-top: 10px; font-size: 22px; font-weight: 700; }
.foot .fine { max-width: 40em; }

/* ---- layers: toast, sheet, moment, confetti, ripple, flash */
#layer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
#stage { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.confetti { position: fixed; inset: 0; z-index: 160; width: 100%; height: 100%; pointer-events: none; }

/* every alert and notification drops in from the top center, nowhere else */
.toast { position: absolute; top: calc(var(--top) + 6px); left: 50%; translate: -50% 0; z-index: 130; width: max-content; max-width: calc(100% - 44px); padding: 15px 22px; border-radius: 22px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.15; text-align: center; text-wrap: balance; box-shadow: 0 6px 0 rgba(0, 0, 0, .28); animation: toast 3s var(--ease) both; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translateY(calc(-100% - var(--top) - 24px)); } 9% { opacity: 1; transform: translateY(8px); } 14%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(calc(-100% - var(--top) - 24px)); } }
.calm .toast { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .toast { animation: none !important; } }

.scrim { position: absolute; inset: 0; z-index: 110; background: rgba(12,9,36,.55); animation: fade .2s both; pointer-events: auto; }
.sheet { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 111; width: min(100%, 460px); padding: 26px 22px calc(var(--bot, 20px) + env(safe-area-inset-bottom, 0px)); border-radius: 36px 36px 0 0; background: var(--ink); color: #fff; animation: sheetin .45s var(--spring) both; pointer-events: auto; }
.sheet h2 { font-size: 40px; font-weight: 800; font-stretch: 75%; letter-spacing: -.01em; }
.sheet .rows { display: grid; margin: 12px 0 8px; }
.sheet .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; border-bottom: 2px solid rgba(255,255,255,.1); font-size: 21px; font-weight: 700; }
.sheet .row small { display: block; font-size: 15px; font-weight: 500; opacity: .6; }
.sw { position: relative; flex: none; width: 66px; height: 38px; border-radius: 20px; background: rgba(255,255,255,.2); transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.sw[aria-checked="true"] { background: var(--lime); }
.sw[aria-checked="true"]::after { transform: translateX(28px); background: var(--ink); }
.sheet .fine { color: rgba(255,255,255,.6); margin: 14px 0 0; }
@keyframes sheetin { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.moment { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; text-align: center; background: var(--m-bg); color: var(--m-fg); pointer-events: auto; }
.moment .rays { display: none; }
.moment .inner { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0 22px; width: auto; }
.moment .mface { width: min(58vw, 250px); aspect-ratio: 1; animation: popin .55s var(--spring) both; }
.moment .word { font-size: clamp(88px, 29vw, 138px); font-weight: 800; font-stretch: 75%; line-height: .84; letter-spacing: -.012em; text-shadow: 6px 7px 0 var(--m-shadow); animation: slam .5s var(--ease) both .08s; }
.moment .mline { max-width: 13em; margin-top: 14px; font-size: 24px; font-weight: 700; line-height: 1.12; animation: upin .5s var(--ease) both .3s; }
.moment .pts { margin-top: 16px; padding: 8px 20px; border-radius: 999px; background: var(--m-fg); color: var(--m-bg); font-size: 24px; font-weight: 800; animation: popin .5s var(--spring) both .45s; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6) rotate(-9deg); } 55% { opacity: 1; transform: scale(.94) rotate(2deg); } 100% { opacity: 1; transform: none; } }

.ripple { position: fixed; z-index: 250; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #fff; border-radius: 50%; opacity: .7; mix-blend-mode: difference; pointer-events: none; animation: rip .5s ease-out forwards; }
@keyframes rip { to { transform: scale(6.5); opacity: 0; } }
.flash { position: fixed; inset: 0; z-index: 260; pointer-events: none; }

/* ---- calm mode (settings or OS "reduce motion"): keep the layout, drop the movement */
.calm *, .calm *::before, .calm *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; animation-delay: 0s !important; }
}
@media (max-width: 380px) {
  .btn { font-size: 21px; padding: 0 18px; }
  .store { font-size: 16px; padding: 0 10px; }
  .pcard input { font-size: 30px; }
  .step .n { font-size: 60px; }
  .step { grid-template-columns: 52px 1fr; }
}

/* =========================================================================================================
   Step 2: sky theme, reassurance chips, questions, builder, sticky download, hover states
   ========================================================================================================= */
.t-sky { --bg: #44C8FF; --fg: var(--ink); --soft: rgba(20,16,47,.78); --chip: rgba(20,16,47,.12); --line: rgba(20,16,47,.4); --btn: var(--ink); --btn-fg: #fff; --shade: #040214; --soon: var(--sun); --dot: rgba(20,16,47,.14); }

/* reassurance under every download button */
.br-d { display: none; }
@media (min-width: 880px) { .br-d { display: inline; } }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 15px 0 11px; border-radius: 999px; background: var(--chip); font-size: 15px; font-weight: 700; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- questions */
.faqs { display: grid; gap: 12px; }
.faq-item { border-radius: 28px; background: var(--chip); transition: background-color .2s var(--ease); }
.faq-item[open] { background: rgba(255,255,255,.22); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 18px 14px 24px; border-radius: 28px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; transition: transform .15s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary.is-down { transform: scale(.985); }
.faq-item h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; font-stretch: 80%; line-height: 1.04; letter-spacing: -.005em; text-wrap: balance; font-optical-sizing: none; font-variation-settings: 'opsz' 36; }
.faq-item .plus { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); transition: transform .35s var(--spring); }
.faq-item .plus::before, .faq-item .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 3.2px; margin: -1.6px 0 0 -8px; border-radius: 2px; background: var(--bg); }
.faq-item .plus::after { rotate: 90deg; transition: rotate .35s var(--spring); }
.faq-item[open] .plus { transform: rotate(180deg); }
.faq-item[open] .plus::after { rotate: 0deg; }
.faq-item p { max-width: 36em; padding: 0 24px 24px; font-size: 18px; line-height: 1.3; color: var(--soft); text-wrap: pretty; animation: upin .35s var(--ease) backwards; }

/* ---- builder: the human behind it */
.builder .b-copy { display: contents; }
.builder .b-head { order: 1; }
.builder .b-photo { order: 2; }
.builder .b-bio { order: 3; }
.b-photo { position: relative; isolation: isolate; width: min(84vw, 400px); aspect-ratio: 1; margin: 8px auto 4px; justify-self: center; }
.b-photo .frame { position: absolute; inset: 0; z-index: 1; padding: 9px; border-radius: 56% 44% 52% 48% / 48% 56% 44% 52%; background: #fff; box-shadow: 0 16px 0 rgba(20,16,47,.28); rotate: -3deg; animation: morph 9s ease-in-out infinite; transition: rotate .5s var(--spring), scale .5s var(--spring); }
.b-photo .frame img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
@keyframes morph { 0%, 100% { border-radius: 56% 44% 52% 48% / 48% 56% 44% 52%; } 50% { border-radius: 46% 54% 44% 56% / 55% 45% 58% 42%; } }
.peek { position: absolute; z-index: 0; width: 38%; aspect-ratio: 1; animation: bob 3.6s ease-in-out infinite; }
.peek.p1 { right: -12%; top: -8%; rotate: 14deg; }
.peek.p2 { left: -14%; bottom: 2%; width: 34%; rotate: -12deg; animation-delay: -1.4s; }
.spark { position: absolute; z-index: 2; right: 4%; bottom: -2%; width: 15%; animation: twinkle 2.6s ease-in-out infinite; }
.bubble { position: absolute; z-index: 3; left: -3%; top: 3%; padding: 10px 18px 13px; border-radius: 24px 24px 24px 6px; background: #fff; color: var(--ink); font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; font-stretch: 80%; line-height: 1; rotate: -6deg; box-shadow: 0 6px 0 rgba(20,16,47,.22); }
.emo { display: inline-block; width: 1em; height: 1em; margin-left: -.1em; vertical-align: -.2em; }
.b-name { margin-top: 4px; font-size: clamp(40px, 9vw, 76px); font-weight: 800; font-stretch: 78%; line-height: .92; letter-spacing: -.01em; font-optical-sizing: none; font-variation-settings: 'opsz' 36; }
.b-title { display: inline-block; margin-top: 14px; padding: 10px 20px 12px; border-radius: 26px; background: var(--ink); color: #fff; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; line-height: 1.15; rotate: -1.5deg; }
.b-bio .btn { max-width: 380px; margin-top: 28px; }
@media (min-width: 880px) {
  .builder .hl.m { font-size: clamp(48px, 6.2vw, 88px); }
  .builder .split { grid-template-columns: .9fr 1.1fr; }
  .builder .b-copy { display: block; order: 2; }
  .builder .b-bio { margin-top: 30px; }
  .builder .b-photo { order: 1; }
  .b-bio .btn { width: auto; min-width: 280px; }
}

/* ---- sticky download: slides up once the hero button has scrolled away, steps aside whenever a download button is on screen */
.sticky-cta { --shade: #040214; position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transform: translateY(140%); transition: transform .45s var(--spring); }
.sticky-cta.on { transform: none; }
.sticky-cta .btn { pointer-events: auto; max-width: 440px; min-height: 60px; font-size: 21px; background: var(--ink); color: var(--lime); box-shadow: 0 6px 0 var(--shade), 0 16px 34px rgba(12,9,36,.38); }
.sticky-cta .btn.is-down { box-shadow: 0 1px 0 var(--shade), 0 8px 20px rgba(12,9,36,.3); }
@media (min-width: 880px) {
  .sticky-cta { left: auto; right: 28px; top: 20px; bottom: auto; padding: 0; transform: translateY(-170%); }
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { width: auto; min-width: 270px; min-height: 54px; font-size: 19px; }
}

/* ---- sticky portfolio link: the builder's button, pinned bottom right; on phones it rides above the download bar while that is up */
.to-folio { position: fixed; z-index: 121; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transition: transform .45s var(--spring); }
.to-folio .btn { width: auto; box-shadow: 0 6px 0 var(--shade), 0 16px 34px rgba(12,9,36,.38); }
.to-folio .btn.is-down { box-shadow: 0 1px 0 var(--shade), 0 8px 20px rgba(12,9,36,.3); }
.sticky-cta.on ~ .to-folio { transform: translateY(-82px); }
@media (min-width: 880px) {
  .to-folio { right: 28px; bottom: 28px; }
  .to-folio .btn { min-width: 280px; }
  .sticky-cta.on ~ .to-folio { transform: none; }
}

/* ---- cursors: things you drag say so */
.rail.drag { cursor: grabbing; }
.card:not(.back) { cursor: grab; }
.card:not(.back):active { cursor: grabbing; }
.die-hit { cursor: pointer; }

/* ---- hover: laptops and desktops only (a touch screen has no hover, and :hover sticks after a tap there) */
.ib svg { transition: rotate .35s var(--spring); }
.soon { transition: rotate .25s var(--spring), scale .25s var(--spring); }
.bl { transition: scale .2s var(--spring); }
.step { transition: rotate .35s var(--spring), transform .35s var(--spring); }
.link { transition: color .2s, text-decoration-thickness .15s; }
.sw { transition: background-color .2s, filter .2s; }
@keyframes dl-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
@keyframes ext-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 3px -3px; } }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.ghost):hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--shade); background: color-mix(in srgb, var(--btn), #fff 16%); }
  .btn.ghost:hover { background: var(--chip); box-shadow: inset 0 0 0 3px var(--fg); transform: translateY(-2px); }
  .btn:not(.ghost).is-down:hover { transform: translateY(5px) scale(.985); box-shadow: 0 1px 0 var(--shade); background: var(--btn); }
  .btn.ghost.is-down:hover { transform: scale(.97); }
  a.btn[data-act="download"]:hover svg { animation: dl-nudge .7s ease-in-out infinite; }
  #portfolio:hover svg, .to-folio .btn:hover svg { animation: ext-nudge .7s ease-in-out infinite; }
  .sticky-cta .btn:hover { background: var(--lime); color: var(--ink); box-shadow: 0 9px 0 var(--shade), 0 20px 38px rgba(12,9,36,.4); }
  .sticky-cta .btn.is-down:hover { box-shadow: 0 1px 0 var(--shade), 0 8px 20px rgba(12,9,36,.3); }
  .ib:hover { background: var(--line); transform: scale(1.1); }
  .ib.is-down:hover { transform: scale(.88); }
  .ib:hover svg { rotate: 60deg; }
  .store:hover .soon { rotate: 3deg; scale: 1.12; }
  .pchip:not([aria-checked="true"]):hover { background: var(--pc-line); transform: translateY(-2px) scale(1.04); }
  .say:hover { background: var(--pc-line); }
  .say.is-down:hover { transform: scale(.98); }
  .pcard:hover { transform: rotate(0deg) scale(1.01); }
  .names span:hover { opacity: 1; transform: translateY(-2px); }
  .rail:hover .thumb { transform: scale(1.08); }
  .rail.drag:hover .thumb { transform: scale(1.12); }
  .card:not(.back):hover { box-shadow: 0 14px 0 rgba(0,0,0,.18); }
  .step:hover { rotate: 0deg; transform: translateY(-5px); }
  .bl:hover { scale: 1.07; }
  .link:hover { color: var(--fg); text-decoration-thickness: 3px; }
  .sw:hover { background: rgba(255,255,255,.32); }
  .sw[aria-checked="true"]:hover { filter: brightness(1.08); }
  .faq-item:hover { background: rgba(255,255,255,.18); }
  .faq-item[open]:hover { background: rgba(255,255,255,.26); }
  .faq-item summary:hover .plus { transform: scale(1.1) rotate(90deg); }
  .faq-item[open] summary:hover .plus { transform: scale(1.1) rotate(180deg); }
  .b-photo:hover .frame { rotate: 0deg; scale: 1.025; animation-play-state: paused; border-radius: 44% 56% 46% 54% / 54% 46% 56% 44%; }
  .dieart:has(.die-hit:hover) .art { filter: brightness(1.07) saturate(1.05); }
}
@media (max-width: 420px) {
  .trust { gap: 6px; }
  .trust li { gap: 5px; min-height: 34px; padding: 0 11px 0 8px; font-size: 14px; }
}

/* =========================================================================================================
   Step 3: legal pages, footer details
   ========================================================================================================= */
a.mark { color: inherit; text-decoration: none; }
.legal { min-height: 78svh; }
.legal .inner { max-width: 780px; }
.legal .topbar .btn { width: auto; min-height: 46px; padding: 0 22px; font-size: 18px; }
.legal .hl { margin-top: 30px; }
.legal .updated { margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--soft); }
.prose { display: grid; gap: 14px; margin-top: 34px; font-size: clamp(17px, 2.1vw, 19px); line-height: 1.5; }
.prose p, .prose li { max-width: 42em; text-wrap: pretty; }
.prose .lead { font-size: clamp(20px, 2.6vw, 24px); font-weight: 700; line-height: 1.3; }
.prose h2 { margin-top: 26px; font-size: clamp(30px, 5vw, 44px); font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -.01em; font-optical-sizing: none; font-variation-settings: 'opsz' 36; }
.prose ul { display: grid; gap: 10px; margin: 0; padding-left: 1.25em; }
.prose a, .facts a, .legal-links a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-thickness .15s; }
.prose a { font-weight: 700; }
.drows { display: grid; gap: 10px; margin: 0; }
.drow { display: grid; gap: 4px; padding: 16px 20px 18px; border-radius: 24px; background: var(--chip); }
.drow dt { font-size: 20px; font-weight: 800; font-stretch: 82%; line-height: 1.1; }
.drow dd { margin: 0; max-width: 40em; }
@media (min-width: 720px) { .drow { grid-template-columns: 210px 1fr; gap: 24px; } }
.facts { display: grid; gap: 20px 36px; margin: 34px 0 0; }
.facts dt { font-size: 15px; font-weight: 600; color: var(--soft); }
.facts dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; }
.legal-links a { font-size: 17px; font-weight: 700; color: var(--soft); }
@media (hover: hover) and (pointer: fine) {
  .prose a:hover, .facts a:hover, .legal-links a:hover { text-decoration-thickness: 4px; }
  .legal-links a:hover { color: var(--fg); }
}

/* =========================================================================================================
   The whole game, in seven screens
   ========================================================================================================= */
.jhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.jnav { display: none; flex: none; gap: 10px; }
.jnav .ib { width: 56px; height: 56px; }
.jnav .ib svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .jnav { display: flex; } }
.shots { --edge: max(var(--pad), calc((100vw - 1120px) / 2)); display: flex; gap: clamp(18px, 3vw, 34px); margin: 30px calc(var(--pad) * -1) 0; padding: 22px var(--edge) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; list-style: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: clamp(214px, 60vw, 262px); scroll-snap-align: start; }
.shot .phone { padding: 7px; border-radius: 38px; background: var(--ink); box-shadow: 0 12px 0 rgba(20,16,47,.28); transition: transform .35s var(--spring), rotate .35s var(--spring); }
.shot:nth-child(odd) .phone { rotate: -1.4deg; }
.shot:nth-child(even) .phone { rotate: 1.4deg; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1299; border-radius: 31px; background: var(--chip); }
.shot .n { display: block; margin-top: 24px; font-size: 56px; font-weight: 800; font-stretch: 75%; line-height: .8; letter-spacing: -.03em; font-optical-sizing: none; font-variation-settings: 'opsz' 36; }
.shot h3 { margin-top: 10px; font-size: 26px; font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -.01em; font-optical-sizing: none; font-variation-settings: 'opsz' 36; }
.shot p { margin-top: 6px; font-size: 17px; line-height: 1.25; color: var(--soft); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) { .shot:hover .phone { transform: translateY(-8px); rotate: 0deg; } }
