/* Rackhouse — black, orange #FF6A00, lime #C6FF66, Archivo (self-hosted, SIL OFL). Dark only, like the app. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #000;
  --card: #121212;
  --sunken: #1a1a1a;
  --border: #262626;
  --line: #333;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --orange: #ff6a00;
  --lime: #c6ff66;
  --max: 1100px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Wide heavy caps, as in the app */
.display, h1, h2, .brand, .btn, .eyebrow {
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
}
.outlined {
  color: var(--orange);
  -webkit-text-stroke: 0.09em var(--lime);
  paint-order: stroke fill;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,.86);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 2px solid #1f1f1f; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--orange); text-decoration: none; font-size: 20px;
  letter-spacing: 0.01em; }
.brand:hover { color: var(--orange); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 4px; font-size: 15px; letter-spacing: 0.08em; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { color: #000; background: #ff7d22; }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn[aria-disabled="true"] { cursor: default; background: transparent; border: 2px dashed var(--line); color: var(--muted); }

/* Hero */
.hero { padding: 80px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.16em; color: var(--lime); margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 0.95; letter-spacing: 0; margin: 0 0 24px; }
.lede { font-size: 20px; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Phone mock: the active workout screen */
.phone { background: #000; border: 2px solid var(--line); border-radius: 44px; padding: 26px 18px 22px;
  box-shadow: 0 40px 90px -30px rgba(255,106,0,.35); max-width: 360px; width: 100%; margin-left: auto; }
.phone .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.phone .title { font-stretch: 125%; font-weight: 900; font-size: 24px; color: var(--orange); text-transform: uppercase; line-height: 1; }
.phone .clock { font-weight: 900; color: var(--lime); font-variant-numeric: tabular-nums; }
.phone .meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ex { background: var(--card); border: 2px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.ex-name { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 15px; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 24px 1fr 52px 40px 28px; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }
.row.head { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.row .n { font-weight: 900; text-align: center; }
.row .w { color: var(--orange); }
.row .prev { color: var(--muted); font-size: 12px; }
.row .cell { background: var(--sunken); border-radius: 4px; text-align: center; padding: 4px 0; font-weight: 800; }
.tick { width: 26px; height: 26px; border-radius: 4px; border: 2px solid var(--line); }
.tick.on { background: var(--lime); border-color: var(--lime); position: relative; }
.tick.on::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #000;
  border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pr { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #000; background: var(--lime);
  border-radius: 3px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.rest { display: flex; justify-content: space-between; align-items: center; background: var(--orange); color: #000;
  border-radius: 6px; padding: 10px 14px; font-size: 13px; font-weight: 800; }
.rest b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Sections */
section { padding: 80px 0; border-top: 2px solid #1f1f1f; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1; margin: 0 0 16px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 38em; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 2px solid var(--border); border-radius: 8px; padding: 22px; }
.card .num { font-stretch: 125%; font-weight: 900; color: var(--orange); font-size: 13px; letter-spacing: .12em; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }

/* Record Wall board */
.board { background: var(--card); border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.board-head { padding: 16px 18px; border-bottom: 2px solid var(--border); display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px; }
.board-head b { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 16px; }
.board-head span { color: var(--muted); font-size: 13px; }
.board ol { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: 6px; background: #0b0b0b; }
.rank { font-stretch: 125%; font-weight: 900; font-size: 18px; color: var(--muted); }
.board li:first-child .rank { color: var(--lime); }
.board li.me { background: var(--orange); border: 3px solid var(--lime); color: #000; }
.board li.me .rank, .board li.me small { color: #000; }
.lifter { font-weight: 800; }
.lifter small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.score { font-stretch: 125%; font-weight: 900; font-size: 18px; color: var(--orange); font-variant-numeric: tabular-nums; }
.board li.me .score { color: #000; }

/* Wall post card */
.post { background: var(--card); border: 2px solid var(--border); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.post .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-stretch: 125%;
  font-weight: 900; font-size: 13px; color: #000; background: var(--lime); flex: none; }
.post .who b { display: block; font-weight: 800; }
.post .who small { color: var(--muted); font-size: 12px; }
.chip { margin-left: auto; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px;
  border-radius: 3px; background: var(--lime); color: #000; }
.post .stats { font-size: 13px; font-weight: 700; color: var(--lime); }
.post .lines { display: grid; gap: 4px; font-size: 14px; }
.post .lines div { display: flex; justify-content: space-between; color: var(--muted); }
.post .lines b { color: var(--text); font-weight: 700; }
.photos { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: 170px; }
.photos div { border-radius: 6px; background: linear-gradient(150deg, #5a4636, #1c1714); }
.photos div + div { background: linear-gradient(150deg, #3d4a3a, #141a13); }
.actions { display: flex; gap: 8px; }
.actions span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px;
  border-radius: 4px; border: 2px solid var(--line); }
.actions .respect { border-color: var(--orange); color: var(--orange); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 3px;
  background: var(--lime); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 10px; border: solid #000;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checklist.no li::before { background: transparent; border: 2px solid var(--line); }
.checklist.no li::after { border: 0; left: 4px; top: 13px; width: 10px; height: 2.5px; background: var(--muted); transform: none; }
.soon { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1.5px solid var(--line); border-radius: 3px; padding: 0 5px; vertical-align: 2px; }

.closing { text-align: center; }
.closing .cta { justify-content: center; }

/* Long-form pages (privacy, terms, support) */
.doc { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 6vw, 56px); }
.doc h2 { font-size: 20px; margin: 44px 0 10px; letter-spacing: .02em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: #d9d9d9; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: -8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--border); }
.doc th { color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.callout { background: var(--card); border: 2px solid var(--border); border-left: 6px solid var(--orange);
  border-radius: 8px; padding: 16px 18px; margin: 20px 0; }
details { background: var(--card); border: 2px solid var(--border); border-radius: 8px; padding: 14px 18px; margin: 10px 0; }
details[open] { border-color: var(--line); }
summary { cursor: pointer; font-weight: 800; }
summary::marker { color: var(--orange); }
details p { margin: 10px 0 0; }

/* Join page */
.join { min-height: calc(100vh - 160px); display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.join .code { font: 900 34px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: var(--lime);
  background: var(--card); border: 2px dashed var(--line); border-radius: 8px; padding: 16px 22px; display: inline-block; margin: 18px 0 26px; }

/* Footer */
.site-footer { border-top: 2px solid #1f1f1f; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--lime); }

@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .phone { margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .nav a:not(.nav-keep) { display: none; }
}
.row .span4 { grid-column: span 4; }
.centered { margin-left: auto; margin-right: auto; }
.cta.center { justify-content: center; }
