/* =====================================================================
   FLEXFIT — style.css
   Mobile-first. Edit the colors / fonts in the :root block below.
   ---------------------------------------------------------------------
   1.  Variables, reset, base
   2.  Layout & typography helpers
   3.  Buttons, chips, segmented control
   4.  Header, mobile menu, bottom tab bar
   5.  Loader, progress bar, cursor glow, toasts
   6.  Image upload slots + logo
   7.  Hero & page hero
   8.  Marquee
   9.  Sections: event, stats, programs, features, timeline, banners
   10. Trainers (flip cards)
   11. Gallery + lightbox
   12. Testimonials
   13. Class schedule
   14. Pricing, comparison table, calculator
   15. FAQ
   16. Forms
   17. Modals (join + quiz)
   18. Footer
   19. Reveal animations
   20. Larger screens
   ===================================================================== */


/* =====================================================================
   1. VARIABLES, RESET, BASE
   ===================================================================== */
:root {
  --bg: #0a0505;
  --bg2: #140909;
  --card: #1a0e0e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f6;
  --muted: #a89a9a;
  --accent: #ff2a36;
  --hot: #ffb020;
  --radius: 22px;
  --head: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 72px;
  --tab-h: 66px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* lets body clip its own overflow (tilted marquee etc.) */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom));
  opacity: 1;
  transition: opacity 0.25s ease;
}

body.leaving {
  opacity: 0;
}

body.lock {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #000;
}

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


/* =====================================================================
   2. LAYOUT & TYPOGRAPHY HELPERS
   ===================================================================== */
.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  scroll-margin-top: 80px;
  position: relative;
}

.section.alt {
  background: var(--bg2);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.h-display {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(46px, 11vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.5px;
}

.h-display .outline,
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.muted {
  color: var(--muted);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.center {
  text-align: center;
}

.center .section-head,
.section-head.center {
  margin-inline: auto;
}

.center .eyebrow {
  justify-content: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease;
  touch-action: auto;   /* was pan-y, which blocked swiping the program cards sideways */
  will-change: transform;
}


/* =====================================================================
   3. BUTTONS, CHIPS, SEGMENTED CONTROL
   ===================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 42, 54, 0.35);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.96);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  position: relative;
  overflow: hidden;
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}

.seg button {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: 0.25s ease;
}

.seg button.active {
  background: var(--accent);
  color: #000;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 42, 54, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =====================================================================
   4. HEADER, MOBILE MENU, BOTTOM TAB BAR
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: var(--head);
  font-size: 30px;
  letter-spacing: 2px;
  line-height: 1;
}

.brand-name b {
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: none;
}

.nav-links a {
  position: relative;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  display: none;
}

.burger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(26, 14, 14, 0.6);
  display: grid;
  place-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}

body.menu-open .burger span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Logo (upload) */
.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}

.logo-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px dashed rgba(255, 42, 54, 0.6);
  background: rgba(255, 42, 54, 0.07);
  font-family: var(--head);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mark.has-logo .logo-link {
  border-color: transparent;
  background: transparent;
}

.logo-edit {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.logo-edit:hover {
  transform: scale(1.15) rotate(90deg);
}

.logo-mark.big {
  width: 64px;
  height: 64px;
}

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 20px) 24px calc(30px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 80% 0%, rgba(255, 42, 54, 0.12), transparent 50%), rgba(10, 5, 5, 0.98);
  clip-path: circle(0 at calc(100% - 44px) 36px);
  visibility: hidden;
  transition: clip-path 0.65s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.65s;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  clip-path: circle(160% at calc(100% - 44px) 36px);
  visibility: visible;
  transition: clip-path 0.65s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0s;
}

.mm-links {
  display: grid;
}

.mm-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--head);
  font-size: clamp(44px, 13vw, 72px);
  line-height: 1.1;
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.5s ease, translate 0.5s var(--ease), color 0.2s ease;
}

.mm-link small {
  font-family: var(--body);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
}

.mm-link.active,
.mm-link:active {
  color: var(--accent);
}

body.menu-open .mm-link {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(0.18s + var(--i) * 0.06s);
}

.mm-foot {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: 0.25s ease;
}

