/* ==========================================================================
   Gymwise — website design system
   Mirrors the iOS app's GWTheme / GWFont so the site and the app read as
   one product. Values here map 1:1 onto their Swift counterparts:

     GWTheme.accent      -> --accent          (system blue)
     GWTheme.brand       -> --brand           (wordmark blue)
     GWTheme.card        -> --card
     GWTheme.background  -> --bg
     GWTheme.tag         -> --tag
     GWTheme.cornerRadius-> --r                (16)
     GWTheme.innerRadius -> --r-inner          (12)

   Anything not listed above is an iOS system colour (systemGray5,
   secondaryLabel, …) resolved to its light/dark hex.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Display font (optional)
   --------------------------------------------------------------------------
   Montserrat, subset to Latin + the punctuation this site uses, variable
   100-900 in one 19KB file. Mirrors GWFont.displayFontName in the app, which
   is currently nil — so leave this OFF unless the app is switched over too,
   or the site and app will disagree.

   ON : --font-display: "Montserrat", var(--font);
   OFF: --font-display: var(--font);
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-subset.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --accent: #007aff;              /* Color.blue — GWTheme.accent */
  --accent-hover: #0069db;
  --accent-fg: #ffffff;           /* GWTheme.accentForeground */
  --brand: #0071c1;               /* GWTheme.brand — logo lockup */
  --pro: #ff9500;                 /* systemOrange — the PRO badge */
  --green: #34c759;
  --tag: rgba(0, 122, 255, 0.08); /* GWTheme.tag (light) */

  /* Surfaces */
  --bg: #f2f2f7;                  /* systemGroupedBackground */
  --card: #ffffff;                /* secondarySystemGroupedBackground */
  --card-raised: #ffffff;
  --fill: rgba(120, 120, 128, 0.12);   /* secondarySystemFill */
  --separator: #e5e5ea;                /* systemGray5 */
  --separator-strong: #d1d1d6;         /* systemGray4 */
  --nav-bg: rgba(249, 249, 251, 0.82);

  /* Text */
  --label: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.34);
  --gray3: #c7c7cc;

  /* Geometry — GWTheme.cornerRadius / .innerRadius */
  --r: 16px;
  --r-inner: 12px;
  --r-lg: 22px;

  /* Type — GWFont. SF Pro for content, SF Rounded for stats. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Inter", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", system-ui, sans-serif;
  /* Headings. Swap to: "Montserrat", var(--font) to enable the display face. */
  --font-display: var(--font);

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --nav-h: 56px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-raised: 0 10px 34px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-device: 0 30px 70px rgba(0, 0, 0, 0.20), 0 6px 18px rgba(0, 0, 0, 0.10);

  color-scheme: light dark;
}

/* Dark mode — matches the app's dark surfaces (white 0.07 bg / white 0.13 card) */
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --accent-hover: #3a9bff;
    --brand: #2f9bec;
    --pro: #ff9f0a;
    --green: #30d158;
    --tag: rgba(10, 132, 255, 0.15);

    --bg: #121212;
    --card: #212121;
    --card-raised: #262626;
    --fill: rgba(120, 120, 128, 0.24);
    --separator: #2f2f31;
    --separator-strong: #3a3a3c;
    --nav-bg: rgba(24, 24, 24, 0.78);

    --label: #ffffff;
    --label-secondary: rgba(235, 235, 245, 0.6);
    --label-tertiary: rgba(235, 235, 245, 0.3);
    --gray3: #48484a;

    --shadow-card: none;
    --shadow-raised: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-device: 0 30px 70px rgba(0, 0, 0, 0.6);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;                 /* iOS body */
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--r-inner) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

/* Type scale — GWFont.
   Display sizes carry tight optical tracking; it's what stops large system-font
   headings looking loose and default. Tracking eases off as the size drops. */
