@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Wellness Solutions Kenya — Premium Design System
   Brand: Blue #2563EB · Olive Green #A6A84A
   Font: Montserrat
   Scale: 8px base spacing
   ============================================================ */

/* === 1. TOKENS === */

:root {
  /* --- Colour: Primary (blue-600) --- */
  --color-primary:       #2563EB;
  --color-primary-dark:  #1D4ED8;
  --color-primary-light: #3B82F6;

  /* --- Colour: Accent (brand olive — kept for dark hero sections) --- */
  --color-accent:        #A6A84A;
  --color-accent-dark:   #7D7E38;

  /* --- Colour: Dark Backgrounds --- */
  --color-dark-bg:       #0f172a;
  --color-dark-bg-2:     #1e293b;

  /* --- Colour: Ink / Text --- */
  --color-ink:           #0f172a;
  --color-ink-2:         #334155;
  --color-ink-3:         #64748b;

  /* --- Colour: Surfaces --- */
  --color-surface:       #FFFFFF;
  --color-surface-2:     #f8fafc;
  --color-surface-3:     #f1f5f9;

  /* --- Colour: Borders --- */
  --color-border:        rgba(37, 99, 235, 0.12);
  --color-border-strong: rgba(37, 99, 235, 0.22);

  /* --- Colour: Semantic status --- */
  --color-success:     #15803d;
  --color-success-bg:  rgba(21, 128, 61, 0.08);
  --color-warning:     #d97706;
  --color-warning-bg:  rgba(217, 119, 6, 0.08);
  --color-danger:      #b91c1c;
  --color-danger-bg:   rgba(185, 28, 28, 0.08);
  --color-info:        var(--color-primary);
  --color-info-bg:     rgba(37, 99, 235, 0.08);

  /* --- Z-index scale --- */
  --z-header:   40;
  --z-dropdown: 45;
  --z-overlay:  50;
  --z-modal:    55;
  --z-toast:    60;

  /* --- Colour: Legacy aliases (backward compat) --- */
  --color-semantic-kept: 1; /* marker — actual aliases below */

  /* --- Colour: Semantic (kept for backward compatibility) --- */
  --ink:       var(--color-ink);
  --ink-soft:  var(--color-ink-2);
  --accent:    var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --sage:      var(--color-accent);
  --card:      var(--color-surface);
  --border:    var(--color-border);
  --sand:      var(--color-surface-2);
  --stone:     var(--color-surface-3);

  /* --- Typography --- */
  --font-sans:    'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  clamp(3rem, 7vw, 4.5rem);
  --text-7xl:  clamp(3.5rem, 9vw, 5.5rem);

  /* --- Spacing (8px base) --- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* --- Radii --- */
  --radius-sm:   0.25rem;
  --radius:      0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(10, 10, 35, 0.06), 0 1px 2px rgba(10, 10, 35, 0.04);
  --shadow:    0 4px 12px rgba(10, 10, 35, 0.08), 0 2px 4px rgba(10, 10, 35, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 10, 35, 0.10), 0 4px 8px rgba(10, 10, 35, 0.06);
  --shadow-lg: 0 20px 48px rgba(10, 10, 35, 0.12), 0 8px 16px rgba(10, 10, 35, 0.06);
  --shadow-xl: 0 32px 72px rgba(10, 10, 35, 0.16), 0 12px 24px rgba(10, 10, 35, 0.08);

  /* --- Legacy shadow aliases --- */
  --shadow-ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
  --ring:        2px solid rgba(37, 99, 235, 0.35);

  /* --- Breakpoints (reference only — use media queries) --- */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-pad: var(--sp-5);
}

/* --- Dark mode token overrides --- */
:root[data-theme="dark"] {
  /* Primary: blue-400 — visible on dark bg, passes WCAG AA on #1e293b */
  --color-primary:       #60A5FA;
  --color-primary-dark:  #3B82F6;
  --color-primary-light: #93C5FD;

  /* Accent: slightly brighter olive for dark surfaces */
  --color-accent:        #BEC05A;
  --color-accent-dark:   #A6A84A;

  /* Text: slate scale — high contrast, easy on eyes */
  --color-ink:           #f1f5f9;
  --color-ink-2:         #cbd5e1;
  --color-ink-3:         #94a3b8;

  /* Surfaces: slate-900 / slate-800 / slate-700 */
  --color-surface:       #0f172a;
  --color-surface-2:     #1e293b;
  --color-surface-3:     #334155;

  /* Borders: slate-tinted, subtle */
  --color-border:        rgba(148, 163, 184, 0.15);
  --color-border-strong: rgba(148, 163, 184, 0.28);

  /* Dark section backgrounds */
  --color-dark-bg:       #0f172a;
  --color-dark-bg-2:     #1e293b;

  /* Semantic status — slightly brighter for dark bg legibility */
  --color-success:     #22c55e;
  --color-success-bg:  rgba(34, 197, 94, 0.10);
  --color-warning:     #fbbf24;
  --color-warning-bg:  rgba(251, 191, 36, 0.10);
  --color-danger:      #f87171;
  --color-danger-bg:   rgba(248, 113, 113, 0.10);
  --color-info:        var(--color-primary);
  --color-info-bg:     rgba(96, 165, 250, 0.12);

  /* Shadows — softer on dark bg */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.30), 0 1px 2px rgba(0, 0, 0, 0.20);
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40), 0 4px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45), 0 8px 16px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 32px 72px rgba(0, 0, 0, 0.50), 0 12px 24px rgba(0, 0, 0, 0.30);
  --shadow-ring: 0 0 0 3px rgba(96, 165, 250, 0.25);
  --ring:        2px solid rgba(96, 165, 250, 0.45);

  /* Legacy aliases */
  --ink:       var(--color-ink);
  --ink-soft:  var(--color-ink-2);
  --accent:    var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --sage:      var(--color-accent);
  --card:      var(--color-surface);
  --border:    var(--color-border);
  --sand:      var(--color-surface-2);
  --stone:     var(--color-surface-3);
}

/* --- Dark mode component overrides --- */

/* Header: slate-900 glass instead of white glass */
:root[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

/* Nav hover: blue tint on dark surface */
:root[data-theme="dark"] .site-nav a:not(.nav-cta):hover,
:root[data-theme="dark"] .site-nav a:not(.nav-cta):focus-visible {
  background: rgba(96, 165, 250, 0.10);
}
:root[data-theme="dark"] .text-button:hover {
  background: rgba(96, 165, 250, 0.10);
}
:root[data-theme="dark"] .dash-nav-link:hover,
:root[data-theme="dark"] .dash-nav-link:focus-visible {
  background: rgba(96, 165, 250, 0.10);
}
:root[data-theme="dark"] .dash-nav-link.is-active {
  background: rgba(96, 165, 250, 0.15);
}

/* Form inputs: slate surfaces */
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .search-form input[type="text"],
:root[data-theme="dark"] .onboarding-input {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}
:root[data-theme="dark"] .form-field input::placeholder,
:root[data-theme="dark"] .form-field textarea::placeholder,
:root[data-theme="dark"] .onboarding-input::placeholder {
  color: #64748b;
}
:root[data-theme="dark"] .form-field input:focus,
:root[data-theme="dark"] .form-field select:focus,
:root[data-theme="dark"] .form-field textarea:focus,
:root[data-theme="dark"] .search-form input[type="text"]:focus,
:root[data-theme="dark"] .onboarding-input:focus {
  border-color: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.20);
}

/* Cards: slate-800 surface */
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .package-card,
:root[data-theme="dark"] .data-item,
:root[data-theme="dark"] .form-panel,
:root[data-theme="dark"] .side-panel,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .tier-card,
:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .media-card,
:root[data-theme="dark"] .start-result,
:root[data-theme="dark"] .onboarding-card,
:root[data-theme="dark"] .onboarding-progress {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .onboarding-panel,
:root[data-theme="dark"] .onboarding-consent-panel,
:root[data-theme="dark"] .start-result-card {
  background: #334155;
  border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .onboarding-input,
:root[data-theme="dark"] .onboarding-choice-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
}

/* Choice cards selected state */
:root[data-theme="dark"] .onboarding-choice-card:has(input:checked) {
  border-color: #60A5FA;
  background: rgba(96, 165, 250, 0.10);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

/* Onboarding check grid buttons */
:root[data-theme="dark"] .onboarding-check-grid button {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

/* Start-choice (questionnaire) */
:root[data-theme="dark"] .start-choice {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}
:root[data-theme="dark"] .start-choice:hover {
  background: #334155;
}

/* Featured card ring */
:root[data-theme="dark"] .info-card-featured,
:root[data-theme="dark"] .tier-card--featured {
  border-color: #60A5FA;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.15), var(--shadow-md);
}

/* Promo modal */
:root[data-theme="dark"] .promo-modal {
  background: #1e293b;
}

/* UI table rows */
:root[data-theme="dark"] .ui-table th,
:root[data-theme="dark"] .ui-table td {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

/* Toast */
:root[data-theme="dark"] .toast {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}

/* Code inline */
:root[data-theme="dark"] .ui-code {
  background: rgba(96, 165, 250, 0.10);
  color: #93C5FD;
}

/* Flash messages */
:root[data-theme="dark"] .flash-message {
  background: #1e293b;
}

/* Booking filter chips */
:root[data-theme="dark"] .booking-filter-chip {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}
:root[data-theme="dark"] .booking-filter-chip:hover {
  background: #334155;
}
:root[data-theme="dark"] .booking-filter-chip.is-active {
  border-color: #60A5FA;
  background: rgba(96, 165, 250, 0.12);
}

/* Theme toggle */
:root[data-theme="dark"] .theme-toggle:hover {
  border-color: #60A5FA;
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.08);
}

/* Badge */
:root[data-theme="dark"] .badge-default {
  background: #334155;
  color: #cbd5e1;
}
:root[data-theme="dark"] .badge-primary {
  background: rgba(96, 165, 250, 0.15);
  color: #93C5FD;
}

/* Dash welcome banner */
:root[data-theme="dark"] .dash-welcome {
  background: linear-gradient(135deg, #1D4ED8 0%, #1e293b 100%);
}

/* Onboarding shell background */
:root[data-theme="dark"] .onboarding-shell {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(96, 165, 250, 0.04) 100%),
    #0f172a;
}

/* Spotlight dark panels already dark — keep consistent */
:root[data-theme="dark"] .spotlight-panel-dark {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-color: rgba(148, 163, 184, 0.12);
}

/* Sections using surface-2/3 */
:root[data-theme="dark"] .platform-partner-strip {
  background: #1e293b;
  border-top-color: rgba(148, 163, 184, 0.12);
}
:root[data-theme="dark"] .info-strip {
  background: #1e293b;
  border-top-color: rgba(148, 163, 184, 0.12);
}
:root[data-theme="dark"] .trust-bar {
  background: #0f172a;
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

/* Modal overlay */
:root[data-theme="dark"] .ui-modal-panel {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}

/* --- Smooth theme transitions --- */
/* Applied to html element so it covers body, header, footer etc.
   Excluded from the toggle itself so the button doesn't lag. */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.25s ease,
    border-color     0.25s ease,
    color            0.25s ease,
    fill             0.25s ease,
    box-shadow       0.25s ease !important;
}

/* --- Theme toggle button --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.3rem 0.65rem;
  color: var(--color-ink-2);
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
  margin-left: var(--sp-2);
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.theme-toggle__icon {
  font-size: 1.1rem;
  line-height: 1;
}
/* In dark mode: show sun (click → go light) */
:root[data-theme="dark"]  .theme-toggle__icon--sun  { display: inline; }
:root[data-theme="dark"]  .theme-toggle__icon--moon { display: none;   }
/* In light mode: show moon (click → go dark) */
:root[data-theme="light"] .theme-toggle__icon--moon { display: inline; }
:root[data-theme="light"] .theme-toggle__icon--sun  { display: none;   }
/* Default (no attribute set yet — treated as light) */
:root:not([data-theme])   .theme-toggle__icon--moon { display: inline; }
:root:not([data-theme])   .theme-toggle__icon--sun  { display: none;   }

/* --- Promo modal --- */
.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 20, 0.72);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  overflow-y: auto;
}
.promo-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  text-align: center;
  max-height: calc(100dvh - 2 * var(--sp-4));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.promo-modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink-3);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  transition: color 0.15s;
}
.promo-modal__close:hover { color: var(--color-ink); }
.promo-modal__headline {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  color: var(--color-ink);
  margin-bottom: var(--sp-3);
}
.promo-modal__body {
  color: var(--color-ink-2);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.promo-modal__code-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--color-surface-3);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.promo-modal__code-label {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.promo-modal__code {
  font-family: monospace;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.12em;
}
.promo-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}


