/* Proposed (#site): the public Traxs site. Dark like the app, Traxs orange, no tracking. */
:root { --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --text: #f2f2f7; --muted: rgba(235,235,245,.62); --accent: #ff8a5b; --brand: #e2502a; --line: rgba(84,84,88,.65); --max: 1120px;
  /* The app's corners (src/theme/tokens.ts radius) and spacing, so the site matches it. See docs/web-design.md. */
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 20px; --r-xxl: 24px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
nav.top { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
nav.top img { height: 26px; display: block; }
nav.top .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
nav.top .links a { color: var(--text); }
nav.top .links a.on { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 24px; font-weight: 700; font-size: 16px; background: var(--brand); color: #fff; border: 0; cursor: pointer; }
.btn.ghost { background: var(--card); color: var(--text); }
.btn.small { height: 38px; padding: 0 16px; font-size: 15px; }
h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 850; }
h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
section { padding: 72px 0; }
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.phones { display: flex; gap: 18px; justify-content: center; }
.phone { width: 230px; aspect-ratio: 402/874; border-radius: 36px; overflow: hidden; border: 6px solid #1c1c1e; box-shadow: 0 24px 60px rgba(226,80,42,.18), 0 0 0 1px #333; background: #000; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone.tilt { transform: translateY(36px); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--card); border-radius: var(--r-xl); padding: 22px; }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
ul.ticks li { padding-left: 28px; position: relative; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.band { background: linear-gradient(160deg, #b4441c, #4a1a0a); border-radius: var(--r-xxl); padding: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { background: var(--card); border-radius: var(--r-xl); overflow: hidden; display: block; color: var(--text); }
.plan .top { padding: 18px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.plan .top .wk { font-size: 34px; font-weight: 850; line-height: 1; }
.plan .body { padding: 14px 18px 18px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.pill.b { background: rgba(48,209,88,.16); color: #30d158; } .pill.i { background: rgba(10,132,255,.18); color: #5eb0ff; } .pill.a { background: rgba(255,69,58,.18); color: #ff6b61; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 22px; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; display: inline-flex; align-items: center; background: var(--card); color: var(--text); font-weight: 600; font-size: 15px; }
.chip.on { background: var(--brand); color: #fff; }
.stats { display: flex; gap: 10px; margin: 18px 0; }
.stat { background: var(--card); border-radius: var(--r-l); padding: 12px 16px; min-width: 96px; }
.stat b { font-size: 26px; display: block; line-height: 1.1; }
.rows { background: var(--card); border-radius: var(--r-l); overflow: hidden; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.rows div:first-child { border-top: 0; }
.rows span:last-child { color: var(--muted); }
form .field { margin: 0 0 14px; }
form label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
form input, form textarea, form select { width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 14px; font: inherit; }
form textarea { min-height: 96px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); margin: 6px 0 18px; }
footer.site { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
footer.site a { color: var(--muted); }
.crumb { font-size: 15px; margin: 26px 0 14px; display: block; }
@media (max-width: 760px) {
  h1 { font-size: 40px; } h2 { font-size: 28px; } .lead { font-size: 18px; }
  nav.top .links { display: none; } nav.top .menu { margin-left: auto; }
  .hero, .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; }
  .grid, .cards { grid-template-columns: 1fr; } .phone { width: 170px; border-radius: 28px; border-width: 5px; } .phone.tilt { transform: translateY(24px); }
  section { padding: 48px 0; } .band { padding: 28px 20px; } .hero { padding-top: 36px; }
}
@media (min-width: 761px) { nav.top .menu { display: none; } }
.btn { white-space: nowrap; }
.rows span:last-child { white-space: nowrap; }
@media (max-width: 760px) { nav.top .wrap { gap: 14px; } }

/* Server-drawn pages (Plan Store, plans) and the rest of the site. */
.pad { padding-top: 44px; padding-bottom: 40px; }
.h1s { font-size: 48px; } .h1p { font-size: 40px; margin: 0 0 10px; }
h2.group { font-size: 22px; margin: 34px 0 12px; }
.plan h3 { margin-top: 8px; } .plan .row { display: flex; justify-content: space-between; gap: 8px; }
.plan .top .wk span { font-size: 15px; font-weight: 600; }
.small { font-size: 14px; } .light { color: #ffe3d6; margin: 0; } .eyebrow.light { color: #ffd2bf; }
.band .by { margin: 16px 0 0; font-weight: 700; }
.pill.x { background: #2c2c2e; color: var(--muted); }
.tile.cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 44px 0 20px; } .tile.cta > div { flex: 1; min-width: 240px; } .tile.cta p { margin: 0; }
.tile.get { margin-top: 22px; }
.split.top { align-items: start; gap: 44px; }
.chip { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
.note.legal { margin: 48px 0 0; }
details.menu { margin-left: auto; position: relative; }
details.menu summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--text); padding: 8px 4px; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu > div { position: absolute; right: 0; top: 40px; background: var(--card); border-radius: 16px; padding: 8px; display: grid; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
details.menu > div a { color: var(--text); padding: 10px 12px; border-radius: 10px; font-weight: 600; } details.menu > div a.on { color: var(--accent); }
footer.site .end { margin-left: auto; }
@media (min-width: 761px) { details.menu { display: none; } }
@media (max-width: 760px) { .h1s { font-size: 36px; } .h1p { font-size: 30px; } footer.site .end { margin-left: 0; } }
.msg { border-radius: var(--r-m); padding: 12px 16px; margin: 0 0 14px; font-weight: 600; } .msg.ok { background: rgba(48,209,88,.16); color: #30d158; } .msg.err { background: rgba(255,69,58,.16); color: #ff6b61; }
.hp { position: absolute; left: -9999px; }
/* Long pages: the privacy policy, terms and help. */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: 40px; } .doc h2 { font-size: 24px; margin: 36px 0 8px; } .doc h3 { margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); } .doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc .summary { background: var(--card); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); } .doc th { color: var(--muted); }
.rows.phases span:first-child { white-space: nowrap; } .rows.phases span:last-child { white-space: normal; text-align: right; }
@media (max-width: 760px) { .rows.phases div { flex-direction: column; gap: 2px; } .rows.phases span:last-child { text-align: left; } }
/* A coach's page (#397). */
.band.coach { padding: 32px; margin-bottom: 16px; }
.band.coach .who { display: flex; align-items: center; gap: 18px; }
.band.coach .face { width: 84px; height: 84px; border-radius: 42px; flex: none; object-fit: cover; background: rgba(0,0,0,.28); color: #fff; font-size: 36px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.band.coach .h1p { margin: 0; }
.band.coach .headline { font-size: 20px; font-weight: 700; margin: 20px 0 6px; }
.band.coach .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.band.coach .tag { padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,0.18); color: #fff; font-size: 13px; font-weight: 600; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.code { font-size: 30px; font-weight: 850; letter-spacing: .08em; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .band.coach { padding: 24px 20px; } .band.coach .face { width: 64px; height: 64px; font-size: 28px; } .cards.two { grid-template-columns: 1fr; } }
.stat.hi b { color: var(--accent); }
.stats { flex-wrap: wrap; }
@media (max-width: 760px) { .stats { display: grid; grid-template-columns: 1fr 1fr; } }
/* A plan's flavour (#418): what it works, as bars. */
.rows.muscles span.bar { flex: 0 0 55%; height: 8px; border-radius: 4px; background: var(--card2); align-self: center; overflow: hidden; }
.rows.muscles span.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
p.phase { margin: 14px 0 6px; font-weight: 600; }
/* A coach's page (#430): a tile for each part, like the Train tab in the app, so the page stays short on a phone. */
.navtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 22px; }
.tile.nav { display: flex; flex-direction: column; gap: 2px; padding: 16px; min-height: 120px; color: inherit; text-decoration: none; }
.tile.nav .ic { margin-bottom: auto; }
.tile.nav b { font-size: 17px; margin-top: 12px; }
.tile.nav .muted { font-size: 14px; }
.tile.nav:hover { background: var(--card2); }
@media (max-width: 760px) { .navtiles { gap: 10px; } .tile.nav { padding: 12px; min-height: 104px; } .tile.nav b { font-size: 15px; } .tile.nav .muted { font-size: 13px; } }
.split.top > div > .tile.get:first-child { margin-top: 0; }

/* Sign in beside Get Traxs; on a phone it is in the menu. */
nav.top .signin { margin-left: -12px; }
@media (max-width: 760px) { nav.top .signin { display: none; } }
/* Get the app (#515): iPhone and iPad only, see banner.js. */
.app-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 6px; background: var(--card); border-bottom: 1px solid var(--line); }
.app-banner .x { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.app-banner img { flex: none; border-radius: 8px; }
.app-banner .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 17px; color: var(--muted); }
.app-banner .t strong { color: var(--text); font-size: 15px; line-height: 20px; }
.app-banner .btn.small { flex: none; height: 34px; padding: 0 14px; font-size: 14px; }
/* Links to a part of a page land below the sticky nav. */
[id] { scroll-margin-top: 84px; }
