/* ============================================================
   global.css
   Fine. Let's Do This.
   All shared styles — loaded on every page via layout.cfm
   
   TABLE OF CONTENTS
   1.  Design tokens (CSS custom properties)
   2.  Reset and base
   3.  Typography
   4.  Site header and navigation
   5.  Mobile navigation drawer
   6.  Page layout utilities
   7.  Buttons
   8.  Forms and inputs
   9.  Cards
   10. Workout display — exercises, how? expand, counter, feed
   11. Free movement section
   12. Hero section
   13. Homepage sections
   14. Footer
   15. Utilities and helpers
   16. Responsive — mobile breakpoints
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colors
     NOTE: this file used to have TWO :root blocks (this one, and a
     second one further down) with conflicting values for nearly
     every token. The second one always won the cascade — these are
     its values, which is what has actually been rendering live all
     along. Consolidated into one block so there's a single source
     of truth instead of a silent duplicate nobody meant to keep. */
  --c-blue:         #075AF6;
  --c-blue-dark:    #083A8F;
  --c-blue-light:   #EEF3FF;
  --c-blue-mid:     #0C4ED0;
  --c-navy:         #061A3C;
  --c-navy-mid:     #0A2A62;
  --c-yellow:       #FFE36D;
  --c-amber:        #F7C92F;
  --c-amber-light:  #FAEEDA;
  --c-amber-dark:   #633806;
  --c-amber-border: #FAC775;
  --c-lime:         #F5FF3D;

  /* Neutral grays */
  --c-white:        #FFFFFF;
  --c-off-white:    #FFFFFF;
  --c-gray-100:     #F6F6F6;
  --c-gray-200:     #E3E5E9;
  --c-gray-400:     #A5A8AE;
  --c-gray-500:     #7B7E85;
  --c-gray-700:     #62656D;
  --c-gray-900:     #383B42;

  /* Semantic greens */
  --c-green-light:  #EAF3DE;
  --c-green-mid:    #C0DD97;
  --c-green-dark:   #27500A;
  --c-green-border: #3B6D11;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10,20,51,0.08), 0 1px 2px rgba(10,20,51,0.04);
  --shadow-md: 0 8px 24px rgba(6,26,60,0.08);
  --shadow-lg: 0 18px 42px rgba(6,26,60,0.11);

  /* Typography */
  --font-display: 'Nunito Sans', Arial, sans-serif;
  --font-body:    'Nunito Sans', Arial, sans-serif;

  /* Nav height — used for sticky offset calculations */
  --nav-height: 112px;

  /* Max content width */
  --content-width: 1140px;
  --wide-width:    1140px;
}


/* ============================================================
   2. RESET AND BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font-body);
  background-color: var(--c-off-white);
  color: var(--c-navy);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--c-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 80px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--c-navy);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--c-navy);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--c-navy);
}

h1, .h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-navy);
}

h2, .h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-navy);
}

h3, .h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-navy);
}

h4, .h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-navy);
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-gray-700);
}

.text-sm    { font-size: 14px; }
.text-xs    { font-size: 12px; }
.text-xxs   { font-size: 11px; }
.text-lead  { font-size: 18px; line-height: 1.6; }
.text-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-gray-500);
}

.text-blue   { color: var(--c-blue); }
.text-navy   { color: var(--c-navy); }
.text-gray   { color: var(--c-gray-500); }
.text-muted  { color: var(--c-gray-400); }
.text-white  { color: var(--c-white); }
.text-italic { font-style: italic; }
.text-bold   { font-weight: 600; }
.text-center { text-align: center; }


/* ============================================================
   4. SITE HEADER AND NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-navy);
  height: var(--nav-height);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-fine {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--c-blue);
  font-style: italic;
  line-height: 1;
}

.logo-period {
  color: var(--c-amber);
}

.logo-rest {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-white);
  letter-spacing: 0.03em;
  margin-left: 4px;
  line-height: 1;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-gray-400);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-white);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  outline: none;
}

.nav-link--active {
  color: var(--c-white);
}

.nav-link--cta {
  background: var(--c-blue);
  color: var(--c-white) !important;
  padding: var(--space-2) var(--space-4);
}

.nav-link--cta:hover {
  background: var(--c-blue-mid) !important;
}

.nav-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.nav-link--dropdown[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 0.5px solid var(--c-gray-200);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 300;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--c-navy);
  text-decoration: none;
  transition: background 0.1s;
}

.nav-dropdown-link:hover {
  background: var(--c-off-white);
  text-decoration: none;
}

.nav-dropdown-link--highlight {
  border-top: 0.5px solid var(--c-gray-200);
  margin-top: var(--space-1);
}

.nav-dropdown-link--highlight .dropdown-label {
  color: var(--c-blue);
}

.dropdown-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-navy);
  line-height: 1.3;
}

.dropdown-sub {
  font-size: 12px;
  color: var(--c-gray-500);
  line-height: 1.3;
}

/* Hamburger button — hidden on desktop */
.mobile-nav-toggle {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: rgba(255,255,255,0.08);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy) !important;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   5. MOBILE NAVIGATION DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--c-navy);
  z-index: 400;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.is-open,
.mobile-nav-toggle:checked ~ .mobile-nav {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 350;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.is-visible,
.mobile-nav-toggle:checked ~ .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

body:has(.mobile-nav-toggle:checked) { overflow: hidden; }

.mobile-nav-toggle:checked ~ .site-header .nav-hamburger .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle:checked ~ .site-header .nav-hamburger .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-nav-toggle:checked ~ .site-header .nav-hamburger .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.mobile-nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--c-white);
}

.mobile-nav-logo span {
  color: var(--c-amber);
}

.mobile-nav-close {
  color: var(--c-gray-400);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.mobile-nav-close:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.08);
}

.mobile-nav-body {
  flex: 1;
  padding: var(--space-3) 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-gray-400);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  transition: color 0.15s, background 0.15s;
}

.mobile-nav-link:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.mobile-nav-link--parent {
  color: var(--c-gray-400);
  font-family: var(--font-body);
  font-size: 16px;
}

.mobile-nav-details > summary { list-style: none; cursor: pointer; }
.mobile-nav-details > summary::-webkit-details-marker { display: none; }
.mobile-nav-details > summary::marker { content: ""; }
.mobile-nav-details > summary svg { transition: transform .2s ease; }
.mobile-nav-details[open] > summary svg { transform: rotate(180deg); }

