/* repcrowd.com: the rank ladder is the colour system.
   Black gym floor, white condensed type, and one accent that is always a rank:
   E green, D blue, C purple, B red, A white, S gold, S+ spark gold (the app's RankTheme).
   Layout: one centred column (1120px) of full-bleed sections; each section is a rung of the ladder,
   so scrolling the home page climbs from E to S+ and the accent follows. */
:root {
  --floor: #0a0b0e;
  --panel: #13151a;
  --panel-raised: #1a1d24;
  --line: #262a33;
  --ink: #f4f5f7;
  --muted: #9aa1ad;
  --brand-red: #e4141e;

  --rank-0: #7a8089;
  --rank-1: #26b861;
  --rank-2: #1f7af2;
  --rank-3: #8c40e6;
  --rank-4: #e62e38;
  --rank-5: #f4f5f7;
  --rank-6: #ebab1a;
  --rank-7: #ffc93d;

  --rank: var(--rank-1);
  --on-rank: #06120b;

  --display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --numeral: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --radius: 18px;
  color-scheme: dark;
}

/* Every element can take a rank; descendants inherit its accent. */
[data-rank="0"] { --rank: var(--rank-0); --on-rank: #fff; }
[data-rank="1"] { --rank: var(--rank-1); --on-rank: #06120b; }
[data-rank="2"] { --rank: var(--rank-2); --on-rank: #fff; }
[data-rank="3"] { --rank: var(--rank-3); --on-rank: #fff; }
[data-rank="4"] { --rank: var(--rank-4); --on-rank: #fff; }
[data-rank="5"] { --rank: var(--rank-5); --on-rank: #0a0b0e; }
[data-rank="6"] { --rank: var(--rank-6); --on-rank: #1b1200; }
[data-rank="7"] { --rank: var(--rank-7); --on-rank: #1b1200; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding-inline: var(--gutter);
  overflow-x: hidden;
}
/* The page glows in the colour of the rank you are looking at. */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--page-rank, var(--rank-1)) 24%, transparent), transparent 70%);
  transition: background 0.8s ease;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--rank); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--rank); outline-offset: 3px; border-radius: 6px; }
img, svg, iframe { max-width: 100%; }

.wrap { max-width: 1120px; margin-inline: auto; }
.prose { max-width: 68ch; }

/* Header: brand, live status and the 7-step rank strip that fills as you climb the page. */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--floor) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bar { max-width: 1120px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 900 1.6rem/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.brand span b { color: var(--brand-red); font-weight: 900; }
nav.site { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-weight: 600; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover { color: var(--ink); }
.strip { max-width: 1120px; margin-inline: auto; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding-bottom: 8px; }
.strip i { height: 4px; border-radius: 2px; background: var(--line); transition: background 0.4s ease, box-shadow 0.4s ease; }
.strip i.on { background: var(--rank); box-shadow: 0 0 10px color-mix(in srgb, var(--rank) 60%, transparent); }

/* Live status pill: red dot while Martin is live, otherwise the next stream in local time. */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font: 700 0.85rem/1 var(--body); letter-spacing: 0.04em; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill.is-live { border-color: var(--brand-red); }
.live-pill.is-live::before { background: var(--brand-red); animation: pulse 1.4s ease-in-out infinite; }

h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 0.9; text-wrap: balance; margin: 0; font-weight: 900; }
h1 { font-size: clamp(3.6rem, 12vw, 8.4rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.01em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--rank); transition: color 0.5s ease; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 700 0.8rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .chip {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px;
  background: var(--rank); color: var(--on-rank); font: 900 1rem/1 var(--display); letter-spacing: 0;
}
.lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.45; color: var(--muted); max-width: 40ch; margin: 0; }
.lead strong { color: var(--ink); font-weight: 600; }

main { display: grid; }
.rung { display: grid; gap: 28px; padding-block: clamp(64px, 11vw, 120px); border-top: 1px solid var(--line); }
.rung:first-child { border-top: 0; }

/* Buttons. The primary button always wears the current rank. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font: 700 1.02rem/1 var(--body); text-decoration: none; color: var(--ink); cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.15s ease;
}
.button:hover { color: var(--ink); border-color: var(--muted); }
.button:active { transform: scale(0.97); }
.button.primary { background: var(--rank); border-color: var(--rank); color: var(--on-rank); }
.button.primary:hover { color: var(--on-rank); filter: brightness(1.08); }
.button.soon { border-style: dashed; cursor: default; }
.button.soon:active { transform: none; }
.button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); flex: none; }
.button svg { width: 20px; height: 20px; flex: none; }
.fineprint { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Hero: headline beside the live rank demo. */
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding-top: clamp(40px, 7vw, 88px); }
.hero-copy { display: grid; gap: 26px; }