h1, h2, h3, h4 { margin: 0; font-weight: 700; font-family: var(--font-display); }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.45rem); line-height: 1.1; letter-spacing: -0.026em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.018em; }
h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.014em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 500;
  color: var(--label-secondary);
  line-height: 1.56;
}
.muted { color: var(--label-secondary); }
.small { font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; }
.center { text-align: center; }

/* Rounded, monospaced-digit numerals — GWFont.stat */
.stat-num {
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Section rhythm */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 + p { margin-top: 12px; }

/* Section kicker: plain text, not a tinted pill. */
.eyebrow {
  display: block;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.eyebrow svg { display: none; }

/* --------------------------------------------------------------------------
   3. Controls
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 12px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, transform .12s ease, border-color .18s ease, color .18s ease;
  text-align: center;
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }

.btn-secondary {
  background: var(--card); color: var(--label);
  border-color: var(--separator);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover { background: var(--fill); color: var(--label); }

.btn-ghost { background: transparent; color: var(--accent); padding: 12px 8px; }
.btn-ghost:hover { color: var(--accent-hover); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: 0.875rem; border-radius: var(--r-inner); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.btn-row.center { justify-content: center; }

/* The Gymwise Pro lockup (Gymwise_Pro.svg, text outlined so no webfont is
   needed). The wordmark takes currentColor; the orange capsule is baked in. */
.pro-lockup {
  height: 26px; width: auto;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.pro-lockup-lg { height: 38px; margin-bottom: 20px; }
.pro-lockup-sm { height: 17px; margin-bottom: 0; }

/* App Store button. Disabled until release: greyed, not clickable, but shaped
   like the real thing so it reads as "this is where the download will be". */
.btn-appstore {
  background: var(--fill);
  color: var(--label-tertiary);
  border-color: var(--separator);
  cursor: not-allowed;
  padding: 11px 20px;
  gap: 11px;
}
.btn-appstore:active { transform: none; }
.btn-appstore svg { width: 26px; height: 26px; }
.btn-appstore .as-copy {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.1; text-align: left;
  font-size: 1.0625rem; font-weight: 600;
}
.btn-appstore .as-copy small {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em;
  opacity: 0.85;
}

/* PRO badge — the paywall's capsule */
.pro-badge {
  display: inline-block;
  background: var(--pro); color: #fff;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
  vertical-align: middle;
}
.pro-badge-outline {
  background: transparent; color: var(--pro);
  border: 1.5px solid var(--pro);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tag); color: var(--accent);
  font-size: 0.8125rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.pill-neutral { background: var(--fill); color: var(--label-secondary); }

/* --------------------------------------------------------------------------
   4. Cards & lists (the app's inset-grouped look)
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.card-lg { padding: clamp(20px, 3vw, 32px); }
.card-flush { padding: 0; overflow: hidden; }

/* Leading icon tile — 38pt tile, innerRadius, accent @ 12% */
.icon-tile {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-inner);
  background: var(--tag);
  color: var(--accent);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile-lg { width: 56px; height: 56px; border-radius: 14px; }
.icon-tile-lg svg { width: 28px; height: 28px; }
.icon-tile-solid { background: var(--accent); color: #fff; }
.icon-tile-pro { background: rgba(255, 149, 0, 0.14); color: var(--pro); }

/* Grouped list */
.list {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--separator);
}
.list-row:first-child { border-top: 0; }
.list-row-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; }
.list-row-sub { font-size: 0.875rem; font-weight: 500; color: var(--label-secondary); }
.list-row .spacer { margin-left: auto; }

/* Tappable row, the way a row with a chevron behaves in the app */
.list-row-link { color: inherit; transition: background-color .15s ease; }
.list-row-link:hover { background: var(--fill); color: inherit; }
.list-row-link .row-chevron {
  width: 15px; height: 15px; flex: none;
  margin-left: auto; color: var(--label-tertiary);
}

.check {
  width: 22px; height: 22px; flex: none;
  color: var(--accent);
}
.check-muted { color: var(--gray3); }

/* Feature index, laid out as the app's inset-grouped lists */
.feature-groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.feature-group .group-head {
  font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--label-secondary);
  margin: 0 0 10px 4px;
  letter-spacing: 0;
}
.feature-group .group-head .pro-badge { margin-left: 2px; vertical-align: 1px; }
.feature-group .group-head .pro-lockup-sm { margin: 0 0 0 4px; }
.feature-group .list-row { align-items: flex-start; }
.feature-group .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.feature-group .icon-tile svg { width: 19px; height: 19px; }
.feature-group .list-row-title { font-size: 1rem; }
.feature-group .list-row-sub { margin-top: 1px; }

/* Feature grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature-card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--separator-strong); }
.feature-card h3 { font-size: 1.0625rem; margin: 16px 0 6px; }
.feature-card p { color: var(--label-secondary); font-size: 0.9375rem; margin: 0; }
.feature-card .pro-badge { margin-left: 8px; }

/* Alternating detail rows (features page) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split-media { display: flex; justify-content: center; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-media { order: 1; }
.split h2 { margin-bottom: 14px; }
.split ul { margin: 20px 0 0; padding: 0; list-style: none; }
.split ul li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 7px 0; color: var(--label-secondary); font-size: 1rem;
}
.split ul li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.split ul li strong { color: var(--label); font-weight: 600; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--separator);
  border-radius: var(--r); padding: 20px; text-align: center;
  box-shadow: var(--shadow-card);
}
.stat .stat-num { display: block; font-size: 1.9rem; color: var(--label); }
.stat .stat-label { font-size: 0.8125rem; color: var(--label-secondary); margin-top: 4px; }

/* --------------------------------------------------------------------------
   5. Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
/* The wordmark artwork already carries the dumbbell mark, so the lockup is the
   SVG on its own, with no separate app icon beside it.
   Colour is --accent (#007AFF), not --brand: that matches the exported
   wordmark PNG and the app, which tints it with GWTheme.accent in
   PaywallView's brand lockup. */
.brand { display: flex; align-items: center; color: var(--accent); flex: none; }
.brand:hover { color: var(--accent); opacity: 0.85; }
.brand .wordmark { height: 23px; width: auto; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--label-secondary);
  font-size: 0.9375rem; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--label); background: var(--fill); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-toggle { margin-left: auto; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--label-secondary);
}
.icon-btn:hover { background: var(--fill); color: var(--label); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* Mobile sheet */
.nav-sheet {
  display: none;
  border-top: 1px solid var(--separator);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 8px 20px 16px;
}
.nav-sheet.open { display: block; }
.nav-sheet a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; color: var(--label); font-weight: 500;
  border-bottom: 1px solid var(--separator);
}
.nav-sheet a:last-of-type { border-bottom: 0; }
.nav-sheet a svg { width: 15px; height: 15px; color: var(--label-tertiary); }