.socials a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Bottom tab bar (mobile app feel) */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 98;
  height: var(--tab-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-radius: 26px;
  background: rgba(26, 14, 14, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.tab {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.tab svg {
  width: 22px;
  height: 22px;
}

.tab.active {
  color: var(--accent);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.tab:active {
  transform: scale(0.88);
}

.tab-join {
  width: 58px;
  height: 58px;
  margin: -28px auto 0;
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(255, 42, 54, 0.45);
  animation: pulse 2.6s infinite;
}

.tab-join svg {
  width: 26px;
  height: 26px;
}

.tab-join:active {
  transform: scale(0.9);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 26px rgba(255, 42, 54, 0.45), 0 0 0 0 rgba(255, 42, 54, 0.35);
  }
  50% {
    box-shadow: 0 8px 26px rgba(255, 42, 54, 0.45), 0 0 0 12px rgba(255, 42, 54, 0);
  }
}


/* =====================================================================
   5. LOADER, PROGRESS BAR, CURSOR GLOW, TOASTS
   ===================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0s 0.6s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--head);
  font-size: clamp(56px, 16vw, 110px);
  letter-spacing: 4px;
  line-height: 1;
}

.loader-logo b {
  color: var(--accent);
  font-weight: 400;
}

.loader-bar {
  width: min(240px, 60vw);
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.15s linear;
}

.loader-num {
  font-family: var(--head);
  font-size: 22px;
  color: var(--muted);
  letter-spacing: 2px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 120;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 54, 0.1), transparent 65%);
  pointer-events: none;
  will-change: transform;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 300;
  display: grid;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  padding: 14px 18px;
  border-radius: 16px;
  background: #261515;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.35s ease, translate 0.35s var(--ease);
}

.toast::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 800;
}

.toast.error::before {
  content: '!';
  background: var(--hot);
  color: #fff;
}

.toast.show {
  opacity: 1;
  translate: 0 0;
}


/* =====================================================================
   6. IMAGE UPLOAD SLOTS
   Any element with class "slot" + data-slot="unique-id" + data-label="..."
   becomes an upload box. Images are saved in the browser (localStorage).
   ===================================================================== */
.slot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #221212, #120808);
  background-size: cover;
  background-position: center;
}

.slot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1.5px dashed rgba(255, 42, 54, 0.38);
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slot.has-img::before {
  opacity: 0;
}

.slot-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.25s ease;
}

.slot-ph:hover {
  background: rgba(255, 42, 54, 0.07);
}

.slot-ph svg {
  width: 30px;
  height: 30px;
}

.slot-ph span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.slot-ph small {
  font-size: 11px;
  color: var(--muted);
}

.slot.has-img .slot-ph {
  display: none;
}

.slot-btn,
.slot-del {
  position: absolute;
  top: 10px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
}

.slot-btn {
  right: 10px;
}

.slot-del {
  right: 50px;
}

.slot-btn svg,
.slot-del svg {
  width: 16px;
  height: 16px;
}

.slot-btn:hover {
  background: var(--accent);
  color: #000;
}

.slot-del:hover {
  background: var(--hot);
}

.slot.busy .slot-btn {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}


/* =====================================================================
   7. HERO & PAGE HERO
   ===================================================================== */
.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 70px;
}

.page-hero {
  min-height: 58svh;
  padding: calc(var(--nav-h) + 40px) 0 56px;
}

.hero > .slot,
.page-hero > .slot {
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: 0;
  right: 0;
  z-index: 0;
}

.hero > .slot::before,
.page-hero > .slot::before {
  display: none;
}