/* === 2. RESET === */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[x-cloak] {
  display: none !important;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

ul,
ol {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
}

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


/* === 3. TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Display font — applied to primary page headings only */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Override back to sans on components that shouldn't use the serif display */
.info-card h1,
.stat-card h1,
.data-item h1,
.auth-card h1,
.nav-toggle h1,
.ui-table h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Auth card is a standalone page — keep display font there */
.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Section headers get display font for premium feel */
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-ink-2);
  max-width: 56ch;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.eyebrow-accent {
  color: var(--color-accent);
}

.eyebrow-muted {
  color: var(--color-ink-3);
}

.rich-copy {
  max-width: 52rem;
  line-height: 1.75;
}

.rich-copy h2 { font-size: var(--text-3xl); margin-bottom: var(--sp-4); }
.rich-copy h3 { font-size: var(--text-2xl); margin-bottom: var(--sp-3); }
.rich-copy p  { margin-bottom: var(--sp-4); }


/* === 4. LAYOUT === */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-sm  { max-width: 768px;  margin-left: auto; margin-right: auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }
.container-lg  { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }

/* Legacy centring used by old templates */
.site-header,
.hero-shell,
.story-grid,
.catalog-section,
.page-shell {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.page-shell {
  padding: var(--sp-8) var(--sp-5) var(--sp-16);
}

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

main {
  padding: 0;
}

/* Grid utilities */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* Responsive grid utilities — inline-style replacements for templates */
.rg-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8);
}
.rg-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}
.rg-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.ces-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

/* Section spacing */
.section-py  { padding-top: var(--sp-20); padding-bottom: var(--sp-20); }
.section-py-lg { padding-top: var(--sp-24); padding-bottom: var(--sp-24); }
.section-py-sm { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* === 5. NAVIGATION === */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--sp-5);
}

.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  height: 64px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.brand:hover { opacity: 0.8; }

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.site-nav a:not(.nav-cta) {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 4px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: var(--color-primary);
  color: var(--color-surface) !important;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  margin-left: var(--sp-2);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Free Posture Screen — ghost pill, sits between plain links and the solid CTA */
.nav-screen-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-4);
  border: 1.5px solid currentColor;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none !important;
  opacity: 0.8;
  transition: opacity 0.18s ease, background 0.18s ease;
  margin-left: var(--sp-1);
}
.nav-screen-link:hover,
.nav-screen-link:focus-visible {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  color: var(--color-ink);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.nav-toggle:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
}

.nav-toggle:active { transform: scale(0.97); }

/* Auth + logout inline form in nav */
.inline-form { margin: 0; }

.text-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-sans);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  border-radius: var(--radius);
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.text-button:hover {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}


/* === 6. HERO === */

/* Full-viewport hero shell (new premium homepage) */
.hero-premium {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-dark-bg);
  overflow: hidden;
  padding: var(--sp-24) var(--sp-5) var(--sp-16);
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37, 99, 235, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(166, 168, 74, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.hero-premium-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.hero-premium-copy {
  display: flex;
  flex-direction: column;
}

.hero-premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--sp-5);
}

.hero-premium-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-premium h1 {
  font-size: var(--text-7xl);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--color-surface);
  margin-bottom: var(--sp-6);
}

.hero-premium h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-premium .lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin-bottom: var(--sp-8);
  font-size: var(--text-lg);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.50);
  text-transform: uppercase;
}

.trust-strip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  flex-shrink: 0;
}

/* Hero card (dark glass) */
.hero-card {
  background: rgba(16, 16, 42, 0.78);
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(10, 10, 35, 0.24);
}

.hero-card-premium {
  background: linear-gradient(145deg, rgba(16, 16, 42, 0.92), rgba(8, 8, 24, 0.95));
}

.metric-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.metric-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-surface);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: var(--sp-2) 0;
}

.metric-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Legacy hero shell (used by inner page templates) */
.hero-shell {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1.7fr 1fr;
  padding: var(--sp-8) var(--sp-5) var(--sp-4);
}

.hero-copy h1,
.page-shell h1 {
  font-size: var(--text-6xl);
  line-height: 0.98;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.04em;
}

.hero-copy .eyebrow {
  margin-bottom: var(--sp-3);
}

.pill-row {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
  transition: background 0.18s ease;
}

.pill:hover { background: rgba(37, 99, 235, 0.18); }

.pill-dark {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}


/* === 7. SECTIONS & CARDS === */

/* Trust / stat bar */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-10) var(--sp-5);
}

.trust-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  text-align: center;
}

.trust-stat-value {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.trust-stat-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-3);
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section header component */
.section-header {
  margin-bottom: var(--sp-12);
}

.section-header.center {
  text-align: center;
}

.section-header.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: var(--sp-4);
}

.section-header.dark h2 {
  color: var(--color-surface);
}

.section-header.dark .eyebrow {
  color: var(--color-accent);
}

.section-header.dark .lead {
  color: rgba(255, 255, 255, 0.65);
}

/* Legacy section heading */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, var(--text-4xl));
}

.section-lead {
  margin: var(--sp-2) 0 0;
  max-width: 42rem;
  color: var(--color-ink-2);
  line-height: 1.55;
}

.catalog-section {
  padding: var(--sp-12) var(--sp-5) 0;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

/* Info card (legacy + updated) */
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}

.info-card h3,
.info-card h2 {
  margin: 0 0 var(--sp-3);
  font-size: var(--text-xl);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), var(--shadow-md);
}

.info-card-featured:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), var(--shadow-lg);
}

.info-card-empty {
  border-style: dashed;
  background: var(--color-surface-2);
}

/* Service card */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 0.25s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.service-card-badge-row {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.service-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.25;
}

.service-card-price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.service-card-summary {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.6;
  flex: 1;
}

.service-card-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--sp-3);
}

/* Stat card */
.stat-card {
  padding: var(--sp-5) var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-top: var(--sp-2);
  line-height: 1.1;
}

.stat-card.variant-accent strong { color: var(--color-accent-dark); }

/* Feature card (Why Us columns) */
.feature-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-surface-3);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--sp-3);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.7;
  margin: 0;
}

/* Trainer card */
.trainer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.25s ease;
}

.trainer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(166, 168, 74, 0.25);
  transform: translateY(-2px);
}

.trainer-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-surface);
  flex-shrink: 0;
}

.trainer-card-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-surface);
  margin: 0;
}

.trainer-card-role {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin: 0;
}

.trainer-card-exp {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
}

/* Package card */
.package-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.package-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.package-card-featured {
  border-color: var(--color-primary);
  background: linear-gradient(145deg, var(--color-surface), rgba(37, 99, 235, 0.04));
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), var(--shadow-md);
}

.package-card-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-ink);
  margin: 0;
}

.package-card-sessions {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-3);
}

.package-card-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin: 0;
}

.package-card-price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-3);
}

/* Data item */
.data-item {
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.data-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.data-list {
  display: grid;
  gap: var(--sp-3);
}

/* Form panel / side panel */
.form-panel,
.side-panel {
  padding: var(--sp-5) var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.form-panel:hover,
.side-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* CTA Band */
.cta-band {
  background: var(--color-primary);
  padding: var(--sp-20) var(--sp-5);
  text-align: center;
}

.cta-band h2 {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-surface);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}

.cta-band p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Info strip */
.info-strip {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-10) var(--sp-5);
}

.info-strip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: var(--sp-10);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.info-strip-block dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-ink-3);
  margin-bottom: var(--sp-1);
}

.info-strip-block dd {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.6;
}

/* Signature / spotlight cards */
.signature-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}

.signature-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.signature-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-3);
}

.spotlight-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--sp-6);
}

.spotlight-panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.spotlight-panel-dark {
  background: linear-gradient(145deg, var(--color-dark-bg-2), var(--color-dark-bg));
  color: var(--color-surface);
  border-color: rgba(37, 99, 235, 0.22);
}

.spotlight-panel-dark h2  { color: var(--color-surface); }
.spotlight-panel-dark .eyebrow { color: var(--color-accent); }
.spotlight-panel-dark .lead { color: rgba(255, 255, 255, 0.65); }

/* Story grid */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5) 0;
}

.story-panel {
  padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.story-panel-accent {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.05), rgba(166, 168, 74, 0.05));
}

/* Checklist */
.checklist {
  padding-left: var(--sp-5);
  line-height: 1.9;
  color: var(--color-ink-2);
}

/* Platform partner strip */
.platform-partner-strip {
  background: var(--color-surface-3);
  padding: var(--sp-16) var(--sp-5);
  border-top: 1px solid var(--color-border);
}

.platform-partner-strip h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-2);
}

.platform-partner-strip strong {
  color: var(--color-primary);
}

/* What's new */
.whats-new-section .section-heading {
  flex-direction: column;
  align-items: flex-start;
}

.whats-new-list {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

.whats-new-card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-1);
}

.whats-new-date { font-size: var(--text-sm); color: var(--color-ink-3); }
.whats-new-title { margin: 0 0 var(--sp-1); font-size: var(--text-2xl); }
.whats-new-summary { margin: 0; line-height: 1.6; }
.whats-new-detail { margin-top: var(--sp-3); }

.whats-new-pill-upcoming {
  background: rgba(37, 99, 235, 0.10);
  color: var(--color-primary);
}

.whats-new-preview-card p { margin-bottom: 0; }

/* Blog */
.blog-index-list {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.blog-teaser h2 { margin: var(--sp-1) 0; }

.blog-article-meta {
  margin: 0 0 var(--sp-2);
  color: var(--color-ink-3);
  font-size: var(--text-sm);
}

.blog-article-body { margin-top: var(--sp-5); }

/* Card meta */
.card-meta,
.meta-row {
  display: block;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.meta-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Card actions */
.card-actions,
.page-actions,
.cta-strip {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.cta-strip-wide { flex-wrap: wrap; }

/* Text link */
.text-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.text-link:hover {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary-dark);
}

/* Catalog intro */
.catalog-intro {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

/* Price */
.price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* Initiative grid */
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

/* How It Works */
.hiw-section {
  padding: var(--sp-10) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}

.hiw-eyebrow { margin-bottom: var(--sp-2); }

.hiw-heading {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--sp-8);
  max-width: 36rem;
  letter-spacing: -0.02em;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hiw-step {
  padding: 0 var(--sp-5) 0 0;
  position: relative;
}

.hiw-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 0;
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.hiw-step + .hiw-step { padding-left: var(--sp-5); }

.hiw-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-3);
  margin-bottom: var(--sp-3);
}

.hiw-step-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--sp-1);
  display: block;
}

.hiw-step-body {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.55;
  margin: 0;
}

.hiw-step-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-full);
  margin-top: var(--sp-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hiw-badge-green {
  background: rgba(166, 168, 74, 0.14);
  color: var(--color-accent-dark);
}

.hiw-badge-amber {
  background: rgba(37, 99, 235, 0.10);
  color: var(--color-primary);
}

/* Expectation strip */
.exp-strip {
  margin: var(--sp-5) auto 0;
  padding: var(--sp-6) var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  max-width: var(--container-max);
}

.exp-strip-heading { margin: 0 0 var(--sp-4); }

.exp-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.5;
}

.exp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.exp-dot-accent { background: var(--color-accent); }

.exp-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}


/* === 8. BUTTONS === */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.button:active { transform: scale(0.97); }

/* Primary */
.button-primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.button-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.button-primary:disabled,
.button-primary[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Secondary (outline) */
.button-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.button-secondary:hover {
  background: rgba(37, 99, 235, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Google OAuth */
.button-google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
  gap: 0.5rem;
}

.button-google:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
  box-shadow: var(--shadow-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--color-ink-3);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Ghost */
.button-ghost {
  background: transparent;
  color: var(--color-ink-2);
  border-color: var(--color-border);
}

.button-ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}

/* Danger */
.button-danger {
  background: #b91c1c;
  color: var(--color-surface);
  border-color: #b91c1c;
}

.button-danger:hover {
  background: #991b1b;
  border-color: #991b1b;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
}

/* White (for dark backgrounds) */
.button-white {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-surface);
}

.button-white:hover {
  background: var(--color-surface-2);
  box-shadow: var(--shadow-md);
}