/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 30ch; }
.hero-cta { margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.8125rem; color: var(--label-tertiary); }
/* The Lock Screen card floats over the phone rather than sitting beside it,
   so the hero copy keeps a readable measure. */
.hero-media {
  position: relative;
  display: flex; justify-content: center; align-items: center; gap: 18px;
}
/* Phone and watch stand side by side on the same baseline. */
.hero-media { gap: 28px; align-items: flex-end; }
.hero-media .device { width: 284px; }
.hero-media .awatch { width: 128px; }

/* --------------------------------------------------------------------------
   7. Device mockups — the app UI, rebuilt in HTML
   -------------------------------------------------------------------------- */

/* --- Real screenshots in a device frame -------------------------------------
   Screens captured on an iPhone 16 Pro Max (440x956pt). The status bar in each
   image has been repainted to a consistent 9:41, and the Dynamic Island is
   drawn here rather than in the capture. */
.device {
  position: relative;
  width: 300px; flex: none;
  background: #1c1c1e;
  border-radius: 54px;
  padding: 11px;
  box-shadow: var(--shadow-device);
}
.device::after {                       /* side button */
  content: ""; position: absolute; right: -2px; top: 150px;
  width: 3px; height: 62px; border-radius: 3px; background: #2c2c2e;
}
.device-screen {
  position: relative;
  border-radius: 43px;
  overflow: hidden;
  display: block;
  background: var(--bg);
}
.device-screen img { display: block; width: 100%; height: auto; }
/* Dynamic Island geometry, taken from the capture: 375x111px at 33px from the
   top of a 1320x2868 screen. Kept in percentages so it tracks the frame size. */