.hero > .slot .slot-ph,
.page-hero > .slot .slot-ph {
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 90px);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 5, 5, 0.6) 0%, rgba(10, 5, 5, 0.2) 38%, rgba(10, 5, 5, 0.96) 100%),
    radial-gradient(circle at 85% 15%, rgba(255, 42, 54, 0.16), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-content a,
.hero-content button,
.hero-content .hchip {
  pointer-events: auto;
}

.hero-title {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(110px, 34vw, 340px);
  line-height: 0.8;
  letter-spacing: -1px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.12em;
  margin-bottom: 18px;
}

.hero-title .line {
  display: inline-block;
}

.hero-title .outline {
  -webkit-text-stroke: 2px var(--accent);
}

.ch {
  display: inline-block;
  opacity: 0;
  translate: 0 60%;
  animation: chIn 0.9s var(--ease) forwards;
  animation-delay: calc(0.5s + var(--i) * 0.07s);
}

@keyframes chIn {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-sub {
  max-width: 520px;
  color: #dccfcf;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-chips {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.hero-chips::-webkit-scrollbar {
  display: none;
}

.hchip {
  flex: none;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(26, 14, 14, 0.65);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hchip b {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

.hchip span {
  font-size: 12px;
  color: var(--muted);
}

.scroll-cue {
  display: none;
}

.page-hero .h-display {
  font-size: clamp(64px, 18vw, 200px);
  line-height: 0.85;
}

.page-hero p {
  max-width: 540px;
  color: #dccfcf;
  margin-top: 16px;
}


/* =====================================================================
   8. MARQUEE
   ===================================================================== */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin: -10px -10px;
  padding: 14px 0;
  background: var(--bg2);
  border-block: 1px solid var(--line);
  rotate: -1.2deg;
}

.marquee.accent-bg {
  background: var(--accent);
  rotate: 1deg;
}

.marquee.accent-bg span {
  color: #000;
  -webkit-text-stroke: 0 !important;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee.rev .marquee-track {
  animation-direction: reverse;
}

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

.marquee-track span {
  padding: 0 26px;
  font-family: var(--head);
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.1;
  white-space: nowrap;
}

.marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}


/* =====================================================================
   9. SECTIONS: EVENT, STATS, PROGRAMS, FEATURES, TIMELINE, BANNERS
   ===================================================================== */
/* ---- Challenge / event card ---- */
.event {
  display: grid;
  gap: 28px;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1f1111, #150b0b);
  border: 1px solid var(--line);
}

.event-poster {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}

.event-info {
  padding: 6px 6px 14px;
}

.event-info p.lead {
  color: var(--muted);
  margin: 16px 0 22px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.countdown div {
  padding: 14px 6px;
  text-align: center;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.countdown b {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1;
  color: var(--accent);
}

.countdown span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.event-meta div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.event-meta small {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.event-meta strong {
  font-size: 14px;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat {
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.stat b {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(52px, 13vw, 84px);
  line-height: 1;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* ---- Programs (swipe on mobile, grid on desktop) ---- */
.h-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 16px;
  margin-inline: -20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.p-card {
  position: relative;
  flex: 0 0 78%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--line);
}

.p-card > .slot {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.p-card:hover > .slot {
  transform: scale(1.06);
}

.p-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 5, 5, 0.95) 100%);
}

.p-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  pointer-events: none;
}

.p-info h3 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  margin: 8px 0;
}

.p-info p {
  font-size: 14px;
  color: #dccfcf;
}

.p-info a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

.p-info a svg {
  width: 16px;
  height: 16px;
  transition: translate 0.25s ease;
}

.p-info a:hover svg {
  translate: 5px 0;
}

/* ---- Features ---- */
.features {
  display: grid;
  gap: 14px;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateX(6px);
  border-color: rgba(255, 42, 54, 0.5);
  background: #221313;
}

.feature .ico {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 54, 0.12);
  color: var(--accent);
  font-size: 22px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
}

.tall-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.float-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(10, 5, 5, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  pointer-events: none;
}

.float-tag b {
  font-family: var(--head);
  font-weight: 400;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.float-tag span {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 38px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.t-item {
  position: relative;
  padding-bottom: 32px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 42, 54, 0.1);
  transition: background 0.3s ease;
}

.t-item:hover::before {
  background: var(--accent);
}

.t-item small {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.t-item h3 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
}

.t-item p {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
}

/* ---- Banner / CTA ---- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(36px, 8vw, 80px) clamp(22px, 6vw, 70px);
  border: 1px solid var(--line);
  isolation: isolate;
}

.banner > .slot {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.banner > .slot::before {
  border-radius: 30px;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(10, 5, 5, 0.92) 25%, rgba(10, 5, 5, 0.45));
}

.banner .slot-ph {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
}

.banner .banner-body {
  position: relative;
  max-width: 560px;
  pointer-events: none;
}

.banner .banner-body a,
.banner .banner-body button {
  pointer-events: auto;
}

.banner p {
  color: #dccfcf;
  margin: 14px 0 0;
}

.values {
  display: grid;
  gap: 14px;
}

.value {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.value .n {
  font-family: var(--head);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.value h3 {
  font-size: 19px;
  margin: 6px 0;
}

.value p {
  color: var(--muted);
  font-size: 14px;
}


/* =====================================================================
   10. TRAINERS (FLIP CARDS)
   ===================================================================== */
.trainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.flip {
  position: relative;
  aspect-ratio: 4 / 5;
  perspective: 1100px;
}

.flip.is-hidden {
  display: none;
}

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}

.flip.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-front > .slot {
  position: absolute;
  inset: 0;
}

.flip-front .p-shade {
  background: linear-gradient(180deg, transparent 45%, rgba(10, 5, 5, 0.95));
}

.flip-front .p-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.flip-btn {
  pointer-events: auto;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  transition: transform 0.25s ease;
}

.flip-btn:hover {
  transform: rotate(180deg) scale(1.08);
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(160deg, #241414, #150b0b);
}

.flip-back h3 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
}

.flip-back p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 42, 54, 0.4);
  color: var(--accent);
}

.flip-back .actions {
  display: flex;
  gap: 10px;
}

.flip-back .actions .btn {
  flex: 1;
  padding-inline: 12px;
}


/* =====================================================================
   11. GALLERY + LIGHTBOX
   ===================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
  margin-top: 24px;
}

.g-item {
  border-radius: 18px;
  transition: transform 0.4s var(--ease), opacity 0.4s ease;
  cursor: zoom-in;
}

.g-item:nth-child(4n + 1) {
  grid-row: span 2;
}

.g-item:nth-child(6n) {
  grid-column: span 2;
}

.g-item.is-filtered,
.g-item.is-more {
  display: none;
}

.g-item:hover {
  transform: scale(0.985);
}

.g-item:not(.has-img) {
  cursor: default;
}

.center-btn {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  touch-action: pan-y;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.lightbox img {
  max-width: 94vw;
  max-height: 80svh;
  border-radius: 16px;
  object-fit: contain;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

.lightbox img.swap {
  opacity: 0;
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.lb-btn:hover {
  background: var(--accent);
  color: #000;
}

.lb-btn svg {
  width: 22px;
  height: 22px;
}

.lb-close {
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
}

.lb-prev,
.lb-next {
  top: 50%;
  translate: 0 -50%;
}

.lb-prev {
  left: 12px;
}

.lb-next {
  right: 12px;
}

.lb-prev svg {
  rotate: 180deg;
}

.lb-count {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}


/* =====================================================================
   12. TESTIMONIALS
   ===================================================================== */
.t-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -20px;
  padding: 4px 20px 10px;
  -webkit-overflow-scrolling: touch;
}

