/*
  Push-up Track docs site styling.
  Matches the in-app design tokens: deep navy background, mint accent, generous
  line-height for legal-document readability. Mobile-first; widens to a fixed
  reading-column on tablet/desktop.
*/

:root {
  --bg: #070B14;
  --bg-2: #0B0F19;
  --surface: #11151F;
  --surface-2: #1A2030;
  --border: rgba(97, 249, 177, 0.15);
  --primary: #61F9B1;
  --primary-soft: rgba(97, 249, 177, 0.14);
  --on-surface: #E9EEF6;
  --on-surface-variant: #A8B4CC;
  --on-surface-muted: #7C8AA0;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
               Arial, system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(97, 249, 177, 0.08) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ------------------------------------------------------------------ Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-surface);
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #61F9B1 0%, #3DDC97 100%);
  display: grid;
  place-items: center;
  color: #0B0F19;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 14px rgba(97, 249, 177, 0.32);
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name .dot { color: var(--primary); }
.nav { display: flex; gap: 20px; }
.nav a {
  font-size: 14px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--primary); }

/* ------------------------------------------------------------------ Main */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  text-align: center;
  padding: 32px 0 48px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero p {
  font-size: 18px;
  color: var(--on-surface-variant);
  max-width: 480px;
  margin: 0 auto;
}

/* Card grid on the landing page */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--on-surface);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--primary); }
.card h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.card p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0;
}

/* ------------------------------------------------------------------ Document pages */
.doc-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.doc-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.doc-meta {
  font-size: 14px;
  color: var(--on-surface-muted);
}
.doc-meta strong { color: var(--on-surface-variant); }

.doc article {
  font-size: 16px;
  color: var(--on-surface-variant);
}
.doc article h2 {
  color: var(--on-surface);
  font-size: 20px;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}
.doc article h2:first-of-type { margin-top: 0; }
.doc article p { margin-bottom: 14px; }
.doc article ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
}
.doc article ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.doc article ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.7;
}
.doc article strong { color: var(--on-surface); font-weight: 600; }
.doc article code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--primary);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.doc article a { color: var(--primary); }
.doc article a:hover { text-decoration: underline; }

.tldr {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 32px;
}
.tldr-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.tldr p { color: var(--on-surface); margin: 0; }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--on-surface-muted);
}
.site-footer a { color: var(--on-surface-variant); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer p + p { margin-top: 6px; }
