/* ─── FreeKin — shared styles ───────────────────────────────────────────── */
/* Design language (from app/packages/ui/src/tokens.ts): "clean & airy" —      */
/* light background, generous whitespace, borderless surfaces lifted with soft */
/* shadows, a calm forest-green brand accent.                                  */

:root {
  --bg: #F4F6F3;          /* soft natural off-white */
  --surface: #FFFFFF;
  --surface-alt: #EDF1EC; /* subtle filled surfaces (inputs, chips) */
  --text: #16201B;
  --text-secondary: #45524C;
  --text-muted: #6B7672;
  --text-faint: #9AA39E;
  --border: #E6EBE3;      /* hairline */
  --accent: #2F7D5B;      /* forest green */
  --accent-dark: #26684C; /* pressed / emphasis */
  --accent-muted: #E2EFE8;/* tinted fills */
  --danger: #D14A43;
  /* multi-axis difficulty */
  --cardio: #D9663F;
  --technical: #7B59C4;
  --exposure: #3D85C4;
  --star: #E0A12E;
  --shadow-card: 0 6px 22px rgba(14, 31, 22, 0.08);
  --shadow-sm: 0 2px 8px rgba(14, 31, 22, 0.06);
  --max-width: 720px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ── Header ── */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 66px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

header.site .brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
header.site .brand span { color: var(--accent); }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

header.site nav { display: flex; align-items: center; gap: 2px; }

header.site nav a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
header.site nav a:hover {
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
}

header.site .nav-download {
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
}
header.site .nav-download:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

/* ── Typography (content pages) ── */
h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 8px;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

p, ul { color: var(--text-secondary); margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.btn:hover { text-decoration: none; background: var(--accent-dark); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}

/* ── Numbered steps ── */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  padding-left: 40px;
  position: relative;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer (content pages) ── */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
footer.site a { color: var(--text-muted); margin: 0 10px; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 640px) {
  header.site { padding: 0 20px; }
  header.site nav a:not(.nav-download) { display: none; }
  .nav-download { margin-left: 0 !important; }
}

@media (max-width: 520px) {
  h1 { font-size: 26px; }
  h2 { font-size: 18px; margin-top: 28px; }
}
