/* MMA Live landing page. Colours from the app theme (mma-live-frontend app/theme/colors.ts). */
:root {
  --bg: #202020;            /* neutral.background */
  --surface: #2f2f2f;       /* neutral.surface */
  --surface-2: #262626;     /* neutral.surfaceContainer */
  --outline: #444444;       /* neutral.outlineVariant */
  --text: #e6e6e6;          /* neutral.onSurface, 13:1 on bg */
  --text-muted: #b0b0b0;    /* neutral.onSurfaceVariant, 7.5:1 on bg */
  --primary: #ab93db;       /* brand.primary, 6.1:1 on bg */
  --on-primary: #1a1525;    /* brand.onPrimary */
  --primary-container: #4a3b6b;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
a:focus-visible, .store-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--primary); color: var(--on-primary);
  padding: .5rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--outline); background: var(--surface-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { border-radius: 8px; }
.header-cta {
  color: var(--primary); text-decoration: none; font-weight: 600;
  border: 1px solid var(--primary); padding: .35rem .9rem; border-radius: 999px;
}
.header-cta:hover { background: var(--primary-container); color: #e8dff7; }

/* Hero */
.hero {
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem);
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(171,147,219,.18), transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: clamp(112px, 22vw, 160px); height: auto; border-radius: 28%; box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 0 1px var(--outline); }
h1 { font-size: clamp(2.4rem, 7vw, 3.75rem); line-height: 1.1; margin: 1.5rem 0 .75rem; letter-spacing: -.01em; }
.tagline { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; margin: 0 auto .75rem; max-width: 34ch; }
.subline { color: var(--text-muted); margin: 0 auto 2rem; max-width: 52ch; }

/* Store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  min-width: 200px; padding: .65rem 1.25rem;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #a6a6a6; border-radius: 10px; text-align: left;
}
a.store-btn:hover { background: #111; border-color: #fff; }
.store-btn.is-soon { cursor: default; opacity: .8; }
.store-glyph { width: 28px; height: 28px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-kicker { font-size: .75rem; color: #d0d0d0; }
.store-name { font-size: 1.25rem; font-weight: 600; }
.store-note { color: var(--text-muted); font-size: .95rem; margin: 1rem 0 0; }

/* Highlights */
.highlights { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 0 0 1.5rem; text-align: center; }
.cards {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem;
}
.cards > .card { flex: 1 1 300px; max-width: 352px; }
@media (max-width: 420px) { .cards > .card { max-width: none; } }
.card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  border-top: 3px solid var(--primary);
}
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; line-height: 1.3; }
.card p { margin: 0; color: var(--text-muted); }

/* Privacy blurb */
.privacy-blurb { padding: 0 0 clamp(3rem, 8vw, 5rem); text-align: center; }
.privacy-blurb .container {
  background: var(--surface-2); border: 1px solid var(--outline);
  border-radius: var(--radius); padding: 2rem 1.5rem;
}
.privacy-blurb h2 { margin-bottom: .75rem; }
.privacy-blurb p { color: var(--text-muted); margin: 0 auto; max-width: 60ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); background: var(--surface-2); color: var(--text-muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-inner ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.footer-inner a { color: var(--text); }
.footer-inner a:hover { color: var(--primary); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .btn {
  display: inline-block; margin-top: 1rem; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
}
.notfound-icon { margin: 0 auto; border-radius: 22px; }

/* Screenshot strip (Google Play phone set). Scrolls sideways at every width. */
.screens { padding: 0 0 clamp(3rem, 8vw, 5rem); }
.screens h2 { margin-bottom: .4rem; }
.screens-hint { text-align: center; color: var(--text-muted); margin: 0 0 1.5rem; font-size: .95rem; }
.shot-strip {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--outline) transparent;
  padding-bottom: 1rem;
}
.shot-strip:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.shot-list {
  list-style: none; margin: 0; padding: 0 max(1.25rem, (100% - 1100px) / 2);
  display: flex; gap: 1.25rem; width: max-content;
}
.shot { scroll-snap-align: center; flex: none; width: 240px; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: 18px; border: 1px solid var(--outline);
  background: var(--surface-2);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
@media (max-width: 600px) { .shot { width: 62vw; } }

/* "Coming soon" pill above the store buttons (driven by STORE_LINKS) */
.soon-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.1rem; padding: .45rem 1rem;
  background: var(--primary-container); color: #e8dff7; /* 7.67:1 */
  border: 1px solid var(--primary); border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.3;
  text-align: center;
}
.soon-pill[hidden] { display: none; }
.soon-dot {
  width: .55rem; height: .55rem; flex: none; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(171,147,219,.25);
}
