/* ─── Clinchr Landing Page ───
   Loaded AFTER styles.css, which owns the fonts, the semantic tokens
   (--bg/--surface/--t1/--red …), the sticky header, the store buttons
   and the footer. Nothing here redefines a token: the landing page is
   the same fight-night editorial system, pushed to poster scale.

   Structure: hero → session-type ticker → three "rounds" → two doors
   → closing CTA. Deliberately short; a landing page that needs eight
   scrolls to say what the app is has already lost the reader.

   TWO TYPE SYSTEMS LIVE HERE ON PURPOSE.
   The page itself is Anton + DM Sans + DM Mono (the website's voice).
   Everything under `.ap-*` is an in-app recreation and switches to the
   SYSTEM font stack, because that is what the React Native app actually
   renders. A mockup set in the website's display face reads as a poster
   about the app; set in the system face it reads as the app. The `.ap-*`
   blocks are traced from real components — the source file is named
   above each block, and the numbers (colours, radii, the 4px accent bar,
   the 2x2 gym stat grid) come from lib/constants.ts and
   lib/theme.ts rather than from taste. If a component changes in the
   app, this is the place that has to follow it.

   Every entrance animation hangs off `.reveal.visible`, which
   landing.js sets via IntersectionObserver (the same class name and
   contract styles.css already uses on the dashboard, so the base
   opacity/transform and the reduced-motion escape hatch are inherited).
   The block at the very bottom of this file kills the rest. */

/* ─── Keyboard skip link ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.lp-main { padding-bottom: 0; }

/* ─────────────────────────────────────────────────────────────
   HERO
   Poster type left, the real home feed right. Asymmetric on
   purpose — the type column is wider than the art column so the
   headline stays the loudest thing on the page.
   ───────────────────────────────────────────────────────────── */

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
  position: relative;
}

/* Fine diagonal speed-lines behind the hero, fading out to the left.
   Pure CSS — no image request. */
.lp-hero::before {
  content: '';
  position: absolute;
  inset: -40px -50vw -40px 30%;
  background: repeating-linear-gradient(
    68deg,
    transparent 0 22px,
    color-mix(in srgb, var(--t1) 5%, transparent) 22px 23px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
  pointer-events: none;
  z-index: 0;
}
.lp-hero-copy, .lp-hero-art { position: relative; z-index: 1; }

.lp-kicker {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  animation: lpFadeUp .7s cubic-bezier(.16, 1, .3, 1) both;
}

.lp-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: .92;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 22px;
}
.lp-word {
  display: block;
  animation: lpFadeUp .8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(.08s + var(--i) * .09s);
}
.lp-accent { color: var(--red); }

.lp-sub {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--t2);
  max-width: 44ch;
  margin-bottom: 30px;
  animation: lpFadeUp .8s cubic-bezier(.16, 1, .3, 1) .38s both;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: lpFadeUp .8s cubic-bezier(.16, 1, .3, 1) .46s both;
}
.lp-cta-row--center { justify-content: center; animation: none; }

.lp-fineprint {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--t3);
  animation: lpFadeUp .8s cubic-bezier(.16, 1, .3, 1) .54s both;
}

@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── The phone shell ─── */

.lp-hero-art {
  display: flex;
  justify-content: center;
  animation: lpFadeUp .9s cubic-bezier(.16, 1, .3, 1) .3s both;
}

.lp-phone {
  width: 100%;
  max-width: 322px;
  border: 1px solid var(--border-light);
  border-radius: 36px;
  background: var(--surface);
  padding: 13px 12px;
  position: relative;
  box-shadow: 0 28px 70px -34px rgba(0, 0, 0, .55);
  transform: none;
}
.lp-phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-light);
  z-index: 2;
}
.lp-phone-screen {
  border-radius: 26px;
  padding: 30px 10px 12px;
  /* A FIXED height, not aspect-ratio: the second card has to be cut off
     by the screen edge for the phone to read as a scrolling feed, and
     that only works if the content is reliably taller than the frame.
     The card below is a complete card for the same reason — a short
     stub would simply end, and an ending card is not a feed. Adding the
     optional photo pushes more content past the cut, never less. */
  height: 660px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 95%, transparent 100%);
  mask-image: linear-gradient(#000 95%, transparent 100%);
}

/* ═════════════════════════════════════════════════════════════
   IN-APP RECREATIONS  (.ap-*)
   Shared by the hero phone and the three round mockups.
   ═════════════════════════════════════════════════════════════ */

/* App tokens, lifted from lib/theme.ts. Held separately from the
   website's tokens so the mockups keep the APP's surfaces (the app's
   light background is #F6F6F7, the site's is #FBFBFA — close, not
   equal, and the card only reads as a card against the right one).
   Only [data-theme="dark"] is needed: the inline head script always
   stamps an explicit theme, so there is no bare system-preference
   state to catch. */
