/* ══════════════════════════════ FONTS ═════════════════════════════════════
   Self-hosted, NOT loaded from fonts.googleapis.com. Requesting a font from
   Google's CDN sends every visitor's IP address to Google before they've
   consented to anything — a German court awarded damages over exactly that in
   2022 (LG München I, 3 O 17493/20). Serving the files ourselves removes the
   third-party request entirely, and is faster: no extra DNS + TLS handshake.

   🔴 Do NOT re-add a <link> to fonts.googleapis.com. If a new weight or style
   is needed, add the woff2 to marketing/fonts/ and a rule here.

   Both families are SIL Open Font License 1.1, which permits self-hosting.
   DM Sans is the variable font (weight 100–1000, optical size 9–40 applied
   automatically by the browser), so one file covers every weight in use.
   unicode-range splits latin / latin-ext so the accented file is only fetched
   if a page actually needs it. */

/* Bebas Neue — numbers and headers */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — body copy. Variable: covers 400/500/600/700/800 from one file. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Italic is used by .p-greeting ("LET'S GO") in the phone demo. */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --accent: #FFEC00;
  --accent-fg: #0d0d0d;
  --bg: #000;
  --panel: #191919;
  --panel2: #222;
  --border: #2e2e2e;
  --muted: #666;
  --danger: #ff392d;
  --text: #fff;
  --head: 'Bebas Neue', sans-serif;
  --body: 'DM Sans', sans-serif;

  /* driven by script.js every frame */
  --xp: 0;          /* horizontal progress: 0 = home, 1 = plan   */
  --boxp: 0;        /* plan text box slide-in                    */
  --fill: 16.667vh; /* edge-bar fill height                      */
  --word-progress: 0;
}

html, body { margin: 0; padding: 0; background: var(--bg); }

html { overflow-x: clip; text-wrap: pretty; }
body {
  font-family: var(--body);
  color: var(--text);
  overflow-x: clip;
}
body.locked { overflow: hidden; }

button { font-family: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }

/* ════════════════════════════════ SCENE ═══════════════════════════════ */

/* The 100dvh term keeps the scrollable range exactly 1540vh no matter the mobile
   URL-bar state (document height − current viewport = 1540vh always). */
.scene { height: calc(100vh + 1540vh); height: calc(100dvh + 1540vh); background: var(--bg); }

/* Fixed (not sticky) — the scene spans the whole page, so fixed is equivalent
   and dodges sticky-compositing quirks. Revisit when sections follow the scene.
   Height is the LARGE viewport (100lvh), not 100dvh: the stage must not resize
   when the mobile URL bar shows/hides or the whole scene jumps. When the bar is
   visible the bottom ~56px sit behind it; only the menu compensates (see .menu). */
.stage {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--bg);
}

/* ── Panels ── */
.panels {
  display: flex;
  width: 700vw;
  height: 100%;
  transform: translate3d(calc(var(--xp) * -100vw), 0, 0);
  will-change: transform;
}
.panel { position: relative; flex: 0 0 100vw; height: 100%; overflow: hidden; background: var(--bg); }
/* During a menu jump the panel row is driven by --jx instead of --xp (see
   jumpToSection): the target panel is relocated next to the current one so the
   pan is a single screen. */
.panels.jumping { transform: translate3d(var(--jx, 0), 0, 0); }
.panel-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* the bg photos are pre-washed light images — tune here if the wash should
     be stronger/weaker */
  opacity: 0.25;
  pointer-events: none;
}

/* ════════════════════════════ TICKER ══════════════════════════════════ */

.ticker {
  --ticker-top: 29vh;
  position: absolute;
  left: 0; right: 0;
  top: var(--ticker-top);
  z-index: 4;
  display: grid;
  row-gap: 1.5vh;
  pointer-events: none;
  font-family: var(--head);
  /* --ty is driven per-frame by script.js: below the icons on YOUR PLAN,
     down to the lower half on YOUR COACH */
  transform: translate3d(0, var(--ty, 0px), 0);
  will-change: transform;
}
.ticker-row { overflow: hidden; }
.row-grey   { color: #666666; }
.row-yellow { color: var(--accent); transform: translateY(-0.148em); }

.marquee { display: flex; align-items: center; font-size: clamp(6rem, 26vh, 20rem); }
.marquee-track {
  display: flex; width: max-content; min-width: 200%;
  --marquee-offset: -50%;
  will-change: transform;
  backface-visibility: hidden;
}
.marquee-group { display: flex; align-items: center; flex: 0 0 auto; }
.marquee-track-left  { animation: scroll-ltr 110s linear infinite; }
.marquee-track-right { animation: scroll-rtl 104s linear infinite; }
@keyframes scroll-ltr { from { transform: translate3d(var(--marquee-offset), 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes scroll-rtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--marquee-offset), 0, 0); } }

/* Each slot holds the section-1 brand word (SVG mask) stacked above the
   section-2 plain word; --word-progress rolls between them (mockup mechanism). */
.tick-word {
  --line-h: 0.82em;
  --roll: 0.98em;
  display: block; flex: 0 0 auto;
  height: var(--line-h);
  line-height: 0.78;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 20px;
  overflow: hidden;
  contain: paint;
}
.tick-inner {
  display: flex; flex-direction: column; align-items: flex-start;
  transform: translate3d(0, calc(var(--word-progress) * var(--roll) * -1), 0);
  will-change: transform;
}
.tick-inner > span { display: block; flex: none; height: var(--line-h); overflow: visible; }
.tick-inner > span:not(:last-child) { margin-bottom: calc(var(--roll) - var(--line-h)); }
.tick-inner > span:not(:first-child) { transform: skewX(-10deg); transform-origin: left center; }

