/* MADBASE marketing site — shared styles for the landing page + privacy policy.
   Design tokens mirror the app (client/src/index.css) and the 10B brand:
   steel wordmark, gold accent, violet/blue ambient glows from the splash. */

@font-face {
  font-family: 'CruyffBold';
  src: url('/fonts/cruyff_sans_bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #06060e;
  --surface: #12121c;
  --surface-raised: #181826;
  --line: rgba(255, 255, 255, 0.08);
  --text: #edeef4;
  --muted: rgba(237, 238, 244, 0.62);
  --dim: rgba(237, 238, 244, 0.38);
  --gold: #f2cf45;
  --gold-ink: #1a1400;
  --violet: #7c3aed;
  --blue: #2f6bff;
  --radius: 14px;
  --font-display: 'CruyffBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glows — same palette as the Android splash screens */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(60% 55% at 10% 92%, rgba(47, 107, 255, 0.14), transparent 70%);
}

.wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Landing ──────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  margin-bottom: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(44px, 12vw, 76px);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
}

/* Steel gradient on MADBASE, gold on the 26 — matches the in-app header */
.wordmark .mb {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 46%, #aab4c4 54%, #8e99ab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark .yr {
  font-size: 0.52em;
  background: linear-gradient(180deg, #fdeea0 0%, var(--gold) 55%, #d9a92e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 4vw, 18px);
  max-width: 30ch;
}

.soon {
  margin: 38px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 10vw, 54px);
  line-height: 1.05;
  letter-spacing: 0.09em;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(242, 207, 69, 0.34);
}

.features {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Call to action — swapped server-side once play_store_url is configured */
.cta {
  display: inline-block;
  margin-top: 44px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.cta--live {
  background: linear-gradient(180deg, #fdeea0 0%, var(--gold) 55%, #d9a92e 100%);
  color: var(--gold-ink);
  box-shadow: 0 10px 30px rgba(242, 207, 69, 0.22);
}

.cta--soon {
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--dim);
  cursor: default;
}

/* Banner under the CTA — inset, not full-bleed, so the page background frames
   it on all sides. Caps at 560px so it stays a feature rather than a billboard
   on desktop; on phones it fills the hero's content width (viewport - 48px). */
.banner {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 52px auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 26px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--gold); }

.disclaimer {
  margin: 12px auto 0;
  max-width: 52ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

/* ── Document pages (privacy policy) ──────────────────────────────────────── */

.doc { padding: 56px 0 72px; }

.doc-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.doc-back:hover { color: var(--gold); }

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 38px);
  margin: 0 0 6px;
  line-height: 1.15;
}

.doc .updated {
  margin: 0 0 36px;
  color: var(--dim);
  font-size: 13px;
}

.doc h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 40px 0 10px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.doc h3 {
  font-size: 15px;
  margin: 24px 0 6px;
  color: var(--text);
}

.doc p, .doc li { color: var(--muted); font-size: 15px; }

.doc ul { padding-left: 20px; }

.doc li { margin-bottom: 7px; }

.doc a { color: var(--gold); }

.doc strong { color: var(--text); font-weight: 600; }

.doc .lede {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 8px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc th { background: var(--surface); color: var(--text); font-weight: 600; }

.doc td { color: var(--muted); }