.lp-phone-screen,
.lp-mock,
.lp-app-frame {
  --ap-bg: #F6F6F7;
  --ap-surface: #FFFFFF;
  --ap-elevated: #F1F1F3;
  --ap-border: rgba(0, 0, 0, .07);
  --ap-border-strong: rgba(0, 0, 0, .14);
  --ap-t1: #141414;
  --ap-t2: #5C5C5C;
  --ap-t3: #6B6B70;
  --ap-red: #E53935;
  --ap-blue: #1E88E5;
  --ap-green: #43A047;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--ap-bg);
}
[data-theme="dark"] .lp-phone-screen,
[data-theme="dark"] .lp-mock,
[data-theme="dark"] .lp-app-frame {
  --ap-bg: #0D0D0D;
  --ap-surface: #212121;
  --ap-elevated: #2A2A2A;
  --ap-border: rgba(255, 255, 255, .05);
  --ap-border-strong: rgba(255, 255, 255, .1);
  --ap-t1: #FFFFFF;
  --ap-t2: #9E9E9E;
  --ap-t3: #616161;
}

/* ─── Avatars — components/ui/Avatar.tsx initials fallback:
       surface-elevated fill, textPrimary initial, deliberately NOT
       colour-filled. ─── */
.ap-av {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ap-elevated);
  color: var(--ap-t1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.ap-av--sm { width: 26px; height: 26px; font-size: 10.5px; }
.ap-av--xs { width: 18px; height: 18px; font-size: 8px; }
.ap-av--blue  { color: var(--ap-blue); }
.ap-av--green { color: var(--ap-green); }

/* ─── FriendsGymToggle ───
       components/navigation/FriendsGymToggle.tsx — a surface pill row
       with p-1; the active tab fills with primaryRed (Friends) or
       primaryBlue (the gym) and turns its label white. */
.ap-toggle {
  display: flex;
  background: var(--ap-surface);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 10px;
}
.ap-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ap-t2);
  white-space: nowrap;
  min-width: 0;
  transition: background .45s cubic-bezier(.16, 1, .3, 1), color .45s ease;
}
.ap-tab svg { width: 10px; height: 10px; color: rgba(255, 255, 255, .6); flex-shrink: 0; }
.ap-tab--gym { background: var(--ap-blue); color: #fff; }

/* ─── WorkoutCard ─── components/feed/WorkoutCard.tsx */
.ap-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 16px;
  overflow: hidden;
}
.ap-card-head { display: flex; align-items: center; gap: 9px; padding: 11px 11px 8px; }
.ap-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ap-who-line { display: flex; align-items: center; gap: 5px; }
.ap-who-line b { font-size: 11.5px; font-weight: 700; color: var(--ap-t1); }
.ap-who i { font-style: normal; font-size: 9.5px; color: var(--ap-t3); }

/* Streak chip — renders from 2 weeks up; primaryRed at 10% behind a
   flame and a count that are both full red. */
.ap-streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(229, 57, 53, .1);
  color: var(--ap-red);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ap-streak svg { width: 9px; height: 9px; }

.ap-more { color: var(--ap-t3); display: inline-flex; }
.ap-more svg { width: 13px; height: 13px; }

/* Media. Hidden by landing.js when the file is missing, so the card is
   correct either way — see initMedia(). */
.ap-media { margin: 0 11px 9px; border-radius: 10px; overflow: hidden; }
/* The real first post is a portrait phone photo of two fighters — a 4/3
   landscape crop would cut their heads off, so the media sits at 4/5 and holds
   the top of the frame where the faces are. */
.ap-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 18%; display: block; }

/* The next card down, clipped by the screen edge. */
.ap-card--peek { margin-top: 9px; }

.ap-card-title {
  padding: 0 11px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ap-t1);
}

/* ─── TypeBreakdownRows ───
       components/workout/TypeBreakdownRows.tsx — a surface-elevated
       block, one row per type, each keyed by a 4px accent bar in its
       own WORKOUT_TYPES colour. The Total row swaps that bar for a 4px
       spacer plus an icon-width spacer so its label lines up with the
       type labels above it. */
.ap-break {
  margin: 0 11px 10px;
  background: var(--ap-elevated);
  border-radius: 12px;
  overflow: hidden;
}
.ap-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 0;
  position: relative;
}
.ap-row + .ap-row { border-top: 1px solid var(--ap-border); }
.ap-accent { width: 4px; align-self: stretch; background: var(--c); flex-shrink: 0; }
.ap-row--total .ap-accent { background: transparent; }
.ap-row img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.ap-icon-spacer { width: 26px; flex-shrink: 0; }
.ap-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-row-main b { font-size: 11px; font-weight: 500; color: var(--ap-t1); }

/* Round pips — SparringRounds.tsx renders them in the ACTIVITY's own
   colour, not a fixed red, so "rounds of what" is answered by place. */
.ap-rounds {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--c);
}
.ap-rounds i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
  display: inline-block;
}
.ap-rounds i:last-of-type { margin-right: 3px; }

