/* puzpuz.io — mobile first; the app's palette and type. */
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/SpaceGrotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0E0E10;
  --ink2: #141419;
  --card: #18181E;
  --line: rgba(230, 224, 233, .10);
  --line2: rgba(230, 224, 233, .18);
  --text: #F6F5F2;
  --muted: #B2ACBB;
  --accent: #9B7BFF;
  --lilac: #B9A7FF;
  --peach: #FFC6A8;
  --mint: #A8F0D1;
  --pink: #FF8FB1;
  --rainbow: linear-gradient(90deg, var(--lilac), var(--peach) 55%, var(--mint));
  --radius: 22px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 16px/1.55 'Space Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(34px, 9vw, 64px); font-weight: 700; }
h2 { font-size: clamp(26px, 6.4vw, 42px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
em { font-style: normal; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; margin-top: 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); margin-bottom: 10px; }
.lead { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 34em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--pink)); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(155, 123, 255, .35); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; border: 1px solid var(--line2); box-shadow: none; }
.btn-ghost:hover { border-color: var(--lilac); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 14px;
  background: #000; border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; transition: transform .15s, border-color .15s; flex: 1 1 0; min-width: 0; max-width: 220px; }
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .6); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 360px) { .store { padding: 0 12px 0 10px; gap: 8px; } .store span { font-size: 16px; } .store svg { width: 22px; height: 22px; } }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.stores.lg .store { height: 60px; }
.stores.sm { margin-top: 16px; }
.stores.sm .store { height: 44px; flex: 0 0 auto; }
.stores.sm .store svg { width: 20px; height: 20px; }
.stores.sm .store span { font-size: 15px; }
.stores.sm .store small { font-size: 9px; }
.stores.xs { margin: 0; gap: 8px; flex-wrap: nowrap; }
.stores.xs .store { height: 38px; flex: 0 0 auto; padding: 0 12px 0 10px; gap: 7px; border-radius: 10px; }
.stores.xs .store svg { width: 18px; height: 18px; }
.stores.xs .store span { font-size: 14px; }
.stores.xs .store small { font-size: 8.5px; }

/* mobile: the store buttons docked at the bottom of the screen */
.dockbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 16, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-top: 1px solid var(--line); }
.stores.dock { margin: 0; gap: 8px; flex-wrap: nowrap; max-width: 520px; margin: 0 auto; }
.stores.dock .store { height: 50px; max-width: none; justify-content: center; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.nav-stores { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 16, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.links { display: none; }
.nav .btn { margin-left: auto; }

/* hero */
.hero { position: relative; padding: 36px 0 20px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 420px at 8% 0%, rgba(185, 167, 255, .28), transparent 70%), radial-gradient(circle 380px at 100% 45%, rgba(255, 198, 168, .16), transparent 70%), radial-gradient(circle 420px at 30% 100%, rgba(168, 240, 209, .12), transparent 70%); }
.hero-in { position: relative; display: grid; gap: 36px; }
.hero h1 em { display: inline; }
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats li { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px; text-align: center; }
.stats b { display: block; font-size: clamp(15px, 4.6vw, 18px); white-space: nowrap; }
.stats span { font-size: 12px; color: var(--muted); }
.hero-media { position: relative; display: flex; justify-content: center; }
.glow { position: absolute; width: 80%; aspect-ratio: 1; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(155, 123, 255, .45), transparent 65%); filter: blur(30px); }

/* phone frame */
.phone { position: relative; border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #3a3744, #15141a 40%, #2a2833);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 30px 70px rgba(0, 0, 0, .55), 0 0 70px rgba(155, 123, 255, .22); }
.phone-screen { border-radius: 34px; overflow: hidden; background: #000; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-hero { width: min(300px, 76vw); }
.phone-hero .phone-screen { aspect-ratio: 886 / 1920; }
.phone-clip { width: 100%; border-radius: 30px; padding: 6px; }
.phone-clip .phone-screen { border-radius: 25px; aspect-ratio: 9 / 16; }

/* sections */
.section { padding: 56px 0; }
.section.tight { padding: 28px 0 44px; }
.head { margin-bottom: 26px; }
.head p:not(.eyebrow) { color: var(--muted); margin-top: 10px; }

/* horizontal rails (screenshots, clips) */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: none; }
.shot { margin: 0; width: 62vw; max-width: 280px; }
.shot img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.rail.clips .clipcard { width: 58vw; max-width: 250px; }

/* feature cards */
.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.fcard { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s; }
.fcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.fcard-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink2); }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fcard-photos { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.fcard-photos img { width: 100%; height: 100%; object-fit: cover; }
.fcard-body p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.fcard .more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--lilac); }

