@font-face { font-family: Inter; src: url(fonts/Inter_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --raised: #ffffff;
  --text: #12161c;
  --muted: #5a6370;
  --accent: #c2410c;
  --accent-soft: #fff1e8;
  --on-accent: #ffffff;
  --border: #e2e5ea;
  --run: #0f766e;
  --bike: #6d28d9;
  --swim: #0369a1;
  --z0: #e2e5ea;
  --z1: #7a8a99;
  --z2: #2f7fbf;
  --z4: #a87400;
  --success: #1a7f4b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --surface: #161a21; --raised: #1d222b; --text: #eef1f5; --muted: #a3acb9;
    --accent: #fb923c; --accent-soft: #3a1d0b; --on-accent: #2a1203; --border: #2a313c;
    --run: #2dd4bf; --bike: #a78bfa; --swim: #38bdf8;
    --z0: #2a313c; --z1: #8a9aaa; --z2: #4ea3e6; --z4: #f0b429; --success: #4ade80;
    --shadow: 0 12px 32px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo { width: 30px; height: 30px; }
.logo rect { fill: var(--accent); }
.logo path { fill: none; stroke: var(--on-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--text); }
@media (max-width: 640px) { nav a:not(.btn):not(.lang a) { display: none; } .lang a { display: inline; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--on-accent) !important; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); transition: transform .15s ease, opacity .15s ease; }
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 80px; background: radial-gradient(1200px 400px at 85% 0%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.sports { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 15px; }
.sports li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.run { background: var(--run); } .dot.bike { background: var(--bike); } .dot.swim { background: var(--swim); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 56px; } }

/* workout card mock */
.mock { margin: 0; background: var(--raised); border: 1px solid var(--border); border-left: 5px solid var(--run); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.tag { color: var(--run); border: 1px solid var(--run); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.mock-title { font-size: 20px; font-weight: 600; margin: 14px 0 18px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.bars i { display: block; height: var(--h); flex: 0 0 var(--w); border-radius: 3px 3px 0 0; }
.z0 { background: var(--z0); } .z1 { background: var(--z1); } .z2 { background: var(--z2); } .z4 { background: var(--z4); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats .ok { color: var(--success); }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--raised); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.steps p, .features p, .coach p { color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

.coach { display: flex; gap: 32px; align-items: center; max-width: 820px; }
.coach h2 { margin-bottom: 12px; }
.avatar { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 36px; font-weight: 700; }
@media (max-width: 640px) { .coach { flex-direction: column; align-items: flex-start; } .avatar { width: 80px; height: 80px; font-size: 26px; } }

.contact { text-align: center; background: var(--surface); }
.contact .lead { margin: 0 auto 24px; }
.contact .btn { word-break: break-all; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc li { margin-bottom: 8px; }
.doc ul { padding-left: 20px; }

/* sign-in helper pages (reset password, email confirmed) */
.auth { max-width: 440px; }
.auth form { display: grid; gap: 8px; margin-top: 16px; }
.auth label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.auth input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--muted); background: var(--bg); color: var(--text); font: inherit; }
.auth input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth .btn { margin-top: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.auth .btn:disabled { opacity: .5; cursor: progress; }
.error { color: #b42318; }
.ok { color: var(--success); font-weight: 600; }
@media (prefers-color-scheme: dark) { .error { color: #f87171; } }
[hidden] { display: none !important; }

/* Language switcher in the nav: quiet, never the first thing you read. */
.lang { font-size: .82rem; letter-spacing: .04em; opacity: .85; white-space: nowrap; }
.lang a { margin: 0; }
.lang-on { font-weight: 700; }
.contact-mail { margin-top: 18px; font-size: .92rem; }
.contact .cta { justify-content: center; }
