/* Radius rule: media frames 20px, buttons 12px, the strip island and small pills fully round. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2");
}
:root {
  --ink: #0c0920;
  --night: #090719;
  --indigo: #181238;
  --violet: #3b2488;
  --glow: #9b7dff;
  --ghost: #fff4ea;
  --muted: #bdb4e0;
  --line: rgba(189, 180, 224, 0.18);
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --strip: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--strip) + 16px); color-scheme: dark; scrollbar-color: #3a2f6e var(--night); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ghost);
  font: 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--glow); color: var(--ink); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ghost); text-underline-offset: 3px; text-decoration-color: rgba(155, 125, 255, .7); }
a:hover { color: #fff; text-decoration-color: var(--glow); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .9em; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ghost); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 56px; }
.skip:hover { color: var(--ink); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 88px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 750; max-width: 20ch; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.lead { color: var(--muted); max-width: 60ch; margin: 20px 0 0; font-size: 1.125rem; }

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- the strip (site nav, shaped like Peeka's own) ---------- */
.strip {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--strip);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 clamp(12px, 2vw, 22px);
  background: rgba(9, 7, 25, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.brand { display: flex; align-items: center; gap: 8px; font: 700 1.05rem/1 var(--display); text-decoration: none; justify-self: start; }
.brand img { width: 26px; height: 26px; transition: transform .45s var(--ease); }
.brand:hover { color: var(--ghost); }
.brand:hover img { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
.strip nav { justify-self: end; display: flex; align-items: center; gap: clamp(4px, 1vw, 14px); }
.strip nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
/* Section links: a glow bar slides out from the centre on hover, and stays under the section you are reading. */
.strip nav a:not(.pill) { position: relative; padding: 10px 8px; }
.strip nav a:not(.pill)::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--glow); transform: scaleX(0); transition: transform .35s var(--ease);
}
.strip nav a:hover, .strip nav a[aria-current] { color: var(--ghost); }
.strip nav a:not(.pill):hover::after, .strip nav a[aria-current]::after { transform: scaleX(1); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line);
  color: var(--ghost) !important; background: rgba(255, 244, 234, .06);
  margin-left: 6px; transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.pill .ico { transition: transform .45s var(--ease); }
.pill:hover { background: rgba(255, 244, 234, .14); border-color: rgba(155, 125, 255, .6); }
.pill:hover .ico { transform: rotate(72deg) scale(1.15); }
.pill:active { transform: scale(.96); }

.island {
  align-self: start; height: 34px; min-width: 150px; padding: 0 22px;
  display: grid; place-items: center;
  background: #05040f; color: var(--ghost);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  font: 600 .82rem/1 var(--display); letter-spacing: .01em;
  transform-origin: top center;
  border: 0; cursor: default; -webkit-tap-highlight-color: transparent;
}
.sections { display: flex; align-items: center; gap: inherit; }
.island-label { display: block; }
.island.pulse { animation: pop .7s var(--ease); }
.island.pulse .island-label { animation: rise .5s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.12, 1.18); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: calc(var(--strip) + 4px) 16px 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 12%, rgba(110, 72, 220, .42), transparent 70%),
    linear-gradient(180deg, var(--indigo), var(--ink) 78%);
}
.hero-ghost {
  width: clamp(104px, 11vw, 150px); margin: 0 auto 12px;
  filter: drop-shadow(0 10px 36px rgba(139, 108, 240, .55));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(1.5deg); } }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 760; letter-spacing: -0.02em; max-width: 14ch; margin-inline: auto; }
