/* Reps homepage, on top of site.css. Phone screens are rebuilds of the real
   app (Crew.jsx, FeedPost.jsx, ActiveWorkout.jsx, PRCelebration.jsx,
   WorkoutCard.jsx, RankPanel.jsx), sized in app points: --pt is 1/390 of the
   screen, so 15pt text in the app is calc(15 * var(--pt)) here. Icons are the
   app's own Ionicons / MaterialCommunityIcons / AntDesign / Feather glyphs,
   subset into home/icons/ by tools/icons.py. */

/* ---------------- device: generic frame (Apple: no Dynamic Island, buttons or finish) ---------------- */
.device { --w: 330px; width: var(--w); padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .15); background: #0e0e10; flex: none; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 calc(var(--w) * .012) #1a1a1d, 0 60px 100px -35px rgba(0,0,0,.75); }
.screen { position: relative; overflow: hidden; aspect-ratio: 390 / 844; border-radius: calc(var(--w) * .118); background: #000; color: #F4F7FA;
  container-type: inline-size; --pt: calc(100cqi / 390); font-family: "Inter", -apple-system, system-ui, sans-serif;
  --tx: #F4F7FA; --t2: #9BA3AD; --t3: #5C6470; --sf: #1C1C1E; --el: #2C2C2E; --div: #1A1A1A; --fill: rgba(118,118,128,.24); --ac: #FFB300; --on: #0B0B0D; }
.screen * { box-sizing: border-box; }
.scr { position: absolute; inset: 0; overflow: hidden; }

/* status bar + home indicator */
.sb { position: absolute; inset: 0 0 auto; height: calc(54 * var(--pt)); display: flex; align-items: center; justify-content: space-between; padding: calc(6 * var(--pt)) calc(32 * var(--pt)) 0; z-index: 8; font-weight: 600; font-size: calc(17 * var(--pt)); letter-spacing: -.01em; }
.sb .r { display: flex; align-items: center; gap: calc(6 * var(--pt)); font-size: calc(16 * var(--pt)); }
.bat { width: calc(27 * var(--pt)); height: calc(13 * var(--pt)); border-radius: calc(4 * var(--pt)); border: 1px solid rgba(255,255,255,.45); padding: calc(1.5 * var(--pt)); position: relative; }
.bat::before { content: ""; display: block; height: 100%; width: 82%; border-radius: calc(2 * var(--pt)); background: #fff; }
.home-ind { position: absolute; bottom: calc(8 * var(--pt)); left: 50%; translate: -50% 0; width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 99px; background: #fff; z-index: 9; }

/* ---- Crew tab (Crew.jsx) ---- */
.crew { padding: calc(78 * var(--pt)) calc(24 * var(--pt)) 0; }
.c-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: calc(8 * var(--pt)); }
.eb { font-size: calc(10 * var(--pt)); font-weight: 800; letter-spacing: calc(1.5 * var(--pt)); color: var(--t2); }
.hero-t { font-size: calc(42 * var(--pt)); font-weight: 900; letter-spacing: calc(-2 * var(--pt)); line-height: calc(40 * var(--pt)); margin-top: calc(14 * var(--pt)); }
.c-btn { width: calc(44 * var(--pt)); height: calc(44 * var(--pt)); border-radius: 50%; background: var(--fill); display: grid; place-items: center; position: relative; font-size: calc(20 * var(--pt)); }
.badge { position: absolute; top: calc(-2 * var(--pt)); right: calc(-2 * var(--pt)); min-width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); border-radius: calc(9 * var(--pt)); background: #FF453A; color: #fff; font-size: calc(10 * var(--pt)); font-weight: 900; display: grid; place-items: center; padding: 0 calc(5 * var(--pt)); }
.cap { display: flex; justify-content: space-between; align-items: baseline; margin: calc(18 * var(--pt)) 0 calc(10 * var(--pt)); padding-right: calc(14 * var(--pt)); }
.cap b { font-size: calc(12 * var(--pt)); font-weight: 700; letter-spacing: calc(.6 * var(--pt)); color: var(--t2); margin-left: calc(14 * var(--pt)); }
.cap span { font-size: calc(12 * var(--pt)); color: var(--t3); }
.strip { display: flex; gap: calc(14 * var(--pt)); margin-inline: calc(-24 * var(--pt)); padding-inline: calc(24 * var(--pt)); overflow: hidden; }
.pp { width: calc(66 * var(--pt)); flex: none; text-align: center; }
.pp.rest .ring { opacity: .55; }
.ring { position: relative; width: calc(66 * var(--pt)); aspect-ratio: 1; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 3; }
.ring .tr { stroke: var(--el); }
.ring .fl { stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.face { width: calc(56 * var(--pt)); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: calc(20 * var(--pt)); }
.ldot { position: absolute; right: calc(2 * var(--pt)); bottom: calc(2 * var(--pt)); width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); border-radius: 50%; background: #34C759; border: calc(2.5 * var(--pt)) solid #000; }
.pn { font-size: calc(12 * var(--pt)); font-weight: 700; margin-top: calc(6 * var(--pt)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm { font-size: calc(10.5 * var(--pt)); font-weight: 600; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp.live .pm { color: var(--tx); }
.week { margin: calc(36 * var(--pt)) 0 calc(18 * var(--pt)); }
.wk-big { font-size: calc(34 * var(--pt)); font-weight: 900; letter-spacing: calc(-1.2 * var(--pt)); margin-top: calc(6 * var(--pt)); line-height: 1.1; }
.wk-big em, .wk-sub em { font-style: normal; color: var(--ac); }
.wk-sub { font-size: calc(15 * var(--pt)); font-weight: 600; line-height: calc(20 * var(--pt)); color: var(--t2); margin-top: calc(6 * var(--pt)); }
.wk-sub b { color: var(--tx); font-weight: 800; }
.pills { display: flex; gap: calc(8 * var(--pt)); margin-top: calc(14 * var(--pt)); }
.pill { flex: 1; height: calc(42 * var(--pt)); border-radius: calc(21 * var(--pt)); background: var(--el); display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--pt)); font-size: calc(14 * var(--pt)); font-weight: 700; }
.pill > i { font-size: calc(16 * var(--pt)); }
.unread { display: inline-flex; align-items: center; gap: calc(3 * var(--pt)); border-radius: calc(10 * var(--pt)); padding: calc(2 * var(--pt)) calc(7 * var(--pt)); background: var(--ac); color: var(--on); font-size: calc(12 * var(--pt)); font-weight: 800; }
.unread i { font-size: calc(10 * var(--pt)); }

/* ---- rank materials (rankMaterials.js: dark/mid/light/pale + the four dark card stops) ---- */
.m-stone { --m-dark: #3a3a40; --m-mid: #6b6b72; --m-light: #8e8e96; --m-pale: #D5D7DB; --m-c0: #26262b; --m-c1: #1a1a1e; --m-c2: #202025; --m-c3: #121215; }
.m-slate { --m-dark: #2b3845; --m-mid: #557088; --m-light: #7d9ab3; --m-pale: #B9C9D8; --m-c0: #1b2733; --m-c1: #121a22; --m-c2: #17212b; --m-c3: #0c1218; }
.m-bronze { --m-dark: #5e3815; --m-mid: #b87333; --m-light: #e0a060; --m-pale: #EBC79B; --m-c0: #2a1a0a; --m-c1: #1b1107; --m-c2: #22150a; --m-c3: #120b05; }
.m-silver { --m-dark: #565b61; --m-mid: #a8b0b8; --m-light: #dde3e8; --m-pale: #DCE2E8; --m-c0: #272b2f; --m-c1: #1b1e21; --m-c2: #212529; --m-c3: #131517; }
.m-gold { --m-dark: #7a4f0d; --m-mid: #F5A623; --m-light: #ffd27a; --m-pale: #F8D285; --m-c0: #452c06; --m-c1: #2c1c05; --m-c2: #3a2507; --m-c3: #1c1104; }
.m-emerald { --m-dark: #0a4f33; --m-mid: #1fae74; --m-light: #7fe8bb; --m-pale: #92DEC0; --m-c0: #0a4530; --m-c1: #06291d; --m-c2: #083828; --m-c3: #041a12; }

/* ---- FeedPost / WorkoutCard: a flat SlabCard (cut 0) in the poster's material ---- */
.post { margin-bottom: calc(18 * var(--pt)); }
.slab { position: relative; overflow: hidden; border-radius: calc(22 * var(--pt)); border: 1px solid var(--m-dark); color: #F4F7FA;
  background: linear-gradient(152deg, var(--m-c1), var(--m-c3)); }
.slab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(3 * var(--pt)); background: linear-gradient(var(--m-light), var(--m-dark)); z-index: 2; }
.sweep { position: absolute; top: -45%; left: 0; width: 44%; height: 190%; rotate: 18deg; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); translate: -160% 0; pointer-events: none; z-index: 3; }
.swept .sweep { animation: sweep .9s ease-in-out; }
@keyframes sweep { to { translate: 300% 0; } }
.photo { position: relative; height: calc(300 * var(--pt)); background: #222 center / cover no-repeat; }
.ptag { position: absolute; left: calc(12 * var(--pt)); bottom: calc(12 * var(--pt)); display: flex; align-items: center; gap: calc(5 * var(--pt)); padding: calc(5 * var(--pt)) calc(9 * var(--pt)); border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: calc(10 * var(--pt)); font-weight: 900; letter-spacing: calc(1 * var(--pt)); }
.ptag i { font-size: calc(11 * var(--pt)); }
.pmore { position: absolute; top: calc(12 * var(--pt)); right: calc(12 * var(--pt)); width: calc(32 * var(--pt)); height: calc(32 * var(--pt)); border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; color: #fff; font-size: calc(18 * var(--pt)); }
.pbody { padding: calc(14 * var(--pt)) calc(16 * var(--pt)); }
.eye { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.eye .who { flex: 1; font-size: calc(10 * var(--pt)); font-weight: 800; letter-spacing: calc(1.4 * var(--pt)); color: var(--m-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prst { display: inline-flex; align-items: center; gap: calc(4 * var(--pt)); background: #fff; color: #111; border-radius: 99px; padding: calc(3 * var(--pt)) calc(8 * var(--pt)); font-size: calc(10 * var(--pt)); font-weight: 900; letter-spacing: calc(1 * var(--pt)); flex: none; }
.prst i { font-size: calc(11 * var(--pt)); }
.phead { font-size: calc(22 * var(--pt)); font-weight: 900; letter-spacing: calc(-.5 * var(--pt)); line-height: calc(26 * var(--pt)); margin-top: calc(8 * var(--pt)); color: var(--m-pale); }
.phead em { font-style: normal; color: var(--m-light); }
.pmeta { font-size: calc(13 * var(--pt)); font-weight: 600; margin-top: calc(5 * var(--pt)); color: var(--m-light); }
.acts { display: flex; align-items: center; gap: calc(18 * var(--pt)); margin: calc(10 * var(--pt)) 0 0 calc(4 * var(--pt)); }
.acts span { display: inline-flex; align-items: center; gap: calc(6 * var(--pt)); font-size: calc(15 * var(--pt)); font-weight: 700; }
.acts .h { font-size: calc(26 * var(--pt)); }
.acts .h.on { color: #FF3B30; }
.acts .c { font-size: calc(24 * var(--pt)); }

/* ---- floating tab bar (TabNavigator CustomTabBar) ---- */
.tabbar { position: absolute; left: 12.5%; right: 12.5%; bottom: calc(17 * var(--pt)); height: calc(60 * var(--pt)); border-radius: calc(32 * var(--pt)); z-index: 7;
  background: rgba(40,40,40,.62); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 8px 16px rgba(0,0,0,.25);
  display: flex; align-items: center; padding: 0 calc(8 * var(--pt)); }
.tabbar span { flex: 1; display: grid; place-items: center; height: 100%; font-size: calc(21 * var(--pt)); color: var(--t2); position: relative; z-index: 1; }
.tabbar span.on { color: var(--tx); }
.tabbar span.on::after { content: ""; position: absolute; width: calc(44 * var(--pt)); height: calc(40 * var(--pt)); border-radius: calc(20 * var(--pt)); background: rgba(255,255,255,.12); z-index: -1; }

/* ---- iOS push banner ---- */
.push { position: absolute; left: calc(8 * var(--pt)); right: calc(8 * var(--pt)); top: calc(10 * var(--pt)); z-index: 10; display: flex; gap: calc(10 * var(--pt)); align-items: center;
  padding: calc(13 * var(--pt)) calc(14 * var(--pt)); border-radius: calc(24 * var(--pt)); background: rgba(38,38,40,.88); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); color: #fff; }
.push img { width: calc(38 * var(--pt)); height: calc(38 * var(--pt)); border-radius: calc(9 * var(--pt)); flex: none; }
.push .t { flex: 1; min-width: 0; }
.push .r1 { display: flex; justify-content: space-between; gap: calc(8 * var(--pt)); font-size: calc(15 * var(--pt)); font-weight: 600; }
.push .r1 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push .r1 small { font-size: calc(13 * var(--pt)); font-weight: 400; color: rgba(235,235,245,.6); flex: none; }
.push .b { font-size: calc(15 * var(--pt)); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#heroPush { translate: 0 calc(-150 * var(--pt)); transition: translate .55s var(--ease); }
#heroPush.in { translate: 0 0; }
.burst { position: absolute; z-index: 6; font-size: calc(26 * var(--pt)); pointer-events: none; animation: rise 1.6s var(--ease) forwards; }
@keyframes rise { from { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translateY(calc(-14 * var(--pt))) scale(1.15); } to { transform: translateY(calc(-110 * var(--pt))) scale(1); opacity: 0; } }

/* ---- ActiveWorkout.jsx ---- */
.aw-top { position: absolute; top: calc(54 * var(--pt)); inset-inline: 0; height: calc(60 * var(--pt)); padding: 0 calc(24 * var(--pt)); display: flex; align-items: center; justify-content: space-between; }
.aw-top { display: grid !important; grid-template-columns: 1fr auto 1fr; }
.aw-top > i { font-size: calc(24 * var(--pt)); }
.aw-clock { display: flex; align-items: center; gap: calc(6 * var(--pt)); }
.aw-clock > i { font-size: calc(14 * var(--pt)); }
.aw-clock b { font-size: calc(17 * var(--pt)); font-weight: 900; letter-spacing: calc(1 * var(--pt)); font-variant-numeric: tabular-nums; }
.rbadge { display: inline-flex; align-items: center; gap: calc(4 * var(--pt)); padding: calc(3 * var(--pt)) calc(8 * var(--pt)); border-radius: calc(3 * var(--pt)); background: var(--ac); color: var(--on); font-size: calc(11 * var(--pt)); font-weight: 900; margin-right: calc(4 * var(--pt)); font-variant-numeric: tabular-nums; display: none; }
.rbadge i { font-size: calc(11 * var(--pt)); }
.aw-top .r { display: flex; align-items: center; justify-content: flex-end; gap: calc(16 * var(--pt)); font-size: calc(22 * var(--pt)); }
.aw-top .r .x { color: var(--t2); }
.aw-top .r b { font-size: calc(12 * var(--pt)); font-weight: 900; letter-spacing: calc(1.5 * var(--pt)); color: var(--ac); }
.aw { position: absolute; top: calc(114 * var(--pt)); inset-inline: 0; padding: calc(24 * var(--pt)) calc(20 * var(--pt)) 0; }
.sub-l { font-size: calc(10 * var(--pt)); font-weight: 800; letter-spacing: calc(2 * var(--pt)); color: var(--t2); }
.main-t { font-size: calc(30 * var(--pt)); font-weight: 900; letter-spacing: calc(-.5 * var(--pt)); margin: calc(4 * var(--pt)) 0 calc(20 * var(--pt)); }
.rest-cfg { display: flex; align-items: center; gap: calc(10 * var(--pt)); margin-bottom: calc(8 * var(--pt)); font-size: calc(9 * var(--pt)); font-weight: 800; letter-spacing: calc(1.5 * var(--pt)); color: var(--t2); }
.rest-cfg span { width: calc(52 * var(--pt)); text-align: center; font-size: calc(12 * var(--pt)); font-weight: 900; color: var(--tx); background: var(--el); padding: calc(3 * var(--pt)) calc(10 * var(--pt)); letter-spacing: 0; }
.ex { border: 1px solid var(--el); border-radius: calc(20 * var(--pt)); padding: calc(16 * var(--pt)); margin-top: calc(16 * var(--pt)); }
.ex-n { display: flex; align-items: center; font-size: calc(14 * var(--pt)); font-weight: 900; letter-spacing: calc(.8 * var(--pt)); margin-bottom: calc(10 * var(--pt)); }
.ex-n i { font-size: calc(16 * var(--pt)); color: var(--ac); margin-right: 0; width: 0; overflow: hidden; transition: width .3s, margin .3s; }
.ex-n.done i { width: calc(16 * var(--pt)); margin-right: calc(8 * var(--pt)); }
.ex-pills { display: flex; gap: calc(6 * var(--pt)); margin-bottom: calc(10 * var(--pt)); }
.ex-pills span { font-size: calc(10 * var(--pt)); font-weight: 800; letter-spacing: calc(.5 * var(--pt)); color: var(--t2); border: 1px solid var(--el); border-radius: calc(12 * var(--pt)); padding: calc(4 * var(--pt)) calc(10 * var(--pt)); display: inline-flex; align-items: center; }
.ex-pills .nt { font-size: calc(18 * var(--pt)); padding: 0 calc(12 * var(--pt)); }
.thd, .srow { display: grid; grid-template-columns: calc(32 * var(--pt)) 1fr calc(64 * var(--pt)) calc(36 * var(--pt)); gap: calc(8 * var(--pt)); align-items: center; }
.thd { margin: calc(8 * var(--pt)) 0; padding-top: calc(12 * var(--pt)); border-top: 1px solid var(--div); font-size: calc(9 * var(--pt)); font-weight: 800; letter-spacing: calc(1 * var(--pt)); color: var(--t2); text-align: center; }
.srow { padding: calc(6 * var(--pt)) 0; border-bottom: 1px solid var(--div); transition: opacity .3s; }
.srow .n { font-size: calc(12 * var(--pt)); font-weight: 900; color: var(--t2); text-align: center; }
.srow .in { background: var(--el); border-radius: calc(10 * var(--pt)); padding: calc(8 * var(--pt)) calc(10 * var(--pt)); font-size: calc(15 * var(--pt)); font-weight: 700; text-align: center; border: 1px solid transparent; font-variant-numeric: tabular-nums; position: relative; }
.srow .in .ph { color: var(--t3); }
.srow .in .v { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: var(--el); border-radius: inherit; }
.srow .ck2 { width: calc(36 * var(--pt)); height: calc(36 * var(--pt)); display: grid; place-items: center; position: relative; }
.srow .ck2::before { content: ""; width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); border-radius: 50%; border: calc(1.5 * var(--pt)) solid var(--el); }
.srow .ck2 i { position: absolute; font-size: calc(16 * var(--pt)); color: var(--ac); opacity: 0; }
.srow.done { opacity: .5; }
.srow.done .ck2::before { opacity: 0; }
.srow.done .ck2 i { opacity: 1; }
.addset { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--pt)); padding-top: calc(12 * var(--pt)); font-size: calc(10 * var(--pt)); font-weight: 900; letter-spacing: calc(1 * var(--pt)); color: var(--ac); }
.addset i { font-size: calc(12 * var(--pt)); }

/* ---- PRCelebration: scrim + gold SlabCard (two corners cut, hard diagonal split) ---- */
.cele { position: absolute; inset: 0; z-index: 9; background: rgba(0,0,0,.8); display: grid; place-items: center; opacity: 0; }
.cslab { position: relative; width: 90%; padding: calc(26 * var(--pt)) calc(18 * var(--pt)); text-align: center; color: #F4F7FA; overflow: hidden; border-radius: calc(22 * var(--pt)); }
svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cslab > *:not(.bg) { position: relative; }
.cslab .ceb { font-size: calc(9 * var(--pt)); font-weight: 800; letter-spacing: calc(2 * var(--pt)); color: #ffd27a; margin-bottom: calc(14 * var(--pt)); }
.cslab .emb { width: calc(84 * var(--pt)); height: calc(84 * var(--pt)); margin: 0 auto calc(14 * var(--pt)); display: block; }
.cslab .w { font-size: calc(34 * var(--pt)); font-weight: 900; letter-spacing: calc(-1 * var(--pt)); }
.cslab .w small { font-size: calc(15 * var(--pt)); font-weight: 900; }
.cslab .cs { font-size: calc(9 * var(--pt)); font-weight: 800; letter-spacing: calc(1.4 * var(--pt)); color: #ffd27a; margin-top: calc(9 * var(--pt)); }

/* ---- iOS lock screen ---- */
.lock { position: absolute; inset: 0; background: radial-gradient(120% 70% at 30% 0%, #3b2a14 0%, #120d08 55%, #050505 100%); display: flex; flex-direction: column; align-items: center; }
.lock .ld { margin-top: calc(84 * var(--pt)); font-size: calc(20 * var(--pt)); font-weight: 600; color: rgba(255,255,255,.85); }
.lock .lt { font-size: calc(96 * var(--pt)); font-weight: 700; letter-spacing: calc(-3 * var(--pt)); line-height: 1; color: rgba(255,255,255,.92); }
.lock .push { position: relative; left: auto; right: auto; top: auto; width: calc(100% - 16 * var(--pt)); margin-top: calc(300 * var(--pt)); }

/* ---------------- 1. hero ---------------- */
.hero { min-height: min(100dvh, 1000px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-block: 96px 40px; }
/* sized by width AND height, so a short laptop screen still shows the badge without scrolling */
.hero h1 { font-size: clamp(48px, min(7.4vw, 12.5dvh), 120px); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 .q { color: var(--accent-text); }
.hero .lede { margin-top: 28px; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.cta-row .quiet { font-size: 13px; font-weight: 700; color: var(--fg-2); }
.hero-stage { position: relative; display: grid; place-items: center; min-height: min(800px, calc(100dvh - 120px)); padding-bottom: 48px; }
.hero-stage .device { --w: min(350px, 38dvh); }
.orb { position: absolute; width: 84px; text-align: center; --pt: 1.27px; }
.orb .ring { width: 84px; }
.orb .face { width: 70px; font-size: 25px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); }
.orb .ring .tr { stroke: var(--line-2); }
.orb .ldot { width: 18px; height: 18px; border: 3px solid var(--bg); }
.orb .pn { font-size: 13px; color: var(--fg); margin-top: 8px; }
.orb .pm { font-size: 11px; color: var(--fg-2); }
.pause { position: absolute; bottom: -6px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: 700 12px/1 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; cursor: pointer; }

/* ---------------- 2. story (pinned + scrubbed) ---------------- */
.story { height: 100dvh; position: relative; overflow: hidden; }
.story-in { height: 100%; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 24px; }
.story-copy { position: relative; height: 340px; }
.cap-s { position: absolute; inset: 0; }
.cap-s h2 { font-size: clamp(44px, 5.2vw, 86px); }
.cap-s p { margin-top: 22px; }
.rail { position: absolute; left: 0; bottom: -70px; display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.rail li { width: 36px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s, width .3s var(--ease); }
.rail li.on { background: var(--accent); width: 64px; }
.stage { position: relative; height: 100%; display: grid; place-items: center; }
.stage .main { --w: min(330px, 38dvh); z-index: 3; }
.friend { --w: min(205px, 24dvh); position: absolute; z-index: 2; }
.friend.f1 { left: 0; top: 24%; }
.friend.f2 { right: 0; top: 9%; }
.friend.f3 { right: 5%; bottom: 3%; }
.friend .who { position: absolute; left: 50%; bottom: -30px; translate: -50% 0; white-space: nowrap; font-size: 12px; font-weight: 800; color: var(--fg-2); }
.fly { position: absolute; left: 42%; top: 45%; z-index: 6; font-size: 34px; opacity: 0; pointer-events: none; }
.shock { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; z-index: 1; pointer-events: none; }
.mpush { opacity: 0; }
.mpush.p2 { top: calc(96 * var(--pt)); }
.mpush.p3 { top: calc(182 * var(--pt)); }
.scr-feed { opacity: 0; }

/* ---------------- 3. the week of a rivalry (horizontal pan, chat at app scale) ---------------- */
.pan { height: 100dvh; overflow: hidden; position: relative; }
.pan-track { position: relative; height: 100%; display: flex; align-items: stretch; width: max-content; }
/* the left padding lines the intro up with the page; the width adds it back so the text column never shrinks on wide screens */
.pan-intro { --gut: max(24px, calc((100vw - 1240px) / 2)); width: calc(min(40vw, 560px) + var(--gut)); flex: none; padding: 18vh 48px 0 var(--gut); }
.pan-intro h2 { font-size: clamp(48px, 5.6vw, 92px); }
.pan-intro p { margin-top: 24px; }
.day { width: 360px; flex: none; padding: 13vh 18px 0; position: relative; --pt: 1px; display: flex; flex-direction: column; }
.day-n { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: var(--fg-3); text-align: center; margin-bottom: 14px; }
.day > * { align-self: flex-start; }
.day > .day-n, .day > .sysm { align-self: stretch; }
.day .slab { width: 85%; }
/* a card with reactions stuck to its corner, like the app's chips under a message */
.cw { position: relative; width: 85%; }
.cw .slab { width: 100%; }
.cw.mine { align-self: flex-end; }
.taps { position: absolute; right: -10px; bottom: -18px; display: flex; gap: 4px; z-index: 2; }
.fl .taps { right: -6px; }
.taps span, .taps-row span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 14px; background: #1C1C1E; font-size: 14px; box-shadow: 0 0 0 3px var(--bg); }
.taps small, .taps-row small { font-size: 11px; font-weight: 800; color: #9BA3AD; }
.taps span.mine, .taps-row span.mine { background: var(--accent); }
.taps span.mine small, .taps-row span.mine small { color: #0B0B0D; }
.taps-row { display: flex; gap: 6px; margin-top: 6px; }
:root[data-theme="light"] .taps span:not(.mine), :root[data-theme="light"] .taps-row span:not(.mine) { background: var(--surface-2); }
/* side chatter that lands across the open space as the day scrolls in */
.fl { position: absolute; left: var(--x); top: var(--y); width: max-content; max-width: 290px; z-index: 1; }
.fl .bub { position: relative; display: inline-block; max-width: none; }
.emoji-big { font-size: 46px; line-height: 1; }
.typing { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: var(--fg-3); }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.typing i:first-of-type { margin-left: 4px; }
.typing i:nth-of-type(2) { animation-delay: .2s; }
.typing i:nth-of-type(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.lpush { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 22px; background: rgba(38,38,40,.92); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.45); width: 290px; }
.lpush img { width: 36px; height: 36px; border-radius: 9px; }
.lpush b { display: block; font-size: 14px; }
.lpush span { font-size: 14px; color: #EBEBF5; }
.day .mine { align-self: flex-end; }
.wcard { padding: 14px 16px 12px; }
.bub { background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 12px; max-width: 85%; }
:root:not([data-theme="light"]) .bub { background: #1C1C1E; border-color: #2C2C2E; }
.bub .au { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: 1px; margin-bottom: 4px; }
.bub .au .face { width: 16px; font-size: 8px; }
.bub .bd { font-size: 15px; line-height: 20px; }
.bub .tm { display: block; text-align: right; font-size: 11px; font-weight: 600; color: var(--fg-3); margin-top: 2px; }
.bub.poke { border-color: var(--accent) !important; }
.bub.poke .au { color: var(--accent-text); }
.sysm { text-align: center; font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--fg-2); margin: 12px 0; text-transform: uppercase; }
.reacts { display: flex; gap: 6px; margin-top: 6px; }
.reacts span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
:root:not([data-theme="light"]) .reacts span { background: #1C1C1E; }
.reacts small { font-size: 11px; font-weight: 800; color: var(--fg-2); }
.reacts span.mine { background: var(--accent) !important; }
.reacts span.mine small { color: #0B0B0D; }
.pan-end { width: 560px; flex: none; padding: 11vh 60px 0 30px; --pt: 1.25px; }
.pan-end .slab { padding: 18px 20px 14px; }
.fin-row { display: grid; grid-template-columns: 22px 14px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; font-weight: 700; color: #F4F7FA; }
.fin-row .rk { font-size: 12px; font-weight: 900; color: var(--m-light); }
.fin-row i { font-size: 12px; }
.fin-row .up { color: #34C759; }
.fin-row .dn { color: #FF3B30; }
.fin-row .sc { font-weight: 900; color: var(--m-pale); font-variant-numeric: tabular-nums; }
.fin-row.me { font-weight: 900; }
.race { position: absolute; left: 0; bottom: 5vh; height: 44vh; pointer-events: none; overflow: visible; z-index: -1; }
.race polyline { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.race text { font: 800 13px "Inter", sans-serif; }
.race .tick { stroke: var(--line-2); stroke-dasharray: 3 6; stroke-width: 1; }
.race circle { stroke-width: 3; fill: var(--bg); transition: opacity .25s; }

/* ---------------- 4. ranks: the real rank crest (RankPanel.jsx) ---------------- */
.ranks { height: 340vh; position: relative; }
.ranks-in { position: sticky; top: 0; height: 100dvh; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; overflow: hidden; }
.ranks h2 { font-size: clamp(44px, 5.4vw, 88px); }
.ranks .lede { margin-top: 22px; }
.ghost { position: absolute; right: -1vw; bottom: 4vh; font-size: clamp(80px, 10vw, 170px); font-weight: 900; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); pointer-events: none; z-index: -1; white-space: nowrap; }
.crest-wrap { perspective: 1100px; transform-style: preserve-3d; display: grid; justify-items: center; gap: calc(12 * var(--pt)); --pt: min(1.55px, .19dvh); }
.crest { position: relative; width: calc(260 * var(--pt)); padding: calc(20 * var(--pt)) calc(16 * var(--pt)); text-align: center; color: #fff; overflow: hidden; border-radius: calc(22 * var(--pt)); }
.halo { animation: halo 4.2s linear infinite; }
@keyframes halo { from { stroke-dashoffset: var(--p); } to { stroke-dashoffset: 0; } }
.crest > *:not(.bg):not(.sweep) { position: relative; }
.crest .emb { width: calc(124 * var(--pt)); height: calc(124 * var(--pt)); display: block; margin: 0 auto; }
.crest .ttl { font-size: calc(26 * var(--pt)); font-weight: 900; letter-spacing: calc(-.3 * var(--pt)); margin-top: calc(14 * var(--pt)); }
.crest .sub { font-size: calc(8 * var(--pt)); font-weight: 800; letter-spacing: calc(1.8 * var(--pt)); margin-top: calc(8 * var(--pt)); color: var(--m-light); }
.crest .trk { height: calc(6 * var(--pt)); border-radius: calc(3 * var(--pt)); margin-top: calc(16 * var(--pt)); background: rgba(255,255,255,.12); overflow: hidden; }
.crest .trk i { display: block; height: 100%; background: var(--m-mid); border-radius: inherit; transition: width .5s var(--ease); }
.crest .xp { display: flex; justify-content: space-between; margin-top: calc(8 * var(--pt)); font-size: calc(7.5 * var(--pt)); font-weight: 800; letter-spacing: calc(1.2 * var(--pt)); color: rgba(255,255,255,.55); }
.crest .xp b { color: #fff; }
.band { display: flex; gap: calc(4 * var(--pt)); width: calc(260 * var(--pt)); align-items: center; height: calc(9 * var(--pt)); }
.band i { flex: 1; height: calc(4 * var(--pt)); border-radius: calc(2 * var(--pt)); background: rgba(255,255,255,.12); }
:root[data-theme="light"] .band i { background: rgba(0,0,0,.12); }
.band i.d { background: var(--m-mid); }
.band i.h { height: calc(9 * var(--pt)); background: var(--fg); }
.nextc { position: relative; width: calc(260 * var(--pt)); padding: calc(11 * var(--pt)) calc(13 * var(--pt)); display: flex; align-items: center; gap: calc(10 * var(--pt)); color: #F4F7FA; text-align: left; overflow: hidden; border-radius: calc(22 * var(--pt)); }
.nextc > *:not(.bg) { position: relative; }
.nextc .emb { width: calc(34 * var(--pt)); height: calc(34 * var(--pt)); flex: none; }
.nextc small { display: block; font-size: calc(7 * var(--pt)); font-weight: 800; letter-spacing: calc(1.3 * var(--pt)); color: #9BA3AD; }
.nextc b { display: block; font-size: calc(11 * var(--pt)); font-weight: 900; margin-top: calc(4 * var(--pt)); }
.nextc b em { font-style: normal; color: var(--n-light); }
.ladder { display: flex; gap: 6px; margin-top: 34px; }
.ladder i { width: 22px; height: 6px; border-radius: 6px; background: var(--line-2); transition: background .3s; }
.ladder i.on { background: var(--fg); }

/* ---------------- 5. log fast: bento ---------------- */
.log h2 { font-size: clamp(44px, 5.4vw, 88px); }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 48px; }
.cell { border-radius: 26px; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 90%, transparent); padding: 30px; position: relative; overflow: hidden; }
.cell h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.cell p { color: var(--fg-2); margin-top: 6px; font-size: 15px; max-width: 34ch; }
.lib { grid-row: span 2; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent, var(--surface) 72%), var(--surface-2); }
.lib .count { font-size: clamp(110px, 13vw, 190px); font-weight: 900; letter-spacing: -.06em; line-height: .85; position: relative; z-index: 1; }
.lib h3, .lib p { position: relative; z-index: 1; }
.cols { position: absolute; inset: 0 0 35% 0; display: flex; gap: 28px; padding: 0 30px; opacity: .55; -webkit-mask: linear-gradient(transparent, #000 25%, #000 60%, transparent); mask: linear-gradient(transparent, #000 25%, #000 60%, transparent); }
.col { display: flex; flex-direction: column; gap: 12px; font-weight: 800; font-size: 15px; white-space: nowrap; animation: up 40s linear infinite; }
.col:nth-child(2) { animation-duration: 52s; animation-direction: reverse; }
.col:nth-child(3) { animation-duration: 46s; }
.col span em { font-style: normal; color: var(--fg-3); font-weight: 700; margin-left: 6px; }
@keyframes up { to { transform: translateY(-50%); } }
.timer { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.tring { width: 132px; height: 132px; position: relative; display: grid; place-items: center; }
.tring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tring circle { fill: none; stroke-width: 8; }
.tring .t1 { stroke: var(--line-2); }
.tring .t2 { stroke: var(--accent); stroke-linecap: round; }
.tring b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.units-top { display: flex; justify-content: space-between; align-items: center; }
.switch { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font: 900 13px/1 "Inter", sans-serif; letter-spacing: .1em; color: var(--fg-2); position: relative; }
.switch span { padding: 9px 16px; border-radius: 99px; position: relative; z-index: 1; transition: color .25s; }
.switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--fg); transition: transform .35s var(--ease); }
.switch[aria-checked="true"]::before { transform: translateX(100%); }
.switch[aria-checked="false"] span:first-child, .switch[aria-checked="true"] span:last-child { color: var(--bg); }
.lifts { display: grid; gap: 10px; margin-top: 22px; }
.lift { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lift:last-child { border: 0; }
.lift b { font-variant-numeric: tabular-nums; font-size: 22px; }

/* ---------------- 6. bring your crew ---------------- */
.crew-cta { min-height: 110vh; display: grid; place-items: center; text-align: center; position: relative; }
.crew-cta h2 { font-size: clamp(60px, 10vw, 160px); }
.crew-cta .lede { margin: 26px auto 0; text-align: center; }
.gather { display: flex; justify-content: center; gap: 14px; margin-top: 46px; }
.gather .face { width: 64px; font-size: 22px; box-shadow: 0 0 0 4px var(--bg); }
.crew-cta .btn { margin-top: 44px; }
.price { margin-top: 18px; color: var(--fg-2); font-size: 14px; font-weight: 600; }

/* ---------------- 7. FAQ ---------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding-block: 120px; }
.faq h2 { font-size: clamp(40px, 5vw, 72px); position: sticky; top: 110px; align-self: start; }

/* ---------------- narrow screens / reduced motion: readable, nothing pinned ---------------- */
@media (max-width: 899px) {
  .nav a.link { display: none; }
  .hero, .story-in, .ranks-in, .faq, .bento { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-bottom: 20px; }
  .hero-stage { min-height: 0; padding-bottom: 60px; } .hero-stage .device { --w: min(340px, 86vw); } .orb { display: none; }
  .pause { bottom: 0; }
  /* phones get the plain version: one straight scroll, one visual per section,
     no pinning, no sideways track, no chat feed */
  .story { height: auto; padding-block: 80px; } .story-copy { height: auto; display: grid; gap: 26px; } .cap-s { position: static; } .rail { display: none; }
  .cap-s h2 { font-size: 34px; } .cap-s p { margin-top: 8px; font-size: 16px; }
  .stage { height: auto; padding-top: 40px; } .stage .main { --w: min(320px, 82vw); } .friend, .shock { display: none; }
  .pan { height: auto; overflow: visible; }
  .pan-track { flex-direction: column; width: auto; }
  .pan-intro { width: auto; padding: 80px 24px 0; }
  .day:not(.m-keep), .race, .day .fl { display: none; }
  .day.m-keep { width: auto; max-width: 480px; margin-inline: auto; padding: 30px 20px 0; align-self: stretch; }
  .pan-end { width: auto; max-width: 480px; margin-inline: auto; padding: 36px 20px 0; align-self: stretch; --pt: 1px; }
  .ranks { height: auto; } .ranks-in { position: static; height: auto; padding-block: 100px; } .ghost, .band, .nextc, .ladder { display: none; } .crest-wrap { --pt: min(1.3px, .32vw); }
  .lib { grid-row: auto; min-height: 0; } .cols { display: none; }
  .timer { grid-template-columns: 1fr; gap: 20px; }
  .crew-cta { min-height: 0; padding-block: 110px 40px; }
  .gather { flex-wrap: wrap; gap: 10px; }
  .gather .face { width: 46px; font-size: 17px; box-shadow: 0 0 0 3px var(--bg); }
  .faq { padding-block: 80px; }
  .faq h2 { position: static; }
}
@media (prefers-reduced-motion: reduce) { .col { animation: none; } }

/* ---------------- the app's icon glyphs (generated by tools/icons.py) ---------------- */
@font-face { font-family: "ion"; src: url("home/icons/ion.woff2") format("woff2"); font-display: block; }
.ion { font-family: "ion"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; }
.ion[data-g="people"]::before { content: "\f49f"; }
.ion[data-g="people-outline"]::before { content: "\f4a3"; }
.ion[data-g="trophy"]::before { content: "\f601"; }
.ion[data-g="flash"]::before { content: "\f316"; }
.ion[data-g="chatbubble"]::before { content: "\f211"; }
.ion[data-g="barbell"]::before { content: "\f172"; }
.ion[data-g="barbell-outline"]::before { content: "\f173"; }
.ion[data-g="calendar-outline"]::before { content: "\f1d6"; }
.ion[data-g="stats-chart-outline"]::before { content: "\f59c"; }
.ion[data-g="person-outline"]::before { content: "\f4ac"; }
.ion[data-g="camera"]::before { content: "\f1db"; }
.ion[data-g="ellipsis-horizontal"]::before { content: "\f2ce"; }
.ion[data-g="heart"]::before { content: "\f36a"; }
.ion[data-g="heart-outline"]::before { content: "\f377"; }
.ion[data-g="chatbubble-outline"]::before { content: "\f215"; }
.ion[data-g="chevron-down"]::before { content: "\f232"; }
.ion[data-g="arrow-back"]::before { content: "\f127"; }
.ion[data-g="cellular"]::before { content: "\f208"; }
.ion[data-g="wifi"]::before { content: "\f631"; }
.ion[data-g="image-outline"]::before { content: "\f38f"; }
@font-face { font-family: "mci"; src: url("home/icons/mci.woff2") format("woff2"); font-display: block; }
.mci { font-family: "mci"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; }
.mci[data-g="clock-outline"]::before { content: "\f0150"; }
.mci[data-g="timer-sand"]::before { content: "\f051f"; }
.mci[data-g="close"]::before { content: "\f0156"; }
.mci[data-g="plus"]::before { content: "\f0415"; }
.mci[data-g="trophy"]::before { content: "\f0538"; }
.mci[data-g="note-text-outline"]::before { content: "\f11d7"; }
.mci[data-g="check-circle"]::before { content: "\f05e0"; }
.mci[data-g="arrow-up"]::before { content: "\f005d"; }
.mci[data-g="arrow-down"]::before { content: "\f0045"; }
@font-face { font-family: "ant"; src: url("home/icons/ant.woff2") format("woff2"); font-display: block; }
.ant { font-family: "ant"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; }
.ant[data-g="check"]::before { content: "\f141"; }
.ant[data-g="plus"]::before { content: "\f21a"; }
@font-face { font-family: "fea"; src: url("home/icons/fea.woff2") format("woff2"); font-display: block; }
.fea { font-family: "fea"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; }
.fea[data-g="smile"]::before { content: "\f1e2"; }
.fea[data-g="arrow-up"]::before { content: "\f114"; }
.fea[data-g="zap"]::before { content: "\f21b"; }
.fea[data-g="corner-up-left"]::before { content: "\f14e"; }