/* Rank demo: the Today ring from the app, logging push-ups until S+. */
.demo {
  display: grid; justify-items: center; gap: 18px; padding: 26px 22px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rank) 14%, var(--panel)), var(--panel) 62%);
  border: 1px solid color-mix(in srgb, var(--rank) 40%, var(--line)); border-radius: 30px;
  transition: background 0.6s ease, border-color 0.6s ease;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--rank) 70%, transparent);
}
.demo-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 700 0.78rem/1 var(--body); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.demo-top b { color: var(--ink); }
.ring { position: relative; width: min(250px, 66vw); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 16; }
.ring .track { stroke: color-mix(in srgb, var(--ink) 12%, transparent); }
.ring .fill { stroke: var(--rank); stroke-linecap: round; transition: stroke-dashoffset 0.7s cubic-bezier(.2,.8,.2,1), stroke 0.5s ease; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rank) 55%, transparent)); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 2px; }
.ring-rank { font: 900 5.2rem/0.85 var(--display); color: var(--rank); transition: color 0.5s ease; }
.ring-total { font: 700 1.9rem/1 var(--numeral); font-variant-numeric: tabular-nums; }
.ring-next { font: 600 0.9rem/1.2 var(--body); color: var(--muted); }
.ring.bump .ring-rank { animation: rankpop 0.6s ease-out; }
.ring.bump::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 3px solid var(--rank); animation: shock 0.8s ease-out forwards; }
.ladder-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.ladder-dots span {
  display: grid; place-items: center; height: 32px; border-radius: 9px; background: var(--panel-raised);
  font: 900 1rem/1 var(--display); color: var(--muted); transition: background 0.4s ease, color 0.4s ease;
}
.ladder-dots span.hit { background: var(--rank); color: var(--on-rank); }
.demo .button { width: 100%; }
.demo-note { margin: 0; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* World counter. */
.counter { display: grid; gap: 12px; }
.count { font: 800 clamp(4.2rem, 16vw, 10rem)/0.85 var(--numeral); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.count-label { font: 700 0.85rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.count-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rank); animation: pulse 1.6s ease-in-out infinite; }
.goal { display: grid; gap: 8px; max-width: 560px; }
.goal-bar { height: 10px; border-radius: 5px; background: var(--panel-raised); overflow: hidden; }
.goal-fill { height: 100%; width: 0; background: var(--rank); border-radius: 5px; transition: width 1.2s ease; }
.goal-text { font: 600 0.95rem/1.2 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Three steps. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { display: grid; align-content: start; gap: 10px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  font: 900 3rem/0.8 var(--display); color: var(--rank);
}
.step p { margin: 0; color: var(--muted); }

/* The ladder: seven rungs at their real push-up targets. */
.ladder { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ladder > div {
  --h: 20;
  display: grid; align-content: end; justify-items: center; gap: 6px; padding: 12px 4px;
  min-height: calc(64px + var(--h) * 1.7px); border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rank) 34%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--rank) 50%, var(--line));
}
.ladder b { font: 900 clamp(1.6rem, 5.4vw, 3rem)/1 var(--display); color: var(--rank); }
.ladder small { font: 600 clamp(0.72rem, 2vw, 0.9rem)/1.1 var(--numeral); color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder > div:last-child { box-shadow: 0 0 40px -6px color-mix(in srgb, var(--rank-7) 55%, transparent); }

/* Live with Martin: the real overlay, playing its demo. */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-copy { display: grid; gap: 22px; }
.points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.points li > span:first-child {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--rank) 18%, var(--panel)); color: var(--rank); font: 900 1.05rem/1 var(--display);
}
.points b { display: block; font-weight: 700; }
.points li span { color: var(--muted); }
.screen {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(40% 55% at 50% 58%, #2a2f3a 0%, transparent 70%),
    linear-gradient(180deg, #171a21, #0d0f13);
}
.screen::before {
  /* A silhouette where the camera would be, so the overlay reads as a stream. */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 26%; aspect-ratio: 0.8; transform: translateX(-50%);
  background: radial-gradient(closest-side at 50% 22%, #3a404c 0 32%, transparent 33%), radial-gradient(60% 55% at 50% 100%, #343a46 0 98%, transparent 100%);
  opacity: 0.8;
}
.screen iframe { color-scheme: light; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.screen-tag {
  position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.6); font: 700 0.72rem/1 var(--body); letter-spacing: 0.12em; color: var(--muted);
}
.schedule { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; }
.schedule strong { font: 900 2.2rem/1 var(--display); text-transform: uppercase; color: var(--rank); }
.schedule span { color: var(--muted); }

/* Feature tiles. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; align-content: start; gap: 10px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tile p { margin: 0; color: var(--muted); }
.tile .big { font: 900 3.4rem/0.85 var(--display); color: var(--rank); }

/* Final call to action at S+. */
.finale { justify-items: center; text-align: center; }
.finale h2 { font-size: clamp(3rem, 10vw, 7rem); }
.finale h2 em {
  background: linear-gradient(100deg, #ffe08a, var(--rank-7) 40%, #ff9f1c 70%, #ffe08a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 4s linear infinite;
}
.finale .actions { justify-content: center; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-weight: 600; }
.badges span::before { content: "✓ "; color: var(--rank); }

/* Link hub (bio links). */
.hub { max-width: 560px; margin-inline: auto; display: grid; gap: 14px; padding-block: 40px 64px; }
.hub-head { display: grid; justify-items: center; gap: 14px; text-align: center; padding-bottom: 8px; }
.hub-head img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 60px -20px color-mix(in srgb, var(--rank) 80%, transparent); }
.hub-head h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
.link {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; min-height: 72px; padding: 12px 18px 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink);
  transition: border-color 0.3s ease, transform 0.15s ease;
}
.link:hover { border-color: var(--rank); color: var(--ink); }
.link:active { transform: scale(0.985); }
.link .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--rank) 20%, var(--panel-raised)); color: var(--rank); }
.link .icon svg { width: 22px; height: 22px; }
.link b { display: block; font-size: 1.05rem; }
.link small { display: block; color: var(--muted); font-size: 0.9rem; }
.link .go { color: var(--muted); font-size: 1.2rem; }
.link.primary { background: var(--rank); border-color: var(--rank); color: var(--on-rank); }
.link.primary small, .link.primary .go { color: color-mix(in srgb, var(--on-rank) 70%, transparent); }
.link.primary .icon { background: color-mix(in srgb, var(--on-rank) 14%, transparent); color: var(--on-rank); }
.link.live-now { border-color: var(--brand-red); }