.sub { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 46ch; margin: 18px auto 0; line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 650; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--ghost); color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px -8px rgba(155, 125, 255, .6); }
.btn.primary:hover { color: var(--ink); background: #fff; box-shadow: 0 16px 40px -10px rgba(155, 125, 255, .75); }
.btn.quiet { background: rgba(255, 244, 234, .06); }
.btn.quiet:hover { background: rgba(255, 244, 234, .13); }
.btn .ico { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateY(-1px) scale(1.12); }
.strip :focus-visible { outline-offset: -2px; }
.meta { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

.screen {
  width: min(1240px, 100%); margin: clamp(40px, 5vw, 64px) auto 0;
  border-radius: 20px 20px 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0;
  background: #1a1440;
  box-shadow: 0 -20px 80px -30px rgba(120, 86, 240, .55);
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
}
.screen { position: relative; }
.screen video { width: 100%; aspect-ratio: 1440 / 488; object-fit: cover; }
/* Pause control for the looping hero clip (WCAG 2.2.2); it sits in the top corner, clear of the fade. */
.vid-toggle {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 99px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(9, 7, 25, .72); color: var(--ghost);
  transition: background .2s, transform .25s var(--ease), border-color .2s;
}
.vid-toggle:hover { background: rgba(59, 36, 136, .9); border-color: rgba(155, 125, 255, .6); transform: scale(1.08); }
.vid-toggle:active { transform: scale(.94); }
.vid-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.vid-toggle .i-play, .vid-toggle[aria-pressed="true"] .i-pause { display: none; }
.vid-toggle[aria-pressed="true"] .i-play { display: block; }

/* ---------- feature rows ---------- */
.features { padding-top: clamp(80px, 10vw, 128px); }
.row {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
}
.row.flip { grid-template-columns: 7fr 5fr; }
.row.flip .copy { order: 2; }
.copy p, .tile p { color: var(--muted); margin: 14px 0 0; max-width: 46ch; }
.shot { margin: 0; }
.shot img, .tile img, .moods, .final-art { border-radius: 20px; }
.shot img { border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(59, 36, 136, .9); }
/* A thin strip capture sits on a strip-coloured plate so it reads as part of the bar, not a lost sliver. */
.shot.slim { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 28px); border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(110, 72, 220, .35), transparent 70%), #07051a; }
.shot.slim img { border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(56px, 8vw, 104px); }
.tile {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(18px, 2.4vw, 28px); border-radius: 20px;
  background: linear-gradient(180deg, rgba(59, 36, 136, .35), rgba(24, 18, 56, .5));
  border: 1px solid var(--line);
}
.tile.tall { flex-direction: row; align-items: center; }
.tile.tall img { width: 44%; max-width: 250px; }
.tile:not(.tall) img { width: 100%; }
.tile:not(.tall) { justify-content: space-between; }

/* ---------- mascot band ---------- */
.mascot {
  text-align: center;
  background: radial-gradient(ellipse 50% 60% at 50% 60%, rgba(110, 72, 220, .3), transparent 70%);
}
.mascot h2, .mascot .lead { margin-inline: auto; }
.moods { width: min(860px, 100%); margin: 40px auto 0; }

/* ---------- the rest ---------- */
.rest { padding-top: 0; }
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px clamp(24px, 4vw, 48px); margin: 40px 0 0; }
.list > div { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.list dt { font: 700 1.1rem/1.3 var(--display); }
.list dd { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- tour ---------- */
.tour { padding-top: 0; }
.player { margin-top: 32px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--night); box-shadow: 0 40px 100px -40px rgba(59, 36, 136, .9); }
.player video { width: 100%; aspect-ratio: 16 / 9; }
.player:has(video:focus-visible) { outline: 2px solid var(--glow); outline-offset: 4px; }

/* ---------- privacy ---------- */
.privacy { background: linear-gradient(180deg, var(--ink), var(--indigo) 55%, var(--ink)); }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 5vw, 64px); }
.facts li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); max-width: 54ch; }
.facts strong { display: block; color: var(--ghost); font: 700 1.1rem/1.3 var(--display); margin-bottom: 6px; }
.aside { color: var(--muted); font-size: .95rem; margin: 28px 0 0; }