/* Outline white */
.button-outline-white {
  background: transparent;
  color: var(--color-surface);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-outline-white:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.80);
}

/* Sizes */
.button-sm  { padding: var(--sp-1) var(--sp-4); font-size: var(--text-xs); }
.button-lg  { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.button-block { width: 100%; text-align: center; justify-content: center; }

/* Compact (legacy alias) */
.button-compact { padding: var(--sp-2) var(--sp-4); font-size: var(--text-sm); }


/* === 9. FORMS === */

.form-field {
  display: grid;
  gap: var(--sp-1);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-panel form,
.auth-card form {
  display: grid;
  gap: var(--sp-4);
}

.form-help {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  max-width: 36rem;
}

.field-error {
  color: var(--color-danger);
  font-size: var(--text-sm);
  font-weight: 500;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-6);
}

.search-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-family: var(--font-sans);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Auth pages */
.auth-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-5);
}

.auth-card {
  padding: var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

/* Start-here / questionnaire */
.start-here-page .start-fieldset {
  border: 0;
  margin: var(--sp-4) 0 var(--sp-5);
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.start-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: rgba(248, 248, 252, 0.75);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.start-choice:has(input:focus-visible) {
  outline: var(--ring);
  outline-offset: 2px;
}

.start-choice:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-3);
}

.start-choice input { margin-top: 0.2rem; }

.start-step-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.start-q-title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--sp-1);
}

/* Start-here result card */
.start-result {
  max-width: 560px;
  margin: var(--sp-8) 0 0;
  padding: var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.start-result-name {
  font-size: var(--text-3xl);
  margin: var(--sp-2) 0 var(--sp-3);
}

.start-result-summary {
  color: var(--color-ink-2);
  margin: 0 0 var(--sp-2);
}

.start-result-ideal {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  margin: 0 0 var(--sp-6);
}

.start-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.start-result-card {
  padding: var(--sp-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.start-result-card h3 {
  margin: var(--sp-1) 0 var(--sp-2);
  font-size: var(--text-lg);
}

.start-result-card p {
  margin: 0 0 var(--sp-3);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.start-result-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.start-result-retake {
  margin: var(--sp-5) 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

@media (max-width: 700px) {
  .start-result-grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp floating button */
.wa-fab {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.30);
  color: #fff;
}

.wa-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Scroll-to-top FAB — sits to the left of the WhatsApp FAB */
.scroll-top-fab {
  position: fixed;
  bottom: var(--sp-6);
  right: calc(var(--sp-6) + 56px + var(--sp-3));
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  color: var(--color-ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.scroll-top-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-fab:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .scroll-top-fab {
  background: var(--color-surface-3);
  border-color: rgba(148, 163, 184, 0.20);
  color: var(--color-ink-3);
}
:root[data-theme="dark"] .scroll-top-fab:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}
@media (max-width: 600px) {
  .scroll-top-fab {
    width: 40px;
    height: 40px;
    right: calc(var(--sp-4) + 52px + var(--sp-2));
    bottom: var(--sp-4);
  }
}

/* Flash messages */
.flash-stack {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.flash-message {
  margin-top: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(248, 248, 252, 0.9);
}

.flash-success {
  border-color: rgba(21, 128, 61, 0.35);
  background: var(--color-success-bg);
  color: var(--color-success);
}
.flash-error {
  border-color: rgba(185, 28, 28, 0.35);
  background: var(--color-danger-bg);
  color: var(--color-danger);
}
.flash-warning {
  border-color: rgba(217, 119, 6, 0.35);
  background: var(--color-warning-bg);
  color: var(--color-warning);
}


/* === 10. DASHBOARD === */

.app-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--sp-6);
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5) var(--sp-16);
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.dash-nav-label {
  margin: 0 0 var(--sp-1);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-3);
  font-weight: 700;
}

.dash-nav-list {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  display: grid;
  gap: var(--sp-1);
}

.dash-nav-link {
  display: block;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  transition: color 0.18s ease, background 0.18s ease;
}

.dash-nav-link:hover,
.dash-nav-link:focus-visible {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

.dash-nav-link.is-active {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.10);
  font-weight: 700;
}

.dash-sidebar-foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
}

.dash-foot-meta {
  margin: 0 0 var(--sp-3);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

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

.dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.dash-title {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  margin: var(--sp-1) 0;
  letter-spacing: -0.03em;
}

.dash-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--color-ink-2);
}

.dash-toolbar-actions {
  position: relative;
  flex-shrink: 0;
}

.dash-stat-grid { margin-bottom: var(--sp-5); }

.dash-panels { align-items: start; }

.dash-panel-stack {
  display: grid;
  gap: var(--sp-4);
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.dash-panel-title {
  margin: 0;
  font-size: var(--text-lg);
}

.dash-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  justify-content: flex-end;
}

.dash-detail-stack { gap: var(--sp-5); }

.dashboard-grid,
.form-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-4);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-4);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}


/* === 11. COMPONENTS === */

/* Table */
.table-scroll {
  overflow-x: auto;
  margin: 0 -0.25rem;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.ui-table th,
.ui-table td {
  text-align: left;
  padding: var(--sp-2) var(--sp-2);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.ui-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-3);
  font-weight: 700;
}

.table-sub {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

/* Code */
.ui-code {
  font-size: var(--text-sm);
  background: rgba(37, 99, 235, 0.07);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

/* Pills / badges */
.ui-pill {
  display: inline-block;
  padding: 0.15rem var(--sp-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(37, 99, 235, 0.10);
  color: var(--color-primary);
}

.ui-pill-lg {
  font-size: var(--text-sm);
  padding: var(--sp-1) var(--sp-3);
}

/* Badge variants */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem var(--sp-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-default  { background: var(--color-surface-3); color: var(--color-ink-2); }
.badge-primary  { background: rgba(37, 99, 235, 0.12); color: var(--color-primary); }
.badge-accent   { background: rgba(166, 168, 74, 0.16); color: var(--color-accent-dark); }
.badge-success  { background: rgba(21, 128, 61, 0.12); color: #15803d; }
.badge-warning  { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.badge-error    { background: rgba(185, 28, 28, 0.12); color: #b91c1c; }

.badge-sm { font-size: 0.65rem; padding: 0.1rem var(--sp-1); }
.badge-md { font-size: var(--text-xs); padding: 0.2rem var(--sp-2); }

/* Modal (Alpine x-show) */
.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(10, 10, 35, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.ui-modal-backdrop--inline {
  position: absolute;
  inset: auto;
  top: 100%;
  right: 0;
  left: auto;
  z-index: var(--z-dropdown);
  width: min(22rem, calc(100vw - 2rem));
  margin-top: var(--sp-2);
  padding: 0;
  background: transparent;
  justify-content: flex-end;
  align-items: flex-start;
}

.ui-modal-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  max-width: 26rem;
  width: 100%;
  max-height: min(70vh, 24rem);
  overflow: auto;
}

.ui-modal-backdrop--inline .ui-modal-panel { max-height: 70vh; }

.ui-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}

.ui-modal-title {
  margin: 0;
  font-size: var(--text-base);
}

.ui-modal-close {
  border: 0;
  background: transparent;
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink-3);
  padding: 0;
  transition: color 0.15s ease;
}

.ui-modal-close:hover { color: var(--color-ink); }

.ui-modal-body { padding: var(--sp-4); }

/* Toast notifications */
.toast-host {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.22s ease-out;
}

.toast-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-success { border-color: rgba(21, 128, 61, 0.40);  background: var(--color-success-bg); }
.toast-error   { border-color: rgba(185, 28, 28, 0.35); background: var(--color-danger-bg);  }
.toast-warning { border-color: rgba(217, 119, 6, 0.35); background: var(--color-warning-bg); }
.toast-info    { border-color: rgba(37, 99, 235, 0.25); background: var(--color-info-bg);    }

.toast-text {
  font-size: var(--text-sm);
  line-height: 1.45;
}

.toast-dismiss {
  border: 0;
  background: transparent;
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink-3);
  padding: 0 0.15rem;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.toast-dismiss:hover { color: var(--color-ink); }

.toast-dismiss:focus-visible { outline: var(--ring); }

/* Booking filters */
.booking-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.booking-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.booking-filter-chip:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.booking-filter-chip.is-active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

.booking-filter-count {
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  opacity: 0.80;
}

.booking-filter-hint {
  margin: 0 0 var(--sp-4);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

/* Booking detail */
.booking-detail-dl dt {
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-3);
  margin-top: var(--sp-3);
}

.booking-detail-dl dt:first-child { margin-top: 0; }
.booking-detail-dl dd { margin: var(--sp-1) 0 0; }

.booking-notes-block { white-space: pre-wrap; }

.staff-message-callout {
  margin: var(--sp-4) 0;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(166, 168, 74, 0.28);
  background: rgba(166, 168, 74, 0.07);
}

.member-booking-status {
  margin: var(--sp-1) 0 var(--sp-2);
}

.flow-tips-list {
  margin: 0;
  padding-left: var(--sp-5);
  line-height: 1.7;
}

/* Checkout */
.checkout-order-banner {
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  margin-bottom: var(--sp-4);
}

.checkout-order-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
}

.checkout-order-title {
  font-weight: 500;
  color: var(--color-ink-2);
}

.checkout-order-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.checkout-alert {
  margin-bottom: var(--sp-5);
}

.checkout-alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Misc */
.legal-copy .data-item h2 { margin-top: 0; }
.pricing-section { padding-top: var(--sp-8); }

.member-booking-status { margin: var(--sp-1) 0 var(--sp-2); }


/* === 12. UTILITIES === */

/* Text colours */
.text-primary { color: var(--color-primary) !important; }
.text-accent   { color: var(--color-accent-dark) !important; }
.text-muted    { color: var(--color-ink-3) !important; }
.text-ink      { color: var(--color-ink) !important; }
.text-white    { color: var(--color-surface) !important; }
.text-success  { color: #15803d !important; }
.text-error    { color: #b91c1c !important; }
.text-warning  { color: #d97706 !important; }

/* Background colours */
.bg-dark       { background-color: var(--color-dark-bg) !important; }
.bg-dark-2     { background-color: var(--color-dark-bg-2) !important; }
.bg-primary    { background-color: var(--color-primary) !important; }
.bg-surface-2  { background-color: var(--color-surface-2) !important; }
.bg-surface-3  { background-color: var(--color-surface-3) !important; }
.bg-white      { background-color: var(--color-surface) !important; }

/* Section backgrounds */
.section-dark  { background-color: var(--color-dark-bg); color: var(--color-surface); }
.section-blue  { background-color: var(--color-surface-3); }
.section-white { background-color: var(--color-surface); }

/* Padding */
.pt-0   { padding-top: 0 !important; }
.pb-0   { padding-bottom: 0 !important; }
.mt-auto { margin-top: auto; }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }


/* === 13. ANIMATIONS & MOTION === */

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered entrance */
.micro-reveal {
  opacity: 1;
  transform: none;
}

/* Only hide reveal targets when JavaScript is available to reveal them. */
html.js .micro-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .micro-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — only hide when JS is available to reveal them.
   `html.js` is added by wellness_platform.js on first execution; without JS
   the children must remain visible so content never disappears. */
html.js .micro-reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.micro-reveal-stagger.is-inview > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.micro-reveal-stagger.is-inview > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.06s; }
.micro-reveal-stagger.is-inview > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.12s; }
.micro-reveal-stagger.is-inview > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.18s; }
.micro-reveal-stagger.is-inview > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.24s; }

/* Hover transitions for interactive elements */
.nav-cta,
.button {
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav-cta:active,
.button:active { transform: scale(0.97); }

.info-card,
.stat-card,
.data-item,
.hero-card,
.form-panel,
.side-panel,
.auth-card,
.service-card,
.feature-card,
.trainer-card,
.package-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.28s ease,
    border-color 0.22s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .micro-reveal,
  .micro-reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav a:not(.nav-cta)::after { display: none; }

  .info-card:hover,
  .stat-card:hover,
  .data-item:hover,
  .hero-card:hover,
  .form-panel:hover,
  .side-panel:hover,
  .service-card:hover,
  .feature-card:hover,
  .trainer-card:hover,
  .package-card:hover {
    transform: none;
  }
}


/* === 14. FOOTER === */

.site-footer {
  background: var(--color-dark-bg-2);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--sp-16) var(--sp-5) var(--sp-8);
}

.site-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}

.footer-brand-name {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-surface);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.footer-contact-item {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: var(--sp-1);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-contact-item a:hover { color: var(--color-accent); }

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-surface);
  margin-bottom: var(--sp-4);
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover { color: var(--color-surface); }

