/* Beatage — shared styles for the static site.
   Colours are the app's own theme (app/styles/theme.ts): near-black ground, violet-to-pink accent.
   One stylesheet for every page so the legal pages cannot drift away from the landing page. */

:root {
  --bg: #0B0B0F;
  --card: #14141C;
  --line: #262633;
  --text: #F5F3FF;
  --muted: #A5A3B5;
  --g1: #8B5CF6;
  --g2: #EC4899;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--text); }
a:hover { opacity: .85; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px 72px; }
.narrow { max-width: 720px; }

/* ---- header ---- */

.top {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 20px 0 0; margin-bottom: 40px;
}
/* Static in the header — the logo beats once in the hero, and a second one bouncing in the corner
   at the same time reads as a glitch rather than as a signature. */
.mark { display: inline-flex; align-items: center; }
.mark img { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }

.lang { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.lang button.on { background: linear-gradient(120deg, var(--g1), var(--g2)); color: #fff; }

.back { font-size: 14px; color: var(--muted); text-decoration: none; }

/* ---- hero ---- */

.hero { text-align: center; padding: 24px 0 8px; }

/* The one place the logo beats: three hard hits at 120 BPM, then still. Same gesture the app makes
   on launch and the collage cells make on the beat. */
.hero-logo { display: block; height: 92px; width: auto; margin: 0 auto 34px; }
@keyframes beat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.16); }
  52%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.hero-logo { animation: beat .5s ease-out .35s 3 both; }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 6.5vw, 60px); line-height: 1.06; letter-spacing: -1px; margin-bottom: 20px; }
.grad { background: linear-gradient(120deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, var(--g1), var(--g2));
  color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 14px;
}
.cta.ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.cta-note { font-size: 14px; color: var(--muted); }

/* ---- stats ---- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin: 56px 0 72px;
}
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.stat b { display: block; font-size: 22px; margin-bottom: 2px; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---- sections ---- */

section { margin-bottom: 80px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sec-head .eyebrow { color: transparent; background: linear-gradient(120deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.5px; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .n { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: transparent; background: linear-gradient(120deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: linear-gradient(120deg, var(--g1), var(--g2)); color: #fff; }

/* ---- screenshots ---- */

.shots {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 22px; border: 1px solid var(--line);
}
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ---- legal / text pages ---- */

.stand { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
h3 { font-size: 17px; margin: 28px 0 6px; }
p, li { color: var(--muted); font-size: 15px; }
p + p { margin-top: 10px; }
ul { margin: 8px 0 0 20px; }
li { margin-bottom: 4px; }
strong { color: var(--text); font-weight: 600; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 12px; }
.box p { color: var(--text); }

/* Legal pages keep the old, tighter heading rhythm. */
.narrow h2 { font-size: 26px; margin-bottom: 6px; }

/* ---- support form ---- */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.send {
  font: inherit; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, var(--g1), var(--g2)); border: 0; border-radius: 14px; padding: 15px 28px;
}

footer { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