.mobile-nav-link--cta {
  color: var(--c-blue) !important;
  font-weight: 600;
}

.mobile-nav-sub {
  background: rgba(0,0,0,0.2);
}

.mobile-nav-sublink {
  display: block;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-8);
  font-size: 14px;
  color: var(--c-gray-500);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  transition: color 0.15s;
}

.mobile-nav-sublink:hover {
  color: var(--c-white);
  text-decoration: none;
}

.mobile-nav-sublink--highlight {
  color: var(--c-blue);
}


/* ============================================================
   6. PAGE LAYOUT UTILITIES
   ============================================================ */
.site-main {
  min-height: calc(100vh - var(--nav-height));
}

.page-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-16);
}

.page-container--wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-16);
}

.page-header {
  padding: var(--space-10) 0 var(--space-6);
}

.section {
  margin-bottom: var(--space-8);
}

.section--lg {
  margin-bottom: var(--space-12);
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack--2  { gap: var(--space-2); }
.stack--3  { gap: var(--space-3); }
.stack--4  { gap: var(--space-4); }
.stack--6  { gap: var(--space-6); }
.stack--8  { gap: var(--space-8); }


/* ============================================================
   7. BUTTONS
   ============================================================ */

/* Primary — dark navy, yellow accent on period */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* Primary — navy background */
.btn--primary {
  background: var(--c-navy);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-navy-mid); }

/* Blue */
.btn--blue {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn--blue:hover { background: var(--c-blue-mid); }

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--c-navy);
  border: 1.5px solid var(--c-gray-200);
}
.btn--ghost:hover { background: var(--c-gray-100); }

/* White ghost */
.btn--ghost-white {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost-white:hover { background: rgba(255,255,255,0.08); }

/* Full width */
.btn--full { width: 100%; display: flex; }

/* Sizes */
.btn--sm { padding: 9px var(--space-4); font-size: 13px; }
.btn--lg { padding: 16px var(--space-8); font-size: 17px; }

/* The accent period — yellow Fine. period on primary buttons */
.btn-accent { color: var(--c-yellow); }

/* Secondary button row — two side by side */
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}


/* ============================================================
   8. FORMS AND INPUTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px var(--space-3);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--c-navy);
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(21, 87, 255, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-helper {
  font-size: 12px;
  color: var(--c-gray-500);
}

/* Report input row — input + button side by side */
.report-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.report-row .form-input {
  flex: 1;
}

.report-row .btn {
  flex-shrink: 0;
}


/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-body {
  padding: var(--space-5);
}

.card-footer {
  padding: var(--space-4) var(--space-5);
  background: var(--c-off-white);
  border-top: 0.5px solid var(--c-gray-200);
}

/* Type badge */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge--blue    { background: var(--c-blue-light); color: var(--c-blue-dark); }
.badge--green   { background: var(--c-green-light); color: var(--c-green-dark); }
.badge--amber   { background: var(--c-amber-light); color: var(--c-amber-dark); }
.badge--gray    { background: var(--c-gray-100); color: var(--c-gray-700); }
.badge--navy    { background: var(--c-navy); color: var(--c-white); }

/* Workout week card */
.week-card {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.week-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-gray-400);
  text-decoration: none;
  color: inherit;
}

.week-card--done {
  border-color: var(--c-green-mid);
  background: linear-gradient(135deg, var(--c-white) 0%, #f0f9e8 100%);
}

.week-card-day {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-gray-500);
}

.week-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-navy);
  line-height: 1;
  letter-spacing: 0.3px;
}

.week-card-subtitle {
  font-size: 13px;
  color: var(--c-gray-700);
  font-style: italic;
}

.week-card-meta {
  font-size: 12px;
  color: var(--c-gray-500);
}

.week-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}


/* ============================================================
   10. WORKOUT DISPLAY
   ============================================================ */

/* Week strip — three workouts at top of workout page */
.week-strip {
  background: var(--c-navy);
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
}

.week-strip-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gray-500);
  margin-bottom: var(--space-2);
}

.week-strip-list {
  display: flex;
  gap: var(--space-2);
}

.week-strip-item {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  transition: background 0.15s;
  min-width: 0;
}

.week-strip-item:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.week-strip-item--active { background: var(--c-blue) !important; border-color: var(--c-blue) !important; }

.week-strip-day {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}

.week-strip-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-strip-type {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

/* Workout header */
.workout-header {
  padding-top: var(--space-6);
  margin-bottom: var(--space-5);
}

.workout-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1;
  color: var(--c-navy);
  letter-spacing: 0.5px;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.workout-subtitle {
  font-size: 15px;
  color: var(--c-gray-700);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.workout-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.workout-meta-item {
  font-size: 13px;
  color: var(--c-gray-500);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.workout-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-gray-200);
}

/* Equipment callout */
.equipment-callout {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.equipment-callout-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.equipment-callout-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gray-500);
  margin-bottom: 4px;
}

.equipment-callout-text {
  font-size: 14px;
  color: var(--c-navy);
  line-height: 1.5;
}

.equipment-callout-link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--c-blue);
  font-weight: 500;
  text-decoration: none;
}

.equipment-callout-link:hover { text-decoration: underline; }

/* Exercise list */
.exercise-list {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.exercise-row {
  border-bottom: 0.5px solid var(--c-gray-200);
}

.exercise-row:last-child {
  border-bottom: none;
}

/* Exercise header — always visible */
.exercise-trigger {
  display: flex;
  /* align-items: flex-start, not center — with align-items: center, a long
     brand_name that wraps onto multiple lines on narrow screens vertically
     centers the sets/reps + "how?" badge against the WHOLE wrapped-text
     height, so it visually floats in the middle of the title instead of
     staying at the top. flex-start keeps it pinned to the first line
     regardless of how many lines the title wraps to. Single shared rule —
     fixes every page using this component (workout pages, Fine I'll
     Improvise, Personal Movement Menu) at once, not a per-page patch. */
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  gap: var(--space-3);
  transition: background 0.1s;
  font-family: var(--font-body);
}

.exercise-trigger:hover { background: var(--c-off-white); }

.exercise-left {
  flex: 1;
  min-width: 0;
}

.exercise-brand-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-navy);
  display: block;
  margin-bottom: 1px;
}

.exercise-real-name {
  font-size: 12px;
  color: var(--c-gray-500);
  display: block;
}