.footer-links span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer-hours {
  margin-top: var(--sp-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: var(--sp-10) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.18s ease;
}

.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.70); }

.footer-bottom--partner {
  margin-top: var(--sp-3);
  padding-top: 0;
  border-top: none;
  justify-content: center;
}

.footer-bottom--partner p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.20);
}

.footer-bottom--partner a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-bottom--partner a:hover { color: rgba(255, 255, 255, 0.65); }


/* === 15. RESPONSIVE === */

/* --- Large: 1024px --- */
@media (max-width: 1024px) {
  .hero-premium-inner {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .hero-card { display: none; }

  .trust-bar-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

/* --- Medium: 920px (legacy breakpoint kept) --- */
@media (max-width: 920px) {
  .hero-shell,
  .story-grid,
  .card-grid,
  .tier-grid,
  .dashboard-grid,
  .detail-grid,
  .form-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell { padding: var(--sp-6) var(--sp-5); }

  .signature-band { grid-template-columns: 1fr; }
  .spotlight-shell { grid-template-columns: 1fr; }
  .initiative-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--sp-1);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--color-border);
    margin-top: var(--sp-2);
  }

  .site-nav.is-open { display: flex; }

  /* Body scroll lock when mobile nav is open */
  body.nav-is-open { overflow: hidden; }

  .site-nav a:not(.nav-cta) {
    padding: var(--sp-3) var(--sp-3);
    border-radius: var(--radius-md);
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .site-nav .nav-screen-link {
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }

  .site-nav .inline-form { margin-top: var(--sp-1); }

  .site-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-3);
  }

  .search-form { grid-template-columns: 1fr; }

  .app-dashboard { grid-template-columns: 1fr; }

  .dash-sidebar { position: static; }

  .ui-modal-backdrop--inline {
    position: fixed;
    inset: 0;
    width: auto;
    margin-top: 0;
    background: rgba(10, 10, 35, 0.50);
    justify-content: center;
    align-items: center;
    padding: var(--sp-4);
  }

  .exp-strip { margin: var(--sp-5) var(--sp-5) 0; }
}

/* --- Small: 768px --- */
@media (max-width: 768px) {
  :root { --container-pad: var(--sp-4); }

  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-2 { grid-template-columns: 1fr; }

  .trust-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta-band h2 { font-size: var(--text-4xl); }

  .info-strip-inner { flex-direction: column; gap: var(--sp-6); }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-split { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* --- Small: 640px --- */
@media (max-width: 640px) {
  .hero-premium {
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-12);
  }

  .hero-premium h1 { font-size: var(--text-5xl); }

  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: center; }

  .cta-band-actions { flex-direction: column; }
  .cta-band-actions .button { width: 100%; justify-content: center; }

  .trust-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }

  .card-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }

  .section-header h2 { font-size: var(--text-4xl); }

  .hiw-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .hiw-step::after { display: none; }
  .hiw-step { padding: 0; }
  .hiw-step + .hiw-step { padding-left: 0; }

  .exp-items { grid-template-columns: 1fr; }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dash-toolbar { flex-direction: column; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .rg-2 { grid-template-columns: 1fr; }
  .rg-3 { grid-template-columns: 1fr; }
  .ces-partner-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* --- Extra small: 480px --- */
@media (max-width: 480px) {
  :root { --container-pad: var(--sp-3); }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-premium h1 { font-size: var(--text-4xl); }
  .trust-stat-value { font-size: var(--text-3xl); }
  .promo-modal {
    padding: var(--sp-6) var(--sp-5);
    border-radius: var(--radius-md);
  }
  .promo-modal-backdrop {
    align-items: flex-start;
    padding-top: var(--sp-6);
  }
}

/* ── Design Polish Pass — new component styles ────────────────────── */

/* Tier card (membership upgrade + membership index with comparison) */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
  padding-top: var(--sp-6); /* room for "Most Popular" badge */
}

.tier-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tier-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(145deg, var(--color-surface), rgba(37, 99, 235, 0.04));
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10), var(--shadow-md);
}

.tier-card--featured:hover {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), var(--shadow-xl);
}

.tier-card--featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-surface);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 0.25rem var(--sp-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tier-price {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.tier-price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-3);
}

/* "Most Popular" badge on membership_index.html featured cards */
.info-card-featured {
  position: relative;
  padding-top: calc(var(--sp-6) + var(--sp-4));
}

.info-card-featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-surface);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 0.25rem var(--sp-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Card grid needs room for the badge overhang */
.card-grid { padding-top: var(--sp-4); }

/* Panel card (used in upgrade + pricing pages) */
.panel-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-6);
}

/* Hero pricing table CSS classes (replace inline styles on home hero card) */
.hero-price-table {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

.hero-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
}

.hero-price-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.45);
}

.hero-price-value {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-accent);
}

.hero-price-value--sm {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

/* Empty state polish */
.info-card-empty {
  border-style: dashed;
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  align-items: center;
}

.info-card-empty h2 {
  font-size: var(--text-xl);
  color: var(--color-ink-3);
  margin-bottom: var(--sp-3);
}

.info-card-empty p {
  color: var(--color-ink-3);
  font-size: var(--text-sm);
  max-width: 32ch;
}

/* Button loading state */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.button[aria-busy="true"] {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.50);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: btn-spin 0.55s linear infinite;
}

.button-secondary[aria-busy="true"]::after,
.button-ghost[aria-busy="true"]::after {
  border-color: rgba(37, 99, 235, 0.35);
  border-top-color: var(--color-primary);
}

/* Checkout alert (semantic wrapper) */
.checkout-alert {
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
}

/* Skip-to-content link */
/* Announcement banner */
@keyframes banner-slide-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes banner-shimmer {
  0%   { left: -80%; }
  35%  { left: 120%; }
  100% { left: 120%; }
}
.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px var(--container-pad, 20px);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  flex-wrap: wrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  animation: banner-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.announcement-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  animation: banner-shimmer 5s linear 0.6s infinite;
  pointer-events: none;
}
.announcement-banner--warning::after {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 70%
  );
}
.announcement-banner--info    { background: #3b82f6; color: #fff; }
.announcement-banner--success { background: #16a34a; color: #fff; }
.announcement-banner--promo   { background: var(--color-primary, #2563EB); color: #fff; }
.announcement-banner--warning { background: #f59e0b; color: #1a1a1a; }
.announcement-banner__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.announcement-banner__link:hover { opacity: 0.85; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: calc(var(--z-toast) + 10);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Mobile nav body scroll lock */
body.nav-is-open {
  overflow: hidden;
}

/* Pricing page — client-facing section styles */
.pricing-section {
  margin-top: var(--sp-16);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--color-border);
}

.pricing-section:first-of-type {
  margin-top: var(--sp-8);
  border-top: none;
}

/* Membership hub — status indicator */
.membership-status-active {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--color-success);
  font-weight: 600;
  font-size: var(--text-sm);
}

.membership-status-active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

.membership-status-inactive {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--color-ink-3);
  font-weight: 600;
  font-size: var(--text-sm);
}

.membership-status-inactive::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ink-3);
  flex-shrink: 0;
}

/* Payment status page — status display */
.payment-status-success { color: var(--color-success); font-weight: 700; }
.payment-status-failed  { color: var(--color-danger);  font-weight: 700; }
.payment-status-pending { color: var(--color-warning); font-weight: 700; }

/* Dashboard welcome banner */
.dash-welcome {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-8);
  color: var(--color-surface);
  margin-bottom: var(--sp-6);
}

.dash-welcome h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  color: var(--color-surface);
  margin-bottom: var(--sp-2);
}

.dash-welcome p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Video library lock indicator */
.video-locked {
  opacity: 0.6;
  position: relative;
}

/* Detail sidebar — right column in detail-grid layouts */
.detail-sidebar {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}

/* ── Print styles */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .card-actions,
  .toast-host {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2 {
    font-family: Georgia, serif;
    page-break-after: avoid;
  }

  .data-item,
  .info-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Spotlight panel with background image */
.spotlight-panel-img-wrap {
  position: relative;
  overflow: hidden;
}

.spotlight-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.spotlight-content {
  position: relative;
  z-index: 1;
}

/* ── Stock image helpers ───────────────────────────────────────────── */

/* Hero background photo */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

/* Card image strip at the top of info-cards, program cards, etc. */
.card-img {
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-4);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  flex-shrink: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.info-card:hover .card-img img,
.service-card:hover .card-img img {
  transform: scale(1.04);
}

/* Product card image – square crop */
.card-img-square {
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-4);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-2);
  flex-shrink: 0;
}
.card-img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.info-card:hover .card-img-square img {
  transform: scale(1.04);
}

/* Page hero photo (program, event detail) */
.page-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-8);
  display: block;
}

.page-hero-img--product {
  aspect-ratio: 3 / 1;
  object-position: center 40%;
}

@media (max-width: 640px) {
  .page-hero-img { aspect-ratio: 4 / 3; }
  .page-hero-img--product { aspect-ratio: 4 / 3; }
}


/* ============================================================
   === PREMIUM COMPONENT ADDITIONS (design-system-premium)
   ============================================================ */

/* ── Card image duration badge overlay ─────────────────────── */

.card-img {
  position: relative;
}

.card-img-badge {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-3);
  background: rgba(8, 8, 24, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 2;
}


/* ── Stat card state variants ───────────────────────────────── */

.stat-card--warn {
  border-left-color: var(--color-warning);
}

.stat-card--ok {
  border-left-color: var(--color-success);
}

.stat-value {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-ink);
  margin: var(--sp-1) 0;
}

.stat-delta {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat-delta--up   { color: var(--color-success); }
.stat-delta--down { color: var(--color-danger);  }


/* ── Alert variants ─────────────────────────────────────────── */

.alert {
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
  border-left: 4px solid currentColor;
}

.alert--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.alert--error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.alert--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.alert--info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

/* Map Django messages framework tags */
.alert--success-message { background: var(--color-success-bg); color: var(--color-success); border-left-color: var(--color-success); }
.alert--warning-message { background: var(--color-warning-bg); color: var(--color-warning); border-left-color: var(--color-warning); }
.alert--error-message   { background: var(--color-danger-bg);  color: var(--color-danger);  border-left-color: var(--color-danger);  }


/* ── Empty state ────────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  gap: var(--sp-3);
  color: var(--color-ink-3);
}

.empty-state__icon {
  width: 48px;
  height: 48px;
  color: var(--color-ink-3);
  opacity: 0.5;
  margin-bottom: var(--sp-2);
}

.empty-state h2,
.empty-state h3 {
  font-size: var(--text-xl);
  color: var(--color-ink-2);
  margin-bottom: 0;
}

.empty-state p {
  font-size: var(--text-sm);
  max-width: 36ch;
  margin-bottom: var(--sp-2);
}

.empty-state--compact {
  padding: var(--sp-8) var(--sp-4);
}


/* ── Activity timeline ──────────────────────────────────────── */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  display: flex;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.timeline__dot--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.timeline__dot--success {
  background: var(--color-success);
  border-color: var(--color-success);
}

.timeline__dot--warning {
  background: var(--color-warning);
  border-color: var(--color-warning);
}

.timeline__content {
  flex: 1;
  min-width: 0;
}

.timeline__time {
  margin-bottom: var(--sp-1);
}

.timeline__label {
  margin: 0;
  font-size: var(--text-sm);
}


/* ── Booking CTA dark strip ─────────────────────────────────── */

.booking-cta {
  background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-bg-2) 100%);
  border-radius: var(--radius-xl);
  margin-top: var(--sp-16);
  overflow: hidden;
}

.booking-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-10);
}

.booking-cta__inner .eyebrow {
  color: var(--color-accent);
}

.booking-cta__inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--sp-3);
}

.booking-cta__inner .lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 44ch;
}

.booking-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .booking-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-8) var(--sp-6);
  }
  .booking-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* ── Feature / value prop card ──────────────────────────────── */

.feature-card {
  padding: var(--sp-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--sp-4);
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.7;
  margin: 0;
}


/* ── Media / video card ─────────────────────────────────────── */

.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.media-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-3);
  overflow: hidden;
  flex-shrink: 0;
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.media-card:hover .media-card__thumb img {
  transform: scale(1.04);
}

.media-card__duration {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(8, 8, 24, 0.70);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
}

.media-card__lock {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 24, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.80);
}