/* StatNumber — value and unit are separate sizes, tabular. */
.ap-dur {
  font-size: 12px;
  font-weight: 500;
  color: var(--ap-t2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.ap-dur u { text-decoration: none; font-size: 8.5px; color: var(--ap-t3); }
.ap-dur--strong { color: var(--ap-t1); font-weight: 600; }

.ap-total {
  font-size: 9px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ap-t3) !important;
}

/* Tagged training partners — under the workout, above the social bar. */
.ap-tagged {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px 9px;
  font-size: 9.5px;
  color: var(--ap-t3);
}
.ap-tagged b { color: var(--ap-t2); font-weight: 600; }

/* Social bar — KudosButton.tsx: unlit is a bare flame in textSecondary,
   lit fills rgba(229,57,53,.12) behind a red flame and a red count. */
.ap-social {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid var(--ap-border);
}
.ap-kudos, .ap-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ap-t2);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ap-kudos svg, .ap-icon-btn svg { width: 14px; height: 14px; }
.ap-kudos.is-lit { background: rgba(229, 57, 53, .12); color: var(--ap-red); }
.ap-kudos.is-lit svg { animation: lpPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes lpPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ─── Round 01: the log screen's type grid ───
       app/workout/new.tsx — 31%-wide cards in a wrapping row, 52px
       artwork, an 11px two-line label, and on selection a 2px border in
       the type colour over a colour+20 fill with a checkmark-circle
       pinned top-right. */
.ap-h {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ap-t1);
  margin-bottom: 3px;
}
.ap-h--gap { margin-top: 18px; }
.ap-h-sub { font-size: 10px; color: var(--ap-t3); margin-bottom: 10px; }

.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ap-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: var(--ap-surface);
  transition: border-color .4s ease, background .4s ease;
}
.ap-cell img { width: 44px; height: 44px; object-fit: contain; }
.ap-cell b {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ap-t1);
  text-align: center;
  line-height: 1.2;
}
.ap-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  color: var(--c);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
/* The two picked types light up in sequence once the round reveals. */
.reveal.visible .ap-cell[data-pick] {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--ap-surface));
}
.reveal.visible .ap-cell[data-pick] .ap-check { opacity: 1; transform: scale(1); }
.reveal.visible .ap-cell[data-pick="1"],
.reveal.visible .ap-cell[data-pick="1"] .ap-check { transition-delay: .35s; }
.reveal.visible .ap-cell[data-pick="2"],
.reveal.visible .ap-cell[data-pick="2"] .ap-check { transition-delay: .68s; }

/* ─── Round 01, part two: the per-type cards ───
       app/workout/new.tsx renderCard — one Card per picked activity:
       artwork + label + the grip that replaced the old move up/down
       arrows, a surface-elevated duration field with a chevron, a
       rounds stepper for round-based types, and the "last time"
       reference line (rounds and total time as two separate facts —
       "4 rounds · 12m", because "4× · 12m" read as 4 rounds OF 12m). */
.ap-logcard {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible .ap-logcard {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(1s + var(--d) * .16s);
}
.ap-logcard-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ap-logcard-head img { width: 24px; height: 24px; object-fit: contain; }
.ap-logcard-head b { font-size: 11px; font-weight: 600; color: var(--ap-t1); }
.ap-selection-summary { margin: 11px 1px 2px; font-size: 9px; font-weight: 650; color: var(--ap-t3); }

/* Grip — two columns of three dots, the standard drag affordance. */
.ap-grip {
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 2px;
}
.ap-grip i { width: 3px; height: 3px; border-radius: 50%; background: var(--ap-t3); display: block; }

.ap-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--ap-elevated);
}
.ap-field b { font-size: 13px; font-weight: 600; color: var(--ap-t1); font-variant-numeric: tabular-nums; }
.ap-field svg { width: 12px; height: 12px; color: var(--ap-t3); }

.ap-stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.ap-stepper i { font-style: normal; font-size: 9.5px; color: var(--ap-t3); }
.ap-stepper b {
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-t1);
  min-width: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ap-step {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ap-elevated);
  color: var(--ap-t1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 6px;
}
.ap-stepper > span:first-of-type { margin-left: auto; }
.ap-last { margin-top: 7px; font-size: 9px; color: var(--ap-t3); }
.ap-last span { color: var(--ap-t2); margin-left: 5px; }

/* ─── Round 02: the gym page ───
       app/gym/[id].tsx. The NBB pill is deliberately quiet — the colour
       is carried by the federation's own crest, and the label stays
       textSecondary (founder: "something lowkey"). The stats are the
       2x2 grid, not the old cropped strip: 24px/900 tabular values over
       10px/700 uppercase labels at 1.2 tracking. */
.ap-gym-hero {
  margin: -15px -14px 10px;
  padding: 10px 14px;
  /* Fixed white, NOT var(--ap-surface): the crest is the federation's
     own artwork on a white plate, so a dark surface behind it would
     show as a white box rather than a logo. partners/vanthof.png is the
     white-on-dark variant and is invisible here — this is the colour
     one, lifted from scripts/gym-logos/. */
  background: #FFFFFF;
  border-bottom: 1px solid var(--ap-border);
  border-radius: 17px 17px 0 0;
  display: flex;
  justify-content: center;
}
.ap-gym-hero img {
  width: 220px;
  max-width: 100%;
  height: 92px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Live proof uses the public dashboard's aggregate Supabase functions. Its
   footprint is present from first paint so the delayed response cannot move
   the ticker and every section below it. */
.lp-proof {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 2fr);
  align-items: center;
  gap: 30px;
  padding: 23px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-proof-intro {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--t2);
}
.lp-proof-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 35%, transparent);
  animation: lpProofPulse 2.4s ease-out infinite;
}
.lp-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-proof-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 16px;
  border-left: 1px solid var(--border);
}
.lp-proof-stat b {
  display: inline-block;
  min-width: 2.8ch;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.lp-proof[aria-busy="true"] .lp-proof-stat b {
  color: transparent;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: lpProofLoad 1.3s ease-in-out infinite;
}
.lp-proof[aria-busy="false"] .lp-proof-stat b {
  transition: color .2s ease, background-color .2s ease;
}
.lp-proof-stat i {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--t1);
}
.lp-proof-stat small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--t3);
}
@keyframes lpProofPulse {
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes lpProofLoad {
  to { background-position: -200% 0; }
}

.ap-gym-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ap-t1);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.ap-nbb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ap-elevated);
  border: 1px solid var(--ap-border);
  font-size: 9px;
  font-weight: 600;
  color: var(--ap-t2);
}
.ap-nbb img { width: 11px; height: 11px; object-fit: contain; }