.t-track::-webkit-scrollbar {
  display: none;
}

.quote {
  flex: 0 0 86%;
  scroll-snap-align: center;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.quote .stars {
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.quote p {
  font-size: 17px;
  line-height: 1.55;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.who .slot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex: none;
}

.who .slot-ph {
  padding: 0;
}

.who .slot-ph span,
.who .slot-ph small {
  display: none;
}

.who .slot-ph svg {
  width: 20px;
  height: 20px;
}

.who .slot-btn,
.who .slot-del {
  width: 22px;
  height: 22px;
  top: auto;
  bottom: 0;
}

.who .slot-btn {
  right: 0;
}

.who .slot-del {
  right: 24px;
}

.who .slot-btn svg,
.who .slot-del svg {
  width: 11px;
  height: 11px;
}

.who b {
  display: block;
  line-height: 1.2;
}

.who small {
  color: var(--muted);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--line);
  transition: 0.3s ease;
}

.dots button.active {
  width: 28px;
  background: var(--accent);
}


/* =====================================================================
   13. CLASS SCHEDULE (classes.html)
   ===================================================================== */
.day-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-inline: -20px;
  padding-inline: 20px;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 66px;
  padding: 12px 0;
  border-radius: 18px;
  text-align: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  transition: 0.25s ease;
}

.day-tab small {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.day-tab b {
  font-family: var(--head);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}

.day-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

.day-tab.active small {
  color: #000;
}

.sched-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.sched-sum {
  font-size: 14px;
  color: var(--muted);
}

.sched-sum b {
  color: var(--accent);
}

.class-list {
  display: grid;
  gap: 12px;
}

.class-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 0.05s);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.class-item:hover {
  border-color: rgba(255, 42, 54, 0.45);
  transform: translateX(4px);
}

.class-item.past {
  opacity: 0.45;
}

.class-item.booked {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 42, 54, 0.1), var(--card));
}

.c-time {
  font-family: var(--head);
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

.c-time small {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.c-info h3 {
  font-size: 17px;
  line-height: 1.25;
}

.c-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.spots {
  width: 100%;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.spots i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.spots.low i {
  background: var(--hot);
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}


/* =====================================================================
   14. PRICING, COMPARISON TABLE, CALCULATOR
   ===================================================================== */
.billing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

.plan:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 54, 0.5);
}

.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 42, 54, 0.1), var(--card) 55%);
}

.plan .badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

.plan h3 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 1px;
}

.plan .desc {
  color: var(--muted);
  font-size: 14px;
  min-height: 42px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 4px;
}

.price b {
  font-family: var(--head);
  font-weight: 400;
  font-size: 84px;
  line-height: 1;
}

.price sup {
  font-size: 26px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 12px;
}

.price span {
  color: var(--muted);
}

.plan .note {
  font-size: 13px;
  color: var(--accent);
  min-height: 20px;
  margin-bottom: 18px;
}

.plan ul {
  display: grid;
  gap: 11px;
  margin: 20px 0 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.plan li {
  display: flex;
  gap: 10px;
}

.plan li::before {
  content: '✓';
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 42, 54, 0.15);
  color: var(--accent);
}

.plan li.off {
  color: #5f5f6c;
  text-decoration: line-through;
}

.plan li.off::before {
  content: '–';
  background: var(--line);
  color: #5f5f6c;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  text-align: left;
  background: var(--card);
  min-width: 170px;
}

thead th {
  font-family: var(--head);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 1px;
  background: var(--bg2);
}