.device .di-pill {
  position: absolute; top: 1.15%; left: 50%; transform: translateX(-50%);
  width: 28.41%;
  aspect-ratio: 375 / 111;
  background: #000; border-radius: 999px;
  z-index: 2;
}
.device-sm { width: 246px; border-radius: 46px; padding: 9px; }
.device-sm .device-screen { border-radius: 38px; }
.device-sm::after { top: 122px; height: 50px; }


/* Two screens shown as a sequence: the second sits back and slightly lower. */
.device-pair { display: flex; align-items: flex-start; }
.device-pair .device:first-child { z-index: 2; }
.device-pair .device:last-child {
  margin-left: -78px; margin-top: 34px;
  z-index: 1;
  transform: scale(0.94);
  transform-origin: top left;
}
@media (max-width: 560px) {
  .device-pair .device:last-child { margin-left: -96px; }
}

/* The expanded Dynamic Island, as captured */
.di-shot { width: 340px; flex: none; display: block; }
.di-shot img { width: 100%; height: auto; display: block; border-radius: 18px; }

@media (max-width: 560px) {
  .device { width: min(280px, 82vw); }
  .di-shot { width: min(340px, 88vw); }
}

.phone {
  position: relative;
  width: 300px; flex: none;
  aspect-ratio: 300 / 620;
  background: #1c1c1e;
  border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-device);
}
.phone::after { /* side button hint */
  content: ""; position: absolute; right: -2px; top: 152px;
  width: 3px; height: 62px; border-radius: 3px; background: #2c2c2e;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.phone-sm { width: 244px; }

.dynamic-island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  min-width: 88px; height: 28px;
  background: #000; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; color: #fff;
}
.dynamic-island .di-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pro); flex: none; }
.dynamic-island .di-time {
  font-family: var(--font-rounded); font-variant-numeric: tabular-nums;
  font-size: 0.75rem; font-weight: 600;
}

.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 4px;
  font-size: 0.75rem; font-weight: 600;
  font-family: var(--font-rounded); font-variant-numeric: tabular-nums;
  color: var(--label);
}
.status-bar .sb-right { display: flex; gap: 5px; align-items: center; color: var(--label); }
.status-bar svg { width: 15px; height: 11px; }

.screen-body {
  flex: 1; overflow: hidden;
  padding: 8px 14px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.screen-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; padding: 2px 2px 0; }
.screen-sub { font-size: 0.72rem; color: var(--label-secondary); padding: 0 2px; }

.mini-card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r-inner);
  padding: 11px 12px;
}
.mini-card-head { display: flex; align-items: center; gap: 9px; }
.mini-card-title { font-size: 0.8125rem; font-weight: 600; }
.mini-card-sub { font-size: 0.6875rem; color: var(--label-secondary); }
.mini-tile {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--tag); color: var(--accent);
  display: grid; place-items: center;
}
.mini-tile svg { width: 16px; height: 16px; }

.mini-add {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--separator-strong);
  border-radius: var(--r-inner);
  padding: 9px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent);
}
.mini-add svg { width: 14px; height: 14px; }