/* Prose pages (Terms, Privacy, Support). */
.page { padding-block: 48px 80px; display: grid; gap: 12px; }
.prose h1 { font-size: clamp(3rem, 10vw, 5rem); margin-block: 6px 6px; }
.prose h2 { margin-top: 40px; font-size: 2rem; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #d3d7de; }
.prose ul { padding-left: 1.2em; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }
details.faq { border-bottom: 1px solid var(--line); padding-block: 4px; }
details.faq summary { cursor: pointer; list-style: none; padding-block: 16px; font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--rank); font-size: 1.6rem; line-height: 0.8; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 18px; }

/* Single-message pages (join links, 404, QR landing). */
.solo { min-height: 62vh; display: grid; align-content: center; gap: 24px; padding-block: 48px; }

footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes rankpop { 0% { transform: scale(0.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes shock { from { opacity: 0.9; transform: scale(0.92); } to { opacity: 0; transform: scale(1.18); } }
@keyframes shine { to { background-position: -200% 0; } }

@media (max-width: 880px) {
  .hero, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  nav.site .hide-narrow { display: none; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .bar { min-height: 60px; }
  .brand span { font-size: 1.4rem; }
  .ladder { gap: 4px; }
  .ladder > div { padding: 10px 2px; border-radius: 9px; }
  nav.site { gap: 6px 14px; }
  nav.site .hide-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