thead th:first-child {
  background: var(--bg2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td .yes {
  color: var(--accent);
  font-weight: 800;
}

td .no {
  color: #5f5f6c;
}

/* Calculator */
.calc {
  display: grid;
  gap: 18px;
}

.calc-box {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.range-row {
  margin-bottom: 22px;
}

.range-row label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.range-row label b {
  color: var(--text);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  cursor: grab;
}

input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.big-num {
  font-family: var(--head);
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
}

.gauge {
  position: relative;
  height: 12px;
  margin: 26px 0 8px;
  border-radius: 12px;
  background: linear-gradient(90deg, #3dc2ff 0 14%, #3ddc84 14% 40%, #ffb020 40% 60%, #ff2a36 60%);
}

.gauge i {
  position: absolute;
  top: -7px;
  left: 0;
  width: 4px;
  height: 26px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  transition: left 0.6s var(--ease);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.mini-stats div {
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
}

.mini-stats b {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}

.mini-stats small {
  font-size: 11px;
  color: var(--muted);
}


/* =====================================================================
   15. FAQ
   ===================================================================== */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: rgba(255, 42, 54, 0.5);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
}

.faq-q i {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  transition: 0.3s ease;
}

.faq-q i::before,
.faq-q i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  background: var(--text);
  translate: -50% -50%;
  transition: 0.3s ease;
}

.faq-q i::after {
  rotate: 90deg;
}

.faq-item.open .faq-q i {
  background: var(--accent);
}

.faq-item.open .faq-q i::before,
.faq-item.open .faq-q i::after {
  background: #000;
}

.faq-item.open .faq-q i::after {
  rotate: 0deg;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
}


/* =====================================================================
   16. FORMS
   ===================================================================== */
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea,
.news input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  background: #0f0707;
  border: 1.5px solid var(--line);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.news input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 42, 54, 0.12);
}

.field.err input,
.field.err select,
.field.err textarea,
.news.err input {
  border-color: var(--hot);
  animation: shake 0.35s;
}

.field .err-msg {
  display: none;
  font-size: 12px;
  color: var(--hot);
}

.field.err .err-msg {
  display: block;
}

@keyframes shake {
  25% {
    translate: -6px 0;
  }
  75% {
    translate: 6px 0;
  }
}

.form-grid {
  display: grid;
  gap: 0 16px;
}

.form-ok {
  display: none;
  padding: 18px;
  margin-top: 14px;
  border-radius: 16px;
  background: rgba(255, 42, 54, 0.1);
  border: 1px solid rgba(255, 42, 54, 0.4);
  color: var(--accent);
  font-weight: 600;
}

.form-ok.show {
  display: block;
}

.contact-grid {
  display: grid;
  gap: 24px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.info:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.info .ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 54, 0.12);
  font-size: 20px;
}

.info small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info b {
  font-weight: 600;
}

.map-slot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hours {
  width: 100%;
  min-width: 0;
  font-size: 15px;
}

.hours td {
  padding: 12px 0;
  text-align: left;
}

.hours td:last-child {
  text-align: right;
  color: var(--accent);
  font-weight: 600;
}

.hours td:first-child {
  position: static;
  min-width: 0;
  background: none;
}


/* =====================================================================
   17. MODALS (JOIN + QUIZ)
   ===================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-height: 92svh;
  overflow-y: auto;
  padding: 10px 22px calc(28px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  overscroll-behavior: contain;
}

.modal.open .modal-sheet {
  transform: none;
}

.grab {
  width: 46px;
  height: 5px;
  margin: 6px auto 16px;
  border-radius: 5px;
  background: var(--line);
  cursor: grab;
  touch-action: none;
}

.modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line);
  transition: 0.2s ease;
}

.modal-x:hover {
  background: var(--hot);
}

.modal-x svg {
  width: 16px;
  height: 16px;
}

.modal h2 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
}

.modal .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.plan-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.plan-pick label {
  cursor: pointer;
}

.plan-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-pick span {
  display: block;
  padding: 14px 6px;
  text-align: center;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  transition: 0.25s ease;
}

.plan-pick b {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

.plan-pick small {
  color: var(--muted);
  font-size: 12px;
}

.plan-pick input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

.plan-pick input:checked + span small {
  color: #000;
}

.success {
  text-align: center;
  padding: 24px 0 8px;
}

.success .tick {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  animation: pop 0.6s var(--ease);
}

.success .tick svg {
  width: 44px;
  height: 44px;
  stroke-width: 3;
}

@keyframes pop {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}

/* Quiz */
.quiz-bar {
  height: 5px;
  margin: 4px 0 22px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}

.quiz-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}

.quiz-step small {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.quiz-step h3 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  margin: 6px 0 20px;
}

.quiz-opts {
  display: grid;
  gap: 10px;
}

.quiz-opt {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  text-align: left;
  font-weight: 600;
  background: #0f0707;
  border: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s ease;
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i) * 0.06s);
}

.quiz-opt:hover,
.quiz-opt:active {
  border-color: var(--accent);
  background: rgba(255, 42, 54, 0.08);
  transform: translateX(5px);
}

.quiz-back {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.result-card {
  padding: 22px;
  margin: 8px 0 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 42, 54, 0.14), #0f0707);
  border: 1px solid rgba(255, 42, 54, 0.45);
}

.result-card .big {
  font-family: var(--head);
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}

.result-card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.result-card ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}


/* =====================================================================
   18. FOOTER
   ===================================================================== */
.footer {
  padding: 70px 0 30px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.footer h4 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer p,
.footer li a {
  color: var(--muted);
  font-size: 14.5px;
}

.footer li {
  margin-bottom: 8px;
}

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

.footer .brand {
  margin-bottom: 14px;
}

.news {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.news button {
  flex: none;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom button {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}

.footer-bottom button:hover {
  color: var(--accent);
}

.to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: 0.25s ease;
}

.to-top:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-4px);
}

