/* Trainr site — tokens mirror src/theme/tokens.ts (change together). */
:root {
  --background: #0a0a0a;
  --surface: #171717;
  --border: #262626;
  --border-strong: #404040;
  --foreground: #ffffff;
  --foreground-muted: #a3a3a3;
  --accent: #a3e635;
  --accent-foreground: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-foreground); }

a { color: var(--foreground); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--foreground-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--foreground-muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }

/* Buttons + badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; padding: 0 1.5rem; border-radius: 9999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { filter: brightness(1.08); color: var(--accent-foreground); }
.badge-soon {
  display: inline-flex; align-items: center; height: 3rem; padding: 0 1.25rem;
  border: 1px solid var(--border-strong); border-radius: 9999px;
  color: var(--foreground-muted); font-size: 0.9rem; white-space: nowrap;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero .container { display: grid; gap: 3rem; align-items: center; }
.hero .lede { font-size: 1.125rem; color: var(--foreground-muted); max-width: 34rem; }
.hero .lede strong { color: var(--foreground); font-weight: 600; }

/* Phone frame */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 390 / 844; padding: 10px;
  background: #000; border: 1px solid var(--border-strong); border-radius: 44px;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.hero .phone { box-shadow: 0 0 90px rgba(163, 230, 53, 0.12); }

/* Positioning strip */
.strip { padding: 1rem 0 3rem; }
.strip .container { display: grid; gap: 1rem; }
.card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card p { color: var(--foreground-muted); font-size: 0.95rem; margin: 0; }

/* Feature blocks */
.features { padding: 2rem 0; }
.feature { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.feature .phone { width: min(260px, 70vw); }
.feature p { color: var(--foreground-muted); max-width: 30rem; }

/* FAQ */
.faq { padding: 3rem 0; max-width: 46rem; }
.faq details { border: 1px solid var(--border); background: var(--surface); border-radius: 0.75rem; padding: 0 1.25rem; }
.faq details + details { margin-top: 0.75rem; }
.faq summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--foreground-muted); font-size: 1.25rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1rem; color: var(--foreground-muted); }

/* Final CTA */
.cta-final { padding: 3rem 0 5rem; text-align: center; }
.cta-final .cta-row { justify-content: center; }
.cta-final p { color: var(--foreground-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer, .site-footer a { color: var(--foreground-muted); font-size: 0.9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Legal / prose pages */
.prose { max-width: 42rem; padding: 3rem 0 5rem; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--foreground-muted); }
.prose strong { color: var(--foreground); }
.prose a { color: var(--foreground); text-decoration: underline; }
.prose a:hover { color: var(--accent); }
.prose ul { padding-left: 1.25rem; }
.prose .updated { font-size: 0.9rem; }

@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; }
  .strip .container { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature:nth-of-type(even) .phone-wrap { order: -1; }
}
