/* W-Fitness landing — tokens from the app (mobile/src/ui/theme.ts): white minimal, one accent, Roboto. */
:root {
  --bg: #FFFFFF;
  --surface: #F6F6F4;
  --raised: #EEEEEB;
  --line: #E4E4E0;
  --line-strong: #D2D2CD;
  --text: #111111;
  --secondary: #4A4D4B;
  --muted: #5E625F;
  --faint: #B9BCB9;
  --accent: #2B50FF;
  --accent-hover: #1F43F0;
  --accent-tint: #2B50FF14;
  --accent-soft: #EEF1FF;
  --danger: #B42318;
  --success: #116329;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* also for SVG, which ignores the attribute */
/* Even line breaks on narrow screens: no lone last word, no heading split mid-phrase. */
h1, h2, h3 { text-wrap: balance; }
p, li, summary, legend { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.lead { color: var(--secondary); font-size: 18px; max-width: 48ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header / footer ---------- */
header.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
header.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
nav.links { display: flex; gap: 24px; margin-left: auto; }
nav.links a { text-decoration: none; color: var(--secondary); font-size: 15px; font-weight: 500; }
nav.links a:hover { color: var(--text); }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 999px; color: var(--secondary); font-size: 14px; font-weight: 600; text-decoration: none;
}
.lang-switch:hover { background: var(--surface); color: var(--text); }
@media (max-width: 820px) { nav.links { display: none; } .top .lang-switch { margin-left: auto; } }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 15px; color: var(--text); }
footer .brand img { width: 24px; height: 24px; }
footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font: 600 15px/1 Roboto, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--raised); }
.btn-link { background: none; color: var(--accent); padding: 0 4px; }

/* ---------- Sign-up form ---------- */
.signup { display: grid; gap: 12px; max-width: 520px; }
.signup .row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input[type=email] {
  flex: 1 1 220px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: #fff; font: inherit; color: var(--text);
}
.signup input[type=email]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.signup input[aria-invalid=true] { border-color: var(--danger); }
.signup .btn { min-height: 48px; }
@media (max-width: 480px) { .signup .row > * { flex: 1 1 100%; } }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg legend { float: left; margin-right: 6px; font-size: 14px; color: var(--secondary); font-weight: 500; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--secondary); font-size: 14px; font-weight: 500;
}
.seg input:checked + span { background: var(--text); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-msg { margin: 0; font-size: 14px; min-height: 0; }
.form-msg.error { color: var(--danger); }
.signup-done {
  display: flex; gap: 12px; align-items: flex-start; max-width: 520px;
  padding: 16px 18px; border-radius: var(--radius-lg); background: var(--accent-soft);
}
.signup-done svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.signup-done b { display: block; }
.signup-done p { margin: 4px 0 0; color: var(--secondary); font-size: 15px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head .lead { margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--secondary); }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.ticks b { color: var(--text); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

/* ---------- Prose pages (privacy) ---------- */
.prose { max-width: 760px; padding: 56px 20px 88px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--secondary); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--accent); font-weight: 500; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; background: var(--surface); }
.prose td { color: var(--secondary); }
.table-scroll { overflow-x: auto; }