.media-card__body {
  padding: var(--sp-4) var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card__body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.media-card__body p {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  flex: 1;
  margin: 0;
}


/* ── Form fieldset grouping ─────────────────────────────────── */

.form-fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}

.form-fieldset legend {
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  padding: 0 var(--sp-2);
}


/* ── Onboarding stepper ─────────────────────────────────────── */

.onboarding-stepper {
  margin-bottom: var(--sp-8);
}

.stepper-list {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.stepper-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-3);
}

.stepper-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  background: var(--color-border);
}

.stepper-step:first-child::before { display: none; }

.stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-xs);
  background: var(--color-surface);
  color: var(--color-ink-3);
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}

.stepper-step--complete .stepper-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.stepper-step--active .stepper-dot {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 800;
}

.stepper-step--active {
  color: var(--color-primary);
}

.stepper-step--complete::before,
.stepper-step--active::before {
  background: var(--color-primary);
}

@media (max-width: 480px) {
  .stepper-label { display: none; }
  .stepper-step  { flex: none; }
  .stepper-list  { justify-content: center; gap: var(--sp-3); }
  .stepper-step::before { display: none; }
}


/* ── Client onboarding wizard ───────────────────────────────── */

.onboarding-shell {
  min-height: calc(100vh - 64px);
  padding: var(--sp-16) var(--sp-5);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(166, 168, 74, 0.06) 100%),
    var(--color-surface-2);
}

.onboarding-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.onboarding-hero {
  max-width: 720px;
  margin-bottom: var(--sp-8);
}

.onboarding-hero h1 {
  margin-bottom: var(--sp-3);
}

.onboarding-progress {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-6);
}

.onboarding-progress-bar {
  height: 8px;
  background: rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.onboarding-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s ease;
}

.onboarding-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboarding-stepper li {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  color: var(--color-ink-3);
}

.onboarding-stepper span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.20);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 800;
  background: var(--color-surface);
  flex-shrink: 0;
}

.onboarding-stepper strong {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

.onboarding-stepper small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
}

.onboarding-stepper li.is-active span {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.onboarding-card {
  background: var(--color-surface);
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(10, 10, 35, 0.10);
  padding: var(--sp-8);
}

.onboarding-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-6);
}

.onboarding-card-head h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--text-3xl);
}

.onboarding-card-head p {
  margin: 0;
  color: var(--color-ink-2);
}

.onboarding-required-note {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  white-space: nowrap;
}

.onboarding-form {
  display: grid;
  gap: var(--sp-6);
}

.onboarding-grid {
  display: grid;
  gap: var(--sp-5);
}

.onboarding-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onboarding-panel,
.onboarding-consent-panel {
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  background: var(--color-surface-2);
}

.onboarding-panel h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--text-xl);
}

.onboarding-panel > p {
  margin-bottom: var(--sp-5);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.onboarding-field {
  display: grid;
  gap: var(--sp-2);
}

.onboarding-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.onboarding-field label,
.onboarding-choice-set legend {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.onboarding-field label span,
.onboarding-choice-set legend span {
  color: var(--color-danger);
  margin-left: 2px;
}

.onboarding-label-row small {
  color: var(--color-ink-3);
  font-size: var(--text-xs);
}

.onboarding-input {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-ink);
  padding: 0.85rem 0.95rem;
  font-size: var(--text-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea.onboarding-input {
  resize: vertical;
  min-height: 96px;
}

.onboarding-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.onboarding-input:disabled {
  background: var(--color-surface-3);
  color: var(--color-ink-3);
}

.onboarding-help {
  margin: 0;
  color: var(--color-ink-3);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.onboarding-choice-set {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.onboarding-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
}

.onboarding-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 54px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius-md);
  background: #fff;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.onboarding-choice-card:hover {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.onboarding-choice-card input {
  accent-color: var(--color-primary);
}

.onboarding-choice-card:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.onboarding-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.onboarding-check-grid button {
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: #fff;
  color: var(--color-ink-2);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.onboarding-check-grid button:hover,
.onboarding-check-grid button.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.onboarding-consent-panel {
  background: rgba(37, 99, 235, 0.04);
}

.onboarding-consent-panel .onboarding-field {
  gap: var(--sp-3);
}

.onboarding-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}

.onboarding-actions .button {
  min-width: 132px;
  justify-content: center;
}

.onboarding-field.has-error .onboarding-input {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

@media (max-width: 760px) {
  .onboarding-shell {
    padding: var(--sp-8) var(--sp-4);
  }

  .onboarding-card,
  .onboarding-progress {
    padding: var(--sp-5);
  }

  .onboarding-card-head {
    display: block;
  }

  .onboarding-required-note {
    display: block;
    margin-top: var(--sp-3);
  }

  .onboarding-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboarding-grid-2 {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    align-items: stretch;
  }

  .onboarding-actions,
  .onboarding-actions > div {
    display: grid;
  }
}


/* ── Marquee / Logo strip ───────────────────────────────────── */

.logo-strip {
  padding: var(--sp-8) 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.logo-strip__label {
  text-align: center;
  margin-bottom: var(--sp-6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--sp-12);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  animation: marquee-scroll 28s linear infinite;
  flex-shrink: 0;
  min-width: 100%;
}

.marquee--paused .marquee__track,
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee__item a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0.55;
  transition: opacity 0.2s ease;
  text-decoration: none;
  color: var(--color-ink);
}

.marquee__item a:hover {
  opacity: 1;
}

.marquee__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.2s ease;
}

.marquee__item a:hover .marquee__logo {
  filter: grayscale(0);
}

.marquee__name {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}


/* ── Testimonials section ───────────────────────────────────── */

.testimonials-section {
  padding: var(--sp-20) var(--sp-5);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
}

.testimonials-section .section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  align-items: stretch;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 100%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 10, 35, 0.04);
}

.testimonial-card:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 18px 44px rgba(10, 10, 35, 0.10);
  transform: translateY(-2px);
}

/* Quotation mark accent */
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-7);
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(37, 99, 235, 0.12);
  pointer-events: none;
}

.testimonial-card--featured {
  grid-column: span 2;
  padding: var(--sp-10);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(166, 168, 74, 0.08) 100%),
    var(--color-dark-bg);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(10, 10, 35, 0.18);
}

.testimonial-card--featured::before {
  top: var(--sp-6);
  right: var(--sp-8);
  color: rgba(255, 255, 255, 0.10);
}

.testimonial-card--corporate {
  border-color: rgba(37, 99, 235, 0.20);
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-ink-2);
  flex: 1;
  margin: 0;
  font-style: italic;
  position: relative;
  z-index: 1;
  max-width: 58ch;
}

.testimonial-card--featured .testimonial-card__quote {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.testimonial-card__attribution {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(37, 99, 235, 0.10);
  position: relative;
  z-index: 1;
}

.testimonial-card--featured .testimonial-card__attribution {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testimonial-card--featured .testimonial-card__avatar {
  background: var(--color-accent);
  color: var(--color-dark-bg);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0;
}

.testimonial-card--featured .testimonial-card__name {
  color: #fff;
}

.testimonial-card__meta {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  line-height: 1.3;
  margin: 4px 0 0;
}

.testimonial-card--featured .testimonial-card__meta {
  color: rgba(255, 255, 255, 0.62);
}

.testimonial-card__kind-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonial-card--featured .testimonial-card__kind-badge {
  color: var(--color-accent);
}

/* Quote expand/collapse */
.quote-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.read-more-btn:hover { color: var(--color-primary-dark); }

.read-more-btn--light { color: rgba(255,255,255,0.55); }
.read-more-btn--light:hover { color: rgba(255,255,255,0.85); }

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card--featured {
    grid-column: span 1;
  }

  .testimonial-card,
  .testimonial-card--featured {
    padding: var(--sp-6);
  }
}


/* =====================================================================
   Sole to Soil Campaign Section  (.sts-*)
   Earthy / barefoot / natural-movement palette.
   Scoped entirely to .sts-* — no global token overrides.
   ===================================================================== */

.sts-campaign {
  background: linear-gradient(160deg, #0c1a09 0%, #131f0f 60%, #0e1508 100%);
  padding: var(--sp-20) var(--sp-5);
  position: relative;
  overflow: hidden;
}

.sts-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Badge */
.sts-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(166, 168, 74, 0.12);
  border: 1px solid rgba(166, 168, 74, 0.28);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
}

/* Headline */
.sts-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, var(--text-5xl));
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: var(--sp-5);
}

/* Body copy */
.sts-body {
  font-size: var(--text-base);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.80);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}

/* Benefit chips */
.sts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-8);
  padding: 0;
  list-style: none;
}

.sts-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  background: rgba(166, 168, 74, 0.10);
  border: 1px solid rgba(166, 168, 74, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Event meta strip */
.sts-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.sts-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
}

.sts-meta-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  margin: 0;
}

.sts-meta-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  text-align: right;
  margin: 0;
}

/* Countdown */
.sts-countdown {
  margin-bottom: var(--sp-8);
}

.sts-countdown-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.sts-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.sts-tick-num {
  font-family: var(--font-sans);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.04em;
}

.sts-tick-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: var(--sp-1);
}

.sts-tick-sep {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: rgba(166, 168, 74, 0.40);
  line-height: 1;
  align-self: flex-start;
}

/* Post-event expired state */
.sts-expired {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
}

.sts-expired-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* CTAs */
.sts-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Image */
.sts-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.sts-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .sts-inner {
    grid-template-columns: 1fr;
  }

  .sts-visual {
    order: -1;
  }
}

/* Responsive — mobile */
@media (max-width: 640px) {
  .sts-headline {
    font-size: var(--text-3xl);
  }

  .sts-tick-num,
  .sts-tick-sep {
    font-size: var(--text-3xl);
  }

  .sts-tick {
    min-width: 48px;
  }

  .sts-actions .button {
    width: 100%;
    justify-content: center;
  }

  .sts-meta-item {
    flex-direction: column;
    gap: var(--sp-1);
  }

  .sts-meta-value {
    text-align: left;
  }
}

/* ── Connected social accounts ───────────────────────────── */
.connected-accounts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}

.connected-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}

.connected-account-info {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.connected-account-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.connected-account-email {
  font-size: var(--text-xs);
  color: var(--color-text-2);
}

/* ============================================================
   STORE — Responsive product grid
   Uses auto-fill so columns scale with available width:
   - inside dashboard-grid main col (~660px): 2–3 cols
   - on wide viewports where dashboard-grid expands: 3–4 cols
   ============================================================ */
.store-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

@media (min-width: 1280px) {
  .store-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .store-product-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   NAVBAR — dropdown + accordion pattern (navbar-5 style)
   All classes prefixed .snav to avoid conflicts with old .site-nav
   ============================================================ */

/* --- Desktop nav bar --- */
.snav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.snav-item {
  position: relative;
}

.snav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
  line-height: 1;
}

.snav-trigger:hover,
.snav-trigger[aria-expanded="true"] {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}

.snav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.snav-trigger[aria-expanded="true"] .snav-chevron {
  transform: rotate(180deg);
}

.snav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.snav-link:hover {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}

/* --- Desktop dropdown panel --- */
.snav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  padding-top: calc(var(--sp-2) + 8px); /* visual gap above first item */
  margin-top: 2px;
  z-index: var(--z-dropdown);
}

/* Small arrow pointing up to the trigger */
.snav-dropdown::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.snav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}

.snav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s ease;
}

.snav-dropdown-link:hover {
  background: var(--color-surface-2);
}

.snav-dropdown-link strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
}

.snav-dropdown-link span {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  line-height: 1.4;
}

.snav-dropdown-link--cta strong {
  color: var(--color-primary);
}

/* --- Desktop auth actions --- */
.snav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.snav-btn-sm {
  padding: var(--sp-2) var(--sp-4) !important;
  font-size: var(--text-sm) !important;
}

/* --- Mobile nav panel (inside .site-header, slides from top) --- */
.snav-mobile {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  /* Sits inside the sticky .site-header so it sticks too */
}

.snav-mobile-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-5) var(--sp-8);
}

/* Mobile accordion item */
.snav-mobile-acc {
  border-bottom: 1px solid var(--color-border);
}

.snav-mobile-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-4) 0;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
  line-height: 1;
}

.snav-mobile-acc-trigger .snav-chevron {
  width: 18px;
  height: 18px;
}

.snav-chevron--open {
  transform: rotate(180deg);
}

.snav-mobile-acc-content {
  padding-bottom: var(--sp-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}

.snav-mobile-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s ease;
}