.ap-gym-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 10px;
  color: var(--ap-t2);
}
.ap-gym-line svg { width: 11px; height: 11px; flex-shrink: 0; color: var(--ap-t3); }
.ap-gym-line:nth-of-type(1) svg { color: var(--ap-red); }
.ap-gym-line:nth-of-type(2) { color: var(--ap-blue); }

.ap-joined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px;
  border-radius: 11px;
  background: rgba(67, 160, 71, .1);
  border: 1px solid rgba(67, 160, 71, .25);
  color: var(--ap-green);
  font-size: 11px;
  font-weight: 700;
}
.ap-joined svg { width: 13px; height: 13px; }

.ap-gym-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  border: 1px solid var(--ap-border);
  border-radius: 14px;
  overflow: hidden;
}
.ap-gym-stats span {
  padding: 13px 6px;
  text-align: center;
  border-bottom: 1px solid var(--ap-border);
}
.ap-gym-stats span:nth-child(odd) { border-right: 1px solid var(--ap-border); }
.ap-gym-stats span:nth-child(n+3) { border-bottom: 0; }
.ap-gym-stats b {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: var(--ap-t1);
  font-variant-numeric: tabular-nums;
}
.ap-gym-stats i {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ap-t3);
}

.ap-members { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.ap-members-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ap-t1);
}
.ap-members-h b { color: var(--ap-t3); margin-left: 3px; }
.ap-stack { display: flex; }
.ap-stack .ap-av, .ap-more-count { margin-left: -7px; box-shadow: 0 0 0 2px var(--ap-bg); }
.ap-stack .ap-av:first-child { margin-left: 0; }
.ap-more-count {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ap-elevated);
  color: var(--ap-t2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 700;
  font-style: normal;
}

/* ─── Round 03: the leaderboard ───
       components/leaderboard/RankRow.tsx — the bar behind each row is
       that fighter's share of the leader's seconds and sweeps in from
       the left on a stagger. Your own row gets a 3px red edge (an
       absolute overlay, never a border: a border is in the box model
       and would shove the row and its bar 3px right, making your bar
       look shorter than everyone else's for identical time). */
.ap-rank {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  overflow: hidden;
}
.ap-rank + .ap-rank { border-top: 1px solid var(--ap-border); }
.ap-rank-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(229, 57, 53, .09);
  transition: width .85s cubic-bezier(.16, 1, .3, 1);
}
.ap-rank--me .ap-rank-bar { background: rgba(229, 57, 53, .18); }
.reveal.visible .ap-rank-bar {
  width: calc(var(--pct) * 1%);
  transition-delay: calc(.3s + var(--d) * .12s);
}
.ap-rank-edge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ap-red);
}
.ap-rank-n {
  position: relative;
  width: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-t3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ap-rank--me .ap-rank-n { color: var(--ap-red); }
.ap-rank .ap-av, .ap-rank-body, .ap-rank .ap-dur { position: relative; }
.ap-rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-rank-body b { font-size: 11.5px; font-weight: 600; color: var(--ap-t1); }
.ap-rank--me .ap-rank-body b { color: var(--ap-red); }
.ap-rank-body i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--ap-t3);
}
.ap-rank-body i svg { width: 8px; height: 8px; color: #FF7043; }

/* ─── Round 03: the personal-record shelf ───
       components/stats/PersonalRecords.tsx — a gold-accented row per
       record: a 30px rounded tile at accentGold+20 behind the icon, the
       label in textSecondary, the value bold and tabular. Gold TEXT on
       a light surface uses coachGold (#CA8A04), per the palette rule —
       #F5B800 on white is not readable. */
.ap-rec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible .ap-rec {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(.75s + var(--d) * .13s);
}
.ap-rec-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(202, 138, 4, .16);
  color: #CA8A04;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .ap-rec-ico { background: rgba(255, 214, 0, .16); color: #FFD600; }
.ap-rec-ico svg { width: 14px; height: 14px; }
.ap-rec i { flex: 1; font-style: normal; font-size: 10.5px; color: var(--ap-t2); }
.ap-rec b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ap-t1);
  font-variant-numeric: tabular-nums;
}
.ap-rec b u { text-decoration: none; font-size: 9px; color: var(--ap-t3); }

/* The gym preview keeps its app-faithful contents untouched, but now sits in
   the same clear device context as the rest of the product recreations. */