/* Set rows in the active-workout mock */
.set-row {
  display: grid; grid-template-columns: 22px 1fr 1fr 26px;
  align-items: center; gap: 8px;
  padding: 7px 2px;
  font-size: 0.75rem;
  border-top: 1px solid var(--separator);
}
.set-row:first-of-type { border-top: 0; }
.set-row .set-n {
  font-family: var(--font-rounded); font-weight: 700;
  color: var(--label-secondary); text-align: center;
}
.set-row .set-val {
  font-family: var(--font-rounded); font-variant-numeric: tabular-nums;
  font-weight: 600;
  background: var(--fill); border-radius: 7px;
  padding: 4px 0; text-align: center;
}
.set-row .set-check {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--fill); color: var(--label-tertiary);
}
.set-row.done .set-check { background: var(--green); color: #fff; }
.set-row.done .set-val { background: rgba(52, 199, 89, 0.14); }
.set-row .set-check svg { width: 13px; height: 13px; }

.rest-bar {
  display: flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff;
  border-radius: var(--r-inner);
  padding: 9px 12px;
}
.rest-bar .rest-time {
  font-family: var(--font-rounded); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 0.9rem; margin-left: auto;
}
.rest-bar svg { width: 16px; height: 16px; }

.tab-bar {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--separator);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 8px 0 14px;
}
.tab-bar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.5625rem; font-weight: 500;
  color: var(--label-tertiary);
}
.tab-bar .tab svg { width: 21px; height: 21px; }
.tab-bar .tab.active { color: var(--accent); }

/* Progress ring / bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.bars .bar { flex: 1; background: var(--tag); border-radius: 4px 4px 2px 2px; }
.bars .bar.on { background: var(--accent); }

/* Session totals row on the summary mock */
.summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.summary-stats span { display: flex; flex-direction: column; gap: 2px; font-size: 0.625rem; color: var(--label-secondary); }
.summary-stats b { font-size: 0.9375rem; color: var(--label); }

/* Selectable chips (generator wizard, filters) */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .chip {
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 10px; border-radius: 999px;
  background: var(--fill); color: var(--label-secondary);
  border: 1px solid transparent;
}
.chip-row .chip.on { background: var(--tag); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Step dots — the onboarding / wizard progress indicator */
.step-dots { display: flex; gap: 5px; justify-content: center; padding: 4px 0 2px; }
.step-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--separator-strong); display: block; }
.step-dots i.on { background: var(--accent); width: 18px; }