.to-top svg {
  width: 18px;
  height: 18px;
  rotate: -90deg;
}


/* =====================================================================
   19. REVEAL ANIMATIONS (scroll)
   ===================================================================== */
.js .reveal {
  opacity: 0;
  translate: 0 44px;
  transition: opacity 0.9s ease, translate 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

/* Sideways reveals only on desktop, so phones never get horizontal overflow */
@media (min-width: 1000px) {
  .js .reveal.left {
    translate: -44px 0;
  }

  .js .reveal.right {
    translate: 44px 0;
  }

  .js .reveal.in.left,
  .js .reveal.in.right {
    translate: 0 0;
  }
}


/* =====================================================================
   20. LARGER SCREENS
   ===================================================================== */
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .event {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    padding: 26px;
    gap: 42px;
  }

  .features,
  .values {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

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

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

  .form-grid .full {
    grid-column: 1 / -1;
  }

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

  .quote {
    flex-basis: 46%;
  }

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

  .sched-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .modal {
    align-items: center;
  }

  .modal-sheet {
    width: min(560px, 92vw);
    border-radius: 28px;
    padding: 28px 32px;
    transform: translateY(40px) scale(0.96);
  }

  .grab {
    display: none;
  }
}

@media (min-width: 1000px) {
  body {
    padding-bottom: 0;
  }

  .tabbar {
    display: none;
  }

  .toasts {
    bottom: 30px;
  }

  .nav-links {
    display: flex;
    gap: 30px;
  }

  .nav-cta .btn {
    display: inline-flex;
  }

  .burger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 70px;
  }

  .split.rev > :first-child {
    order: 2;
  }

  .hero-title {
    margin-bottom: 26px;
  }

  .scroll-cue {
    position: absolute;
    right: 40px;
    bottom: 50px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(26, 14, 14, 0.6);
    animation: bob 2s ease-in-out infinite;
  }

  .scroll-cue svg {
    width: 22px;
    height: 22px;
    rotate: 90deg;
  }

  .hero-chips {
    position: absolute;
    right: 0;
    bottom: 140px;
    flex-direction: column;
    margin: 0;
  }

  .h-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .p-card {
    flex: none;
  }

  .p-card:nth-child(even) {
    margin-top: 40px;
  }

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

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
  }

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

  .values {
    grid-template-columns: repeat(4, 1fr);
  }

  .t-track {
    margin: 0;
    padding-inline: 0;
  }

  .quote {
    flex-basis: calc(33.333% - 10px);
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }

  .class-item {
    grid-template-columns: 90px 1fr auto;
    padding: 20px 26px;
  }
}

@keyframes bob {
  50% {
    translate: 0 8px;
  }
}

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

  .js .reveal {
    opacity: 1;
    translate: 0 0;
  }

  .ch {
    opacity: 1;
    translate: 0 0;
  }
}


/* =====================================================================
   HERO GLITCH TITLE  (js/glitch.js)
   ===================================================================== */
.glitch-title {
  display: block;
  font-size: var(--gl-fs, clamp(80px, 28vw, 300px));
  line-height: 0.86;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.glitch-title .gl-stage {
  display: block;
  position: relative;
}

.glitch-title .gl-line {
  display: block;
  position: relative;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  color: var(--text);
}

.glitch-title .gl-line[hidden] {
  display: none;
}

.glitch-title .gl-line.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

/* Mobile and tablet: vertically centre every phrase inside the locked stage,
   so the smaller lines sit in the middle of the FLEX FIT height */
@media (max-width: 999px) {
  .glitch-title .gl-stage {
    display: block;
    position: relative;
  }

  .glitch-title .gl-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: max-content;
    margin-block: auto;
  }
}

/* the two colour-split copies of the text */
.glitch-title .gl-line::before,
.glitch-title .gl-line::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  -webkit-text-stroke: 0;
  mix-blend-mode: screen;
}

.glitch-title .gl-line::before {
  color: #ffffff;
}

.glitch-title .gl-line::after {
  color: #ff8a00;
}

/* ---- active glitch ---- */
.glitch-title.glitching .gl-line {
  animation: glShake 0.32s steps(2, end) infinite;
}

.glitch-title.glitching .gl-line::before {
  opacity: 0.95;
  animation: glSliceA 0.38s steps(1, end) infinite;
}

.glitch-title.glitching .gl-line::after {
  opacity: 0.95;
  animation: glSliceB 0.46s steps(1, end) infinite;
}

.glitch-title.glitching .gl-line:nth-child(2) {
  animation-delay: -0.1s;
}

.glitch-title.glitching .gl-line:nth-child(3) {
  animation-delay: -0.2s;
}