.lp-app-frame {
  width: 100%;
  max-width: 322px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 36px;
  padding: 12px 11px;
  background: var(--surface);
  box-shadow: 0 28px 70px -34px rgba(0, 0, 0, .55);
}
.ap-status {
  height: 24px;
  padding: 7px 15px 0;
  display: flex;
  justify-content: space-between;
  color: var(--ap-t1);
  font-size: 9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  background: var(--ap-bg);
}
.ap-status-icons { display: inline-flex; align-items: center; gap: 3px; }
.ap-status-icons i { display: block; width: 3px; border-radius: 99px; background: currentColor; }
.ap-status-icons i:nth-child(1) { height: 5px; }
.ap-status-icons i:nth-child(2) { height: 7px; }
.ap-status-icons i:nth-child(3) { width: 11px; height: 6px; border: 1px solid currentColor; background: transparent; }
.ap-screen-nav {
  height: 35px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  padding: 0 11px;
  border-bottom: 1px solid var(--ap-border);
  color: var(--ap-t1);
  background: var(--ap-bg);
}
.ap-screen-nav b { text-align: center; font-size: 12px; font-weight: 750; }
.ap-back { color: var(--ap-blue); font-size: 25px; line-height: 1; margin-top: -2px; }
.ap-screen-more { text-align: right; color: var(--ap-t3); letter-spacing: 1px; font-size: 11px; }
.lp-app-frame .ap-status { border-radius: 25px 25px 0 0; }
.lp-app-frame .lp-mock { max-width: none; border: 0; border-radius: 0; padding: 15px 14px 12px; }
.ap-home-indicator { width: 102px; height: 4px; border-radius: 99px; background: var(--ap-t1); opacity: .86; margin: 7px auto 8px; }
.lp-round-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; width: 100%; max-width: 510px; }
.lp-app-frame--session { min-width: 0; align-self: start; }
.lp-app-frame--session .lp-mock { padding: 13px 11px 11px; }
.lp-app-frame--session .ap-grid { gap: 5px; }
.lp-app-frame--session .ap-cell { min-height: 67px; padding: 6px 3px; }
.lp-app-frame--session .ap-cell img { width: 26px; height: 26px; }
.lp-app-frame--session .ap-cell b { font-size: 8px; }
.lp-app-frame--session .ap-logcard { padding: 8px; }
.lp-app-frame--session .ap-feel { padding: 9px; }

/* ─── Photo avatars (members + coaches) ───
       The initials fallback is real in the app, but a gym page reads as a room
       full of people, so the members here carry actual profile photos. The two
       leads are the fighters from the hero post; the rest are default-avatar
       placeholders. Coaches get the app's gold ring. */
.ap-av--img {
  background-size: cover;
  background-position: center;
  color: transparent;
  overflow: hidden;
}
.ap-av--coach { box-shadow: 0 0 0 2px #F5B800; }
[data-theme="dark"] .ap-av--coach { box-shadow: 0 0 0 2px #FFD600; }

.ap-coaches { margin-top: 15px; }
.ap-coach-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.ap-coach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ap-coach .ap-av--coach { width: 34px; height: 34px; }
.ap-coach-who { display: flex; flex-direction: column; gap: 1px; }
.ap-coach-who b { font-size: 9.5px; font-weight: 700; color: var(--ap-t1); line-height: 1.15; }
.ap-coach-who em {
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #CA8A04;
}
[data-theme="dark"] .ap-coach-who em { color: #FFD600; }

/* ─── Session feel: what a Clinchr session records beyond duration ───
       The log screen keeps perceived intensity / sharpness / session focus as
       ONE session-level state below the per-activity cards, so this is its own
       card. Intensity and sharpness are 1-5 button scales with a word label
       (INTENSITY_COLORS / SHARPNESS_COLORS in lib/constants.ts), and the focus
       is the 3-pill multi-select from components/workout/FocusPills.tsx. */
.ap-feel {
  margin-top: 9px;
  padding: 11px;
  border-radius: 12px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border-strong);
}
.ap-feel-h {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ap-t2);
  margin-bottom: 6px;
}
.ap-feel-h--gap { margin-top: 13px; }
.ap-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.ap-scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 8px;
  background: var(--ap-elevated);
  border: 1px solid var(--ap-border-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--sc);
  font-variant-numeric: tabular-nums;
}
/* The picked level fills with its own ramp colour; white-on-colour mirrors
   Colors.textOnColor in the app. */
.ap-scale span.is-on { background: var(--sc); border-color: var(--sc); color: #fff; }
.ap-feel-lbl { margin-top: 5px; font-size: 9.5px; font-weight: 700; color: var(--sc); }
.ap-feel-div { height: 1px; background: var(--ap-border); margin: 12px 0; }
.ap-focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap-focus span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 9px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border-strong);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ap-t2);
}
.ap-focus span.is-on { background: var(--ap-elevated); border-color: var(--sc); color: var(--sc); }
@supports (background: color-mix(in srgb, red 12%, transparent)) {
  .ap-focus span.is-on { background: color-mix(in srgb, var(--sc) 12%, transparent); }
}
.ap-tags--gear { margin-top: 13px; }

.ap-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ap-tags-h {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ap-t3);
  margin-right: 1px;
}
.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ap-elevated);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ap-t2);
}
.ap-chip svg { width: 11px; height: 11px; }
.ap-chip--gear { background: rgba(229, 57, 53, .1); color: var(--ap-red); }