/* clips */
.clipcard { margin: 0; }
.clipcard figcaption { margin-top: 12px; }
.clipcard figcaption b { display: block; }
.clipcard figcaption span { font-size: 14px; color: var(--muted); }
.clip { cursor: pointer; background: #000; }
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.single-clip { max-width: 300px; margin: 0 auto; }

/* collections */
.cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ccard { position: relative; border-radius: 18px; overflow: hidden; text-decoration: none; aspect-ratio: 1; background: var(--ink2); }
.ccard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ccard:hover img { transform: scale(1.05); }
.ccard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-weight: 700; font-size: 15px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.ccard small { opacity: .7; font-weight: 500; margin-left: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pcard { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pcard figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.pcard small { color: var(--muted); font-size: 12px; }
.tier { display: inline-flex; gap: 3px; }
.tier i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tier i.on { background: var(--t); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bgrid figure { margin: 0; }
.bgrid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; }
.bgrid figcaption { font-size: 14px; margin-top: 6px; color: var(--muted); text-align: center; }

/* page heads / feature pages */
.pagehead { padding: 36px 0 12px; position: relative; }
.pagehead::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 380px at 10% 0%, rgba(185, 167, 255, .22), transparent 70%); }
.pagehead > .wrap { position: relative; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.feature-in { display: grid; gap: 30px; }
.fmedia { display: flex; gap: 12px; justify-content: center; }
.fmedia .shot { width: min(70vw, 300px); }
.fmedia.n2 .shot { width: min(44vw, 260px); }
.fmedia.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 0 auto; }
.fmedia.photos img { border-radius: 18px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.points { display: grid; gap: 12px; }
.point { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.point p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.nextf { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.nextf span { font-size: 13px; color: var(--muted); }
.nextf:hover { border-color: var(--line2); }
.prose { margin-top: 26px; color: var(--muted); }
.prose h2 { font-size: 22px; color: var(--text); margin: 28px 0 10px; }
.prose a { color: var(--lilac); }
.prose ol { padding-left: 20px; }
.prose b { color: var(--text); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lilac); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin-top: 10px; }

/* call-to-action band */
.band { padding: 20px 0 60px; }
.band-in { position: relative; overflow: hidden; border-radius: 30px; padding: 32px 22px; border: 1px solid var(--line2);
  background: radial-gradient(circle at 0% 0%, rgba(155, 123, 255, .35), transparent 55%), radial-gradient(circle at 100% 100%, rgba(255, 143, 177, .22), transparent 55%), var(--card); display: grid; gap: 24px; }
.band-in p { color: var(--muted); margin-top: 10px; }
.qr { display: none; }
.qr svg { width: 132px; height: 132px; background: #fff; border-radius: 14px; padding: 8px; }
.qr span { font-size: 13px; color: var(--muted); }

/* download page */
.dl { min-height: calc(100svh - 60px); display: flex; align-items: center; padding: 40px 0; background: radial-gradient(circle 420px at 50% 10%, rgba(155, 123, 255, .3), transparent 70%); }
.dl-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dl-logo { border-radius: 28px; margin-bottom: 18px; box-shadow: 0 18px 50px rgba(155, 123, 255, .4); }
.dl .stores { justify-content: center; }
.dl .lead { margin-left: auto; margin-right: auto; }
.dl-qr { margin-top: 30px; }
.dl .small { margin-top: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--ink2); }
.foot-in { display: grid; gap: 30px; }
.foot-brand p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.foot-cols h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.foot-cols a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.foot-cols a:hover { color: var(--text); }
.foot-legal { margin-top: 30px; font-size: 12px; color: rgba(178, 172, 187, .6); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .store, .fcard, .ccard img { transition: none; } }

/* ── tablet ───────────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .cgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: 1fr 1fr; }
  .bgrid { grid-template-columns: repeat(6, 1fr); }
  .foot-in { grid-template-columns: 1.2fr 1fr; }
}

/* ── desktop ──────────────────────────────────────────── */
@media (min-width: 960px) {
  body { font-size: 17px; }
  .links { display: flex; gap: 26px; margin-left: 36px; }
  .nav-stores { display: block; margin-left: auto; }
  .nav-stores + .btn { margin-left: 12px; }
  .dockbar { display: none; }
  body { padding-bottom: 0; }
  .links a { text-decoration: none; color: var(--muted); font-weight: 500; }
  .links a:hover, .links a[aria-current] { color: var(--text); }
  .hero { padding: 70px 0 40px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
  .phone-hero { width: 330px; }
  .lead { font-size: 19px; }
  .section { padding: 90px 0; }
  /* with a mouse, the screenshots sit in a grid instead of a swipe rail */
  .rail:not(.clips) { flex-wrap: wrap; overflow: visible; }
  .rail:not(.clips) .shot { width: calc((min(100vw, 1140px) - 48px - 42px) / 4); }
  .rail { justify-content: safe center; padding-left: max(24px, calc((100vw - 1140px) / 2 + 24px)); padding-right: max(24px, calc((100vw - 1140px) / 2 + 24px)); }
  .fgrid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .fcard { grid-template-columns: 1fr; align-items: start; padding: 14px; }
  .fcard-img { aspect-ratio: 4 / 3.3; }
  .cgrid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .pgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .vgrid { grid-template-columns: repeat(5, 1fr); }
  .feature-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
  .pagehead { padding: 64px 0 24px; }
  .points { grid-template-columns: repeat(4, 1fr); }
  .band-in { grid-template-columns: 1fr auto; align-items: center; padding: 48px 52px; }
  .qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