.exercise-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.exercise-sets {
  font-size: 13px;
  color: var(--c-gray-700);
  white-space: nowrap;
}

/* How? button */
.how-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-blue);
  background: var(--c-blue-light);
  border: 0.5px solid rgba(21, 87, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1.4;
}

.how-btn:hover { background: #d0e6f8; }

.how-btn--open {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}

/* Exercise detail — hidden until toggled */
.exercise-detail {
  display: none;
  background: var(--c-off-white);
  border-top: 0.5px solid var(--c-gray-200);
  padding: var(--space-4);
  gap: var(--space-4);
}

.exercise-detail--open {
  display: flex;
}

.exercise-illustration {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--c-gray-200);
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exercise-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-2);
}

.illustration-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gray-200);
}

.exercise-desc {
  flex: 1;
  min-width: 0;
}

.exercise-desc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: var(--space-2);
}

.exercise-desc-body {
  font-size: 13px;
  color: var(--c-gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.exercise-modification {
  display: inline-block;
  font-size: 12px;
  color: var(--c-green-dark);
  background: var(--c-green-light);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.exercise-close-btn {
  display: block;
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--c-gray-500);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  transition: color 0.15s;
}

.exercise-close-btn:hover { color: var(--c-navy); }

/* Counter and log section */
.log-section {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.counter-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--c-gray-200);
}

.counter-number {
  font-family: var(--font-display);
  font-size: 54px;
  color: var(--c-blue);
  line-height: 1;
  letter-spacing: 0.5px;
}

.counter-label {
  font-size: 14px;
  color: var(--c-gray-700);
  line-height: 1.5;
}

.counter-label strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 2px;
}

.log-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-gray-500);
  margin-bottom: var(--space-3);
}

/* The primary Fine. I did it. button */
.btn-did-it {
  display: block;
  width: 100%;
  background: var(--c-navy);
  color: var(--c-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-bottom: var(--space-2);
  transition: background 0.15s, transform 0.1s;
  text-align: center;
  line-height: 1.2;
}

.btn-did-it:hover { background: var(--c-navy-mid); }
.btn-did-it:active { transform: scale(0.99); }
.btn-did-it:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-did-it-period { color: var(--c-yellow); }

/* Already done state */
.already-done {
  background: var(--c-green-light);
  border: 0.5px solid var(--c-green-mid);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.already-done-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-green-dark);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.already-done-text {
  font-size: 14px;
  color: var(--c-green-dark);
  line-height: 1.5;
}

.already-done-text strong {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* Confirmation panel */
.confirm-panel {
  display: none;
  text-align: center;
  padding: var(--space-3) 0;
}

.confirm-panel--visible { display: block; }

.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-green-light);
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.confirm-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: var(--space-1);
}

.confirm-sub {
  font-size: 14px;
  color: var(--c-gray-700);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.confirm-count {
  display: inline-block;
  background: var(--c-green-light);
  color: var(--c-green-dark);
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.confirm-links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-size: 13px;
}

/* Login prompt */
.login-prompt {
  background: var(--c-blue-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--c-blue-dark);
  text-align: center;
}

.login-prompt a {
  color: var(--c-blue);
  font-weight: 600;
}

/* Proof prompt */
.proof-prompt {
  background: var(--c-amber-light);
  border: 0.5px solid var(--c-amber-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.proof-prompt-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #854F0B;
  margin-bottom: var(--space-1);
}

.proof-prompt-text {
  font-size: 15px;
  color: var(--c-amber-dark);
  font-style: italic;
  line-height: 1.5;
}

/* Activity feed */
.feed-section {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-3);
}

.feed-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-navy);
}

.feed-live {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  color: var(--c-gray-500);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green-border);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.feed-empty {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--c-gray-500);
  font-size: 14px;
  font-style: italic;
  border-top: 0.5px solid var(--c-gray-200);
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 0.5px solid var(--c-gray-200);
}

@keyframes feedSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-item--new {
  animation: feedSlideIn 0.3s ease;
  background: #f0f8ff;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-blue-light);
  color: var(--c-blue-dark);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.feed-avatar--anon {
  background: var(--c-gray-100);
  color: var(--c-gray-400);
}

.feed-content { flex: 1; min-width: 0; }

.feed-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 3px;
}

.feed-text {
  font-size: 14px;
  color: var(--c-gray-700);
  line-height: 1.5;
}

.feed-time {
  font-size: 11px;
  color: var(--c-gray-400);
  margin-top: 3px;
}

.feed-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 0.5px solid var(--c-gray-200);
  text-align: center;
}

.feed-more-link {
  font-size: 13px;
  color: var(--c-blue);
  font-weight: 500;
  text-decoration: none;
}

.feed-more-link:hover { text-decoration: underline; }

/* Equipment banner */
.equipment-banner {
  background: var(--c-navy);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.equipment-banner-icon { font-size: 32px; flex-shrink: 0; }

.equipment-banner-content { flex: 1; }

.equipment-banner-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 3px;
}

.equipment-banner-sub {
  font-size: 13px;
  color: var(--c-gray-500);
  line-height: 1.4;
}


/* ============================================================
   11. FREE MOVEMENT SECTION
   ============================================================ */
.movement-section { margin-bottom: var(--space-6); }

.movement-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-body);
}

.movement-toggle:hover { background: var(--c-off-white); }
.movement-toggle--open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.movement-toggle-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-navy);
  display: block;
  margin-bottom: 2px;
}

.movement-toggle-sub {
  font-size: 13px;
  color: var(--c-gray-500);
  font-style: italic;
}

.movement-toggle-arrow {
  color: var(--c-gray-500);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.movement-toggle--open .movement-toggle-arrow {
  transform: rotate(180deg);
}

.movement-form {
  display: none;
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding: var(--space-5);
}

.movement-form--open { display: block; }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.activity-chip {
  background: var(--c-off-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-1);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-gray-700);
  text-align: center;
  cursor: pointer;
  transition: all 0.1s;
  font-family: var(--font-body);
  line-height: 1.3;
}

.activity-chip:hover {
  background: var(--c-blue-light);
  border-color: rgba(21, 87, 255, 0.25);
  color: var(--c-blue-dark);
}

.activity-chip--selected {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}

.activity-chip-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.movement-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}


/* ============================================================
   12. HERO SECTION
   ============================================================ */
