/* Chroma Flow — site styles. Same bones as the PingDrop site; dark, glassy, and the
   real fluid engine painting behind everything (fluid.js). */

:root {
  --bg: #07080c;
  --glass: rgba(14, 16, 23, .62);
  --glass-2: rgba(22, 25, 35, .78);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f4f8;
  --muted: #a6abbd;
  --faint: #6f7487;
  --pink: #ff2a6d;
  --cyan: #05d9e8;
  --amber: #ffb000;
  --accent: #8ef6ff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --radius: 24px;
  --wrap: 1140px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Unbounded", "Geist", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: transparent; color: var(--text);
  font: 400 16px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
section[id], footer { scroll-margin-top: 72px; }
::selection { background: color-mix(in srgb, var(--pink) 40%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ── The fluid canvas behind the page ───────────────────── */
#fluid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
/* Past the hero, a light veil keeps text readable over bright fluid. */
.scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(7, 8, 12, .4); opacity: 0; transition: opacity .7s var(--ease); }
.dimmed .scrim { opacity: 1; }
.playing .scrim { opacity: 0; }
/* Without WebGL: a still gradient in the app's colors. */
.no-gl body { background:
  radial-gradient(40% 35% at 20% 15%, rgba(255, 42, 109, .35), transparent 70%),
  radial-gradient(40% 35% at 80% 30%, rgba(5, 217, 232, .28), transparent 70%),
  radial-gradient(45% 40% at 50% 85%, rgba(255, 176, 0, .22), transparent 70%) fixed, var(--bg); }
.no-gl [data-try], .no-gl .dock, .no-gl #play .ctl { display: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer;
  font: 600 15px/1 inherit; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-light { background: var(--text); color: #07080c; box-shadow: 0 10px 28px -10px rgba(255, 255, 255, .35); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-store { background: var(--text); color: #07080c; min-width: 200px; padding: 12px 24px 12px 18px; border-radius: 16px; font-size: 18px; text-align: left; box-shadow: 0 14px 34px -12px rgba(255, 255, 255, .4); }
.btn-store svg { width: 26px; height: 26px; }
.btn-store span { display: flex; flex-direction: column; gap: 3px; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: .65; }
[aria-disabled="true"] { cursor: default; opacity: .75; }
[aria-disabled="true"]:hover { transform: none; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 12, .55);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, opacity .4s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 64px 0 40px; }
.hero-copy { text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; text-decoration: none;
  background: rgba(14, 16, 23, .55); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px; font-weight: 500; color: var(--muted); text-shadow: none; transition: color .2s;
}
.pill:hover { color: var(--text); }
.pill-new { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(100deg, var(--pink), #b721ff); }
h1 { font: 600 clamp(52px, 9vw, 112px)/.92 var(--display); letter-spacing: -.045em; margin: 26px 0 22px; }
.grad {
  background: linear-gradient(100deg, var(--pink) 0%, var(--amber) 25%, var(--cyan) 50%, #b721ff 75%, var(--pink) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  animation: sheen 8s linear infinite;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: #d5d8e3; max-width: 640px; margin: 0 auto; }
.lede b { color: var(--text); font-weight: 600; }
.try { display: block; margin-top: 10px; font-size: 15px; color: var(--accent) !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* Style dock under the hero */
.dock {
  display: flex; align-items: center; gap: 16px; max-width: 920px; margin: 0 auto; padding: 10px 10px 10px 18px;
  border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dock-label { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.dock-label b { display: block; color: var(--text); font-size: 15px; }
.dock-styles { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dock-styles::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.chip[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip .sw { width: 24px; height: 24px; }
.sw { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 56px; text-shadow: 0 2px 24px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .4); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h2 { font: 600 clamp(32px, 4.6vw, 54px)/1.05 var(--display); letter-spacing: -.04em; }
.sub { color: #c4c8d5; font-size: 18px; margin-top: 16px; }

/* Glass surfaces */
.card, .style-card, .tile, .step, .dl, .faq details, .shot .phone-frame {
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* Soft light that follows the cursor */
[data-spot] { position: relative; isolation: isolate; overflow: hidden; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(142, 246, 255, .09), transparent 60%);
}
[data-spot]:hover::before { opacity: 1; }

/* ── Styles grid ─────────────────────────────────────────── */
.styles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.style-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 0; border-radius: 20px;
  cursor: pointer; text-align: left; color: var(--text); transition: transform .3s var(--spring), box-shadow .3s;
}
.style-card:hover { transform: translateY(-4px); }
.style-card .sw { width: 54px; height: 54px; transition: transform .5s var(--spring); }
.style-card:hover .sw { transform: rotate(24deg) scale(1.06); }
.style-card b { display: block; font-size: 17px; }
.style-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.style-card[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), 0 18px 40px -18px rgba(142, 246, 255, .35); background: var(--glass-2); }

/* ── Bento of live controls ─────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.card-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; }
.card-wide .card-copy { flex: 1; }
.card-wide .ctl { flex: 1.1; }
.tag { display: inline-flex; padding: 4px 10px; margin-bottom: 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(142, 246, 255, .08); box-shadow: inset 0 0 0 1px rgba(142, 246, 255, .2); }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.card-copy p { color: var(--muted); font-size: 15px; }
.ctl { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.card-wide .ctl { margin-top: 0; }
.note { font-size: 13px; color: var(--muted); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .07); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px/1 inherit; padding: 11px 4px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: #07080c; }
.card:not(.card-wide) .seg-4 { margin-top: auto; }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
input[type=color] { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: transform .25s var(--spring); }
input[type=color]:hover { transform: scale(1.08); }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }

.sliders { display: grid; gap: 8px; margin-top: auto; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; font-size: 14.5px; }
.slider output { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; --a: 0%; --b: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, rgba(255,255,255,.15) var(--a), var(--text) var(--a), var(--text) var(--b), rgba(255,255,255,.15) var(--b)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, rgba(255,255,255,.15) var(--a), var(--text) var(--a), var(--text) var(--b), rgba(255,255,255,.15) var(--b)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--text); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; cursor: pointer; }
.switch small { display: block; font-size: 13px; color: var(--muted); }
.switch input { -webkit-appearance: none; appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .25s var(--spring); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); background: #07080c; }
.switch input:disabled { opacity: .35; cursor: default; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: start; perspective: 1200px; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shot .phone-frame { width: 100%; max-width: 220px; padding: 7px; border-radius: 34px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.shot .phone-frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; }
.shot figcaption { text-align: center; font-size: 14px; color: var(--muted); text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.shot figcaption b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }

/* ── Private tiles ───────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 26px; border-radius: var(--radius); }
.tile-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #07080c; background: linear-gradient(135deg, var(--pink), var(--amber)); }
.tile:nth-child(2) .tile-ico { background: linear-gradient(135deg, var(--cyan), #6a5cff); }
.tile:nth-child(3) .tile-ico { background: linear-gradient(135deg, #3dffa8, var(--cyan)); }
.tile:nth-child(4) .tile-ico { background: linear-gradient(135deg, #b721ff, var(--pink)); }
.tile-ico svg { width: 24px; height: 24px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 14.5px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; border-radius: var(--radius); }
.num { display: block; font: 600 13px/1 var(--display); color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── Download ────────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.dl { padding: 32px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dl-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 8px; }
.dl-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; }
.dl-ico svg { width: 28px; height: 28px; }
.dl-apple { color: #f5f5f7; background: rgba(255, 255, 255, .1); }
.dl-android { color: #3ddc84; background: rgba(61, 220, 132, .12); }
.dl-code { color: var(--accent); background: rgba(142, 246, 255, .1); }
.dl-ver { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.dl h3 { font-size: 24px; }
.dl p { color: var(--muted); margin-bottom: 8px; }
.dl-stats { list-style: none; padding: 0; margin: 0 0 14px; display: flex; gap: 10px; width: 100%; }
.dl-stats li { flex: 1; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.dl-stats b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.dl-stats span { font-size: 12.5px; color: var(--muted); }
.dl .btn { width: 100%; }
.dl-steps { margin: 18px 0 0; padding: 14px 0 0 20px; border-top: 1px solid var(--line); width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dl-steps li::marker { color: var(--accent); font-weight: 700; }
.dl-steps b { color: var(--text); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .07); flex: none; transition: transform .3s var(--spring), background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--text); color: #07080c; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq a { color: var(--accent); }

/* ── Support ─────────────────────────────────────────────── */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 680px; margin: 0 auto; }
.sbtn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 18px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 16px; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 30px -14px rgba(0, 0, 0, .8);
  transition: transform .25s var(--spring), filter .2s;
}
.sbtn:hover { transform: translateY(-3px); filter: brightness(1.06); }
.sbtn svg { width: 20px; height: 20px; }
.s-coffee { grid-column: 1 / -1; background: #ffdd00; color: #141414; }
.s-bug { background: #ef5858; }
.s-bug:hover svg { animation: wiggle .5s ease-in-out; }
.s-mail { background: #6266f1; }
.s-mail:hover svg { animation: bump .5s var(--spring); }
.s-in { background: #0a66c2; }
.s-in:hover svg { animation: bump .5s var(--spring); }
.steam { position: absolute; left: calc(50% - 72px); top: 2px; display: flex; gap: 3px; pointer-events: none; }
.steam i { width: 3px; height: 10px; border-radius: 3px; background: rgba(20, 20, 20, .35); opacity: 0; }
.s-coffee:hover .steam i { animation: steam 1.2s ease-out infinite; }
.s-coffee:hover .steam i:nth-child(2) { animation-delay: .25s; }
.s-coffee:hover .steam i:nth-child(3) { animation-delay: .5s; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 52px 0 40px; border-top: 1px solid var(--line); background: rgba(7, 8, 12, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 14px; }
.me { color: var(--text); font-weight: 650; text-decoration: none; background: linear-gradient(90deg, var(--pink), var(--cyan)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.me:hover { background-size: 100% 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal { margin-top: 28px; font-size: 12px; color: var(--faint); }

/* ── Play mode: hide the page, keep the fluid ───────────── */
.playing .nav, .playing main, .playing .footer { opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.nav, main, .footer { transition: opacity .5s var(--ease); }
.play-exit { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; padding: 10px 18px; border-radius: 999px; background: rgba(14, 16, 23, .7); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; cursor: pointer; animation: fade-out 3.2s ease forwards; }
.play-exit kbd { font: 600 12px/1 "Geist", sans-serif; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.cursor-idle, .cursor-idle * { cursor: none !important; }

/* The app's pinned Play bar */
.playbar { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; transform: translateX(-50%); transition: opacity .4s var(--ease), transform .45s var(--spring); }
.playing .playbar { opacity: 0; pointer-events: none; transform: translate(-50%, 24px); }
.play-btn { display: flex; align-items: center; gap: 12px; padding: 7px 24px 7px 7px; border: 0; border-radius: 999px; cursor: pointer; color: #07080c; background: var(--text);
  font: 600 17px/1 var(--display); letter-spacing: -.01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 18px 44px -12px rgba(0, 0, 0, .8); transition: transform .25s var(--spring), box-shadow .25s; }
.play-btn b { font: 500 15px/1 "Geist", sans-serif; opacity: .55; }
.play-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 24px 54px -14px rgba(255, 42, 109, .45); }
.play-btn:active { transform: scale(.97); }
.play-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: conic-gradient(from 200deg, #ff2a6d, #ffb000, #b6ff3d, #05d9e8, #6a5cff, #ff2a6d); animation: spin-hue 6s linear infinite; }
.play-ico svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
@keyframes spin-hue { to { filter: hue-rotate(360deg); } }
.footer { padding-bottom: 110px !important; }

/* ── Toast ───────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; top: 82px; z-index: 70; transform: translate(-50%, -12px); padding: 10px 16px; border-radius: 999px; background: rgba(14, 16, 23, .8); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Email card (contact.js) ─────────────────────────────── */
.mailcard { position: fixed; z-index: 1000; width: min(320px, calc(100vw - 24px)); padding: 14px; border-radius: 16px; background: rgba(18, 20, 28, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -18px rgba(0, 0, 0, .8); animation: card-in .3s var(--spring) both; }
.mailcard p { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mailcard-addr { display: block; font-size: 16px; word-break: break-all; user-select: all; }
.mailcard-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mailcard-btns > * { flex: 1; padding: 8px 10px; border: 0; border-radius: 10px; font: 600 13px/1.2 "Geist", sans-serif; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.mailcard-btns > *:first-child { color: #07080c; background: var(--text); box-shadow: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ── Reveal on scroll ────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.2); } }
@keyframes fade-out { 0%, 70% { opacity: 1; } 100% { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .styles { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .section { padding: 84px 0; }
  .styles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .style-card { flex-direction: row; align-items: center; padding: 12px; }
  .style-card .sw { width: 42px; height: 42px; }
  .bento, .steps, .dl-grid { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; align-items: stretch; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .dock { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .support { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
}


/* Footer credit: the monkey swings, like in the app. */
.monkey { display: inline-block; transform-origin: 50% 90%; animation: monkey-swing 1.6s ease-in-out infinite; }
@keyframes monkey-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg) translateY(-2px); } 75% { transform: rotate(16deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .monkey { animation: none; } }
