:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --surface: #232323;
  --border: #333;
  --text: #f2f2f2;
  --text-muted: #a8a8a8;
  --accent: #e8734a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

header.page-header .mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1a1a1a;
  font-size: 18px;
  flex-shrink: 0;
}

header.page-header .name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

.updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

h2 {
  font-size: 18px;
  margin: 40px 0 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

h3 {
  font-size: 15px;
  margin: 24px 0 8px;
  color: var(--text);
}

p, li { color: var(--text-muted); font-size: 15px; }
strong { color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

.card h3 { margin-top: 0; }

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 8px;
}
.btn:hover { text-decoration: none; opacity: 0.9; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.nav-links {
  margin-top: 12px;
  font-size: 14px;
}
.nav-links a { margin-right: 16px; }

/* Coach invite landing page (invite.html) */
.code-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin: 20px 0;
}

.code-box .code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.btn-block:hover { opacity: 0.9; }

.btn-block.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

#loading {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