/* Muscle-volume rows (insights mock) */
.vol-row { display: grid; grid-template-columns: 58px 1fr 30px; align-items: center; gap: 8px; font-size: 0.6875rem; padding: 4px 0; }
.vol-row .track { height: 7px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.vol-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.vol-row .track i.warn { background: var(--pro); }
.vol-row .num { text-align: right; font-family: var(--font-rounded); font-weight: 600; color: var(--label-secondary); }

/* Week strip (goal streak) */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week span {
  aspect-ratio: 1; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.625rem; font-weight: 600;
  background: var(--fill); color: var(--label-tertiary);
}
.week span.on { background: var(--accent); color: #fff; }
.week span.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

.exercise-thumb {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--r-inner);
  background: #fff;
  object-fit: cover;
}

/* --- Apple Watch ------------------------------------------------------------
   Case proportioned to a 46mm Series 10 (39mm wide x 46mm tall), with the
   sport band tucked behind the case, a Digital Crown and a side button. */
.awatch {
  position: relative; flex: none;
  width: 152px;
  display: flex; flex-direction: column; align-items: center;
}
/* Sport band: lighter than the case so the two read as different materials. */
.awatch-band {
  width: 58%;
  z-index: 0;
  background: linear-gradient(96deg, #6c6c72 0%, #4a4a50 40%, #35353a 100%);
}
.awatch-band-top {
  height: 74px;
  border-radius: 18px 18px 5px 5px;
  margin-bottom: -22px;
  box-shadow: inset 0 -16px 16px -13px rgba(0, 0, 0, 0.8);
}
.awatch-band-bottom {
  height: 88px;
  border-radius: 5px 5px 22px 22px;
  margin-top: -22px;
  box-shadow: inset 0 16px 16px -13px rgba(0, 0, 0, 0.8);
}
.awatch-case {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 30% / 25%;
  padding: 7px;
  background: linear-gradient(155deg, #55555a 0%, #1e1e21 34%, #0b0b0c 100%);
  box-shadow:
    var(--shadow-device),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}
.awatch-crown {
  position: absolute; right: -5px; top: 30%;
  width: 6px; height: 26px; border-radius: 3px;
  background: linear-gradient(90deg, #5a5a5e, #2a2a2c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.awatch-button {
  position: absolute; right: -3px; top: 51%;
  width: 4px; height: 32px; border-radius: 3px;
  background: linear-gradient(90deg, #4a4a4e, #232325);
}
.awatch-screen {
  aspect-ratio: 352 / 430;          /* the capture's own shape, so nothing stretches */
  border-radius: 24.5% / 20.5%;
  overflow: hidden;
  background: #000;
}
.awatch-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Two watches side by side on the features page */
.watch-pair { display: flex; gap: 22px; align-items: flex-end; justify-content: center; }

/* --------------------------------------------------------------------------
   8. Exercise / equipment showcases
   -------------------------------------------------------------------------- */

.exercise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.exercise-card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.exercise-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.exercise-card .ex-meta { padding: 12px 14px 14px; }
.exercise-card .ex-name { font-size: 0.9375rem; font-weight: 600; }
.exercise-card .ex-muscles { font-size: 0.8125rem; color: var(--label-secondary); margin-top: 2px; }

.equipment-strip {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px;
}
.equipment-chip {
  background: #fff;
  border: 1px solid var(--separator);
  border-radius: var(--r-inner);
  padding: 10px;
  text-align: center;
}
.equipment-chip img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.equipment-chip span {
  display: block; font-size: 0.6875rem; color: #6b6b70;
  margin-top: 6px; font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Comparison table (mirrors the paywall table)
   -------------------------------------------------------------------------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  overflow: hidden;
}
.compare th, .compare td { padding: 13px 16px; text-align: left; font-size: 0.9375rem; }
.compare thead th { font-size: 0.875rem; font-weight: 600; color: var(--label-secondary); }
.compare thead th.pro-col { color: var(--pro); font-weight: 800; }
.compare th.col, .compare td.col { width: 84px; text-align: center; }
.compare tbody tr { border-top: 1px solid var(--separator); }
.compare tbody td:first-child { font-weight: 500; }
.compare .limit { font-size: 0.8125rem; color: var(--label-secondary); }
.compare .yes { color: var(--accent); font-weight: 800; font-size: 1rem; }
.compare .no { color: var(--gray3); font-weight: 600; font-size: 1rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 620px; margin: 0 auto; }
.plan {
  position: relative;
  background: var(--card);
  border: 2px solid var(--separator);
  border-radius: var(--r);
  padding: 22px 18px;
  text-align: center;
}
.plan.featured { border-color: var(--accent); }
.plan .plan-name { font-size: 0.9375rem; font-weight: 600; color: var(--label-secondary); }
.plan .plan-price {
  font-family: var(--font-rounded); font-weight: 700; font-size: 2rem;
  letter-spacing: -0.03em; margin: 6px 0 2px;
}
.plan .plan-period { font-size: 0.8125rem; color: var(--label-secondary); }
.plan .plan-note { font-size: 0.8125rem; color: var(--label-secondary); margin-top: 10px; }
.plan .save-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Accordion (FAQ) — matches the paywall's expanding cards
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 18px;
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--label-tertiary);
  border-bottom: 2px solid var(--label-tertiary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq-body {
  padding: 0 18px 18px;
  color: var(--label-secondary);
  font-size: 0.9375rem;
}
.faq .faq-body p + p { margin-top: 0.8em; }

/* --------------------------------------------------------------------------
   11. Waitlist / CTA
   -------------------------------------------------------------------------- */

.cta-panel {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-panel .app-icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 20px; box-shadow: var(--shadow-card); border: 1px solid var(--separator); background: #ffffff; }

.waitlist {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 460px; margin: 24px auto 0;
}
.waitlist input[type="email"] {
  flex: 1 1 220px;
  font: inherit; font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--separator-strong);
  background: var(--bg);
  color: var(--label);
}
.waitlist input::placeholder { color: var(--label-tertiary); }
.waitlist input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tag); }
.waitlist .btn { flex: 0 0 auto; }
.form-msg { font-size: 0.875rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff3b30; }

/* --------------------------------------------------------------------------
   12. Legal / long-form pages
   -------------------------------------------------------------------------- */

.page-head {
  padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--separator);
}
.page-head .updated { font-size: 0.875rem; color: var(--label-secondary); margin-top: 10px; }

.prose { max-width: 720px; font-size: 1rem; line-height: 1.62; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: var(--label-secondary); }
.prose strong { color: var(--label); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose hr { border: 0; border-top: 1px solid var(--separator); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--separator); vertical-align: top; }
.prose th { font-weight: 600; color: var(--label); }
.prose td { color: var(--label-secondary); }

.callout {
  background: var(--tag);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 0.9375rem;
  color: var(--label-secondary);
  margin: 1.5em 0;
}
.callout strong { color: var(--label); }

.toc {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 32px;
}
.toc h4 { margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--card);
  border-top: 1px solid var(--separator);
  margin-top: clamp(48px, 6vw, 88px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 5vw, 64px) 0 40px;
}
.footer-brand .wordmark { height: 26px; width: auto; color: var(--accent); }
.footer-brand p {
  margin: 16px 0 0; max-width: 30ch;
  font-size: 0.9375rem; color: var(--label-secondary);
}
.footer-brand .footer-badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--label-tertiary); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: var(--label-secondary); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--separator);
  padding: 20px 0 34px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

