/*
 * FitVector — marketing & legal site
 * Brand palette from docs/Fit-Trainer-Brand-Assets/BRAND_GUIDE.md.
 * One stylesheet, no build step, no JavaScript. Light + dark via prefers-color-scheme.
 */

:root {
  --electric-blue: #3b82f6;
  --sky-cyan: #22c7ff;
  --royal-violet: #7c3aed;
  --emerald: #10b981;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #0b1020;
  --text-muted: #4a5468;
  --border: #e2e8f0;
  --link: #2563eb;
  --brand-gradient: linear-gradient(
    135deg,
    #22c7ff 0%,
    #3b82f6 45%,
    #7c3aed 100%
  );

  --maxw: 760px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a14;
    --surface: #0e1524;
    --surface-2: #131c30;
    --text: #e6eaf2;
    --text-muted: #9aa6bd;
    --border: #1e293b;
    --link: #6ba4ff;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Gradient hairline across the very top */
body::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--brand-gradient);
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 19px;
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.25));
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--link);
}

/* ---- Hero (landing) ----------------------------------------------------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.hero .mark-lg {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(124, 58, 237, 0.28));
}
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-size: clamp(18px, 2.5vw, 21px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 12px;
}
.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ---- Feature cards ------------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 0 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Quick links row ---------------------------------------------------- */
.link-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0 8px;
}
.store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px 0 4px;
}
.store-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.button:hover {
  text-decoration: none;
  border-color: var(--electric-blue);
}
.button.primary {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
}
.button.primary:hover {
  opacity: 0.94;
}

/* ---- Legal / prose content ---------------------------------------------- */
main.doc {
  padding: 44px 0 24px;
}
.doc h1 {
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
}
.doc h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  padding-top: 10px;
}
.doc h3 {
  font-size: 17px;
  margin: 26px 0 6px;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--electric-blue);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0;
}
.callout.warn {
  border-left-color: var(--royal-violet);
}
.callout p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}
.callout strong {
  color: var(--text);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
table.data th {
  background: var(--surface-2);
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0 8px;
}
.toc h2 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0;
}
.toc ol {
  margin: 0;
  columns: 2;
  font-size: 15px;
}
@media (max-width: 520px) {
  .toc ol {
    columns: 1;
  }
}

/* ---- 404 ---------------------------------------------------------------- */
.center-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}
.center-screen h1 {
  font-size: 64px;
  margin: 0;
  letter-spacing: -0.03em;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--link);
}