/* ---------- plugins ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.code {
  margin: 0; min-width: 0; border-radius: 20px; overflow: hidden;
  background: #07051a; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(59, 36, 136, .9);
}
.code figcaption { padding: 12px 18px; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: .8rem/1.7 var(--mono); color: #e9e2ff; tab-size: 2; }
.code code { font-size: inherit; }
.code .c { color: #a99fd6; }

/* ---------- faq ---------- */
.qa { margin-top: 40px; max-width: 820px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 650 1.15rem/1.35 var(--display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--glow); border-bottom: 2px solid var(--glow);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: #fff; }
summary:hover::after { translate: 0 2px; }
details[open] summary:hover::after { translate: 0 -2px; }
summary::after { transition: transform .3s var(--ease), translate .3s var(--ease); }
details p { color: var(--muted); margin: 0 0 22px; max-width: 64ch; }
details b { color: var(--ghost); }

/* ---------- final ---------- */
.final { text-align: center; padding-top: clamp(40px, 6vw, 72px); background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(110, 72, 220, .3), transparent 70%); }
.final-art { width: min(900px, 100%); margin: 0 auto 48px; }
.final h2 { margin-inline: auto; }
.note { color: var(--muted); font-size: .9rem; max-width: 52ch; margin: 22px auto 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: .94rem; background: var(--night); }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
footer p { margin: 0 0 8px; max-width: 52ch; }
footer .brand { margin-bottom: 14px; }

/* ---------- reveal (only when JS runs, so nothing hides without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .row, .row.flip, .split, .duo { grid-template-columns: 1fr; }
  .row.flip .copy { order: 0; }
  .list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sections { display: none; }
  .island { min-width: 116px; padding: 0 14px; }
  /* Phones: the island is the menu button, and the section list drops out of it like an island card. */
  .js .island { cursor: pointer; }
  .js .island .island-label::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
    border-right: 1.5px solid var(--glow); border-bottom: 1.5px solid var(--glow);
    transform: rotate(45deg); transition: transform .3s var(--ease);
  }
  .js .strip.open .island-label::after { transform: translateY(3px) rotate(-135deg); }
  .js .strip.open .sections {
    display: grid; position: absolute; top: var(--strip); left: 50%; translate: -50% 0;
    width: min(260px, calc(100vw - 32px)); padding: 8px; gap: 2px;
    background: #05040f; border: 1px solid var(--line); border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8);
    animation: drop .35s var(--ease);
  }
  .js .strip.open .sections a { padding: 12px 16px; border-radius: 12px; font: 650 1rem/1.2 var(--display); color: var(--ghost); }
  .js .strip.open .sections a::after { left: 16px; right: auto; width: 24px; bottom: 6px; }
  .js .strip.open .sections a:hover { background: rgba(155, 125, 255, .12); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scaleY(.92); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .strip .brand { font-size: 0; gap: 0; }
  .list, .facts { grid-template-columns: 1fr; }
  .tile.tall { flex-direction: column; align-items: stretch; }
  .tile.tall img { width: 100%; max-width: 300px; margin-inline: auto; }
  .btn { padding: 13px 18px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  footer .wrap { grid-template-columns: 1fr; }
  .screen { border-radius: 14px 14px 0 0; }
  .vid-toggle { top: 8px; right: 8px; width: 32px; height: 32px; }
  .code pre { font-size: .74rem; padding-right: 56px; }
  /* The code scrolls sideways on phones; a fade on the right edge says there is more. */
  .code pre { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* Download block: version line, trust notes */
.dl-meta { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }
.dl-meta a { color: var(--ghost); }
.trust { list-style: none; margin: 14px auto 0; padding: 0; max-width: 56ch; color: var(--muted); font-size: .9rem; line-height: 1.5; display: grid; gap: 6px; }
.trust b { color: var(--ghost); font-weight: 650; }
.trust a { color: var(--ghost); }
.nowrap { white-space: nowrap; }

/* Inline links in small print still get a 24px tap target without changing the line rhythm. */
.dl-meta a, .note a, footer a, details p a { display: inline-block; padding-block: 3px; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(155, 125, 255, .25); }

/* ---------- reduced motion: everything visible, nothing loops ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; padding-bottom: 64px; }
.lost .hero-ghost { opacity: .9; }