/* The Medorius credit: one quiet line. The wordmark stands in for the company
   name in the copyright, so Medorius is said once rather than three times. */
.footer-copyright {
  display: inline-flex; align-items: center;
  font-size: 0.8125rem; color: var(--label-tertiary);
}
/* The wordmark needs breathing room and a hairline to separate it from the
   year, otherwise it reads as part of the date. */
.footer-medorius {
  display: inline-flex; align-items: center;
  margin-left: 14px; padding-left: 14px;
  border-left: 1px solid var(--separator);
  opacity: 0.38;
  transition: opacity .18s ease;
}
.footer-medorius:hover { opacity: 0.75; }
.footer-medorius img {
  height: 13px; width: auto;
  display: block;
  position: relative; top: -0.5px;   /* optical centring against the text */
}
.footer-medorius .m-dark { display: block; }
.footer-medorius .m-light { display: none; }
@media (prefers-color-scheme: dark) {
  .footer-medorius .m-dark { display: none; }
  .footer-medorius .m-light { display: block; }
}

.footer-legal { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8125rem; color: var(--label-tertiary); }
.footer-legal a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .exercise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { max-width: none; margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-media { order: 2; flex-wrap: wrap; justify-content: center; }
  .hero-media .awatch { margin-top: 0; }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split-copy, .split.reverse .split-copy { order: 1; }
  .split .split-media, .split.reverse .split-media { order: 2; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-groups { grid-template-columns: 1fr; gap: 26px; }
  .exercise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .equipment-chip { padding: 7px; }
  .equipment-chip span { font-size: 0.625rem; }
  .plans { grid-template-columns: 1fr; }
  .phone { width: min(280px, 82vw); }
  /* Stacked: align-items is the horizontal axis now, so the flex-end used
     for the side-by-side baseline would push both devices to the right. */
  .hero-media { flex-direction: column; align-items: center; gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal { margin-left: 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .waitlist .btn { width: 100%; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .nav, .footer, .cta-panel { display: none; }
  body { background: #fff; color: #000; }
}