.snav-mobile-link:hover {
  background: var(--color-surface-2);
}

.snav-mobile-link strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
}

.snav-mobile-link span {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

/* Mobile flat links */
.snav-mobile-flat {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-2);
  border-bottom: 1px solid var(--color-border);
}

.snav-mobile-flat-link {
  padding: var(--sp-3) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s ease;
}

.snav-mobile-flat-link:last-child {
  border-bottom: 0;
}

.snav-mobile-flat-link:hover {
  color: var(--color-primary);
}

/* Mobile auth section */
.snav-mobile-auth {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.snav-btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-left: 0 !important;
}

/* --- Responsive breakpoints --- */

/* Hide desktop nav above 1024px threshold */
@media (max-width: 1024px) {
  .snav         { display: none !important; }
  .snav-actions { display: none !important; }
  .nav-toggle   { display: inline-flex !important; }
}

/* Mobile cart icon — hidden on desktop, shown on mobile */
.nav-cart-mobile { display: none; }
@media (max-width: 1024px) {
  .nav-cart-mobile { display: inline-flex; }
}

/* Hide mobile panel on desktop */
@media (min-width: 1025px) {
  .snav-mobile  { display: none !important; }
  .nav-toggle   { display: none; }
}

/* Tighten accordion grid on small phones */
@media (max-width: 480px) {
  .snav-mobile-acc-content {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   DARK MODE — Targeted fixes for always-dark sections + nav
   ============================================================ */

/* 1. Site header: override hardcoded rgba(255,255,255,0.88) */
:root[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

/* 2. Hero h1 + metric value: always-dark bg → text must stay white */
:root[data-theme="dark"] .hero-premium h1,
:root[data-theme="dark"] .metric-value {
  color: #ffffff;
}

/* 3. Section-dark / trainer section: always-dark bg → white text */
:root[data-theme="dark"] .section-dark {
  color: var(--color-ink);
}
:root[data-theme="dark"] .section-header.dark h2,
:root[data-theme="dark"] .cta-band h2,
:root[data-theme="dark"] .spotlight-panel-dark h2,
:root[data-theme="dark"] .trainer-card-name,
:root[data-theme="dark"] .booking-cta__inner h2 {
  color: #ffffff;
}

/* Override: section-dark's inherited color should be readable on dark bg */
:root[data-theme="dark"] .section-dark h2,
:root[data-theme="dark"] .section-dark h3,
:root[data-theme="dark"] .section-dark h4 {
  color: #ffffff;
}

/* 4. Button-white: on dark hero/band stays as translucent glass */
:root[data-theme="dark"] .button-white {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}
:root[data-theme="dark"] .button-white:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-md);
}

/* 5. Button-secondary: already uses --color-primary (lighter in dark) — ensure readable */
:root[data-theme="dark"] .button-secondary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
:root[data-theme="dark"] .button-secondary:hover {
  background: rgba(96, 165, 250, 0.12);
}

/* 6. Desktop dropdown: use deeper surface so it stands out */
:root[data-theme="dark"] .snav-dropdown {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}
:root[data-theme="dark"] .snav-dropdown::before {
  background: var(--color-surface-2);
  border-top-color: var(--color-border-strong);
  border-left-color: var(--color-border-strong);
}
:root[data-theme="dark"] .snav-dropdown-link:hover {
  background: var(--color-surface-3);
}

/* 7. Mobile nav panel: surface override so it doesn't bleed into dark bg */
:root[data-theme="dark"] .snav-mobile {
  background: var(--color-surface);
  border-top-color: var(--color-border-strong);
}

/* 8. Mobile theme-toggle wrapper */
.snav-mobile-theme {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

/* Desktop theme toggle inside snav-actions: tighten margins */
.snav-actions .theme-toggle {
  margin-left: 0;
}

/* Feature-card on light section: ensure h3/p visible in dark */
:root[data-theme="dark"] .feature-card h3 {
  color: var(--color-ink);
}
:root[data-theme="dark"] .feature-card p {
  color: var(--color-ink-2);
}

/* Info-card on any section: ensure text readable — use surface-2 so cards lift from page bg */
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .package-card,
:root[data-theme="dark"] .tier-card,
:root[data-theme="dark"] .panel-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.15);
}

/* Trainer card: explicit bg to inherit section-dark */
:root[data-theme="dark"] .trainer-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}
:root[data-theme="dark"] .trainer-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(200, 202, 106, 0.30);
}

/* Footer — always dark-background, so text must stay white regardless of theme */
:root[data-theme="dark"] .footer-brand-name,
:root[data-theme="dark"] .footer-col-title {
  color: rgba(255, 255, 255, 0.95);
}
:root[data-theme="dark"] .footer-links a:hover {
  color: rgba(255, 255, 255, 0.90);
}
:root[data-theme="dark"] .footer-brand-desc,
:root[data-theme="dark"] .footer-contact-item,
:root[data-theme="dark"] .footer-links span {
  color: rgba(255, 255, 255, 0.55);
}
:root[data-theme="dark"] .footer-contact-item a {
  color: rgba(255, 255, 255, 0.70);
}
:root[data-theme="dark"] .footer-hours {
  color: rgba(255, 255, 255, 0.40);
}
:root[data-theme="dark"] .footer-bottom p,
:root[data-theme="dark"] .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.40);
}
:root[data-theme="dark"] .footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}
:root[data-theme="dark"] .footer-bottom--partner p {
  color: rgba(255, 255, 255, 0.25);
}
:root[data-theme="dark"] .footer-bottom--partner a {
  color: rgba(255, 255, 255, 0.40);
}

/* CTA band + posture strip: --color-primary flips to pastel #60A5FA in dark →
   swap to a dark navy gradient so white text stays readable and on-brand */
:root[data-theme="dark"] .cta-band,
:root[data-theme="dark"] .posture-cta-strip {
  background: linear-gradient(135deg, #0c1a38 0%, #152346 100%) !important;
}
/* CTA band h2 stays white (already set above) — ensure p text is also legible */
:root[data-theme="dark"] .cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

/* Spotlight-panel-dark: base color is var(--color-surface) which becomes
   near-black (#0f172a) in dark mode — force white so any unstyled child
   text stays visible on the dark gradient bg */
:root[data-theme="dark"] .spotlight-panel-dark {
  color: rgba(255, 255, 255, 0.85);
}

/* Ensure section-header h2 is readable on the now-dark surface backgrounds */
:root[data-theme="dark"] .section-header h2 {
  color: var(--color-ink);
}

/* Membership section: p text with inline color: var(--color-ink-2) already
   cascades correctly, but the inline h2 on the section needs explicit ink */
:root[data-theme="dark"] .page-home h2 {
  color: var(--color-ink);
}

/* button-outline-white: color/border-color use --color-surface which becomes #0f172a
   in dark mode — invisible on any dark background. Keep white. */
:root[data-theme="dark"] .button-outline-white {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
:root[data-theme="dark"] .button-outline-white:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.80);
  color: #ffffff;
}

   STORE REDESIGN — v2 storefront styles
   All classes prefixed .store- to avoid collisions
   ============================================================ */

/* ── Shell & page header ─────────────────────────────────── */
.store-shell {
  padding-top: var(--sp-8);
}

.store-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.store-page-title {
  font-size: var(--text-5xl);
  margin: var(--sp-2) 0 var(--sp-3);
  line-height: 1.1;
}

.store-page-lead {
  max-width: 56ch;
  margin-bottom: 0;
}

.store-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  padding-top: var(--sp-2);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.store-breadcrumb-sep {
  color: var(--color-ink-3);
  opacity: 0.5;
}

/* ── Eskuri banner ───────────────────────────────────────── */
.store-eskuri-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(166, 168, 74, 0.06) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-6);
}

.store-eskuri-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.store-eskuri-banner-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Pickup strip ────────────────────────────────────────── */
.store-pickup-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.store-pickup-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ── Featured / Team Picks section ──────────────────────── */
.store-featured-section {
  margin-bottom: var(--sp-12);
}

.store-section-label {
  margin-bottom: var(--sp-6);
}

.store-section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  margin: var(--sp-1) 0 0;
}

.store-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}

/* Featured card — image at top, content below (no overlap) */
.store-featured-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.store-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.store-featured-card-link {
  display: block;
  flex-shrink: 0;
}

.store-featured-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-surface-3);
  flex-shrink: 0;
}

.store-featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.store-featured-card:hover .store-featured-card-img img {
  transform: scale(1.04);
}

.store-featured-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Filter bar ──────────────────────────────────────────── */
.store-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.store-filter-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-3);
  flex-shrink: 0;
}

.store-filter-tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.store-filter-tab {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-ink-2);
  transition: all 0.15s ease;
}

.store-filter-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

.store-filter-tab--active {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}

/* ── Store layout: main + sidebar ───────────────────────── */
.store-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-10);
  align-items: start;
}

.store-product-area {
  min-width: 0;
}

/* ── Product grid (main listing) ─────────────────────────── */
.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-5);
}

.store-product-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ── Product card ────────────────────────────────────────── */
.store-product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}

.store-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.store-product-card-img-link {
  display: block;
  flex-shrink: 0;
}

.store-product-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-3);
  flex-shrink: 0;
}

.store-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.store-product-card:hover .store-product-card-img img {
  transform: scale(1.04);
}

.store-product-card-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Shared card text atoms */
.store-card-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-ink-3);
  margin: 0 0 var(--sp-2);
}

.store-card-name {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
}

.store-card-name a {
  color: var(--color-ink);
  text-decoration: none;
}

.store-card-name a:hover {
  color: var(--color-primary);
}

.store-card-summary {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 var(--sp-4);
}

.store-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.store-card-price-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.store-card-price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* ── Image placeholder ───────────────────────────────────── */
.store-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-3);
  background: var(--color-surface-3);
}

/* ── Stock badges ────────────────────────────────────────── */
.store-stock-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.store-stock-badge--in {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.store-stock-badge--out {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.store-sidebar {
  position: sticky;
  top: calc(64px + var(--sp-4));
}

.store-sidebar-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.store-sidebar-panel:last-child {
  margin-bottom: 0;
}

.store-sidebar-text {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.6;
  margin: 0;
}

.store-sidebar-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  margin: 0;
  line-height: 1.5;
}

.store-pickup-card {
  margin-bottom: var(--sp-4);
}

.store-pickup-card:last-child {
  margin-bottom: 0;
}

/* ── Empty state ─────────────────────────────────────────── */
.store-empty-state {
  text-align: center;
  padding: var(--sp-20) var(--sp-8);
  color: var(--color-ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  grid-column: 1 / -1;
}

.store-empty-state h2,
.store-empty-state h3 {
  color: var(--color-ink);
  margin: 0;
}

.store-empty-state p {
  color: var(--color-ink-2);
  margin: 0;
}

/* ── Product detail layout ───────────────────────────────── */
.store-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-12);
}

.store-detail-title {
  font-size: var(--text-4xl);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-3);
  line-height: 1.1;
}

.store-detail-summary {
  font-size: var(--text-lg);
  color: var(--color-ink-2);
  line-height: 1.7;
  margin: 0 0 var(--sp-6);
}

.store-detail-price-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.store-detail-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

/* ── Gallery ─────────────────────────────────────────────── */
.store-gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-surface-3);
  position: relative;
  margin-bottom: var(--sp-3);
}

.store-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-gallery-thumbs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.store-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  background: var(--color-surface-3);
  padding: 0;
  transition: border-color 0.18s ease;
  flex-shrink: 0;
}

.store-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-gallery-thumb:hover {
  border-color: var(--color-primary);
}

.store-gallery-thumb--active {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.20);
}

.store-gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background: var(--color-surface-3);
  border: 1px dashed var(--color-border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--color-ink-3);
  font-size: var(--text-sm);
}

/* ── Add to cart form ────────────────────────────────────── */
.store-atc-form {
  margin-bottom: var(--sp-6);
}

.store-atc-field {
  margin-bottom: var(--sp-5);
}

.store-atc-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  margin-bottom: var(--sp-3);
}

.store-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.store-variant-option {
  position: relative;
  cursor: pointer;
}

.store-variant-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.store-variant-label {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.store-variant-option input[type="radio"]:checked + .store-variant-label {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-primary);
}

.store-variant-option:hover .store-variant-label {
  border-color: var(--color-primary);
}

.store-variant-option--unavailable .store-variant-label {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.store-variant-price {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-ink-3);
}

.store-variant-unavailable {
  font-size: var(--text-xs);
  color: var(--color-danger);
}