/* ─── Leaderboard scope toggle (Round 03) ───
       Friends active (primaryRed) so the board reads as the FRIENDS board, not
       just the gym one — the app's FriendsGymToggle drives both surfaces. */
.ap-toggle--lb { margin-bottom: 12px; padding: 3px; background: var(--ap-elevated); box-shadow: inset 0 0 0 1px var(--ap-border); }
.ap-toggle--lb .ap-tab { appearance: none; border: 0; cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
.ap-tab--friends-on.is-active { background: var(--ap-red); color: #fff; }
.ap-tab--plain { color: var(--ap-t2); }
.ap-tab--plain.is-active { background: var(--ap-blue); color: #fff; }

/* Round 03 is two calm, ordered surfaces: rank first, then training volume.
   The dividers and repeated label treatment make the mock scan like an app
   page rather than a loose collection of landing-page components. */
.ap-board-card,
.ap-goal-panel { border: 1px solid var(--ap-border); border-radius: 16px; background: var(--ap-surface); overflow: hidden; }
.ap-board-head,
.ap-goal-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px 8px; border-bottom: 1px solid var(--ap-border); }
.ap-board-head .ap-h,
.ap-goal-panel-head .ap-h { margin: 0; font-size: 10px; }
.ap-board-head > span,
.ap-goal-panel-head > span { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ap-t3); }
.ap-board-card .ap-rank { padding: 9px 10px; }
.ap-goal-panel { margin-top: 15px; padding-bottom: 2px; }
.ap-goal-panel .ap-goalcard { padding: 12px 12px 9px; }
.ap-goal-panel .ap-week-chart { margin: 0 12px 10px; padding-top: 10px; }

/* ─── Hours-this-month vs goal (Round 03, replaces the PR shelf) ───
       A filled goal bar over the week-by-week hours. Fill and bars sweep up on
       reveal; the current week is solid red, the past weeks a quiet tint. */
/* Goal hero — progress RING + remaining + target + momentum chip, the real
   shape of the goal card in the Stats tab. r=43.5 => circumference 273.3, so
   --off is 273.3 * (1 - progress). Gold is coachGold (#CA8A04), the
   light-mode gold TEXT token. */
.ap-goalcard { display: flex; align-items: center; gap: 13px; padding: 2px 0 6px; }
.ap-ring { position: relative; width: 96px; height: 96px; flex: none; }
.ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 9; }
.ap-ring-track { stroke: var(--ap-elevated); }
.ap-ring-fill {
  stroke: var(--ap-red);
  stroke-linecap: round;
  stroke-dasharray: 273.3px;
  stroke-dashoffset: 273.3px;
  transition: stroke-dashoffset 1s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible .ap-ring-fill { stroke-dashoffset: var(--off); transition-delay: .5s; }
.ap-ring-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ap-ring-mid b { font-size: 15px; font-weight: 800; color: var(--ap-t1); font-variant-numeric: tabular-nums; }
.ap-ring-mid b u { text-decoration: none; font-size: 9.5px; color: var(--ap-t3); }
.ap-ring-mid i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--ap-red); margin-top: 1px; font-variant-numeric: tabular-nums; }
.ap-ring-fill.is-complete { stroke: var(--ap-green); }
.ap-ring.is-complete .ap-ring-mid i,
.ap-goal-togo.is-reached { color: var(--ap-green); }
.ap-goal-side { flex: 1; min-width: 0; }
.ap-goal-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ap-t3);
}
.ap-goal-lbl svg { width: 10px; height: 10px; flex: none; }
.ap-goal-togo { display: block; font-size: 14px; font-weight: 700; color: var(--ap-t1); margin-top: 4px; }
.ap-goal-target { display: block; font-style: normal; font-size: 10px; color: var(--ap-t3); margin-top: 2px; }
.ap-goal-edit { appearance: none; border: 0; border-bottom: 1px dashed currentColor; padding: 0; background: transparent; color: var(--ap-t2); font: inherit; font-weight: 700; cursor: pointer; }
.ap-goal-edit:focus-visible, .ap-toggle--lb .ap-tab:focus-visible { outline: 2px solid var(--ap-blue); outline-offset: 2px; }
/* The real stats screen carries eight selectable weekly-volume bars, an hours
   axis, a dashed goal line and a selected-period value. */
