/* FocusChamps marketing + legal site */

:root {
  --purple-light: #7c8ff5;
  --purple: #667eea;
  --purple-dark: #5567d8;
  --gold-light: #ffe9b8;
  --gold: #ffd89b;
  --gold-dark: #f0b94a;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg: #f8f9fc;
  --card: #ffffff;
  --border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--purple-light), var(--purple) 50%, var(--purple-dark));
  color: white;
  padding: 80px 20px 100px;
  text-align: center;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  display: block;
  position: relative;
}

.hero h1 {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  position: relative;
}

.hero .tagline {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.92;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.hero .coming {
  margin-top: 32px;
  display: inline-block;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  backdrop-filter: blur(4px);
}

/* ── App store CTA buttons ───────────────────────── */
.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  text-decoration: none;
  min-width: 180px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #161616;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.store-badge:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.store-badge svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge-small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.85;
  text-transform: none;
}

.store-badge-large {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.cta-subtext {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.88;
  letter-spacing: 0.2px;
  position: relative;
}

/* Device-aware ordering: surface the matching store first.
   The .is-ios / .is-android class is set by the inline script
   in index.html before paint, so the badges never visibly reorder. */
.is-android .store-badge-apple { order: 2; }
.is-ios .store-badge-google { order: 2; }

/* ── Features ─────────────────────────────────────── */
.features {
  max-width: 960px;
  margin: -60px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(102, 126, 234, 0.12);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Audience strip ──────────────────────────────── */
.audience {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 0 20px;
  text-align: center;
}

.audience h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.audience p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Legal pages ─────────────────────────────────── */
.legal-header {
  background: linear-gradient(135deg, var(--purple-light), var(--purple) 50%, var(--purple-dark));
  padding: 22px 20px;
  text-align: center;
}

.legal-header a {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.legal-header svg {
  width: 32px;
  height: 32px;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 20px;
}

.content h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  color: var(--text);
}

.content .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

.content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.content ul,
.content ol {
  margin-left: 22px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 6px;
}

.content strong {
  color: var(--text);
  font-weight: 700;
}

.content a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.content a:hover {
  border-bottom-color: var(--purple);
}

.content code {
  background: #eef0ff;
  color: var(--purple);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 90%;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  max-width: 960px;
  margin: 80px auto 0;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
}

footer a:hover {
  color: var(--purple);
}

footer .copyright {
  margin-top: 14px;
  font-size: 13px;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 60px 16px 80px; }
  .hero h1 { font-size: 42px; letter-spacing: -1px; }
  .hero .tagline { font-size: 17px; }
  .hero-logo { width: 80px; height: 80px; }

  .features {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

  .audience h2 { font-size: 24px; }
  .content { padding: 40px 16px 20px; }
  .content h1 { font-size: 30px; }
  .content h2 { font-size: 19px; }

  footer a { display: inline-block; margin: 4px 8px; }

  /* Stack the store badges on narrow phones for a bigger tap target. */
  .cta-row { gap: 10px; }
  .store-badge { min-width: 220px; }
}