/* ── Quantity control ────────────────────────────────────── */
.store-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.store-qty-btn {
  width: 40px;
  height: 40px;
  background: var(--color-surface-2);
  border: none;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.store-qty-btn:hover {
  background: var(--color-surface-3);
}

.store-qty-input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-surface);
  padding: var(--sp-2);
  appearance: textfield;
  -moz-appearance: textfield;
}

.store-qty-input::-webkit-inner-spin-button,
.store-qty-input::-webkit-outer-spin-button {
  display: none;
}

.store-qty-display {
  min-width: 36px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  padding: 0 var(--sp-2);
}

.store-qty-control--sm .store-qty-btn {
  width: 32px;
  height: 32px;
  font-size: var(--text-base);
}

/* ── ATC actions ─────────────────────────────────────────── */
.store-atc-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.store-atc-btn {
  flex: 1;
  justify-content: center;
  gap: var(--sp-2);
  min-width: 160px;
}

/* ── Direct order (details/summary) ─────────────────────── */
.store-direct-order-details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-5);
}

.store-direct-order-summary {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.store-direct-order-summary::-webkit-details-marker {
  display: none;
}

.store-direct-order-summary::before {
  content: "+ ";
  color: var(--color-primary);
}

.store-direct-order-details[open] .store-direct-order-summary::before {
  content: "− ";
}

.store-direct-order-body {
  padding: 0 var(--sp-5) var(--sp-5);
  border-top: 1px solid var(--color-border);
}

/* ── WhatsApp row ────────────────────────────────────────── */
.store-whatsapp-row {
  text-align: center;
}

/* ── Variant row in sidebar info ─────────────────────────── */
.store-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
  gap: var(--sp-3);
}

.store-variant-row-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ── Description section ─────────────────────────────────── */
.store-detail-description {
  max-width: 680px;
  margin-bottom: var(--sp-12);
}

.store-detail-desc-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-5);
}

.store-detail-desc-body p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-ink-2);
  margin-bottom: var(--sp-4);
}

.store-detail-sidebar-info {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

.store-detail-sidebar-info .store-sidebar-panel {
  flex: 1;
  min-width: 200px;
}

/* ── Related section ─────────────────────────────────────── */
.store-related {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-10);
}

.store-related-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
}

/* ── Cart layout ─────────────────────────────────────────── */
.store-cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-10);
  align-items: start;
}

.store-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.store-cart-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.store-cart-item:first-child {
  border-top: 1px solid var(--color-border);
}

.store-cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface-3);
}

.store-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-cart-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-3);
}

.store-cart-item-info {
  flex: 1;
  min-width: 0;
}

.store-cart-item-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 var(--sp-1);
}

.store-cart-item-variant {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  margin: 0 0 var(--sp-2);
}

.store-cart-item-price {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  margin: 0;
}

.store-cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.store-cart-item-total {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.store-cart-qty-form,
.store-cart-remove-form {
  margin: 0;
}

.store-cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-ink-3);
  padding: var(--sp-1);
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.store-cart-remove-btn:hover {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

/* ── Discount panel ──────────────────────────────────────── */
.store-discount-panel {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.store-discount-form {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.store-discount-input {
  flex: 1;
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-surface);
  outline: none;
  transition: border-color 0.18s ease;
}

.store-discount-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.store-discount-applied {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-success);
  font-weight: 600;
}

.store-discount-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  text-decoration: underline;
  padding: 0 var(--sp-1);
  margin-left: var(--sp-2);
}

/* ── Cart summary sidebar ────────────────────────────────── */
.store-cart-summary {
  position: sticky;
  top: calc(64px + var(--sp-4));
}

.store-cart-summary-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
}

.store-cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.store-cart-summary-row--discount {
  color: var(--color-success);
}

.store-cart-summary-row--total {
  font-size: var(--text-base);
  border-top: 1px solid var(--color-border);
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  color: var(--color-ink);
}

.store-cart-continue-link {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  margin-top: var(--sp-3);
  transition: color 0.15s ease;
}

.store-cart-continue-link:hover {
  color: var(--color-primary);
}

.store-cart-payment-info {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  margin-top: var(--sp-4);
}

/* ── Checkout layout ─────────────────────────────────────── */
.store-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-10);
  align-items: start;
}

.store-checkout-form-col {
  min-width: 0;
}

/* ── Cart badge link (in page headers) ───────────────────── */
.cart-badge-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: border-color 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.cart-badge-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-badge-link--inline {
  margin-left: auto;
  font-size: var(--text-xs);
  padding: var(--sp-1) var(--sp-3);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  padding: 0 var(--sp-1);
  line-height: 1;
}

/* ── Navbar cart link ────────────────────────────────────── */
.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  color: var(--color-ink-2);
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.nav-cart-link:hover {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}

.nav-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}


/* ============================================================
   DARK MODE — store + cart additions
   ============================================================ */

:root[data-theme="dark"] .store-featured-card,
:root[data-theme="dark"] .store-product-card,
:root[data-theme="dark"] .store-sidebar-panel,
:root[data-theme="dark"] .store-cart-summary-panel,
:root[data-theme="dark"] .store-eskuri-banner,
:root[data-theme="dark"] .store-direct-order-details {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .store-pickup-strip {
  background: #1e293b;
}

:root[data-theme="dark"] .store-card-img-placeholder,
:root[data-theme="dark"] .store-product-card-img,
:root[data-theme="dark"] .store-featured-card-img {
  background: #334155;
}

:root[data-theme="dark"] .store-gallery-main,
:root[data-theme="dark"] .store-gallery-placeholder {
  background: #334155;
  border-color: rgba(148, 163, 184, 0.18);
}

:root[data-theme="dark"] .store-gallery-thumb {
  border-color: rgba(148, 163, 184, 0.18);
  background: #334155;
}

:root[data-theme="dark"] .store-variant-label {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--color-ink);
}

:root[data-theme="dark"] .store-variant-option input[type="radio"]:checked + .store-variant-label {
  border-color: #60A5FA;
  background: rgba(96, 165, 250, 0.12);
  color: #60A5FA;
}

:root[data-theme="dark"] .store-qty-btn {
  background: #334155;
  color: var(--color-ink);
}

:root[data-theme="dark"] .store-qty-btn:hover {
  background: #475569;
}

:root[data-theme="dark"] .store-qty-input {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--color-ink);
}

:root[data-theme="dark"] .store-qty-control {
  border-color: rgba(148, 163, 184, 0.22);
}

:root[data-theme="dark"] .store-cart-item {
  border-color: rgba(148, 163, 184, 0.12);
}

:root[data-theme="dark"] .store-discount-panel {
  border-color: rgba(148, 163, 184, 0.12);
}

:root[data-theme="dark"] .store-discount-input {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--color-ink);
}

:root[data-theme="dark"] .store-discount-input:focus {
  border-color: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

:root[data-theme="dark"] .store-cart-summary-row--total {
  border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .store-filter-tab {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--color-ink-2);
}

:root[data-theme="dark"] .store-filter-tab:hover {
  border-color: #60A5FA;
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.08);
}

:root[data-theme="dark"] .store-filter-tab--active {
  background: #60A5FA;
  color: #0f172a !important;
  border-color: #60A5FA;
}

:root[data-theme="dark"] .cart-badge-link {
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--color-ink-2);
}

:root[data-theme="dark"] .cart-badge-link:hover {
  border-color: #60A5FA;
  color: #60A5FA;
}

:root[data-theme="dark"] .store-cart-item-img {
  background: #334155;
}

:root[data-theme="dark"] .store-card-name a {
  color: var(--color-ink);
}

:root[data-theme="dark"] .store-card-name a:hover {
  color: #60A5FA;
}

:root[data-theme="dark"] .snav-dropdown {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}

:root[data-theme="dark"] .snav-dropdown::before {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}

:root[data-theme="dark"] .snav-mobile {
  background: #0f172a;
  border-top-color: rgba(148, 163, 184, 0.12);
}

:root[data-theme="dark"] .nav-cart-link {
  color: var(--color-ink-2);
}

:root[data-theme="dark"] .nav-cart-link:hover {
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.08);
}

/* ── Homepage dark mode fixes ────────────────────────────── */

/* Why Us section: surface-3 becomes slate-700 in dark — cards need contrast */
:root[data-theme="dark"] .feature-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.12);
}

/* Flash message: body white in dark shouldn't be #0f172a */
:root[data-theme="dark"] .flash-message {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--color-ink);
}

/* button-secondary on dark surface: inverted state was white-on-white */
:root[data-theme="dark"] .button-secondary {
  background: #334155;
  border-color: rgba(148, 163, 184, 0.30);
  color: var(--color-ink);
}

:root[data-theme="dark"] .button-secondary:hover {
  background: #475569;
  border-color: rgba(148, 163, 184, 0.50);
}

/* button-outline in dark mode */
:root[data-theme="dark"] .button-outline {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--color-ink-2);
}

:root[data-theme="dark"] .button-outline:hover {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.55);
}

/* Section-dark already uses dark bg — trainer cards and section headers work.
   But h2/h3 headings inherit --color-ink which is #f1f5f9 in dark mode — correct. */

/* Partnership strip on homepage */
:root[data-theme="dark"] .platform-partner-strip {
  background: #0f172a;
}

/* Sole to Soil campaign band (if rendered) */
:root[data-theme="dark"] .sts-campaign-band {
  /* earthy dark tone — keep it consistent whether light or dark */
  background: #1a1a0e;
}

/* ── Responsive: store pages ─────────────────────────────── */

@media (max-width: 1024px) {
  .store-layout {
    grid-template-columns: 1fr;
  }
  .store-sidebar {
    position: static;
  }
  .store-detail-layout {
    grid-template-columns: 1fr;
  }
  .store-cart-layout,
  .store-checkout-layout {
    grid-template-columns: 1fr;
  }
  .store-cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .store-page-title {
    font-size: var(--text-4xl);
  }
  .store-featured-grid {
    grid-template-columns: 1fr;
  }
  .store-detail-price {
    font-size: var(--text-2xl);
  }
  .store-cart-item {
    flex-wrap: wrap;
    gap: var(--sp-3);
  }
  .store-cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }
  .store-detail-sidebar-info {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .store-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }
  .store-page-header {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .store-detail-layout {
    gap: var(--sp-6);
  }
}

@media (max-width: 400px) {
  .store-product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG v2 — Editorial magazine layout
   Classes: blog-shell, blog-wrap, blog-featured-*, blog-card-*,
            blog-article-*, blog-prose, read-progress
   ============================================================ */

/* ── Reveal animation ── */
@keyframes blogReveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
}

[data-reveal].is-revealed {
  animation: blogReveal 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-reveal][data-delay="1"]  { animation-delay: 0.06s; }
[data-reveal][data-delay="2"]  { animation-delay: 0.13s; }
[data-reveal][data-delay="3"]  { animation-delay: 0.20s; }
[data-reveal][data-delay="4"]  { animation-delay: 0.27s; }
[data-reveal][data-delay="5"]  { animation-delay: 0.34s; }
[data-reveal][data-delay="6"]  { animation-delay: 0.41s; }

/* ── Blog container ── */
.blog-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}

.blog-wrap--narrow {
  max-width: 720px;
}

.blog-wrap--article-head {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-8);
}

/* ── Blog shell outer ── */
.blog-shell {
  padding-bottom: var(--sp-24);
}

/* ── Blog index page header ── */
.blog-index-header {
  padding-top: var(--sp-14);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-10);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-8);
}

.blog-index-header-text {
  flex: 1;
}

.blog-index-header-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding-bottom: var(--sp-2);
}

.blog-index-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-border-strong);
  letter-spacing: -0.04em;
  display: block;
}

.blog-index-stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-3);
}

.blog-index-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--color-ink);
  margin: var(--sp-3) 0 var(--sp-4);
  max-width: 18ch;
}

.blog-index-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-ink-2);
  max-width: 52ch;
}

.blog-index-lead p { margin: 0; }

/* ── Shared meta time ── */
.blog-meta-time {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink-3);
  margin-bottom: var(--sp-2);
}

/* ── Shared pill badge ── */
.blog-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px var(--sp-3);
  border-radius: var(--radius-full);
}

.blog-pill--featured {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.09);
}

