/* Motion Bay — wordless marketing site.
   Palette borrowed from the Twoby2 Studios site for family resemblance. */

/* Visually hidden, but present for screen readers, search engines, and AI
   crawlers. The visible hero is wordless; this is how the page carries text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f0f0f5;
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);
  --accent: #4f8fff;
  --accent-glow: rgba(79, 143, 255, 0.15);
  --teal: #2dd4bf;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Hero: full-viewport wordless canvas ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #14141f 0%, var(--bg) 70%);
}

#hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none; /* let the canvas own pointer gestures */
}

#hud canvas {
  display: block;
}

/* The App Store badge is styled entirely by index.astro's scoped rule
   (top-right corner). No global .badge rule — a global one leaks its
   left/transform into the scoped rule via per-property cascade and drags
   the badge to center. */

/* Footer: discreet icon-links to the two required Apple text pages.
   Tiny, corner-anchored, so the wordless canvas stays uninterrupted. */
.legal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  gap: 14px;
}
.legal a {
  color: var(--text-muted);
  transition: color 0.2s;
  line-height: 0;
}
.legal a:hover {
  color: var(--text-dim);
}
.legal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---- Text pages (privacy / support): plain, readable, crawlable ---- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  line-height: 1.7;
}
.doc a.home {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--text-muted);
  text-decoration: none;
}
.doc a.home:hover {
  color: var(--text-dim);
}
.doc h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 8px;
}
.doc p,
.doc li {
  color: var(--text-dim);
}
.doc ul {
  padding-left: 20px;
  margin: 8px 0;
}
.doc a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
