/* ==========================================================================
   APEX — getapexfitness.com design system
   Derived from the app's src/ui/tokens.js (single brand source of truth):
   bg #0F141A · card #171C24 · border #262C36 · accent #A8E80C ·
   AI purple #A855F7 · data cyan #2DD4FF · SF Pro/Inter system stack.
   Zero external requests: system fonts only, all assets self-hosted.
   ========================================================================== */

:root {
  --bg: #0f141a;
  --bg-elev: #12181f;
  --card: #171c24;
  --card-alt: #1a2130;
  --mid: #1e232b;
  --border: #262c36;
  --border-strong: #333b47;
  --accent: #a8e80c;
  --accent-dim: rgba(168, 232, 12, 0.07);
  --accent-border: rgba(168, 232, 12, 0.22);
  --accent-glow: rgba(168, 232, 12, 0.14);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.08);
  --purple-border: rgba(168, 85, 247, 0.28);
  --cyan: #2dd4ff;
  --cyan-dim: rgba(45, 212, 255, 0.08);
  --cyan-border: rgba(45, 212, 255, 0.26);
  --orange: #ffb020;
  --text: #ffffff;
  --muted: #a1a7b3;
  --muted-2: #868fa0;
  --grad-score: linear-gradient(135deg, #a8e80c 0%, #2dd4ff 45%, #a855f7 100%);
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1120px;
  --radius: 16px;
  --radius-lg: 20px;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 7.2vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.eyebrow--purple {
  color: var(--purple);
}

.eyebrow--purple::before {
  background: var(--purple);
}

.eyebrow--cyan {
  color: var(--cyan);
}

.eyebrow--cyan::before {
  background: var(--cyan);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}

.muted {
  color: var(--muted);
}

.accent-word {
  color: var(--accent);
}

.grad-text {
  background: var(--grad-score);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(88px, 12vw, 152px);
  position: relative;
}

.section--tight {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-head {
  max-width: 720px;
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.hairline {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 1px rgba(168, 232, 12, 0.25), 0 8px 30px rgba(168, 232, 12, 0.16);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(168, 232, 12, 0.4), 0 14px 44px rgba(168, 232, 12, 0.28);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(15, 20, 26, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.nav__brand img {
  height: 26px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.9375rem;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.nav__toggle .icon-close,
.nav.menu-open .nav__toggle .icon-menu {
  display: none;
}

.nav.menu-open .nav__toggle .icon-close {
  display: block;
}

/* Language switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-left: 8px;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="true"] {
  background: var(--accent);
  color: #000;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(72px, 10vw, 120px);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 780px;
  background: radial-gradient(closest-side, rgba(168, 232, 12, 0.13), transparent 70%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15, 20, 26, 0) 55%, var(--bg) 100%),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero__copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.875rem;
  color: var(--muted-2);
  font-weight: 500;
}

.hero__meta li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}

/* Phone mock */

.phone {
  position: relative;
  width: min(320px, 78vw);
  margin-inline: auto;
  border-radius: 44px;
  border: 1px solid var(--border-strong);
  background: #0b0f14;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(168, 232, 12, 0.07);
}

.phone__screen {
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 433 / 787; /* one app viewport, ending at the bottom nav */
  background: #0a0a0a;
}

.phone__screen img {
  width: 100%;
  /* Task #108 captures are pre-cropped to exactly one 433/787 (hero) or
     424/787 (coach + gallery) app window — no in-CSS crop needed. */
  display: block;
}

.phone__screen--coach {
  aspect-ratio: 424 / 787;
}

.phone__caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.hero__phone {
  position: relative;
}

.hero__phone::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, rgba(45, 212, 255, 0.08), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Hero motion identity ----------
   CSS-only, motion-safe. Animates background-position and transform only —
   neither affects layout, so CLS stays 0. */

@media (prefers-reduced-motion: no-preference) {
  .hero .grad-text {
    background-size: 220% 100%;
    animation: grad-pan 9s ease-in-out infinite alternate;
  }

  .hero .phone {
    animation: phone-float 7s ease-in-out 1.6s infinite alternate;
  }
}

@keyframes grad-pan {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes phone-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

/* ---------- Story (problem) ---------- */

.story {
  max-width: 780px;
}

.story p {
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted-2);
}

.story p + p {
  margin-top: 1.2em;
}

.story strong {
  color: var(--text);
  font-weight: 700;
}

.story .punch {
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Module grid ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--card), #1b2029);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.module:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-border);
}

.module--purple:hover {
  border-color: var(--purple-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--purple-border);
}

.module--cyan:hover {
  border-color: var(--cyan-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--cyan-border);
}

.module__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 6px;
}

.module--purple .module__icon {
  background: var(--purple-dim);
  border-color: var(--purple-border);
  color: var(--purple);
}

.module--cyan .module__icon {
  background: var(--cyan-dim);
  border-color: var(--cyan-border);
  color: var(--cyan);
}

.module__icon svg {
  width: 22px;
  height: 22px;
}

.module p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Product gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.gallery__item {
  display: grid;
  gap: 16px;
  align-content: start;
  margin: 0;
}

.gallery .phone {
  width: min(100%, 260px);
  margin-inline: auto;
  border-radius: 34px;
  padding: 8px;
}

.gallery .phone__screen {
  border-radius: 26px;
  aspect-ratio: 424 / 787; /* same one-viewport window as the coach capture */
}

.gallery__caption {
  display: grid;
  gap: 4px;
  text-align: center;
  padding-inline: 6px;
}

.gallery__caption strong {
  font-size: 0.9375rem;
}

.gallery__caption span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.gallery__caption em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* ---------- Coach section ---------- */

.coach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.coach__copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.coach__points {
  display: grid;
  gap: 18px;
  list-style: none;
  margin-top: 6px;
}

.coach__points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.coach__points svg {
  width: 26px;
  height: 26px;
  color: var(--purple);
  margin-top: 2px;
}

.coach__points strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 2px;
}

.coach__points p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Honesty manifesto ---------- */

.honesty {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(168, 232, 12, 0.07), transparent),
    var(--bg-elev);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 96px);
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.honesty .h2 {
  max-width: 17em;
}

.honesty .lead {
  margin-inline: auto;
}

.honesty__rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 20px;
  text-align: left;
}

.rule {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px 24px;
  display: grid;
  gap: 8px;
}

.rule svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.rule strong {
  font-size: 0.9375rem;
}

.rule p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Languages ---------- */

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.langs .chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.langs .chip span {
  color: var(--muted-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- Roadmap ---------- */

.roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
}

.roadmap .chip svg {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.roadmap-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted-2);
  max-width: 52em;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq details a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Final CTA ---------- */

.cta-final {
  text-align: center;
  display: grid;
  gap: 26px;
  justify-items: center;
  position: relative;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: -80px -10% auto;
  height: 420px;
  background: radial-gradient(closest-side, rgba(168, 232, 12, 0.1), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.cta-final .display {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  max-width: 16em;
}

.cta-final .tagline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  font-size: 0.875rem;
  color: var(--muted-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer__brand img {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}

.footer nav a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(130px, 18vh, 180px) clamp(20px, 5vw, 40px) clamp(80px, 10vw, 120px);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 10px;
}

.legal .updated {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted-2);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 36px 0 10px;
}

.legal p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.legal .contact-note {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.875rem;
  color: var(--muted-2);
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .module,
  .nav__links a,
  .faq details,
  .faq summary::after {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__phone {
    order: -1;
  }

  .hero__copy {
    justify-items: center;
    text-align: center;
  }

  .hero__actions,
  .hero__meta {
    justify-content: center;
  }

  .section-head {
    margin-inline: auto;
    text-align: center;
  }

  .section-head .eyebrow {
    justify-self: center;
  }

  .coach {
    grid-template-columns: 1fr;
  }

  .modules,
  .honesty__rules,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 20px 26px;
    background: rgba(15, 20, 26, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.3s var(--ease);
    visibility: hidden;
  }

  .nav.menu-open .nav__links {
    transform: none;
    visibility: visible;
  }

  .nav__links a:not(.btn) {
    min-height: 48px;
    font-size: 1.0625rem;
  }

  .nav__cta {
    justify-content: center;
    margin-top: 8px;
  }

  .lang {
    margin: 10px 0 0;
    justify-content: center;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .modules,
  .honesty__rules {
    grid-template-columns: 1fr;
  }

  /* Gallery becomes a swipeable scroll-snap row on mobile */
  .gallery {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
    padding-inline: clamp(20px, 5vw, 40px);
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery__item {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: center;
  }

  .hero {
    padding-top: 120px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