.ap-week-chart { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--ap-border); }
.ap-week-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--ap-t3); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.ap-week-chart-head b { color: var(--ap-t1); font-size: 9px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.ap-week-chart-body { display: flex; height: 82px; }
.ap-week-axis { position: relative; width: 25px; flex: none; color: var(--ap-t3); font-size: 7.5px; font-variant-numeric: tabular-nums; }
.ap-week-axis span { position: absolute; right: 6px; transform: translateY(-50%); }
.ap-week-axis span:nth-child(1) { top: 0; transform: none; }
.ap-week-axis span:nth-child(2) { top: 50%; }
.ap-week-axis span:nth-child(3) { bottom: -2px; transform: none; }
.ap-week-chart-plot { position: relative; flex: 1; height: 82px; }
.ap-week-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--ap-border); pointer-events: none; }
.ap-week-grid--top { top: 0; }
.ap-week-grid--mid { top: 50%; }
.ap-week-grid--base { bottom: 0; background: var(--ap-border-strong); }
.ap-week-goal-line { position: absolute; z-index: 1; top: calc(100% - var(--goal)); left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--ap-red) 80%, transparent); pointer-events: none; opacity: 0; transition: opacity .35s ease .42s; }
.ap-week-goal-line i { position: absolute; left: 0; top: -11px; padding-right: 4px; background: var(--ap-surface); color: var(--ap-red); font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reveal.visible .ap-week-goal-line { opacity: 1; }
.ap-week-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; align-items: end; }
.ap-week-bars > button { appearance: none; position: relative; z-index: 2; height: 100%; min-width: 0; padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer; }
.ap-week-bars > button span { position: absolute; z-index: 2; bottom: calc(var(--h) + 4px); left: 50%; transform: translateX(-50%); color: var(--ap-t1); font-size: 7.5px; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .2s ease; font-variant-numeric: tabular-nums; }
.ap-week-bars > button.is-active span { opacity: 1; }
.ap-week-bars i { display: block; width: 100%; max-width: 17px; height: var(--h); min-height: 4px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--ap-red) 24%, var(--ap-elevated)); transform: scaleY(0); transform-origin: bottom; transition: transform .52s cubic-bezier(.16, 1, .3, 1), height .45s cubic-bezier(.16, 1, .3, 1), background .2s ease; }
.reveal.visible .ap-week-bars i { transform: scaleY(1); }
.reveal.visible .ap-week-bars > button:nth-child(2) i { transition-delay: .05s; }
.reveal.visible .ap-week-bars > button:nth-child(3) i { transition-delay: .1s; }
.reveal.visible .ap-week-bars > button:nth-child(4) i { transition-delay: .15s; }
.reveal.visible .ap-week-bars > button:nth-child(5) i { transition-delay: .2s; }
.reveal.visible .ap-week-bars > button:nth-child(6) i { transition-delay: .25s; }
.reveal.visible .ap-week-bars > button:nth-child(7) i { transition-delay: .3s; }
.reveal.visible .ap-week-bars > button:nth-child(8) i { transition-delay: .35s; }
.ap-week-bars > button.is-active i { background: var(--ap-red); box-shadow: 0 0 0 3px rgba(229, 57, 53, .12); }
.ap-week-bars > button:focus-visible { outline: 2px solid var(--ap-blue); outline-offset: 2px; border-radius: 4px; }
.ap-week-endpoints { display: flex; justify-content: space-between; margin: 5px 0 0 25px; color: var(--ap-t3); font-size: 8px; }
.ap-week-endpoints b { color: var(--ap-red); font-weight: 700; }

/* Reduced motion: the goal ring shows its final state, no sweep. */
@media (prefers-reduced-motion: reduce) {
  .ap-ring-fill { transition: none; }
  .reveal.visible .ap-ring-fill { stroke-dashoffset: var(--off); transition-delay: 0s; }
}

/* ─────────────────────────────────────────────────────────────
   SESSION-TYPE TICKER
   Full-bleed marquee. .dash-main is a 1140px column with side
   padding, so the strip breaks out with symmetrical negative
   margins and re-pads itself. Two identical sets translate by
   exactly -50%, which is what makes the loop seamless.
   ───────────────────────────────────────────────────────────── */

.lp-ticker {
  margin: 0 -28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-ticker-track {
  display: flex;
  width: max-content;
  animation: lpMarquee 42s linear infinite;
}
.lp-ticker:hover .lp-ticker-track { animation-play-state: paused; }
.lp-ticker-set { display: flex; align-items: center; }
@keyframes lpMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.lp-tick {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 26px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--t2);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.lp-tick img { width: 22px; height: 22px; object-fit: contain; }
.lp-tick::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   ROUNDS
   Copy one side, an in-app recreation the other, alternating.
   A hairline rule and a mono "Round NN" label carry the fight-card
   structure without a single box.
   ───────────────────────────────────────────────────────────── */

.lp-round {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}
.lp-round--flip .lp-round-copy { order: 2; }
.lp-round--flip .lp-round-art  { order: 1; }

.lp-round-no {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-round-no::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 90px;
  background: var(--border-light);
}

.lp-round-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: .98;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 20px;
}

.lp-round-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--t2);
  max-width: 44ch;
  margin-bottom: 22px;
}

.lp-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.lp-list li {
  position: relative;
  padding-left: 20px;
  font-size: .9rem;
  color: var(--t2);
}
.lp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 1px;
  background: var(--red);
}

.lp-round-art { display: flex; justify-content: center; }

.lp-mock {
  width: 100%;
  max-width: 330px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

/* ─────────────────────────────────────────────────────────────
   TWO DOORS — the dashboard and the partners page
   ───────────────────────────────────────────────────────────── */

.lp-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.lp-door {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 46px 40px 46px 0;
  text-decoration: none;
  transition: background .25s ease;
}
.lp-door + .lp-door { border-left: 1px solid var(--border); padding-left: 40px; }
.lp-door:hover { background: color-mix(in srgb, var(--t1) 3%, transparent); }

.lp-door-no {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--t3);
  padding-top: 5px;
}
.lp-door-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.lp-door-title {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--t1);
  transition: color .2s ease;
}
.lp-door:hover .lp-door-title { color: var(--red); }
.lp-door-sub { font-size: .9rem; line-height: 1.55; color: var(--t2); max-width: 34ch; }

