/* AthletIQ marketing site stylesheet
 * Mirrors the app's brand language (DM Sans + DM Mono, AthletIQ green
 * primary) but applies marketing-grade polish: bigger type, more whitespace,
 * generous line-height. Pure CSS, no Tailwind, no JS dependencies. */

:root {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --fg: #19211c;             /* matches app's --foreground */
  --fg-muted: #7a8580;       /* matches app's --muted-foreground */
  --border: #cdd1cf;         /* matches app's --border */
  --primary: #1fb959;        /* matches app's --primary (hsl 142 72% 42%) */
  --primary-fg: #ffffff;
  --primary-dark: #178b44;
  --accent: #f0f3f1;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1140px;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* Layout helpers */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.site-header .brand .iq { color: var(--primary); }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav a {
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--fg); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.04s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(31, 185, 89, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 80% 0%, rgba(31, 185, 89, 0.04), transparent 60%),
    var(--bg);
  text-align: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 .iq { color: var(--primary); }
.hero p.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--fg-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero .cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 72px 0;
}
section h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
  text-align: center;
  font-weight: 700;
}
section .section-lede {
  text-align: center;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* Dual-audience cards */
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dual .card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.dual .card .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.dual .card h3 {
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.dual .card p {
  color: var(--fg-muted);
  margin: 0 0 22px;
}
.dual .card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.dual .card li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--fg);
  font-size: 16px;
}
.dual .card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features .feature {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.features .feature .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(31, 185, 89, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.features .feature h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.features .feature p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Final CTA strip */
.cta-strip {
  padding: 96px 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border-top: 1px solid var(--border);
}
.cta-strip h2 { margin-bottom: 32px; }

/* Footer */
.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 14px;
}
.site-footer .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--fg); text-decoration: none; }

/* Legal / support pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.doc h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.doc .effective {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0 0 32px;
}
.doc h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.doc h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 600;
}
.doc p, .doc li { color: var(--fg); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .callout {
  border-left: 3px solid var(--primary);
  background: rgba(31, 185, 89, 0.05);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

/* Responsive */
@media (max-width: 800px) {
  .dual { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero .cta-row .btn { width: 100%; }
}