@keyframes glShake {
  0%   { transform: translate(0, 0) skewX(0); }
  25%  { transform: translate(-3px, 1px) skewX(-4deg); }
  50%  { transform: translate(4px, -1px) skewX(3deg); }
  75%  { transform: translate(-2px, 0) skewX(0); }
  100% { transform: translate(0, 0) skewX(0); }
}

@keyframes glSliceA {
  0%   { clip-path: inset(10% 0 70% 0); transform: translate(-6px, 0); }
  20%  { clip-path: inset(55% 0 20% 0); transform: translate(5px, 0); }
  40%  { clip-path: inset(30% 0 45% 0); transform: translate(-4px, 0); }
  60%  { clip-path: inset(75% 0 5% 0);  transform: translate(7px, 0); }
  80%  { clip-path: inset(0 0 85% 0);   transform: translate(-5px, 0); }
  100% { clip-path: inset(40% 0 40% 0); transform: translate(3px, 0); }
}

@keyframes glSliceB {
  0%   { clip-path: inset(60% 0 15% 0); transform: translate(6px, 0); }
  20%  { clip-path: inset(5% 0 80% 0);  transform: translate(-6px, 0); }
  40%  { clip-path: inset(45% 0 35% 0); transform: translate(4px, 0); }
  60%  { clip-path: inset(20% 0 60% 0); transform: translate(-7px, 0); }
  80%  { clip-path: inset(80% 0 0 0);   transform: translate(5px, 0); }
  100% { clip-path: inset(35% 0 45% 0); transform: translate(-3px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-title.glitching .gl-line,
  .glitch-title.glitching .gl-line::before,
  .glitch-title.glitching .gl-line::after {
    animation: none;
  }
}


/* =====================================================================
   REEL (full-width video + bold line) - mobile first
   ===================================================================== */
.reel {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.reel-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;           /* small phones: tall, reel-like */
  max-height: 78svh;
  overflow: hidden;
  background: #000 center / cover no-repeat;
}

.reel-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.reel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.reel-copy {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 0 0 clamp(48px, 9vw, 110px);
  text-align: center;
}

.reel-line {
  max-width: 1000px;
  margin-inline: auto;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(32px, 9.4vw, 96px);
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.reel-line .gold {
  background: linear-gradient(100deg, #ffe08a 0%, #ffb020 45%, #b9770e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(255, 176, 32, 0.35));
}

.reel-line .outline {
  -webkit-text-stroke: 1px var(--accent);
}

.reel-rule {
  width: min(200px, 50%);
  height: 4px;
  margin: 22px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--hot), var(--accent), transparent);
  box-shadow: 0 0 22px rgba(255, 42, 54, 0.55);
}

/* Large phones / small tablets portrait */
@media (min-width: 480px) {
  .reel-media { aspect-ratio: 4 / 3; max-height: 80svh; }
  .reel-line .outline { -webkit-text-stroke: 1.5px var(--accent); }
}

/* Tablets and up */
@media (min-width: 700px) {
  .reel-media { aspect-ratio: 16 / 9; max-height: 85svh; }
  .reel-copy { margin-top: -60px; }
  .reel-rule { margin-top: 28px; width: min(240px, 50%); }
}

/* Desktop */
@media (min-width: 1000px) {
  .reel-copy { margin-top: -80px; }
}

/* Phones in landscape: keep the video fully on screen */
@media (orientation: landscape) and (max-height: 520px) {
  .reel-media { aspect-ratio: 16 / 9; max-height: 100svh; }
  .reel-copy {
    margin-top: -24px;
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  }
  .reel-line { font-size: clamp(28px, 6vw, 56px); }
}

/* Very small screens (320px) */
@media (max-width: 359px) {
  .reel-line { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-video { animation: none; }
}


/* =====================================================================
   HIDE UPLOAD CONTROLS (images now come from the /images folder)
   Delete this block if you want the camera buttons back for testing.
   ===================================================================== */
.slot-ph,
.slot-btn,
.slot-del,
.slot::before,
.logo-edit,
[data-reset] {
  display: none !important;
}


/* =====================================================================
   TRANSFORMATION SECTION (before/after sliders + journey countdown)
   js/transform.js
   ===================================================================== */
.transform {
  padding: clamp(22px, 4vw, 46px) clamp(16px, 3.5vw, 46px);
  border-radius: 30px;
  background: linear-gradient(135deg, #1f1111, #150b0b);
  border: 1px solid var(--line);
}

.tf-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(24px, 4vw, 40px);
}

.tf-head .h-display {
  font-size: clamp(40px, 9vw, 88px);
}

.tf-head p {
  margin-top: 12px;
  font-size: 14px;
}

/* ---- before / after grid ---- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 420px;
  margin-inline: auto;
}

.ba-card {
  margin: 0;
}

.ba {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #120808;
  user-select: none;
  -webkit-user-select: none;
  --pos: 50%;
}

.ba > .slot {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.ba > .slot.before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(10, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  pointer-events: none;
}

.ba-tag.l { left: 12px; }
.ba-tag.r { right: 12px; color: var(--accent); }

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  translate: -50% 0;
  z-index: 3;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 42, 54, 0.25);
  transition: transform 0.2s ease;
}

.ba:hover .ba-knob,
.ba:active .ba-knob {
  transform: scale(1.1);
}

.ba:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* invisible range input = drag (mouse + touch) and keyboard control */
.ba input[type='range'] {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  background: none;
  cursor: ew-resize;
  touch-action: pan-y;
}

.ba input[type='range']::-webkit-slider-thumb {
  width: 60px;
  height: 100vh;
}

.ba-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 4px 0;
}

.ba-card figcaption b {
  font-weight: 600;
}

.ba-card figcaption span {
  font-size: 13px;
  color: var(--accent);
}

/* ---- start your journey + countdown ---- */
.journey {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: clamp(28px, 5vw, 46px);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.journey .h-display {
  font-size: clamp(42px, 10vw, 76px);
  text-align: center;
}

.journey .countdown {
  margin: 0;
}

.tf-actions {
  justify-content: center;
  margin-top: clamp(22px, 4vw, 34px);
}

@media (min-width: 700px) {
  .ba-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 16px;
  }

  .ba-knob {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .journey {
    grid-template-columns: 1fr auto;
    gap: 36px;
  }

  .journey .h-display {
    text-align: left;
  }

  .journey .countdown {
    width: min(460px, 52vw);
  }
}

@media (min-width: 1000px) {
  .ba-grid {
    gap: 26px;
  }

  .ba-knob {
    width: 46px;
    height: 46px;
  }
}


/* =====================================================================
   PAGE HERO GLOW  (About / Classes / Trainers / Pricing / Contact)
   Glowing outline on FLEXFIT, CLASS, COACHES, PRICING, TALK.
   Fill: change 0.08.  Glow strength: change the drop-shadow opacities.
   ===================================================================== */
.page-hero .h-display .outline {
  color: rgba(255, 42, 54, 0.08);
  -webkit-text-stroke: 2px #ff4a55;
  filter:
    drop-shadow(0 0 3px rgba(255, 74, 85, 0.95))
    drop-shadow(0 0 10px rgba(255, 42, 54, 0.7))
    drop-shadow(0 0 26px rgba(255, 42, 54, 0.4));
  animation: heroGlow 3.6s ease-in-out infinite;
}

@keyframes heroGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 3px rgba(255, 74, 85, 0.8))
      drop-shadow(0 0 8px rgba(255, 42, 54, 0.55))
      drop-shadow(0 0 20px rgba(255, 42, 54, 0.3));
  }
  50% {
    filter:
      drop-shadow(0 0 4px rgba(255, 74, 85, 1))
      drop-shadow(0 0 14px rgba(255, 42, 54, 0.8))
      drop-shadow(0 0 34px rgba(255, 42, 54, 0.5));
  }
}