.lp-door-go {
  color: var(--t3);
  display: inline-flex;
  padding-top: 4px;
  transition: color .2s ease, transform .2s ease;
}
.lp-door-go svg { width: 20px; height: 20px; }
.lp-door:hover .lp-door-go { color: var(--red); transform: translateX(5px); }

/* A conversion door immediately after the gym story, when intent is highest. */
.lp-mid-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.lp-mid-cta-kicker {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.lp-mid-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--t1);
}
.lp-mid-cta-copy > p:last-child { margin-top: 9px; color: var(--t2); line-height: 1.5; }
.lp-mid-cta .lp-cta-row { flex-wrap: nowrap; animation: none; }

/* ─────────────────────────────────────────────────────────────
   SEPTEMBER CHALLENGE BANNER
   ───────────────────────────────────────────────────────────── */

.lp-challenge-banner {
  width: min(1180px, calc(100% - 40px));
  min-height: 66px;
  margin: 18px auto 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: #fff;
  background: #101011;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 12px 34px rgba(11,11,12,.16);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.lp-challenge-banner[hidden] { display: none; }
.lp-challenge-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 42px rgba(11,11,12,.23);
}
.lp-challenge-banner__mark {
  padding: 9px 11px;
  color: #fff;
  background: var(--red);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .13em;
  white-space: nowrap;
}
.lp-challenge-banner__copy { min-width: 0; display: grid; gap: 2px; }
.lp-challenge-banner__copy b {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.lp-challenge-banner__copy span {
  color: rgba(255,255,255,.66);
  font-size: .76rem;
  line-height: 1.3;
}
.lp-challenge-banner__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lp-challenge-banner__go svg { width: 17px; height: 17px; transition: transform .2s ease; }
.lp-challenge-banner:hover .lp-challenge-banner__go svg { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────
   CLOSING CTA
   ───────────────────────────────────────────────────────────── */

.lp-close { text-align: center; padding: 92px 0 100px; }
.lp-close-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: .96;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 34px;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 52px 0 52px;
  }
  .lp-hero::before { inset: -30px -50vw 40% 10%; }
  .lp-hero-art { order: 2; }

  .lp-round {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 62px 0;
  }
  /* On one column the art always follows the copy, so the flipped
     round has to give its order overrides back. */
  .lp-round--flip .lp-round-copy { order: 1; }
  .lp-round--flip .lp-round-art  { order: 2; }
  .lp-round-body { max-width: none; }

  .lp-doors { grid-template-columns: 1fr; }
  .lp-door { padding: 34px 0; }
  .lp-door + .lp-door {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }
  .lp-door-sub { max-width: none; }

  .lp-close { padding: 68px 0 76px; }
  .lp-proof { grid-template-columns: 1fr; gap: 17px; }
  .lp-proof-stat:first-child { border-left: 0; padding-left: 0; }
  .lp-mid-cta { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .lp-challenge-banner {
    width: calc(100% - 24px);
    min-height: 0;
    margin-top: 10px;
    padding: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
  }
  .lp-challenge-banner__mark { padding: 8px 7px; font-size: .5rem; }
  .lp-challenge-banner__copy b { font-size: 1rem; }
  .lp-challenge-banner__copy span { font-size: .68rem; white-space: normal; }
  .lp-challenge-banner__go { display: none; }
  .lp-ticker { margin: 0 -20px; }
  .lp-tick { padding: 0 18px; font-size: .68rem; }
  .lp-cta-row .store-btn { flex: 1 1 100%; }
  /* Wide mono tracking breaks "Launched 27 July 2026" across two lines on a
     phone. Tighten the tracking rather than dropping a clause. */
  .lp-fineprint { letter-spacing: .1em; font-size: .6rem; }
  .lp-round-phones { grid-template-columns: minmax(0, 322px); justify-content: center; }
  .lp-proof { padding: 20px 0; }
  .lp-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .lp-proof-stat { padding: 0 10px; }
  .lp-proof-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .lp-proof-stat b { font-size: 1.85rem; }
  .lp-mid-cta { padding: 30px 0; }
  .lp-mid-cta .lp-cta-row { flex-wrap: wrap; }
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION
   styles.css already flattens `.reveal`. Everything the landing
   page adds on top — entrance keyframes, the marquee, the pops,
   the staggered transitions — has to be killed here too, or the
   page still moves for someone who asked it not to. The lit/final
   states stay; only the travel is removed.
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .lp-challenge-banner,
  .lp-challenge-banner__go svg { transition: none; }
  .lp-kicker,
  .lp-word,
  .lp-sub,
  .lp-cta-row,
  .lp-fineprint,
  .lp-hero-art {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lp-ticker-track { animation: none; }
  .lp-proof-dot { animation: none; }
  .lp-proof[aria-busy="true"] .lp-proof-stat b { animation: none; }
  .ap-kudos.is-lit svg { animation: none; }
  .ap-logcard,
  .ap-cell,
  .ap-check,
  .ap-rec,
  .ap-rank-bar,
  .ap-week-bars i {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* The bar still needs its width — only the sweep is dropped. */
  .reveal.visible .ap-rank-bar { width: calc(var(--pct) * 1%); }
  .reveal.visible .ap-week-goal-line { opacity: 1; transition: none; }
}