.blog-pill--time {
  color: var(--color-ink-3);
  background: var(--color-surface-3);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.blog-featured-badges {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

/* ── Card meta row (date + read time) ── */
.blog-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.blog-card-read-time {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Shared read CTA ── */
.blog-read-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-top: var(--sp-3);
  transition: gap 0.2s ease;
}

.blog-read-cta--sm {
  font-size: var(--text-xs);
  margin-top: var(--sp-2);
}

/* ── Card byline ── */
.blog-card-byline {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  margin: var(--sp-1) 0 0;
}

/* ── FEATURED POST ── */
.blog-featured {
  margin-bottom: var(--sp-12);
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.32s ease, transform 0.32s ease;
}

.blog-featured-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.045);
}

.blog-featured-card:hover .blog-read-cta {
  gap: var(--sp-2);
}

.blog-featured-img-col {
  overflow: hidden;
  position: relative;
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-featured-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface-3));
}

.blog-featured-body {
  padding: var(--sp-10) var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--color-ink);
  margin: 0 0 var(--sp-3);
}

.blog-featured-excerpt {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── POSTS GRID ── */
.blog-all-section {
  margin-top: var(--sp-4);
}

.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-section-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-3);
  letter-spacing: 0.02em;
}

.blog-section-rule {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--color-ink-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-6);
  margin: 0 0 var(--sp-8);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.blog-card-wrap {
  display: flex;
  flex-direction: column;
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.blog-card-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-link:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-link:hover .blog-read-cta {
  gap: var(--sp-2);
}

.blog-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface-3));
}

.blog-card-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--color-ink);
  margin: 0 0 var(--sp-2);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-empty-state {
  padding: var(--sp-16) 0 var(--sp-8);
  color: var(--color-ink-3);
  font-size: var(--text-lg);
}

/* ── Bottom CTA (blog index) ── */
.blog-bottom-cta {
  margin-top: var(--sp-16);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--sp-16) var(--sp-10);
  text-align: center;
}

.blog-bottom-cta-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 var(--sp-3);
}

.blog-bottom-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 var(--sp-4);
}

.blog-bottom-cta-body {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  margin: 0 auto var(--sp-8);
}

.blog-bottom-cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.blog-bottom-cta .button-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.blog-bottom-cta .button-primary:hover {
  background: rgba(255,255,255,0.92);
}

.blog-bottom-cta .button-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.blog-bottom-cta .button-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* ── Article in-article CTA ── */
.blog-article-cta-wrap {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-6);
}

.blog-article-cta {
  border-radius: var(--radius-2xl);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: var(--sp-10) var(--sp-10);
  text-align: center;
}

.blog-article-cta-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin: 0 0 var(--sp-3);
}

.blog-article-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 var(--sp-3);
}

.blog-article-cta-body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink-2);
  max-width: 46ch;
  margin: 0 auto var(--sp-6);
}

.blog-article-cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ── Article meta read time ── */
.blog-article-meta-readtime {
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Dark mode — blog index ── */
:root[data-theme="dark"] .blog-featured-card,
:root[data-theme="dark"] .blog-card-link {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

:root[data-theme="dark"] .blog-pill--featured {
  background: rgba(96, 165, 250, 0.12);
}

:root[data-theme="dark"] .blog-pill--time {
  background: var(--color-surface-3);
  color: var(--color-ink-3);
}

:root[data-theme="dark"] .blog-index-stat-num {
  color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .blog-article-cta {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

/* ── READING PROGRESS BAR ── */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  z-index: calc(var(--z-header) + 5);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── ARTICLE PAGE ── */
.blog-article-shell {
  padding-bottom: var(--sp-24);
}

.blog-article-breadcrumb {
  margin-bottom: var(--sp-7);
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, gap 0.18s ease;
}

.blog-back-link:hover {
  color: var(--color-primary);
  gap: var(--sp-2);
}

.blog-article-meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-ink-3);
  margin-bottom: var(--sp-5);
}

.blog-article-meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.blog-article-meta-author {
  color: var(--color-ink-2);
}

.blog-article-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-ink);
  margin: 0 0 var(--sp-6);
  max-width: 22ch;
}

.blog-article-intro {
  font-size: var(--text-xl);
  line-height: 1.62;
  color: var(--color-ink-2);
  max-width: 54ch;
  margin: 0;
}

/* ── Article hero image ── */
.blog-article-hero {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: 0 0 var(--sp-12);
  aspect-ratio: 21 / 9;
}

.blog-article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Article prose ── */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--color-ink-2);
}

.blog-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-ink);
  margin: var(--sp-12) 0 var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

.blog-prose h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: var(--sp-10) 0 var(--sp-3);
}

.blog-prose p {
  margin: 0 0 var(--sp-6);
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.6em;
  margin: 0 0 var(--sp-6);
}

.blog-prose li {
  margin-bottom: var(--sp-2);
}

.blog-prose blockquote {
  position: relative;
  margin: var(--sp-10) 0;
  padding: var(--sp-6) var(--sp-8);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-2);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.blog-prose blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0;
}

.blog-prose strong {
  font-weight: 700;
  color: var(--color-ink);
}

.blog-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  transition: text-decoration-color 0.18s ease;
}

.blog-prose a:hover {
  text-decoration-color: var(--color-primary);
}

.blog-prose img {
  border-radius: var(--radius-lg);
  margin: var(--sp-8) 0;
  box-shadow: var(--shadow-md);
}

/* ── Article footer ── */
.blog-article-foot {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-4);
  margin-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

.blog-back-link-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, gap 0.18s ease;
}

.blog-back-link-footer:hover {
  color: var(--color-primary);
  gap: var(--sp-3);
}

/* ── Tag filter bar (index page) ── */
.blog-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

/* ── Tag pills ── */
.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--color-surface-2);
  color: var(--color-ink-3);
  border: 1px solid var(--color-border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

a.blog-tag-pill:hover,
a.blog-tag-pill:focus-visible {
  background: var(--color-primary-subtle, color-mix(in srgb, var(--color-primary) 12%, transparent));
  color: var(--color-primary);
  border-color: var(--color-primary);
  outline: none;
}

.blog-tag-pill--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.blog-tag-pill--sm {
  padding: 3px 10px;
  font-size: 10px;
}

/* ── Tag rows inside cards / article header ── */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-5);
}

/* ── Related articles ── */
.blog-related-section {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-4);
}

/* ── Dark mode — tags + article ── */
:root[data-theme="dark"] .blog-tag-pill {
  background: var(--color-surface-3, #2a2a2a);
  border-color: var(--color-border);
  color: var(--color-ink-3);
}

:root[data-theme="dark"] .blog-prose blockquote {
  background: var(--color-surface-2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .blog-featured-img-col {
    aspect-ratio: 16 / 9;
  }

  .blog-featured-body {
    padding: var(--sp-6) var(--sp-6) var(--sp-7);
  }

  .blog-article-hero {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
  }

  .blog-article-h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-body {
    padding: var(--sp-5) var(--sp-5) var(--sp-6);
  }

  .blog-index-header {
    padding-top: var(--sp-10);
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-index-header-stat {
    display: none;
  }

  .blog-article-intro {
    font-size: var(--text-lg);
  }

  .blog-prose blockquote {
    padding: var(--sp-4) var(--sp-5);
  }

  .blog-prose blockquote p {
    font-size: var(--text-xl);
  }

  .blog-bottom-cta {
    padding: var(--sp-10) var(--sp-6);
  }

  .blog-article-cta {
    padding: var(--sp-7) var(--sp-6);
  }
}


/* ============================================================
   17. HOMEPAGE — Team v2, Clinical Network, Donation Tiers
   (appended — portrait-first team, partnership section, guided giving)
   ============================================================ */

/* --- 17a. Meet the Team — portrait-first cards (dark section) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.trainer-card-v2 {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.22s ease, background 0.22s ease;
}

.trainer-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 168, 74, 0.30);
  background: rgba(255, 255, 255, 0.06);
}

.trainer-card-v2-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--color-dark-bg-2), var(--color-dark-bg));
  overflow: hidden;
}

.trainer-card-v2-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.trainer-card-v2:hover .trainer-card-v2-portrait img { transform: scale(1.04); }

.trainer-card-v2-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.trainer-card-v2-exp {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-full);
}

.trainer-card-v2-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.trainer-card-v2-chips {
  list-style: none;
  margin: var(--sp-1) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.trainer-card-v2-chips li {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.25em 0.6em;
  border-radius: var(--radius-full);
}

.trainer-card-v2-bio {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  margin: var(--sp-2) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trainer-card-v2-modes {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  margin: var(--sp-1) 0 0;
}

.trainer-card-v2-cta {
  margin-top: var(--sp-4);
  align-self: flex-start;
}

/* --- 17b. Our Clinical Network — partnership section --- */
.clinical-network {
  background: var(--color-surface-3);
  padding: var(--sp-20) var(--sp-5);
  border-top: 1px solid var(--color-border);
}

.clinical-network-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.partner-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.partner-card-media {
  position: relative;
  background: linear-gradient(155deg, var(--color-primary), var(--color-primary-dark));
  padding: var(--sp-7) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-5);
  min-height: 220px;
  color: #fff;
}

.partner-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.20), transparent 55%);
  pointer-events: none;
}

.partner-card-logo {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.partner-card-logo img { width: 100%; height: 100%; object-fit: contain; }

.partner-card-logo-monogram {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1;
}

.partner-card-media-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.partner-card-media-name { font-weight: 700; font-size: var(--text-base); }
.partner-card-media-loc { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.82); }

.partner-card-body {
  padding: var(--sp-6) var(--sp-6) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.partner-card-name {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin: var(--sp-1) 0 0;
}

.partner-card-lead {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.7;
  margin: var(--sp-1) 0 0;
}

.partner-card-practitioner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

.partner-card-practitioner-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-sm);
}

.partner-card-practitioner-id { display: flex; flex-direction: column; }
.partner-card-practitioner-id strong { font-size: var(--text-base); color: var(--color-ink); }
.partner-card-practitioner-id span { font-size: var(--text-xs); color: var(--color-ink-3); }

.partner-card-bio {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.7;
  margin: var(--sp-3) 0 0;
}

.partner-card-chips {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.partner-card-chips li {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-info-bg);
  padding: 0.35em 0.75em;
  border-radius: var(--radius-full);
}

.partner-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: var(--sp-5) 0 0;
}

.partner-card-meta-item dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-3);
  margin-bottom: 2px;
}

.partner-card-meta-item dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.5;
}

.partner-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.network-locations {
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--color-border);
}

.network-locations-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-3);
  margin: 0 0 var(--sp-4);
}

.network-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.network-location {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.network-location-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.network-location strong { font-size: var(--text-base); color: var(--color-ink); }
.network-location span { font-size: var(--text-sm); color: var(--color-ink-3); }

/* Dark-mode surfaces (match .info-card elevation pattern) */
:root[data-theme="dark"] .partner-card,
:root[data-theme="dark"] .network-location {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.15);
}
:root[data-theme="dark"] .network-location { border-left-color: var(--color-primary); }

/* --- 17c. Guided donation tiers (fundraiser sidebar) --- */
.donation-tiers { margin-bottom: var(--sp-5); }

.donation-tiers-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-3);
  margin: 0 0 var(--sp-3);
}

.donation-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.donation-tier {
  position: relative;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-3);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.donation-tier:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.donation-tier--active {
  border-color: var(--color-primary);
  background: var(--color-info-bg);
  box-shadow: 0 0 0 2px var(--color-info-bg);
}

.donation-tier-amount {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.donation-tier-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink);
}

.donation-tier-impact {
  font-size: 0.6875rem;
  color: var(--color-ink-3);
  line-height: 1.45;
  margin-top: 2px;
}

.donation-tier--featured { border-color: var(--color-border-strong); }

.donation-tier-badge {
  position: absolute;
  top: -9px;
  right: var(--sp-2);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--color-primary);
  padding: 0.2em 0.55em;
  border-radius: var(--radius-full);
}

.donation-tiers-hint {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  line-height: 1.6;
  margin: var(--sp-3) 0 0;
}

/* Responsive — Team v2, Clinical Network */
@media (max-width: 640px) {
  .partner-card { grid-template-columns: 1fr; }
  .partner-card-media {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: var(--sp-4);
    padding: var(--sp-5);
  }
  .partner-card-logo { width: 64px; height: 64px; }
  .partner-card-meta { grid-template-columns: 1fr; gap: var(--sp-3); }
  .partner-card-actions .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .trainer-card-v2:hover,
  .trainer-card-v2:hover .trainer-card-v2-portrait img,
  .partner-card:hover,
  .donation-tier:hover { transform: none; }
}