.tick-svg {
  display: block;
  height: calc(var(--line-h) * 0.82);
  margin-top: calc(var(--line-h) * 0.09);
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.tick-svg-hybrid { aspect-ratio: 552.359 / 173.37; -webkit-mask-image: url('i/title-hybrid.svg'); mask-image: url('i/title-hybrid.svg'); }
.tick-svg-build  { aspect-ratio: 462 / 175.85;    -webkit-mask-image: url('i/title-build.svg');  mask-image: url('i/title-build.svg'); }

/* ═══════════════════════════ HERO (section 1) ═════════════════════════ */

.hero {
  position: absolute;
  left: 50%; top: 71vh;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  width: max-content;
  max-width: 92vw;
}
.hero-tagline {
  margin: 0;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(22px, 3.25vh, 35px);
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}
.hero-sub {
  margin: 1.6vh 0 0;
  font-weight: 500;
  font-size: clamp(10px, 1.3vh, 14px);
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}
.hero-chip {
  margin-top: 3.2vh;
  height: 42px;
  padding: 0 34px;
  background: #000;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}
.hero-chip:hover { background: var(--accent); color: #000; }

/* ═════════════════════════ APP LINKS (persist) ════════════════════════ */

.applinks {
  position: absolute;
  left: 50%; top: 150px;
  /* On the home screen the block sits at `top`; once you scroll off section 1
     the label fades and the icons ride up to 30px (--xp1 is the first transition
     only — later sections keep this state). --applinks-shift = top − 30px. */
  --applinks-shift: 120px;
  z-index: 5;
  text-align: center;
  transform: translate3d(-50%, calc(var(--xp1, 0) * var(--applinks-shift) * -1), 0);
  will-change: transform;
}
.applinks-label {
  /* Collapses as you scroll off section 1 so the icons ride up to the block top
     (~30px) instead of being held down by the faded label. */
  margin: 0 0 calc((1 - var(--xp1, 0)) * 18px);
  max-height: calc((1 - var(--xp1, 0)) * 40px);
  overflow: hidden;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  opacity: calc(1 - var(--xp1, 0));
}
.applinks-row { display: flex; align-items: flex-start; justify-content: center; gap: 58px; }
.applink { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--accent); }
.applink-word { opacity: calc(1 - var(--xp1, 0)); }

.ic, .applink-word {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.ic-apple    { height: 33px; aspect-ratio: 27.0862 / 32.5034; -webkit-mask-image: url('i/apple-logo.svg');    mask-image: url('i/apple-logo.svg'); }
.ic-android  { height: 26px; aspect-ratio: 36.2096 / 21.1074; -webkit-mask-image: url('i/android-robot.svg'); mask-image: url('i/android-robot.svg'); margin-top: 4px; }
.w-apple     { height: 21px; aspect-ratio: 60.465 / 21.2534;  -webkit-mask-image: url('i/apple-word.svg');    mask-image: url('i/apple-word.svg'); }
.w-android   { height: 17px; aspect-ratio: 72.4506 / 17.3714; -webkit-mask-image: url('i/android-word.svg');  mask-image: url('i/android-word.svg'); margin-top: 2px; }

/* ══════════════════════════ EDGE TIMER BARS ═══════════════════════════ */

.edge { position: absolute; top: 0; bottom: 0; width: 10px; z-index: 6; pointer-events: none; }
.edge-left  { left: 0; }
.edge-right { right: 0; }
.edge-ruler { position: absolute; inset: 0; }
.edge-tick { position: absolute; height: 1px; background: var(--accent); }
.edge-left  .edge-tick { left: 0; }
.edge-right .edge-tick { right: 0; }
.edge-fill {
  position: absolute;
  width: 10px;
  background: var(--accent);
  height: var(--fill);
  will-change: height;
}
.edge-left  .edge-fill { top: 0; left: 0; }
.edge-right .edge-fill { bottom: 0; right: 0; }

/* ═══════════════════════════════ MENU ═════════════════════════════════ */

.menu {
  position: absolute;
  left: 50%;
  /* The stage is 100lvh, so its bottom edge can sit behind the mobile URL bar.
     100lvh − 100dvh = the bar's current height (0 when hidden / on desktop) —
     the menu rides up so it always clears the bar. Plain fallback first. */
  bottom: 40px;
  bottom: calc(100lvh - 100dvh + 40px);
  transform: translateX(-50%);
  /* Above the docked/peeking phones (z-9) so they never cover the menu; dropped
     back below the dim while a phone preview is expanded (rule further down). */
  z-index: 11;
  width: 360px;
  height: 45px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: width 0.38s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.menu-items {
  position: absolute; left: 0; top: 0;
  display: flex;
  width: 360px; height: 45px;
  opacity: 1;
  transition: opacity 0.22s ease 0.1s;
}
.menu-bar {
  position: absolute; top: 0; left: 0;
  width: 45px; height: 3px;
  background: #000;
  will-change: transform;
}
.menu-slot {
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  color: #000;
}
/* Inline-SVG menu icons — dimmed while their section is inactive, full when active
   (JS toggles .active on the current section's slot; see setActiveSlot). */
.mi-svg {
  display: block;
  height: 15px; width: auto;
  color: #000;
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.15s ease;
}
.mi-svg-heart { height: 16px; }
.menu-slot.active .mi-svg { opacity: 1; }
.menu-slot:hover .mi-svg { transform: scale(1.15); opacity: 1; }
.menu-dot { width: 6px; height: 6px; border-radius: 3px; background: #000; }

.menu-burger {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: flex-end; justify-content: center;
  padding-right: 16px;
  gap: 3px;
}
.menu-burger span { display: block; height: 2px; border-radius: 5px; background: #000; }
.menu-burger span:nth-child(1) { width: 9px; }
.menu-burger span:nth-child(2) { width: 12.5px; }
.menu-burger span:nth-child(3) { width: 4.5px; }

/* Shared hover tooltip — lives outside the menu (which clips its overflow) */
.menu-tip {
  position: absolute;
  z-index: 12;
  background: #000;
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 9px 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 0.15s ease, transform 0.18s ease;
}
.menu-tip.show { opacity: 1; transform: translate(-50%, 0); }

.menu.closed { width: 45px; }
.menu.closed .menu-items { opacity: 0; pointer-events: none; transition-delay: 0s; }
.menu.closed .menu-burger { display: flex; }

/* ═══════════════════════ SECTION 2 · PLAN BOX ═════════════════════════ */

.plan-box {
  position: absolute;
  left: 2.6vw; right: 2.6vw;
  top: 52.9vh; bottom: 5.8vh;
  z-index: 3;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid #5c5c5c;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 7.3vh 3vw 10vh 9.5vw;
  transform: translate3d(0, calc((1 - var(--boxp)) * 65vh), 0);
  opacity: var(--boxp);
  will-change: transform, opacity;
}
.box-heading {
  margin: 0;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(26px, 3.9vh, 42px);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.box-subheading {
  margin: 1.2vh 0 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.box-copy {
  margin: 1.6vh 0 0;
  max-width: min(975px, 46vw);
  font-size: clamp(14px, 1.85vh, 18px);
  line-height: 1.5;
  color: var(--text);
}
.box-actions { margin-top: auto; display: flex; gap: 0; }
.box-btn {
  min-width: 211px;
  height: 42px;
  padding: 0 24px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}
.box-btn-primary { background: #000; }
.box-btn-primary:hover { background: var(--accent); color: #000; }
.box-btn-secondary { border: 1px solid var(--accent); }
.box-btn-secondary:hover { background: var(--accent); color: #000; }

.box-btn-tertiary { 
  min-width:0; 
  padding: 0; 
  text-transform: none; 
  font-weight: 400;
  text-decoration: underline;
  letter-spacing: 0;
  margin: 0 10px;
  color: rgba(255,255,255,.5);
}
.box-btn-tertiary:hover {
  text-decoration: none;
}

.panel.panel-about .about-actions .box-btn-secondary {
    border: none; font-weight: 400;
  }

/* ═══════════════════════ SECTION 3 · COACH BOX ════════════════════════ */

.coach-box {
  position: absolute;
  left: 2.6vw; right: 2.6vw;
  top: 10.6vh;
  min-height: 37vh;
  z-index: 3;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid #5c5c5c;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 7vh 24vw 4.6vh 7.8vw;
  transform: translate3d(0, calc((1 - var(--boxp2, 0)) * -130vh), 0);
  opacity: var(--boxp2, 0);
  will-change: transform, opacity;
}
.coach-box .box-heading { font-size: clamp(24px, 3.1vh, 34px); letter-spacing: 0.14em; }
.coach-box .box-copy { max-width: 975px; }
.coach-box .box-actions { margin-top: 4vh; }

/* ═══════════════════════ SECTION 4 · GEAR BOX ═════════════════════════ */
/* Mirror of the plan box: bottom half, slides up from below. */

.gear-box {
  position: absolute;
  left: 2.6vw; right: 2.6vw;
  top: 52.9vh; bottom: 5.8vh;
  z-index: 3;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid #5c5c5c;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 7.3vh 3vw 10vh 9.5vw;
  transform: translate3d(0, calc((1 - var(--boxp3, 0)) * 65vh), 0);
  opacity: var(--boxp3, 0);
  will-change: transform, opacity;
}
.gear-box .box-copy { max-width: min(975px, 46vw); }

/* ═════════════════════ SECTION 5 · SCHEDULE BOX ═══════════════════════ */
/* Mirror of the coach box: top half, drops in from above. */

.schedule-box {
  position: absolute;
  left: 2.6vw; right: 2.6vw;
  top: 10.1vh;
  min-height: 41.3vh;
  z-index: 3;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid #5c5c5c;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 7.3vh 35vw 4.6vh 9.5vw;
  /* Clip the watch bands at the box's top + bottom edges (like the phones). */
  overflow: hidden;
  transform: translate3d(0, calc((1 - var(--boxp4, 0)) * -130vh), 0);
  opacity: var(--boxp4, 0);
  will-change: transform, opacity;
}
.schedule-box .box-copy { max-width: 975px; }
.schedule-box .box-actions { margin-top: 4vh; }

/* ══════════════════════ SECTION 6 · STATS BOX ═════════════════════════ */
/* Mirror of the gear box: bottom half, slides up from below. */

.stats-box {
  position: absolute;
  left: 2.6vw; right: 2.6vw;
  top: 52.9vh; bottom: 5.8vh;
  z-index: 3;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid #5c5c5c;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 7.3vh 3vw 10vh 9.5vw;
  transform: translate3d(0, calc((1 - var(--boxp5, 0)) * 65vh), 0);
  opacity: var(--boxp5, 0);
  will-change: transform, opacity;
}
.stats-box .box-copy { max-width: min(975px, 46vw); }

/* ═══════════════════════ SECTION 7 · ABOUT BOX ════════════════════════ */
/* Like the coach box (top half, drops in from above) but full-width text —
   there is no phone for this section — with a three-button action row. */

.about-box {
  position: absolute;
  left: 2.6vw; right: 2.6vw;
  top: 10.6vh;
  min-height: 37vh;
  z-index: 3;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid #5c5c5c;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 7vh 7.8vw 4.6vh 7.8vw;
  transform: translate3d(0, calc((1 - var(--boxp6, 0)) * -130vh), 0);
  opacity: var(--boxp6, 0);
  will-change: transform, opacity;
}
.about-box .box-copy { max-width: 975px; }
.about-box .box-actions { margin-top: 4vh; }
/* Buttons sit attached (no gap), sized to content — like the other sections. */
.about-actions { gap: 0; }
.about-actions .box-btn { min-width: 0; }

/* Outlined sibling to CONTACT. Not .box-btn-secondary: this panel overrides
   that variant to borderless, which is exactly the border we want here. */
.box-btn-faq {
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.box-btn-faq:hover { background: var(--accent); color: #000; }

/* Utility links, one row under the buttons. */
.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.about-links .box-btn-tertiary:first-child { margin-left: 0; }

/* ═══════════════════════ SECTION 5 · WATCH ════════════════════════════ */
/* The training phone is hidden — the watch section shows a watch mockup
   (the companion app's active view) docked to the right of the box instead. */
.layer-schedule { display: none; }

/* Docked in the box's right padding column on desktop (box is position:absolute).
   Two watches sit side by side. The mockup "scrolls into" place on the section's
   phone-drop-in progress (--watchp, set by script.js), mirroring the phones. */
.watch-mock {
  position: absolute;
  right: 2vw; top: 50%;
  display: flex; align-items: center; justify-content: center;
  gap: 40px;
  /* No opacity fade — the pair slides in and is clipped by the box edges, like
     the section phones (schedule-box has overflow:hidden). */
  transform: translateY(calc(-50% + (1 - var(--watchp, 0)) * -22vh));
  will-change: transform;
  /* Clickable like the docked phones — tapping launches the watch preview. */
  pointer-events: auto;
  cursor: pointer;
}
.watch { position: relative; display: flex; flex-direction: column; align-items: center; }

/* Solid watch bands. They run well past the body top + bottom and are clipped by
   the box's top/bottom edges — no soft fade — so the band reads as continuing out
   of frame, matching how the phones clip against the box. */
.strap {
  width: 60%; height: 320px;
  z-index: 1;
}
.strap-top { margin-bottom: -24px; }
.strap-bot { margin-top: -24px; }
.strap-round { width: 52%; }

/* Apple Watch — black Alpine-Loop weave (horizontal ribbing + fabric grain). */
.watch-apple .strap {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(180deg, #161616 0 2px, #333333 2px 5px, #161616 5px 10px);
  box-shadow: inset 6px 0 12px rgba(0, 0, 0, 0.5), inset -6px 0 12px rgba(0, 0, 0, 0.5);
}
/* Pixel Watch — black perforated sport band (staggered holes). */
.watch-pixel .strap {
  background-color: #262626;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.55) 1.7px, transparent 2.3px),
    radial-gradient(circle, rgba(0, 0, 0, 0.55) 1.7px, transparent 2.3px);
  background-size: 15px 15px, 15px 15px;
  background-position: 0 0, 7.5px 7.5px;
  box-shadow: inset 7px 0 12px rgba(0, 0, 0, 0.4), inset -7px 0 12px rgba(0, 0, 0, 0.4);
}

.watch-body {
  position: relative; z-index: 2;
  width: 184px; height: 222px;
  background: #1c1c1c;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 0 0 6px #0d0d0d, 0 0 0 7px #3a3a3a, 0 24px 70px rgba(0, 0, 0, 0.6);
}
.watch-screen {
  width: 100%; height: 100%;
  background: #000;
  border-radius: 38px;
  padding: 34px 11px 34px;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}

/* Pixel Watch — circular pebble body with a domed screen.
   The circle radius is pinned with a two-class selector so the responsive
   .watch-body / .watch-screen radius overrides can't square it off. */
.watch-body-round {
  width: 196px; height: 196px;
  padding: 9px;
}
.watch-body.watch-body-round { border-radius: 50%; }
.watch-screen.watch-screen-round { border-radius: 50%; }
.watch-screen-round {
  /* % side insets + a heavier bottom inset bias the centred stack upward, so the
     buttons clear the point where the round face curves in. */
  padding: 3% 11% 13%;
  justify-content: center;
}
.wm-time { font-weight: 600; font-size: 13px; color: var(--muted); }
.wm-bpm { display: flex; align-items: baseline; gap: 3px; margin-top: 1px; }
.wm-bpm-num { font-family: var(--head); font-size: 54px; line-height: 1; color: var(--accent); }
.wm-bpm-unit { font-weight: 800; font-size: 12px; color: var(--accent); opacity: 0.75; }
.wm-row { display: flex; gap: 9px; font-weight: 600; font-size: 11px; color: var(--muted); margin-top: 7px; }
.wm-actions { display: flex; gap: 6px; margin-top: auto; width: 100%; }
.wm-btn { flex: 1; text-align: center; font-weight: 800; font-size: 10px; letter-spacing: 0.06em; padding: 9px 0; }
.wm-btn-out { color: var(--accent); border: 1.5px solid var(--accent); }
.wm-btn-fill { color: var(--accent-fg); background: var(--accent); }

/* Round face: same content as the Apple Watch, tightened so the min/max row and
   the PAUSE|END buttons sit within the circle (no margin-top:auto — that would
   push the buttons onto the clipped bottom edge). */
.watch-screen-round .wm-bpm-num { font-size: 46px; }
.watch-screen-round .wm-row { gap: 6px; font-size: 10px; }
.wm-row-round { margin-top: 6px; }
.watch-screen-round .wm-actions { width: 80%; margin: 9px auto 0; gap: 5px; }
.watch-screen-round .wm-btn { padding: 7px 0; font-size: 9px; }

/* Mid-width desktops/tablets: the reserved right column (33vw) can't hold two
   full-size watches, so shrink the pair so they never crowd the copy. */
@media (min-width: 761px) and (max-width: 1120px) {
  .watch-mock { right: 1.5vw; gap: 20px; }
  /* Long enough to always reach + clip the box edges around the smaller watches. */
  .strap { height: 260px; }
  .strap-top { margin-bottom: -18px; }
  .strap-bot { margin-top: -18px; }
  .watch-body { width: 118px; height: 142px; border-radius: 30px; padding: 7px; }
  .watch-screen { border-radius: 25px; padding: 18px 8px; }
  .watch-body-round { width: 126px; height: 126px; padding: 6px; border-radius: 50%; }
  .wm-time { font-size: 9px; }
  .wm-bpm-num { font-size: 34px; }
  .wm-bpm-unit { font-size: 9px; }
  .wm-row { font-size: 8px; gap: 5px; margin-top: 5px; }
  .wm-btn { font-size: 7px; padding: 5px 0; }
  /* Smallest circle in the layout — compact, roughly centred, narrow buttons. */
  .watch-screen-round { padding: 5% 8% 7%; }
  .watch-screen-round .wm-time { font-size: 8px; }
  .watch-screen-round .wm-bpm-num { font-size: 24px; }
  .watch-screen-round .wm-row { gap: 4px; margin-top: 3px; font-size: 7px; }
  .watch-screen-round .wm-actions { width: 54%; margin-top: 4px; }
  .watch-screen-round .wm-btn { padding: 4px 0; font-size: 6px; }
}

/* ═══════════════ WATCH PREVIEW (brought up by PREVIEW WATCH) ═══════════ */
/* The .watch-mock is moved in here while open, enlarged with compressed
   (mobile-style) straps — the watch equivalent of the phone expand. */
.watch-preview {
  position: absolute; inset: 0;
  z-index: 12;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.watch-preview.open { pointer-events: auto; }
/* Only the backdrop fades (like the phones' dim) — the watches themselves GLIDE
   between the docked spot and centre via a JS-set transform on .wp-stage. */
.wp-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.watch-preview.open .wp-backdrop { opacity: 1; }
.wp-stage { position: relative; will-change: transform; }
.wp-stage.animate { transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1); }

.watch-preview .watch-mock {
  position: static; transform: none;
  right: auto; top: auto;
  /* Undo the mobile peek window (width/height/overflow) while previewing. */
  width: auto; height: auto; overflow: visible;
  align-items: center;
  margin: 0;
  gap: 64px;
  /* Already expanded — clicks land on the stage, not the backdrop/handler. */
  pointer-events: none;
  cursor: default;
}
/* Compressed, rounded-end straps (like mobile), scaled up. */
.watch-preview .strap { height: 104px; }
.watch-preview .strap-top { margin-bottom: -26px; border-radius: 28px 28px 0 0; }
.watch-preview .strap-bot { margin-top: -26px; border-radius: 0 0 28px 28px; }
.watch-preview .watch-body { width: 250px; height: 300px; border-radius: 62px; padding: 13px; }
.watch-preview .watch-screen { border-radius: 50px; padding: 46px 15px; }
.watch-preview .watch-body.watch-body-round { width: 268px; height: 268px; padding: 12px; border-radius: 50%; }
.watch-preview .watch-screen.watch-screen-round { border-radius: 50%; }
.watch-preview .wm-time { font-size: 17px; }
.watch-preview .wm-bpm-num { font-size: 74px; }
.watch-preview .wm-bpm-unit { font-size: 16px; }
.watch-preview .wm-row { font-size: 15px; gap: 12px; margin-top: 11px; }
.watch-preview .wm-actions { margin-top: 16px; gap: 8px; }
.watch-preview .wm-btn { font-size: 13px; padding: 12px 0; }
/* Round face — bigger circle, content scaled up but kept inside the curve. */
.watch-preview .watch-screen-round { padding: 3% 12% 12%; }
.watch-preview .watch-screen-round .wm-bpm-num { font-size: 60px; }
.watch-preview .watch-screen-round .wm-row { font-size: 13px; gap: 9px; }
.watch-preview .watch-screen-round .wm-actions { width: 76%; margin-top: 12px; }
.watch-preview .watch-screen-round .wm-btn { font-size: 11px; padding: 9px 0; }

.wp-close {
  position: absolute; left: 2.6vw; top: 4.6vh;
  z-index: 2;
  width: 50px; height: 50px;
  background: var(--accent);
  border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}
.watch-preview.open .wp-close { opacity: 1; }

/* Small screens: shrink the previewed pair so both watches fit side by side. */
@media (max-width: 760px) {
  .watch-preview .watch-mock { gap: 22px; }
  .watch-preview .strap { height: 74px; }
  .watch-preview .strap-top { margin-bottom: -18px; border-radius: 20px 20px 0 0; }
  .watch-preview .strap-bot { margin-top: -18px; border-radius: 0 0 20px 20px; }
  .watch-preview .watch-body { width: 166px; height: 200px; border-radius: 42px; padding: 9px; }
  .watch-preview .watch-screen { border-radius: 34px; padding: 28px 10px; }
  .watch-preview .watch-body.watch-body-round { width: 178px; height: 178px; padding: 8px; }
  .watch-preview .wm-time { font-size: 12px; }
  .watch-preview .wm-bpm-num { font-size: 48px; }
  .watch-preview .wm-bpm-unit { font-size: 12px; }
  .watch-preview .wm-row { font-size: 10px; gap: 7px; margin-top: 7px; }
  .watch-preview .wm-actions { margin-top: 10px; gap: 6px; }
  .watch-preview .wm-btn { font-size: 9px; padding: 8px 0; }
  .watch-preview .watch-screen-round { padding: 3% 10% 13%; }
  .watch-preview .watch-screen-round .wm-bpm-num { font-size: 40px; }
  .watch-preview .watch-screen-round .wm-row { font-size: 9px; gap: 6px; }
  .watch-preview .watch-screen-round .wm-actions { width: 70%; margin-top: 8px; }
  .watch-preview .watch-screen-round .wm-btn { font-size: 8px; padding: 7px 0; }
}

/* ═══════════════════════════ PHONE DEMO ═══════════════════════════════ */

.dim {
  position: absolute; inset: 0;
  z-index: 8;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.stage.expanded .dim { opacity: 1; pointer-events: auto; }
/* While a phone preview is expanded, the menu drops below the dim so the
   full-screen preview covers it (it sits above docked phones otherwise). */
.stage.expanded .menu { z-index: 6; }

.phone-layer {
  position: absolute; inset: 0;
  z-index: 9;
  pointer-events: none;
  will-change: transform;
}
/* Docked, each phone is cut off at its section box's BOTTOM edge (per design)
   and peeks out above the box top. The --*-clip vars are the box bottoms in px,
   set by measureAnchors; the generous negative insets keep the phone's shadow
   unclipped on the other sides. Expanding releases the clip (see the
   .stage.expanded rule below).
   The bottom inset uses 100% (the layer's own height), NOT 100vh — on mobile,
   100vh is the URL-bar-hidden viewport, so with the bar visible it overshoots
   the layer by the bar height and cuts the docked phone ~56px too high. */
.layer-plan {
  transform: translate3d(calc((1 - var(--xp)) * 100vw), 0, 0);
  clip-path: inset(-120px -120px calc(100% - var(--plan-clip, 200vh)) -120px);
}
.layer-coach {
  transform: translate3d(calc((2 - var(--xp)) * 100vw), 0, 0);
  clip-path: inset(-120px -120px calc(100% - var(--coach-clip, 200vh)) -120px);
}
.layer-gear {
  transform: translate3d(calc((3 - var(--xp)) * 100vw), 0, 0);
  clip-path: inset(-120px -120px calc(100% - var(--gear-clip, 200vh)) -120px);
}
.layer-schedule {
  transform: translate3d(calc((4 - var(--xp)) * 100vw), 0, 0);
  clip-path: inset(-120px -120px calc(100% - var(--sched-clip, 200vh)) -120px);
}
.layer-stats {
  transform: translate3d(calc((5 - var(--xp)) * 100vw), 0, 0);
  clip-path: inset(-120px -120px calc(100% - var(--stats-clip, 200vh)) -120px);
}
.stage.expanded .phone-layer.active { transform: none; clip-path: none; }

.phone {
  position: absolute;
  left: 50%; top: 50%;
  width: 390px; height: 886px;
  margin: -443px 0 0 -195px;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 44px;
  background: var(--bg);
  box-shadow: 0 0 0 9px #161616, 0 0 0 10px #3a3a3a, 0 30px 80px rgba(0, 0, 0, 0.65);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--ps, 1));
  will-change: transform;
}
.phone.animate { transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1); }
.stage.expanded .phone { cursor: default; }

.phone-screen {
  position: absolute; inset: 0;
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
  /* docked: purely visual */
  pointer-events: none;
}
.p-slider.dragging { scroll-snap-type: none; cursor: grabbing; }
.p-top { flex: none; }
.stage.expanded .phone-screen { pointer-events: auto; }

.back-arrow {
  position: absolute;
  left: 2.6vw; top: 4.6vh;
  z-index: 10;
  width: 50px; height: 50px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(calc(-2.6vw - 90px));
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.stage.expanded .back-arrow { transform: translateX(0); }
.back-arrow:hover svg { transform: translateX(-3px); }
.back-arrow svg { transition: transform 0.15s ease; }

/* ═══════════════════ PHONE INTERNALS (fixed 390×886) ══════════════════ */

.p-status {
  height: 44px;
  padding: 14px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px;
}
.p-status-icons { display: flex; align-items: center; gap: 6px; }

.p-header {
  padding: 6px 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.p-greeting {
  font-weight: 600; font-size: 10px; letter-spacing: 0.25em;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}
.p-wordmark { display: flex; align-items: center; gap: 5px; }
.p-wordmark svg { display: block; }
.p-avatar { width: 44px; height: 44px; object-fit: cover; }

.p-week {
  background: var(--panel2);
  padding: 10px 8px 4px;
  display: flex;
}
.p-day {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 2px 0 4px;
  cursor: pointer;
}
.p-day-label { font-weight: 500; font-size: 9px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.p-day-slot { height: 30px; display: flex; align-items: center; justify-content: center; position: relative; }
.p-day-num { font-family: var(--head); font-size: 22px; line-height: 28px; color: var(--text); }
.p-day.today .p-day-num { color: var(--accent); }
.p-day-dot-top-slot { height: 5px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
.p-day-dot-top { width: 5px; height: 5px; border-radius: 2.5px; background: var(--accent); }
.p-day-mark {
  width: 28px; height: 28px; border-radius: 14px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.p-day-mark svg { display: block; }
.p-day-dot-bottom-slot { height: 7px; margin-top: 3px; display: flex; align-items: center; justify-content: center; }
.p-day-dot-bottom { width: 5px; height: 5px; border-radius: 2.5px; background: var(--danger); }

.p-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
  display: flex;
  transition: background 0.2s ease;
}
.p-tabs.stuck { background: #0d0d0d; }
.p-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-weight: 500; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.p-tab.active { color: var(--accent); }
.p-tab-indicator {
  position: absolute; bottom: 0; left: 16px;
  width: calc(50% - 32px); height: 2px;
  background: var(--accent);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.p-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.stage.expanded .p-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.p-body::-webkit-scrollbar { display: none; }

.p-pane { display: none; }
.p-pane.active { display: block; }

.p-slider {
  padding: 20px 32px 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.p-slider::-webkit-scrollbar { display: none; }

.p-tile {
  position: relative;
  flex: 0 0 326px;
  width: 326px; height: 483px;
  scroll-snap-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  will-change: transform;
}
.p-tile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.p-tile-bg.rec { filter: grayscale(1); opacity: 0.35; }
.p-tile-top { position: relative; display: flex; align-items: center; margin-top: 10px; }
.p-tile-tag {
  background: var(--accent-fg);
  height: 42px; padding: 0 13px;
  display: flex; align-items: center;
  font-weight: 800; font-size: 12px; letter-spacing: 1.2px;
  color: var(--accent);
}
.p-tile-est { margin-left: auto; margin-right: 20px; font-size: 12px; letter-spacing: 1.2px; color: rgba(255,255,255,0.5); }
.p-tile-label {
  position: relative;
  display: flex; align-items: center;
  padding: 0 20px; margin-top: 25px;
  font-size: 14px; color: var(--text);
}
.p-tile-progress { flex: 1; margin-left: 14px; display: flex; height: 8px; align-items: center; }
.p-tile-seg { flex: 1; height: 8px; margin-right: 2px; background: rgba(255,255,255,0.18); }
.p-tile-seg:last-child { margin-right: 0; }
.p-tile-seg:first-child { border-radius: 4px 0 0 4px; }
.p-tile-seg:last-child  { border-radius: 0 4px 4px 0; }
.p-tile-seg:only-child  { border-radius: 4px; }
.p-tile-seg.filled { background: var(--text); }
.p-tile-title {
  position: relative;
  margin: 15px 20px 0;
  height: 208px;
  overflow: hidden;
  font-family: var(--head);
  font-size: 68px; line-height: 62px;
  letter-spacing: -1.5px;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 15px;
}
.p-tile-desc {
  position: absolute; left: 20px; right: 20px; bottom: 92px;
  font-size: 16px; line-height: 22px;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-tile-btn {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  height: 52px;
  background: var(--accent-fg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: 1.4px;
  color: var(--accent);
  cursor: default;
}

.p-targets {
  margin-top: -40px;
  background: var(--panel2);
  border-bottom: 2px solid var(--accent);
  padding: 68px 0 28px;
}
.p-targets-head { padding: 0 19px; margin-bottom: 18px; }
.p-targets-title { font-family: var(--head); font-size: 32px; line-height: 1; letter-spacing: 2.24px; color: var(--accent); }
.p-targets-sub { font-size: 14px; color: var(--text); margin-top: 6px; }
.p-badges { display: flex; gap: 23px; padding: 0 19px; overflow-x: auto; scrollbar-width: none; }
.p-badges::-webkit-scrollbar { display: none; }
.p-badge {
  flex: 0 0 64px;
  width: 64px; height: 64px; border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 24px;
  border: 2px solid var(--border);
  color: var(--accent);
  position: relative;
}
.p-badge.done { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.p-badge-label { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-family: var(--body); font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.p-badges { padding-bottom: 22px; }

/* Week selector + per-week session list (below WEEKLY TARGETS) */
.p-weektabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.p-weektabs::-webkit-scrollbar { display: none; }
.p-weektab {
  flex: 0 0 20%;
  padding: 18px 0 14px;
  text-align: center;
  font-weight: 500; font-size: 12px; letter-spacing: 2px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s;
}
.p-weektab.active { color: var(--accent); border-bottom-color: var(--accent); }

.p-weeklist { overflow: hidden; }
.p-weeklist-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1), height 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
  will-change: transform;
}
.p-weekpane { flex: 0 0 100%; width: 100%; padding-bottom: 90px; }

.p-sess {
  display: flex; align-items: center;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  cursor: default;
}
.p-sess-main { flex: 1; min-width: 0; padding-right: 14px; }
.p-sess-label { font-weight: 500; font-size: 12px; letter-spacing: 2.5px; color: rgba(255, 255, 255, 0.75); }
.p-sess-title {
  font-family: var(--head);
  font-size: 30px; line-height: 1.05;
  color: var(--text);
  margin-top: 6px;
}
.p-sess-desc { font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, 0.55); margin-top: 6px; }
.p-sess-chev { flex: none; display: flex; }
.p-sess-log { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.p-sess-complete { font-weight: 800; font-size: 10px; letter-spacing: 2px; color: var(--accent); }
.p-sess-viewlog {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 10px 12px;
  cursor: pointer;
}
.p-sess-viewlog:hover { background: var(--accent); color: #000; }

.p-weeklocked { padding: 46px 40px; text-align: center; }
.p-weeklocked-title { font-family: var(--head); font-size: 30px; letter-spacing: 1.5px; color: var(--muted); }
.p-weeklocked-copy { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, 0.45); margin: 10px 0 0; }

/* RUNNING pane — header + RunSlider-faithful tiles (reuse .p-tile shell) */
.p-runs-head { padding: 20px 20px 0; margin-bottom: 18px; }
.p-runs-title { font-family: var(--head); font-size: 32px; line-height: 32px; letter-spacing: 2px; color: var(--accent); }
.p-runs-sub { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 4px; }
.p-slider-runs { padding: 0 32px 90px; }
.p-run-mark {
  height: 42px; padding: 0 14px;
  border: 1px solid var(--accent);
  background: none;
  display: flex; align-items: center;
  font-family: inherit; font-weight: 500; font-size: 12px; letter-spacing: 1.2px;
  color: var(--accent);
  cursor: pointer;
  position: relative;
}
.p-run-tile .run-done { display: none; cursor: pointer; }
.p-run-tile.done .run-done { display: flex; }
.p-run-tile.done .run-tag, .p-run-tile.done .p-run-mark { display: none; }

.p-fab {
  position: absolute;
  right: 20px; bottom: 30px;
  height: 64px; width: 64px;
  background: var(--accent);
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  transition: width 0.36s cubic-bezier(0.22, 0.9, 0.3, 1);
  cursor: pointer;
}
.p-fab.open { width: calc(100% - 40px); }
.p-fab-tabs {
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 296px;
  display: flex;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.p-fab.open .p-fab-tabs { opacity: 1; transition-delay: 0.12s; }
.p-fab-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--muted);
  cursor: default;
}
.p-fab-tab.active { color: var(--accent-fg); }
.p-fab-tab .g { font-size: 18px; line-height: 20px; }
.p-fab-tab .l { font-weight: 800; font-size: 8px; letter-spacing: 1.2px; }
.p-fab-ind { position: absolute; top: 0; left: 6px; width: 86px; height: 3px; background: var(--accent-fg); }
.p-fab-toggle {
  position: absolute; right: 0; top: 0; bottom: 0; width: 64px;
  display: flex; align-items: center; justify-content: center;
}
.p-fab-burger { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.p-fab-burger span { display: block; height: 3px; border-radius: 2px; background: var(--accent-fg); }
.p-fab-burger span:nth-child(1) { width: 13px; }
.p-fab-burger span:nth-child(2) { width: 18px; }
.p-fab-burger span:nth-child(3) { width: 6px; }
.p-fab-dotmark { display: none; width: 8px; height: 8px; border-radius: 4px; background: var(--accent-fg); }
.p-fab.open .p-fab-burger { display: none; }
.p-fab.open .p-fab-dotmark { display: block; }

.p-home-indicator {
  position: absolute;
  bottom: 8px; left: 50%;
  width: 135px; height: 5px;
  margin-left: -67.5px;
  border-radius: 3px;
  background: #fff;
  z-index: 6;
  pointer-events: none;
}

/* ═══════════════════ PHONE 2 · WORKOUT PLAYER ═════════════════════════ */

.w-screen {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.w-scrim { position: absolute; inset: 0; background: rgba(13, 13, 13, 0.72); }

/* Edge ruler bars — 8 sections, 9 major ticks, 5 minors per section */
.w-ruler { position: absolute; top: 0; bottom: 0; width: 10px; z-index: 2; }
.w-ruler.left  { left: 0; }
.w-ruler.right { right: 0; }
.w-tick { position: absolute; height: 1px; background: var(--accent); }
.w-ruler.left  .w-tick.minor { left: 0; width: 5px; }
.w-ruler.right .w-tick.minor { right: 0; width: 5px; }
.w-tick.major { left: 0; width: 10px; }
.w-fill { position: absolute; left: 0; width: 10px; background: var(--accent); }
.w-ruler.left  .w-fill { bottom: 0; }  /* current block — grows upward   */
.w-ruler.right .w-fill { top: 0; }     /* whole workout — grows downward */

.w-content {
  position: relative; z-index: 3;
  height: 100%;
  padding: 14px 20px 0;
  display: flex; flex-direction: column;
}
.w-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.w-sq {
  width: 37px; height: 37px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.w-pause-bars { display: flex; gap: 4px; }
.w-pause-bars span { width: 3px; height: 16px; border-radius: 2px; background: var(--accent-fg); }
.w-play {
  width: 0; height: 0; margin-left: 3px;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-left: 13px solid var(--accent-fg);
}

.w-title {
  font-family: var(--head);
  font-size: 50px; line-height: 55px;
  color: var(--text);
  text-align: center;
  margin-top: 4px;
}
.w-desc { font-weight: 500; font-size: 18px; color: rgba(255, 255, 255, 0.5); text-align: center; }
.w-time {
  font-family: var(--head);
  font-size: 150px; line-height: 158px;
  color: var(--accent);
  text-align: center;
  margin: 8px 0;
  cursor: pointer;
}

.w-rings { display: flex; justify-content: space-evenly; margin-top: 18px; }
.w-ring { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.w-ring svg { position: absolute; inset: 0; }
.w-ring-label { font-size: 12px; letter-spacing: 2px; color: var(--accent); }

.w-health { display: flex; justify-content: space-evenly; margin-top: 40px; }
.w-health-col { width: 140px; display: flex; flex-direction: column; align-items: center; }
.w-heart { animation: heartbeat 0.46s infinite cubic-bezier(0.3, 0, 0.4, 1); transform-origin: center; }
@keyframes heartbeat { 0% { transform: scale(1); } 30% { transform: scale(1.22); } 100% { transform: scale(1); } }
.w-big { font-family: var(--head); font-size: 58px; line-height: 61px; color: var(--accent); margin-top: 2px; }
.w-unit { font-size: 14px; letter-spacing: 2.1px; color: var(--accent); }
.w-minmax { display: flex; align-items: center; gap: 6px; margin-top: 6px; opacity: 0.5; font-size: 14px; letter-spacing: 2.1px; color: var(--text); }
.w-minmax .gap { width: 10px; }

.w-footer {
  margin-top: auto;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  background: rgba(13, 13, 13, 0.6);
  display: flex; align-items: center;
  padding: 14px 16px;
  gap: 12px;
}
.w-footer-label { font-weight: 800; font-size: 10px; letter-spacing: 1.6px; color: var(--muted); }
.w-footer-name { font-family: var(--head); font-size: 20px; color: var(--text); flex: 1; }
.w-footer-view { font-weight: 800; font-size: 10px; letter-spacing: 1.6px; color: var(--accent); border-left: 1px solid var(--border); padding-left: 14px; }

/* ═══════════════ PHONE 3 · SETTINGS (EQUIPMENT TAB) ═══════════════════ */

.s-header {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 20px 14px;
}
.s-back {
  width: 37px; height: 37px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  cursor: pointer;
}
.s-tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.s-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-weight: 500; font-size: 11px; letter-spacing: 2px;
  color: var(--muted);
  cursor: default;
}
.s-tab.active { color: var(--accent); }
.s-tab-ind {
  position: absolute; bottom: 0;
  left: calc(33.333% + 16px); width: calc(33.333% - 32px);
  height: 2px;
  background: var(--accent);
}
.s-tab-ind.t3 { left: calc(66.666% + 16px); }

.s-body-inner { padding: 24px 20px 120px; }
.s-heading {
  font-family: var(--head);
  font-size: 20px; letter-spacing: 1.12px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.s-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 24px; }
.s-row { display: flex; flex-wrap: wrap; }
.s-chip {
  border: 1px solid var(--border);
  padding: 9px 15px;
  font-size: 14px; letter-spacing: 2.1px;
  color: var(--muted);
  cursor: pointer;
}
.s-chip.on { background: var(--accent); color: var(--accent-fg); }
.s-drop {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent);
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 14px; letter-spacing: 1.5px;
  color: var(--accent-fg);
  cursor: default;
}
.s-drop.empty { color: rgba(13, 13, 13, 0.45); }
.s-drop .caret { font-size: 12px; letter-spacing: 0; color: var(--accent-fg); }
.s-chip.off ~ .s-drop { display: none; }

/* Plate pile + carry cap: a muted label, a wrapping row of dropdowns, and the
   DERIVED ceilings in accent — the app's own hierarchy, where the athlete
   enters counts and the maxima are computed rather than typed. */
.s-note {
  font-size: 11px; letter-spacing: 1.4px;
  color: var(--muted);
  margin: 10px 0 6px;
}
.s-derived {
  font-size: 11px; letter-spacing: 1.4px;
  color: var(--accent);
  margin: 6px 0 2px;
}

.s-save {
  position: absolute;
  right: 20px; bottom: 30px;
  height: 64px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 0 24px;
  z-index: 5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.s-save-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent-fg); }
.s-save-label { font-weight: 800; font-size: 14px; letter-spacing: 1.4px; color: var(--accent-fg); }

/* ═══════════════ PHONE 4 · SETTINGS (TRAINING TAB) ════════════════════ */

.t-sub {
  font-weight: 500; font-size: 11px; letter-spacing: 1.65px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.t-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.t-opts.tight { margin-bottom: 16px; }
.t-opts .s-chip { padding: 9px 13px; }
.t-days { display: flex; gap: 5px; margin-bottom: 16px; }
.t-day {
  flex: 1;
  border: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
  font-weight: 500; font-size: 10px; letter-spacing: 0.5px;
  color: var(--muted);
  cursor: pointer;
}
.t-day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.t-toggle {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 4px;
  cursor: pointer;
}
.t-toggle-label { font-weight: 500; font-size: 14px; color: var(--text); }
.t-check {
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: transparent;
}
.t-toggle.on .t-check { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.t-more { margin-top: 12px; }
.t-gap { height: 24px; }

/* ══════════════════ PHONE 5 · STATS (CURRENT PLAN) ════════════════════ */

.st-pane { display: none; padding: 12px 20px 120px; }
.st-pane.active { display: block; }
.st-kicker { font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.st-big { font-family: var(--head); font-size: 92px; line-height: 80px; padding-top: 25px; color: var(--accent); }
.st-sub { font-size: 16px; line-height: 22px; color: var(--text); margin-top: 2px; }
.st-hr { height: 1px; background: var(--border); margin: 24px -20px 0; }
.st-row { display: flex; position: relative; margin-top: 24px; }
.st-cell { flex: 1; display: flex; flex-direction: column; align-items: center; }
.st-cdiv { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); }

.st-wheel { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.st-wheel svg { position: absolute; inset: 0; }
.st-wheel-center { position: relative; text-align: center; margin-top: 10px; }
.st-frac { font-family: var(--head); font-size: 50px; line-height: 50px; color: var(--accent); }
.st-label { font-size: 14px; letter-spacing: 2.1px; color: var(--text); opacity: 0.5; text-transform: uppercase; }

.st-chartcell { flex: 1; padding-left: 16px; }
.st-chartrow { display: flex; height: 64px; }
.st-axis {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  margin-right: 6px;
  font-size: 8px; letter-spacing: 1.2px; color: rgba(255, 255, 255, 0.5);
}
.st-chart { flex: 1; display: flex; align-items: flex-end; }
.st-slot { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.st-bar { width: 64%; max-width: 10px; min-width: 3px; background: rgba(255, 255, 255, 0.5); }
.st-bar.hi { background: var(--accent); }
.st-bar.stub { height: 3px; }

.st-times { display: flex; justify-content: center; margin-top: 14px; }
.st-timecol { display: flex; flex-direction: column; align-items: center; margin: 0 10px; }
.st-timenum { font-family: var(--head); font-size: 60px; line-height: 50px; padding-top: 12px; color: var(--accent); }
.st-timeunit { font-size: 10px; letter-spacing: 1.2px; color: var(--text); opacity: 0.5; margin-top: 2px; }
.st-note { font-size: 10px; text-align: center; letter-spacing: 1.2px; color: var(--text); opacity: 0.5; margin-top: 4px; }

.st-seclabel { font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; text-align: center; }
.st-weekbars { display: flex; gap: 6px; width: 100%; }
.st-weekbar { flex: 1; height: 14px; background: var(--muted); }
.st-weekbar.on { background: var(--accent); }
.st-weekfrac { font-family: var(--head); font-size: 60px; line-height: 60px; color: var(--accent); margin-top: 20px; text-align: center; }
.st-month { width: 100%; }
.st-month-row { display: flex; margin-bottom: 3px; }
.st-month-cell { flex: 1; aspect-ratio: 1.6; margin: 0 1.5px; background: var(--muted); }
.st-month-cell.empty { background: none; }
.st-month-cell.done { background: var(--accent); }
.st-month-cell.act { background: var(--danger); }
.st-month-cell.today { background: none; border: 1px solid var(--accent); }

.st-tiles { display: flex; margin-top: 24px; padding-bottom: 4px; }
.st-tile { flex: 1; display: flex; flex-direction: column; align-items: center; }
.st-tile-icon { height: 28px; display: flex; align-items: center; margin-bottom: 10px; }
.st-tile-num { font-family: var(--head); font-size: 52px; line-height: 52px; color: var(--accent); }
.st-tile-label { font-size: 11px; letter-spacing: 1.2px; color: var(--text); opacity: 0.55; text-transform: uppercase; margin-top: 2px; text-align: center; }
.st-tile-sub { font-size: 8px; letter-spacing: 1px; color: var(--text); opacity: 0.4; margin-top: 1px; text-align: center; }
.st-vdiv { width: 1px; align-self: stretch; background: var(--border); }

.st-bighead {
  display: flex; align-items: center;
  margin: 24px -20px;
  padding: 20px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.st-count {
  width: 55px;
  background: var(--accent);
  padding: 14px 0 4px;
  margin-right: 12px;
  text-align: center;
  font-family: var(--head); font-size: 40px; line-height: 40px;
  color: var(--accent-fg);
}
.st-bighead-label { font-weight: 800; font-size: 14px; letter-spacing: 1.2px; color: var(--accent); padding-top: 7px; }

.st-ringtile { display: flex; flex-direction: column; align-items: center; }
.st-ring { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.st-ring svg { position: absolute; inset: 0; }
.st-ring-center { position: relative; text-align: center; margin-top: 12px; }
.st-ring-num { font-family: var(--head); font-size: 51px; line-height: 51px; color: var(--accent); }
.st-ring-unit { font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.st-ring-label { font-size: 11px; letter-spacing: 1.6px; color: var(--text); opacity: 0.5; text-transform: uppercase; margin-top: 12px; }

/* ALL TIME pane */
.st-record { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--border); }
.st-record.last { border-bottom: 1px solid var(--border); }
.st-record-label { font-weight: 500; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; flex: 1; padding-right: 12px; }
.st-record-val { font-family: var(--head); font-size: 46px; line-height: 46px; color: var(--accent); }
.st-pr-head { font-family: var(--head); font-size: 40px; line-height: 40px; color: var(--accent); margin-top: 40px; }
.st-pr-sub { font-size: 14px; line-height: 20px; color: var(--text); margin: 6px 0 16px; }
.st-pr { display: flex; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.st-pr.last { border-bottom: 1px solid var(--border); }
.st-pr-name { flex: 1; font-weight: 500; font-size: 15px; color: var(--text); padding-right: 12px; }
.st-pr-new { background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 9px; letter-spacing: 1px; padding: 2px 7px; margin-right: 10px; }
.st-pr-val { font-family: var(--head); font-size: 28px; line-height: 28px; color: var(--accent); }

/* FULL WORKOUT sheet inside the player (mirrors the app's modal) */
.w-sheet { position: absolute; inset: 0; z-index: 7; display: none; }
.w-sheet.open { display: block; }
.w-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.w-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 78%;
  background: var(--panel);
  display: flex; flex-direction: column;
  animation: sheet-up 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.w-sheet-grab { display: flex; justify-content: center; padding: 12px 0; }
.w-sheet-grab span { width: 44px; height: 5px; border-radius: 2.5px; background: var(--accent); }
.w-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--border);
}
.w-sheet-title { font-family: var(--head); font-size: 26px; letter-spacing: 2px; color: var(--text); }
.w-sheet-x { font-size: 18px; color: var(--muted); padding: 2px 6px; }
.w-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 40px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: none;
}
.w-sheet-body::-webkit-scrollbar { display: none; }

.w-block { border: 1px solid var(--border); background: var(--bg); }
.w-block-head { padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--panel); }
.w-block-section { font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; }
.w-block-title { font-family: var(--head); font-size: 30px; line-height: 32px; color: var(--text); letter-spacing: 0.5px; }
.w-block-intro { font-size: 13px; line-height: 19px; color: var(--muted); margin-top: 6px; }
.w-ex.divide { border-bottom: 1px solid var(--border); }
.w-ex:last-child { border-bottom: 0; }
.w-ex.current .w-ex-main { background: var(--panel2); }
.w-ex.current .w-ex-name { color: var(--accent); }
.w-ex-main { padding: 12px 14px; }
.w-ex-top { display: flex; align-items: flex-start; }
.w-ex-name { flex: 1; font-weight: 500; font-size: 16px; color: var(--text); padding-right: 12px; }
.w-ex-load { font-family: var(--head); font-size: 18px; color: var(--accent); }
.w-ex-spec { font-size: 13px; line-height: 18px; color: var(--muted); margin-top: 3px; }
.w-ex-row {
  display: flex; align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.w-ex-row-n { width: 20px; font-size: 13px; color: var(--muted); }
.w-ex-row-label { flex: 1; font-weight: 500; font-size: 14px; color: var(--text); }
.w-ex-row-val { font-weight: 500; font-size: 14px; color: var(--accent); }

/* ── Day bottom sheet inside the phone (the app's DayModal) ──────────────
   Accent header band, black body, one card per logged workout: a lighter
   detail panel over an action row (trash · VIEW LOG). */
.p-sheet {
  position: absolute; inset: 0;
  z-index: 7;
  display: none;
}
.p-sheet.open { display: block; }
.p-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.p-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86%;
  background: #0d0d0d;
  display: flex; flex-direction: column;
  animation: sheet-up 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.p-sheet-head { flex: none; background: var(--accent); }
.p-sheet-grab { display: flex; justify-content: center; padding: 12px 0; }
.p-sheet-grab span, .p-log-grab span {
  width: 44px; height: 5px; border-radius: 2.5px;
  background: rgba(0, 0, 0, 0.35);
}
.p-sheet-head-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px 16px;
}
.p-sheet-title { font-family: var(--head); font-size: 24px; line-height: 1; color: var(--accent-fg); letter-spacing: 1px; }
.p-sheet-x { font-size: 14px; color: var(--accent-fg); opacity: 0.7; padding: 4px 2px; }
.p-sheet-x:hover { opacity: 1; }
.p-sheet-body { padding: 16px 24px; overflow-y: auto; scrollbar-width: none; }
.p-sheet-body::-webkit-scrollbar { display: none; }
.p-entry { margin-bottom: 12px; border: 1px solid var(--border); }
.p-entry-detail { background: var(--panel); padding: 14px 16px; }
.p-entry-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.p-entry-dot {
  width: 20px; height: 20px; border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 20px;
}
.p-entry.bonus .p-entry-dot { background: var(--danger); color: #fff; font-weight: 700; font-size: 13px; }
.p-entry-title { font-family: var(--head); font-size: 20px; color: var(--accent); }
.p-entry.bonus .p-entry-title { color: var(--danger); }
.p-entry-meta { font-size: 13px; color: var(--muted); }
.p-entry-actions {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}
.p-entry-trash { display: flex; }
.p-entry-view {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
}
.p-sheet-empty { font-size: 14px; color: var(--muted); }
.p-sheet-footer {
  margin: 4px 24px 32px;
  background: var(--accent);
  padding: 16px 0;
  text-align: center;
  font-family: var(--head);
  font-size: 18px; letter-spacing: 2px;
  color: var(--accent-fg);
}

/* ── Workout log sheet (the app's LogResultsSheet, view mode) ────────────
   Accent header with share + EDIT, then HOW IT FELT, the block cards with
   every logged set, notes and delete. */
.p-log { position: absolute; inset: 0; z-index: 8; display: none; }
.p-log.open { display: block; }
.p-log-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.p-log-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 86%;
  background: #0d0d0d;
  display: flex; flex-direction: column;
  animation: sheet-up 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.p-log-head { flex: none; background: var(--accent); }
.p-log-grab { display: flex; justify-content: center; padding: 10px 0 6px; }
.p-log-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 16px;
}
.p-log-heading { min-width: 0; }
.p-log-eyebrow {
  font-weight: 500; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-fg); opacity: 0.6; margin-bottom: 2px;
}
.p-log-title {
  font-family: var(--head); font-size: 26px; line-height: 28px;
  letter-spacing: 0.5px; color: var(--accent-fg);
  text-transform: uppercase;
}
.p-log-btns { display: flex; gap: 8px; flex: none; }
.p-log-share, .p-log-edit {
  background: #0d0d0d;
  height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.p-log-share { width: 48px; }
.p-log-edit {
  min-width: 86px; padding: 0 16px;
  font-weight: 800; font-size: 12px; letter-spacing: 1.2px;
  color: var(--accent);
}
.p-log-body {
  flex: 1; min-height: 0;
  padding: 16px; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 14px;
}
.p-log-body::-webkit-scrollbar { display: none; }

.p-lpanel { border: 1px solid var(--border); background: var(--panel); padding: 14px 16px; }
.p-lpanel-label {
  font-weight: 500; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.p-lrpe { display: flex; gap: 8px; }
.p-lrpe-opt {
  flex: 1; text-align: center;
  border: 1px solid var(--border);
  padding: 12px 0;
  font-weight: 500; font-size: 10px; letter-spacing: 1px;
  color: var(--muted);
}
.p-lrpe-opt.on { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.p-lnotes { font-size: 15px; line-height: 22px; color: var(--text); }
.p-lnotes.empty { color: var(--muted); }

.p-lblock { border: 1px solid var(--border); }
.p-lblock-head { background: var(--panel); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.p-lblock-type {
  font-weight: 500; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.p-lblock-title { font-family: var(--head); font-size: 28px; line-height: 30px; color: var(--text); }
.p-lex { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.p-lex:last-child { border-bottom: 0; }
.p-lex-name { font-weight: 500; font-size: 16px; color: var(--text); }
.p-lex-spec { flex: 1; font-size: 13px; color: var(--muted); padding-right: 12px; }
.p-lex-single { display: flex; align-items: center; margin-top: 8px; }
.p-lsets { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.p-lset { display: flex; align-items: center; }
.p-lset-n { width: 50px; font-weight: 500; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.p-lset-gap { flex: 1; }
.p-lbox {
  min-width: 48px; height: 40px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text);
  opacity: 0.6;
  padding: 0 6px;
}
.p-lunit { margin: 0 5px; font-size: 12px; color: var(--muted); }
.p-lcheck {
  width: 26px; height: 26px; flex: 0 0 26px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-fg); font-size: 16px; font-weight: 700;
}
.p-ldelete {
  padding: 14px 0 4px; text-align: center;
  font-weight: 500; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--danger);
}

/* ═══════════════ ABOUT MODALS (contact / terms / privacy) ═════════════ */

.modal { position: absolute; inset: 0; z-index: 20; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.modal-panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 92vw);
  max-height: 86vh;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.modal-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--panel2);
}
.modal-title {
  margin: 0;
  font-family: var(--head); font-weight: 400;
  font-size: 28px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-x {
  font-size: 26px; line-height: 1;
  color: var(--muted);
  padding: 0 4px;
  transition: color 0.15s;
}
.modal-x:hover { color: var(--text); }
.modal-body { overflow-y: auto; padding: 22px; scrollbar-width: thin; }

/* Terms / Privacy content (rendered from window.LEGAL) */
.lg-updated { margin: 0 0 6px; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lg-intro { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--text); }
.lg-h { margin: 24px 0 8px; font-family: var(--head); font-weight: 400; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.lg-p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.lg-li { position: relative; margin: 0 0 10px; padding-left: 15px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.lg-li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--accent); }
.lg-li strong { color: var(--text); font-weight: 700; }

/* Contact form */
.cf { display: flex; flex-direction: column; gap: 16px; }
.cf-lead { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-label { font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cf-input {
  font-family: var(--body); font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.cf-input:focus { border-color: var(--accent); }
.cf-textarea { resize: vertical; min-height: 110px; }
.cf-submit {
  margin-top: 4px;
  height: 50px;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 800; font-size: 13px; letter-spacing: 0.1em;
  transition: opacity 0.15s;
}
.cf-submit:hover { opacity: 0.88; }
.cf-submit[disabled] { opacity: 0.55; cursor: default; }
/* Honeypot — off-screen, never shown to real users (bots fill it and get dropped) */
.cf-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-status { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cf-status.err { color: var(--danger); }
.cf-success { margin: 0; font-size: 15px; line-height: 1.6; color: var(--accent); }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════════ */

@media (max-width: 1200px) {
  .box-copy { max-width: 52vw; }
}

@media (max-width: 900px) {
  .marquee { font-size: clamp(4.4rem, 17vh, 12rem); }
  .ticker { --ticker-top: 26vh; }
  .applinks-row { gap: 38px; }
  .plan-box { padding: 5vh 5vw 3.4vh; }
  .box-copy { max-width: none; }
}

@media (max-width: 760px) {
  .hero { width: 92vw; top: 50vh; }
  .hero-tagline { font-size: 24px; letter-spacing: 0.22em; }
  .hero-sub { font-size: 10px; letter-spacing: 0.22em; line-height: 18px;}
  .marquee { font-size: clamp(3.4rem, 12vh, 7rem); }
  .ticker { --ticker-top: 30vh; row-gap: 1vh; }
  .tick-word { padding: 0 12px; }

  .applinks { top: 75px; --applinks-shift: 45px; }
  .applinks-label { margin-bottom: 14px; font-size: 11px; }
  .ic-apple { height: 27px; }
  .ic-android { height: 21px; }

  .edge, .edge-fill { width: 6px; }

  /* ── Section boxes: single column, centred text, full-width stacked buttons,
     with the section's phone peeking up from the box's bottom edge.
     Box-top sections (coach/schedule) anchor to the top; box-bottom sections
     (plan/gear/stats) anchor to the bottom. Both reserve bottom padding so the
     buttons clear the peeking phone. */
  .plan-box, .coach-box, .gear-box, .schedule-box, .stats-box, .about-box {
    left: 24px; right: 24px;
    min-height: 0;
    align-items: center;
    padding: 26px 22px 104px;
  }
  .coach-box, .schedule-box, .about-box { top: 10vh; bottom: auto; }
  .plan-box, .gear-box, .stats-box { top: auto; bottom: 10vh; }
  /* about has no peeking phone and a long note — compact it so the ABOUT/INFO
     text still clears the menu below */
  .about-box { top: 10vh; padding-bottom: 22px; }
  .about-box .box-copy { font-size: 13px; line-height: 1.48; }
  .about-box .box-btn { height: 42px; }

  /* Watch section: the two watches PEEK from the box's bottom edge, like the
     section phones. A fixed-height overflow window keeps them in flow but caps
     how much the box grows (only their top peeks; the rest is cut at the box
     bottom), so the ticker isn't shoved off-screen. */
  .schedule-box { padding-bottom: 0; }
  .schedule-box .box-copy { font-size: 13px; line-height: 1.45; }
  .watch-mock {
    position: static;
    margin: 22px auto 0;
    width: 100%; height: 158px;
    overflow: hidden;
    align-items: flex-start;
    transform: none; gap: 18px;
  }
  /* Stacked below the buttons — the box wraps the bands, so give them tidy
     rounded ends instead of clipping. */
  .strap { height: 60px; }
  .strap-top { margin-bottom: -16px; border-radius: 20px 20px 0 0; }
  .strap-bot { margin-top: -16px; border-radius: 0 0 20px 20px; }
  .watch-body { width: 138px; height: 166px; border-radius: 36px; padding: 8px; }
  .watch-screen { border-radius: 30px; padding: 22px 9px 22px; }
  .watch-body-round { width: 146px; height: 146px; padding: 7px; border-radius: 50%; }
  .wm-time { font-size: 10px; }
  .wm-bpm-num { font-size: 40px; }
  .wm-bpm-unit { font-size: 10px; }
  .wm-row { font-size: 9px; gap: 6px; margin-top: 5px; }
  .wm-btn { font-size: 8px; padding: 6px 0; }
  /* Smaller circle — pull the buttons in + up so they clear the curve. */
  .watch-screen-round { padding: 2% 9% 17%; }
  .watch-screen-round .wm-bpm-num { font-size: 34px; }
  .watch-screen-round .wm-actions { width: 64%; margin-top: 6px; }

  .box-heading, .coach-box .box-heading {
    font-size: 30px; letter-spacing: 0.08em;
    text-align: center;
  }
  .box-subheading { font-size: 11px; letter-spacing: 0.2em; text-align: center; }
  .box-copy,
  .coach-box .box-copy, .gear-box .box-copy,
  .schedule-box .box-copy, .stats-box .box-copy {
    font-size: 14px; line-height: 1.55;
    max-width: none; text-align: center;
  }

  .box-actions, .coach-box .box-actions, .schedule-box .box-actions {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 22px;
  }
  .box-btn {
    width: 100%; min-width: 0; flex: none;
    height: 46px; padding: 0 16px; font-size: 12px;
  }
  .box-btn-tertiary {
    width: calc(100% / 3);
    margin: 0;
  }
  .panel.panel-about .about-actions {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .panel.panel-about .about-actions .box-btn-secondary {
    width: 50%; float: left; border: none;
  }
  .about-links { justify-content: center; margin-top: 12px; }

  /* Docked phones peek up from each box's bottom edge (positioned in script.js);
     the expanded preview scales to fit the screen. */
  .stage.expanded .phone-layer.active { transform: scale(0.85); }

  .back-arrow { left: 12px; top: 12px; }

  .menu { bottom: 16px; bottom: calc(100lvh - 100dvh + 16px); }

  .modal-panel { max-height: 88vh; }
  .modal-head { padding: 16px 18px; }
  .modal-title { font-size: 23px; }
  .modal-body { padding: 18px; }
}

@media (max-width: 460px) {
  .box-btn-tertiary {
    width: calc(100% / 2);
  }
  .box-btn-tertiary:last-child { width: 100%;}
}

@media (max-width: 390px) {
  .menu { transform: translateX(-50%) scale(0.92); transform-origin: center bottom; }
}

/* ═════════════════════════ COOKIE CONSENT GATE ════════════════════════════
   Built by consent.js and appended to <body>, so it sits above .stage (fixed)
   and the modal (z-index 20). Square corners throughout, per the BUILD look. */

.ck { position: fixed; z-index: 100; font-family: var(--body); }

/* ── Bottom bar ── */
.ck-bar {
  left: 0; right: 0; bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--accent);
  animation: ck-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ck-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

.ck-bar-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 28px;
}
.ck-bar-text { flex: 1; min-width: 0; }

.ck-title {
  margin: 0 0 6px;
  font-family: var(--head); font-weight: 400;
  font-size: 22px; letter-spacing: 0.04em;
  color: var(--accent);
}
.ck-copy {
  margin: 0;
  font-size: 13.5px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.ck-link {
  font: inherit; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
}
.ck-link:hover { opacity: 0.8; }

/* ── Buttons — REJECT is the same size/weight as ACCEPT on purpose: under
      ePrivacy, refusing must be no harder than consenting. ── */
.ck-actions { display: flex; gap: 0; flex-shrink: 0; }
.ck-btn {
  height: 42px; padding: 0 22px;
  font-weight: 800; font-size: 12px; letter-spacing: 0.1em;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
  white-space: nowrap;
}
.ck-btn-ghost { color: var(--accent); border: 1px solid var(--accent); }
.ck-btn-ghost:hover { background: var(--accent); color: var(--accent-fg); }
.ck-btn-primary { background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); }
.ck-btn-primary:hover { opacity: 0.86; }

/* ── Preferences dialog ── */
.ck-prefs-wrap { inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ck-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.ck-prefs {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  animation: ck-pop 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ck-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ck-prefs .ck-copy { margin-bottom: 22px; }

.ck-row {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.ck-row-locked { cursor: default; }
.ck-row-text { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ck-row-name {
  font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text);
}
.ck-row-desc { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ck-always {
  font-weight: 700; font-size: 10px; letter-spacing: 0.12em;
  color: var(--muted); padding-top: 2px; white-space: nowrap;
}

/* Square checkbox — matches the app's EqToggle pattern, never a rounded switch. */
.ck-box {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 22px; height: 22px; margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ck-box:checked { background: var(--accent); border-color: var(--accent); }
.ck-box:checked::after {
  content: ''; display: block;
  width: 6px; height: 11px; margin: 3px auto 0;
  border: solid var(--accent-fg); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ck-box:disabled { opacity: 0.4; cursor: default; }
.ck-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ck-prefs .ck-actions { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.ck-prefs .ck-btn { flex: 1; }

@media (max-width: 860px) {
  .ck-bar-inner { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 18px 22px; }
  .ck-actions { flex-direction: column; }
  .ck-btn { width: 100%; }
  .ck-btn + .ck-btn { border-top-width: 0; }
  .ck-prefs { padding: 22px 18px; }
  .ck-prefs .ck-actions { flex-direction: column; }
}

/* ════════════════════════ PHONE THEME DEMO ════════════════════════════ */
/* The app ships four themes; these mirror THEMES in lib/themeContext.tsx —
   keep them in step. Scoped to the MOCKUP only: the site chrome stays BUILD
   black-and-yellow because that IS the brand. Someone switching to SERENE
   should watch the product change, not the website.

   Every .phone descendant already reads var(--accent) / var(--panel) etc., so
   re-declaring the tokens on the device is the whole mechanism — no per-element
   overrides, and any future mockup markup themes itself for free. */
.phone,
.watch-mock {
  --bg: #0d0d0d; --panel: #191919; --panel2: #222222; --border: #2e2e2e;
  --accent: #FFEC00; --accent-fg: #0d0d0d;
  --danger: #ff392d; --muted: #666666; --text: #ffffff;
}
.phone[data-theme="serene"],
.watch-mock[data-theme="serene"] {
  --bg: #FFF5E4; --panel: #FFFFFF; --panel2: #FFE0E0; --border: #FFBDBD;
  --accent: #FF9494; --accent-fg: #CB5353;
  --danger: #CB5353; --muted: #CB5353; --text: #453B3B;
}
.phone[data-theme="frost"],
.watch-mock[data-theme="frost"] {
  --bg: #0B0108; --panel: #320227; --panel2: #27021E; --border: #27021E;
  --accent: #FA5DD5; --accent-fg: #0D0D0D;
  --danger: #B71490; --muted: #766372; --text: #FFFFFF;
}
.phone[data-theme="night"],
.watch-mock[data-theme="night"] {
  --bg: #1c1c1e; --panel: #2c2c2e; --panel2: #3a3a3c; --border: #48484a;
  --accent: #f5f5f7; --accent-fg: #1c1c1e;
  --danger: #ff453a; --muted: #8e8e93; --text: #ffffff;
}

/* ── The prompt ──────────────────────────────────────────────────────────
   Only while a preview is open (body.previewing). Docked phones are small and
   a swatch row there would be missed; full-screen is when someone is actually
   studying the UI. Sits above the phone layer but below modals (z-index 20). */
.theme-pick {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  /* Always laid out, toggled by opacity/visibility rather than display — a
     display:none → flex switch cancels the transition, and the two-class
     workaround needed a rAF that isn't guaranteed to fire in a background tab.
     visibility keeps it out of the tab order while hidden. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
body.previewing .theme-pick {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

.theme-pick-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  padding: 7px 11px;
  border: 1px solid #2e2e2e;
  white-space: nowrap;
}

.theme-pick-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid #2e2e2e;
}

/* Square, like every other control in the brand. The dot shows the theme's
   accent over its background, so the swatch previews the actual palette. */
.theme-dot {
  width: 30px; height: 30px;
  border: 1px solid #3a3a3a;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-dot:hover { transform: translateY(-2px); }
.theme-dot[aria-pressed="true"] { border-color: #fff; }
.theme-dot i {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .theme-pick { right: 14px; bottom: 14px; gap: 8px; }
  .theme-pick-label { font-size: 10px; padding: 6px 9px; }
  .theme-dot { width: 26px; height: 26px; }
}