/* =====================================================================
   TRAINERS PAGE: two coaches, responsive
   Phone: 1 column, centred.  Tablet: 2 columns.  Desktop: 2 larger cards.
   Text inside the cards scales with the card width (container units),
   so nothing overflows on small phones or looks tiny on big screens.
   ===================================================================== */
.trainer-grid {
  max-width: 440px;
  margin-inline: auto;
}

.flip {
  container-type: inline-size;
}

.flip-front .p-info {
  padding: clamp(16px, 6cqw, 28px);
}

.flip-front .p-info h3 {
  font-size: clamp(30px, 11cqw, 48px);
}

.flip-front .p-info p {
  font-size: clamp(13px, 3.8cqw, 16px);
}

.flip-back {
  padding: clamp(16px, 6cqw, 30px);
  gap: clamp(8px, 3cqw, 16px);
  overflow-y: auto;
}

.flip-back h3 {
  font-size: clamp(28px, 10cqw, 44px);
}

.flip-back p {
  font-size: clamp(13px, 3.9cqw, 16px);
  line-height: 1.5;
  margin: 6px 0 10px;
}

.tags span {
  font-size: clamp(11px, 3.2cqw, 13px);
  padding: 4px 11px;
}

.flip-back .actions .btn {
  font-size: clamp(13px, 3.6cqw, 15px);
}

@media (min-width: 700px) {
  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 760px;
  }
}

@media (min-width: 1000px) {
  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 920px;
  }
}

/* phones in landscape: cards would be taller than the screen, so use a wider shape */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 999px) {
  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}


/* =====================================================================
   PROGRAMS ("Pick your fight") + CLASS TYPES: swipe on touch screens
   Phone: swipe cards.  Tablet: smaller swipe cards.  Desktop: 4-column grid.
   ===================================================================== */
.h-scroll {
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 20px;
}

.p-card {
  touch-action: pan-x pan-y;
}

@media (min-width: 560px) and (max-width: 999px) {
  .p-card {
    flex-basis: 44%;
  }
}