.hero {
  background: var(--c-navy);
  padding: var(--space-16) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(21,87,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 30%, rgba(246,200,47,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-5);
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero-logo-fine {
  font-family: var(--font-display);
  font-size: clamp(64px, 18vw, 100px);
  color: var(--c-blue);
  font-style: italic;
  line-height: 1;
  letter-spacing: -1px;
}

.hero-logo-period {
  color: var(--c-amber);
}

.hero-logo-banner {
  background: var(--c-navy);
  border: 2px solid rgba(255,255,255,0.1);
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
}

.hero-logo-rest {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  color: var(--c-white);
  letter-spacing: 0.03em;
  line-height: 1;
}

.hero-mascot {
  width: clamp(100px, 22vw, 140px);
  height: clamp(100px, 22vw, 140px);
}

.hero-tagline {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--c-gray-400);
  font-style: italic;
}

.hero-body {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--c-gray-400);
  line-height: 1.7;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 360px;
}

.hero-note {
  font-size: 12px;
  color: var(--c-gray-500);
}


/* ============================================================
   13. HOMEPAGE SECTIONS
   ============================================================ */

/* How It Works blocks */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.how-block {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.how-block-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-3);
}

.how-block-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: var(--space-2);
}

.how-block-body {
  font-size: 14px;
  color: var(--c-gray-700);
  line-height: 1.6;
}

/* Who it is for */
.for-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.for-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 0.5px solid var(--c-gray-200);
  background: var(--c-white);
}

.for-item:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.for-item:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); border-bottom: none; }

.for-item:nth-child(even) { background: var(--c-off-white); }

.for-item-check {
  color: var(--c-blue);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.for-item-text {
  font-size: 15px;
  color: var(--c-gray-900);
  line-height: 1.5;
}

/* Section headings */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-blue);
  margin-bottom: var(--space-2);
}

.section-heading {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.section-sub {
  font-size: 16px;
  color: var(--c-gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* Social proof feed entries */
.proof-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.proof-item {
  background: var(--c-white);
  border: 0.5px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: 15px;
  color: var(--c-gray-700);
  font-style: italic;
  line-height: 1.6;
  position: relative;
}

.proof-item-attr {
  display: block;
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--c-gray-400);
  font-style: normal;
  font-weight: 500;
}

/* Final CTA section */
.cta-section {
  background: var(--c-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  margin-bottom: var(--space-16);
}

.cta-section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 52px);
  color: var(--c-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.cta-section-title-period {
  color: var(--c-amber);
}

.cta-section-sub {
  font-size: 16px;
  color: var(--c-gray-400);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.cta-section-body {
  font-size: 15px;
  color: var(--c-gray-500);
  max-width: 460px;
  margin: 0 auto var(--space-6);
  line-height: 1.7;
}

.cta-btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.cta-note {
  font-size: 12px;
  color: var(--c-gray-500);
}


/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-navy);
  border-top: 0.5px solid rgba(255,255,255,0.06);
}

.site-footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--space-12) var(--space-5) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--c-white);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.footer-logo span { color: var(--c-amber); }

.footer-logo-fine { font-style: italic; color: var(--c-blue); }
.footer-logo-fine span { color: var(--c-amber); }
.footer-logo-rest { color: var(--c-white); }

.footer-tagline {
  font-size: 14px;
  color: var(--c-gray-400);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.footer-desc {
  font-size: 13px;
  color: var(--c-gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  color: var(--c-gray-500);
  transition: color 0.15s;
}

.footer-social-link:hover { color: var(--c-white); }

.footer-col-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gray-400);
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-link {
  font-size: 14px;
  color: var(--c-gray-500);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.3;
}

.footer-link:hover { color: var(--c-white); text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
}

.footer-copyright {
  font-size: 13px;
  color: var(--c-gray-500);
}

.footer-bottom-tagline {
  font-size: 13px;
  color: var(--c-gray-500);
  font-style: italic;
}


/* ============================================================
   15. UTILITIES AND HELPERS
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.divider {
  height: 0.5px;
  background: var(--c-gray-200);
  margin: var(--space-6) 0;
}

.week-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}


/* ============================================================
   16. RESPONSIVE — MOBILE BREAKPOINTS
   ============================================================ */

/* Tablet — 768px */
@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .week-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .hero { padding: var(--space-12) var(--space-4); }
}

/* Mobile — 560px */
@media (max-width: 560px) {

  :root { --nav-height: 56px; }

  /* Hide desktop nav, show hamburger */
  .site-nav { display: none; }
  .nav-hamburger { display: flex; }

  .site-logo .logo-rest { display: none; }
  .site-logo .logo-fine { font-size: 28px; }

  .hero-cta { max-width: 100%; }

  .counter-number { font-size: 44px; }

  .workout-meta { gap: var(--space-2); }

  .movement-details-row { grid-template-columns: 1fr; }

  .btn-row { grid-template-columns: 1fr; }

  .activity-grid { grid-template-columns: repeat(3, 1fr); }

  .equipment-banner { flex-direction: column; text-align: center; }

  .week-strip-list { flex-direction: column; gap: var(--space-2); }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .cta-btn-row { flex-direction: column; align-items: center; }

  .week-cards-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   17. LIVE-SITE VISUAL REFRESH
   Matches the clean white / deep blue / yellow visual language
   while preserving the existing ColdFusion components.
   ============================================================ */
html { scroll-padding-top: 128px; }

body.fltd-body {
  background: var(--c-white);
  color: var(--c-gray-700);
  font-size: 18px;
}

body.fltd-body p {
  color: var(--c-gray-700);
  line-height: 1.62;
}

.site-header {
  height: 112px;
  background: rgba(255,255,255,.98);
  border-bottom: 0;
  box-shadow: 0 5px 20px rgba(6,26,60,.04);
}

.site-header-inner {
  max-width: none;
  height: 100%;
  padding: 11px 25px 19px;
  display: grid;
  grid-template-columns: 200px minmax(420px, 1fr) auto;
  gap: 28px;
}

.site-logo {
  width: 150px;
  height: auto;
  overflow: visible;
  display: block;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transform: none;
}

.site-nav { justify-self: center; }

.nav-list { gap: clamp(24px, 3.6vw, 55px); }

.nav-link {
  padding: 12px 0;
  color: var(--c-navy);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link--active {
  color: var(--c-blue-dark);
  border-bottom-color: var(--c-yellow);
  text-decoration: none;
}

.nav-link--cta {
  background: transparent !important;
  color: var(--c-navy) !important;
  border-radius: 0;
  padding-inline: 0;
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible,
.nav-link--cta.nav-link--active {
  background: transparent !important;
  color: var(--c-blue-dark) !important;
}

.nav-dropdown {
  top: calc(100% + 14px);
  width: 330px;
  padding: 10px;
  border: 1px solid var(--c-gray-200);
  border-radius: 16px;
  background: var(--c-white);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown-link { border-radius: 10px; }
.nav-dropdown-link:hover { background: var(--c-blue-light); }
.nav-dropdown-link--highlight { background: #FFF8D7; }

.site-account {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
  white-space: nowrap;
}

.account-login,
.account-signup {
  font: 700 18px var(--font-body);
  text-decoration: none;
}

.account-login {
  border: 0;
  background: none;
  color: var(--c-navy);
}

.account-icon { color: #154D3D; font-size: 23px; }
.account-icon { display: inline-flex; align-items: center; margin-right: 5px; vertical-align: -4px; }

.account-signup {
  border: 1px solid var(--c-navy);
  border-radius: var(--radius-full);
  background: var(--c-yellow);
  color: var(--c-navy);
  padding: 11px 29px;
}

.account-login:hover,
.account-signup:hover { text-decoration: none; transform: translateY(-1px); }

.site-main { padding: 0; }

.hero {
  min-height: 630px;
  padding: 65px 20px 70px;
  background: var(--c-white);
  color: var(--c-gray-700);
  text-align: left;
}

.hero::before,
.hero::after { display: none; }

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  grid-template-areas:
    "heading mascot"
    "tagline mascot"
    "body mascot"
    "cta mascot"
    "note mascot";
  align-items: center;
  column-gap: 72px;
}

.hero-heading {
  grid-area: heading;
  color: var(--c-blue-dark);
  font-family: var(--font-display);
  font-size: clamp(64px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
  margin: 0 0 25px;
}

.hero-heading-period { color: var(--c-blue-dark); }

.hero-mascot {
  grid-area: mascot;
  width: 100%;
  height: auto;
  max-width: 510px;
  margin: 0 auto;
  align-self: start;
  transform: translateY(-18px);
}

.hero-mascot img { display: block; width: 100%; height: auto; }

.hero-tagline {
  grid-area: tagline;
  color: var(--c-blue-dark) !important;
  font-size: 22px !important;
  font-weight: 800;
  font-style: normal;
  margin-bottom: 14px;
}

.hero-body {
  grid-area: body;
  max-width: 570px;
  margin: 0;
  color: var(--c-gray-700) !important;
  font-size: 20px !important;
  line-height: 1.55 !important;
}

.hero-cta {
  grid-area: cta;
  max-width: 560px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 28px;
}

.hero-cta .btn {
  width: auto;
  min-height: 53px;
  border-radius: var(--radius-full);
  padding: 12px 25px;
}

.hero-cta .btn--blue {
  background: var(--c-yellow);
  border-color: var(--c-navy);
  color: var(--c-navy);
}

.hero-cta .btn--ghost-white {
  background: var(--c-white);
  border: 1px solid var(--c-navy);
  color: var(--c-navy);
}

.hero-note {
  grid-area: note;
  color: var(--c-gray-500) !important;
  font-size: 12px !important;
  margin-top: 15px;
  text-align: left;
}

.page-container {
  max-width: none;
  padding: 0;
}

.section--lg {
  padding: 95px max(20px, calc((100vw - 1140px) / 2));
  margin: 0;
}

.section-label {
  color: var(--c-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.section-heading {
  max-width: 980px;
  color: var(--c-blue-dark);
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 900;
  margin-bottom: 30px;
}

.section-sub {
  max-width: 780px;
  color: var(--c-gray-700);
  font-size: 19px;
  margin-bottom: 38px;
}

.home-how {
  background: var(--c-blue-dark);
  color: var(--c-white);
}

.home-how .section-label { color: var(--c-yellow); }
.home-how .section-heading { color: var(--c-white); }

.how-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.how-block {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.how-block-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-blue-dark);
  font-size: 23px;
  margin-bottom: 18px;
}

.how-block-title {
  color: var(--c-white);
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 10px;
}

.how-block-body {
  color: rgba(255,255,255,.82) !important;
  font-size: 16px !important;
}

.home-for { background: var(--c-white); }

.for-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
}

.for-item {
  min-height: 175px;
  gap: 26px;
  padding: 20px 32px 38px 0;
  border-bottom: 1px dotted #D5D7DC;
  align-items: flex-start;
}

.for-item-check {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--c-yellow);
  color: #164C49;
  font-size: 22px;
}

.for-item-text {
  color: var(--c-gray-700);
  font-size: 17px;
  line-height: 1.55;
}

.home-try {
  background: var(--c-blue-dark);
}

.home-try > .section-label { color: var(--c-yellow); }
.home-try > .section-heading { color: var(--c-white); }
.home-try > .section-sub { color: rgba(255,255,255,.8); }

.workout-card-shell {
  padding: 48px 58px;
  border-radius: 20px;
  background: var(--c-white);
  color: var(--c-gray-700);
}

.workout-header {
  padding: 0 0 25px;
  border-bottom: 0;
  text-align: left;
}

.workout-title {
  color: var(--c-blue-dark);
  font-family: var(--font-body);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  font-weight: 900;
}

.workout-subtitle {
  color: var(--c-gray-700) !important;
  font-size: 18px !important;
}

.workout-meta { color: var(--c-gray-700); }
.workout-meta-dot { background: var(--c-yellow); }

.equipment-callout {
  background: #FFF9DA;
  border-color: #F5DF73;
  border-radius: 14px;
}

.exercise-list { gap: 12px; }

.exercise-row {
  border: 1px solid #DEE0E5;
  border-radius: 14px;
  background: var(--c-white);
  box-shadow: 0 7px 18px rgba(6,26,60,.055);
  overflow: hidden;
}

.exercise-trigger { padding: 15px 14px; }

.exercise-brand-name {
  color: var(--c-gray-900);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.exercise-real-name {
  color: var(--c-gray-700);
  font-size: 14px;
}

.exercise-sets {
  color: var(--c-gray-900);
  font-size: 18px;
  font-weight: 900;
}

.how-btn {
  min-width: 66px;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  background: var(--c-blue-dark);
  color: var(--c-white);
  text-transform: none;
  text-align: center;
}

.how-btn--open {
  background: var(--c-yellow);
  color: var(--c-navy);
}

.exercise-detail {
  grid-template-columns: 150px 1fr;
  background: var(--c-blue-light);
  border-top: 0;
}

.exercise-detail--open {
  max-height: 520px;
  padding: 24px;
  border-top: 1px solid #D6DFF0;
}

.exercise-close-btn {
  color: var(--c-blue-dark);
  font-weight: 800;
}

.log-section {
  max-width: 760px;
  margin: 35px auto 0;
  padding: 20px;
  border: 1px solid #CDD7EC;
  border-radius: 16px;
  background: var(--c-blue-light);
}

.btn-did-it {
  border-radius: 8px;
  background: var(--c-blue-dark);
  color: var(--c-white);
}

.btn-did-it:hover { background: var(--c-blue-mid); }

.report-row .form-input,
.form-input {
  border-radius: 9px;
  border-color: #D8DAE0;
  background: var(--c-white);
}

.proof-prompt,
.feed-section {
  border-radius: 16px;
}

.home-proof { background: var(--c-white); }

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.proof-item {
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--c-gray-200);
  border-radius: 18px;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  color: var(--c-gray-900);
  font-size: 17px;
  font-weight: 700;
  font-style: normal;
}

.proof-item:nth-child(3) { background: var(--c-yellow); }

.proof-item-attr {
  color: var(--c-blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.cta-section {
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 85px max(20px, calc((100vw - 1140px) / 2));
  border-radius: 0;
  background: var(--c-blue-dark);
}

.cta-section-title {
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.cta-section-title-period { color: var(--c-yellow); }
.cta-section-sub { color: var(--c-white) !important; font-size: 24px !important; font-style: normal; font-weight: 800; }
.cta-section-body { max-width: 720px; color: rgba(255,255,255,.8) !important; font-size: 17px !important; }
.cta-section .btn { border-radius: var(--radius-full); }
.cta-section .btn--blue { background: var(--c-yellow); border-color: var(--c-navy); color: var(--c-navy); }
.cta-note { color: rgba(255,255,255,.65) !important; }

.site-footer {
  background: var(--c-white);
  border-top: 1px solid var(--c-gray-200);
}

.site-footer-inner { padding-top: 62px; }

.footer-grid { border-color: var(--c-gray-200); }

.footer-logo {
  color: var(--c-blue-dark);
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 900;
}

.footer-mascot {
  width: 150px;
  margin-bottom: 22px;
}

.footer-logo-fine { color: var(--c-blue); }
.footer-logo-rest { color: var(--c-blue-dark); }
.footer-tagline { color: var(--c-gray-700) !important; }
.footer-desc { color: var(--c-gray-500) !important; }
.footer-social-link { color: var(--c-blue-dark); }
.footer-social-link:hover { color: var(--c-blue); }
.footer-col-heading { color: var(--c-blue-dark); font-size: 16px; text-transform: none; letter-spacing: 0; }
.footer-link { color: var(--c-gray-700); }
.footer-link:hover { color: var(--c-blue); }
.footer-copyright,.footer-bottom-tagline { color: var(--c-gray-500); }

/* Account modal */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3,13,30,.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.auth-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* No-JavaScript fallback: account links target the requested panel. */
body:has(#auth-login-panel:target) .auth-modal-backdrop,
body:has(#auth-signup-panel:target) .auth-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

body:has(#auth-signup-panel:target) #auth-login-panel { display: none; }
body:has(#auth-signup-panel:target) #auth-signup-panel { display: block; }
body:has(#auth-signup-panel:target) #auth-login-tab {
  border-color: transparent;
  background: transparent;
  color: var(--c-gray-700);
}
body:has(#auth-signup-panel:target) #auth-signup-tab {
  border-color: var(--c-blue-dark);
  background: var(--c-white);
  color: var(--c-blue-dark);
}

.auth-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 38px 55px 45px;
  border-radius: 18px;
  background: var(--c-white);
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
}

.auth-modal-close {
  position: absolute;
  top: 9px;
  right: 18px;
  color: var(--c-gray-700);
  font-size: 34px;
  line-height: 1;
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  padding: 0;
  border-radius: var(--radius-full);
  background: #F1F1F1;
}

.auth-tab {
  display: block;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--c-gray-700);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.auth-tab:hover { text-decoration: none; }

.auth-tab.is-active {
  border-color: var(--c-blue-dark);
  background: var(--c-white);
  color: var(--c-blue-dark);
}

.auth-modal-heading {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.auth-modal-heading img { width: 78px; }
.auth-modal-heading h2 { color: var(--c-blue-dark); font-size: 36px; font-weight: 900; }
.auth-modal-heading p { font-size: 15px; }
.auth-form label { display: block; color: var(--c-gray-900); font-size: 14px; font-weight: 600; margin: 14px 0 7px; }
.auth-form > input,
.auth-handle-field { width: 100%; min-height: 55px; border: 0; border-radius: 8px; background: #F3F3F3; }
.auth-form > input { padding: 0 18px; }
.auth-form input:focus { outline: 3px solid rgba(7,90,246,.16); }
.auth-form input[aria-invalid="true"] {
  outline: 3px solid rgba(180,35,35,.2);
  box-shadow: inset 0 0 0 1px #B42323;
}
.auth-handle-field { display: grid; grid-template-columns: 40px 1fr; align-items: center; }
.auth-handle-field span { text-align: right; color: var(--c-gray-700); font-weight: 900; }
.auth-handle-field input { height: 55px; border: 0; background: transparent; padding: 0 18px 0 5px; }
.auth-form-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 15px 0; }
.auth-form-options label { display: flex; align-items: center; gap: 7px; margin: 0; }
.auth-form-options input { width: auto; }
.auth-form-options a { color: var(--c-gray-700); font-size: 13px; }
.auth-turnstile { display: flex; justify-content: center; margin: 16px 0; min-height: 65px; }

/* Password show/hide toggle. .auth-password-field wraps each password
   input, which means those inputs are no longer direct children of
   .auth-form -- so the ".auth-form > input" base styling above no
   longer reaches them. Replicated explicitly here (same width/height/
   background/border-radius), with extra right padding so typed text
   never runs under the toggle button. */
.auth-password-field { position: relative; }
.auth-password-field input {
  width: 100%; min-height: 55px; border: 0; border-radius: 8px;
  background: #F3F3F3; padding: 0 48px 0 18px;
}
.auth-password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 6px;
  color: var(--c-gray-700); cursor: pointer;
}
.auth-password-toggle:hover { background: rgba(0,0,0,.06); color: var(--c-gray-900); }
.auth-password-toggle:focus-visible { outline: 3px solid rgba(7,90,246,.16); }
.auth-submit { width: 100%; padding: 13px; border-radius: var(--radius-full); background: var(--c-yellow); color: #111; font-size: 17px; font-weight: 900; }
.auth-fine-print { margin-top: 12px; text-align: center; font-size: 11px !important; }
.auth-form-status { min-height: 20px; margin-top: 10px; color: var(--c-gray-700); font-size: 13px; text-align: center; }
.auth-form-status.auth-form-status--error { color: #9F1D1D; font-weight: 700; }
.auth-form-status.auth-form-status--success { color: #146B43; font-weight: 700; }

.site-notice {
  position: relative;
  z-index: 20;
  padding: 12px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.site-notice--success {
  color: #0B5033;
  background: #DDF7EA;
  border-bottom: 1px solid #A9DFC6;
}
.auth-panel[hidden] { display: none; }
.mobile-nav-link--signup { margin-top: 8px; border-radius: var(--radius-full); background: var(--c-yellow); color: var(--c-navy); text-align: center; }

/* Interaction, feedback, and remaining utility styles */
.header-scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 3px;
}

button.is-loading,
.btn.is-loading,
.auth-submit.is-loading {
  position: relative;
  cursor: wait;
  color: transparent !important;
}

button.is-loading > *,
.btn.is-loading > *,
.auth-submit.is-loading > * { visibility: hidden; }

button.is-loading::after,
.btn.is-loading::after,
.auth-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255,255,255,.5);
  border-top-color: currentColor;
  border-radius: 50%;
  color: var(--c-blue);
  animation: fltd-spin .75s linear infinite;
}

@keyframes fltd-spin { to { transform: rotate(360deg); } }

.log-error {
  padding: 10px 14px;
  border: 1px solid #E6C86C;
  border-radius: 8px;
  background: #FAEEDA;
  color: #633806;
}

.confirm-link { color: var(--c-navy); }
.confirm-link--primary { color: var(--c-blue); font-weight: 700; }
.workout-plan-link { text-align: center; }
.no-workout-card__body { padding: var(--space-10); text-align: center; }
.no-workout-card__icon { margin-bottom: var(--space-3); font-size: 40px; }
.no-workout-card__copy { margin-bottom: var(--space-5); color: var(--c-gray-700); }
.no-workout-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

@media (max-width: 920px) {
  .site-header-inner { grid-template-columns: 145px 1fr auto; }
  .site-nav { display: none; }
  .nav-hamburger { display: flex; grid-column: 3; grid-row: 1; justify-self: end; }
  .site-account { grid-column: 2; grid-row: 1; justify-self: end; }
}

@media (max-width: 1040px) {
  .site-header-inner { grid-template-columns: 160px 1fr auto; }
  .nav-list { gap: 22px; }
  .nav-link { font-size: 16px; }
  .site-account { gap: 10px; }
  .account-login { font-size: 16px; }
  .account-signup { padding: 10px 18px; font-size: 15px; }
  .hero-inner { column-gap: 35px; }
}

@media (max-width: 820px) {
  :root { --nav-height: 82px; }
  .site-header { height: 82px; }
  .site-header-inner { grid-template-columns: 130px 1fr auto; padding: 6px 18px 10px; }
  .site-logo { width: 120px; height: auto; }
  .site-logo img { width: 100%; }
  .site-nav { display: none; }
  .nav-hamburger { display: flex; justify-self: end; }
  .site-account { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-hamburger { grid-column: 3; grid-row: 1; }
  .site-account { gap: 8px; }
  .account-login { display: inline-flex; align-items: center; font-size: 14px; }
  .hero { padding-top: 45px; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "mascot" "tagline" "body" "cta" "note";
    text-align: center;
  }
  .hero-heading { width: 100%; text-align: left; justify-self: start; }
  .hero-mascot { max-width: 300px; margin-top: 4px; margin-bottom: 24px; }
  .hero-mascot { transform: none; }
  .hero-body,.hero-note { margin-inline: auto; text-align: center; }
  .hero-cta { justify-content: center; margin-inline: auto; }
  .how-grid { grid-template-columns: 1fr; }
  .for-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proof-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workout-card-shell { padding: 35px 28px; }
}

@media (max-width: 560px) {
  body.fltd-body { font-size: 16px; }
  .site-header-inner { grid-template-columns: 112px 1fr auto; padding-inline: 12px; }
  .site-logo { width: 105px; }
  .site-logo img { width: 100%; }
  .account-signup { padding: 8px 13px; font-size: 13px; }
  .account-login { font-size: 13px; }
  .hero { min-height: auto; padding: 38px 16px 52px; }
  .hero-heading { font-size: 56px; }
  .hero-mascot { max-width: 260px; margin-bottom: 18px; }
  .hero-tagline { font-size: 19px !important; }
  .hero-body { font-size: 17px !important; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .section--lg { padding-block: 68px; }
  .section-heading { font-size: 40px; }
  .for-list,.proof-list { grid-template-columns: 1fr; }
  .for-item { min-height: auto; padding-right: 0; }
  .workout-card-shell { padding: 25px 14px; border-radius: 14px; }
  .exercise-trigger { gap: 9px; padding: 13px 10px; flex-wrap: wrap; }
  /* flex: 1 1 100% forces the title to claim the FULL row width on its
     own line at this breakpoint, rather than sharing horizontal space
     with the sets/reps + how? button. Without this, a long reps string
     (e.g. "3 x 10 each surface or as able") — which stays on one line
     via white-space: nowrap below — refuses to shrink, so exercise-left
     (the only side allowed to shrink) gets squeezed down to almost
     nothing, wrapping the title one word per line. Forcing the title
     onto its own full-width line first, with the reps/how? button
     wrapping to a second line beneath it (via flex-wrap: wrap above),
     gives both sides real room regardless of how long either one is. */
  .exercise-left { flex: 1 1 100%; }
  .exercise-right { gap: 7px; margin-top: 2px; }
  .exercise-sets { font-size: 14px; }
  .how-btn { min-width: 54px; padding: 7px 10px; }
  .exercise-detail { grid-template-columns: 1fr; }
  .exercise-detail--open { padding: 18px; }
  .report-row { grid-template-columns: 1fr; }
  .auth-modal { padding: 38px 20px 28px; }
  .auth-modal-heading { grid-template-columns: 55px 1fr; gap: 12px; }
  .auth-modal-heading img { width: 55px; }
  .auth-modal-heading h2 { font-size: 27px; }
  .auth-form-options { align-items: flex-start; }
}

/* ============================================================
   SHARED INTERIOR-PAGE HERO
   Use on About and future interior pages.
   ============================================================ */
.interior-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(64px, 8vw, 96px) 24px;
  border-bottom: 6px solid var(--c-yellow);
  background: linear-gradient(135deg, var(--c-navy) 0%, #0D2C5E 62%, var(--c-blue-dark) 100%);
  color: var(--c-white);
  text-align: center;
}

.interior-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -250px;
  right: -175px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255,255,255,.055);
  border-radius: 50%;
  pointer-events: none;
}

.interior-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -55px;
  left: -18px;
  width: 190px;
  height: 175px;
  background-image: radial-gradient(rgba(246,200,47,.32) 2px, transparent 2px);
  background-size: 22px 22px;
  pointer-events: none;
}

.interior-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.interior-hero .interior-hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  padding: 7px 16px;
  border: 1px solid rgba(246,200,47,.58);
  border-radius: var(--radius-full);
  background: rgba(246,200,47,.1);
  color: var(--c-yellow);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.interior-hero .interior-hero-title {
  margin: 0 0 22px;
  color: var(--c-white);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.interior-hero .interior-hero-sub {
  max-width: 720px;
  margin: 0 auto;
  color: var(--c-white);
  font-size: clamp(20px, 2.7vw, 25px);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .interior-hero {
    min-height: 300px;
    padding: 58px 18px 62px;
  }

  .interior-hero::before {
    right: -245px;
  }

  .interior-hero .interior-hero-label {
    font-size: 17px;
  }

  .interior-hero .interior-hero-sub {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   ADD TO HOME SCREEN / INSTALL — badge-style buttons, shown on
   the homepage (larger) and in the mobile nav drawer (compact).
   Visibility of each badge (Android/Chrome "Install" vs iOS
   "Add to Home Screen" vs neither) is decided entirely by
   nav.js at runtime — both start [hidden] in markup.
   ============================================================ */
.pwa-install-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pwa-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--c-navy);
  color: var(--c-white);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.pwa-badge:hover { background: var(--c-navy-mid); }
.pwa-badge i { flex: 0 0 auto; font-size: 20px; color: var(--c-yellow); }
.pwa-badge span { display: block; font-size: 12px; font-weight: 600; color: var(--c-gray-200); line-height: 1.3; }
.pwa-badge strong { display: block; font-size: 15px; font-weight: 900; color: var(--c-white); }

/* Add to Home Screen / Install lives only in the mobile nav drawer
   (see layout.cfm) — not on the public homepage, since an anonymous
   first-time visitor has no reason yet to want it installed. */

/* Mobile nav drawer — compact, stacked, full width */
.pwa-install-row--compact {
  margin: 10px 20px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--c-gray-200);
}
.pwa-install-label {
  margin: 0 0 10px;
  color: var(--c-gray-600);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pwa-install-row--compact .pwa-badge { width: 100%; padding: 11px 16px; }
.pwa-install-row--compact .pwa-badge strong { font-size: 14px; }
.pwa-install-row--compact .pwa-badge span { font-size: 11px; }

/* iOS "Add to Home Screen" has no programmatic trigger — clicking the
   badge reveals this inline instruction instead of doing anything itself. */
.pwa-ios-instructions {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--c-blue-light);
  color: var(--c-blue-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.pwa-ios-instructions[hidden] { display: none; }

/* ============================================================
   ACCOUNT SHELL — shared by all four pages under /move/history/
   (Overview, Membership & Billing, Circles, History). Sidebar on
   desktop, 2x2 grid on mobile (all four links visible without
   scrolling). New account
   sections should follow this same shell rather than growing any
   one page — add a subfolder + a new .account-nav-link, not more
   content on an existing page.
   ============================================================ */
.account-page {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 0 80px;
}

.account-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--c-gray-700);
  font-size: 15px;
  font-weight: 800;
}
.account-nav-link:hover { background: var(--c-gray-100); color: var(--c-blue-dark); text-decoration: none; }
.account-nav-link i { width: 18px; text-align: center; color: var(--c-gray-500); }
.account-nav-link--active { background: var(--c-blue-light); color: var(--c-blue-dark); }
.account-nav-link--active i { color: var(--c-blue); }

.account-main { min-width: 0; }

@media (max-width: 820px) {
  .account-page { padding-top: 34px; }
  .account-shell { grid-template-columns: 1fr; gap: 22px; }
  .account-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-gray-200);
  }
  .account-nav-link { justify-content: center; white-space: nowrap; padding: 11px 10px; }
}

/* Shared empty-state block — used by both the Circles and History
   account pages when there's nothing to show yet. */
.account-empty {
  padding: 54px 24px;
  border: 1px dashed var(--c-gray-300);
  border-radius: 16px;
  background: var(--c-off-white);
  text-align: center;
}
.account-empty > i { margin-bottom: 18px; color: var(--c-blue); font-size: 34px; }
.account-empty h3 { margin: 0 0 8px; color: var(--c-blue-dark); font-size: 22px; }
.account-empty p { margin: 0 auto 22px; color: var(--c-gray-600); font-size: 16px; }

/* Circle cards — used on both the Circles account page (full grid)
   and the Overview page (a short preview slice of the same grid). */
.circle-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.circle-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--c-gray-200);
  border-left: 3px solid var(--c-yellow);
  border-radius: 14px;
  background: var(--c-white);
}
.circle-card:hover { border-left-color: var(--c-blue); }
.circle-card h3 { margin: 0 0 10px; color: var(--c-blue-dark); font-size: 19px; }
.circle-card-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.circle-card-stats span { color: var(--c-gray-600); font-size: 13px; font-weight: 700; }
.circle-card-stats strong { color: var(--c-blue); font-size: 13px; font-weight: 900; text-align: right; }

/* Membership status pill — used on both Overview (compact snapshot)
   and the Membership & Billing page (full detail). */
.membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.membership-badge--free { background: var(--c-gray-100); color: var(--c-gray-700); }
.membership-badge--club { background: var(--c-yellow); color: var(--c-blue-dark); }
