/* =========================================================
   IronPulse Fitness — Stylesheet
   Mobile-first · Dark theme · Neon lime accent
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-alt: #101010;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f4;
  --text-muted: #a8a8a8;
  --text-dim: #7d7d7d;

  --accent: #b6ff2e;
  --accent-hover: #c9ff5c;
  --accent-soft: rgba(182, 255, 46, 0.12);
  --accent-ink: #0a0a0a;
  --accent-text: #b6ff2e; /* accent used as text/icon color on page backgrounds */

  --danger: #ff5c5c;
  --warning: #ffb547;
  --info: #4cc3ff;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 10px 40px -10px rgba(182, 255, 46, 0.45);

  --container: 1200px;
  --gutter: 1.25rem;
  --section-y: 5rem;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.3s var(--ease);
}

/* Light theme — set by js (saved choice) or system preference */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f4;
  --bg-alt: #eceee8;
  --surface: #ffffff;
  --surface-2: #f1f3ee;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.18);

  --text: #111311;
  --text-muted: #4a4f4a;
  --text-dim: #6c716c;

  --accent-text: #3f7a00;
  --accent-soft: rgba(90, 160, 0, 0.14);

  --shadow: 0 20px 50px -24px rgba(20, 30, 10, 0.28);
  --shadow-glow: 0 10px 30px -12px rgba(110, 170, 0, 0.55);
}
:root { color-scheme: dark; }

@media (min-width: 768px) {
  :root { --gutter: 2rem; --section-y: 6.5rem; }
}
@media (min-width: 1100px) {
  :root { --section-y: 8rem; --nav-h: 80px; }
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; border-radius: var(--radius-sm);
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

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

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- 4. Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--accent-text);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-head {
  display: grid; gap: 1rem;
  margin-bottom: 3rem;
}
.section-head .section-lead { margin-top: 0; }
@media (min-width: 900px) {
  .section-head:not(.section-head--center) {
    grid-template-columns: 1fr 1fr;
    align-items: end; gap: 3rem;
  }
  .section-head:not(.section-head--center) .section-lead { justify-self: end; }
}
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .eyebrow::after {
  content: ""; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
}
.btn .icon { transition: transform var(--t); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--sm { min-height: 42px; padding: 0.55rem 1.2rem; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.btn--outline { border-color: var(--accent); color: var(--accent-text); }
.btn--outline:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.1); }
.btn--ghost:hover .icon { transform: none; }

.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn[disabled] { opacity: 0.75; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-text); font-weight: 700; font-size: 0.9rem;
}
.link-arrow .icon { transition: transform var(--t); }
.link-arrow:hover .icon { transform: translateX(5px); }

.pill {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}

/* ---------- 6. Cards & media ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
@media (min-width: 640px) { .card { padding: 2.25rem; } }

.media {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1f1f1f, #121212);
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.5s ease;
}
/* Fallback when an image fails to load */
.media.is-broken img { opacity: 0; }
.media.is-broken::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(182, 255, 46, 0.18), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1d1d1d, #0f0f0f);
}

/* ---------- 7. Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  transition: background-color var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
/* The blurred background lives on a pseudo-element: a backdrop-filter on
   .navbar itself would make it the containing block for the fixed mobile
   .nav panel, squashing the open menu to the navbar's height. */
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.navbar.is-scrolled { border-bottom-color: var(--border); }
.navbar.is-scrolled::before { opacity: 1; }
.navbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark { width: 40px; height: 40px; color: var(--accent-text); }
.logo__text {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; line-height: 0.9; letter-spacing: 0.02em;
}
.logo__text span { display: contents; color: var(--accent-text); }
.logo__text small {
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--text-muted);
}

.navbar__actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar__cta { display: none; }

/* Mobile nav panel */
.nav {
  position: fixed; inset: var(--nav-h) 0 0 0;
  display: flex; flex-direction: column; gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700; text-transform: uppercase;
  transition: color var(--t), padding var(--t);
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-text); padding-left: 0.5rem; }

.hamburger {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.hamburger span {
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 640px) { .navbar__cta { display: inline-flex; } .nav__cta-mobile { display: none; } }

@media (min-width: 1000px) {
  .hamburger { display: none; }
  .nav {
    position: static; inset: auto;
    flex-direction: row; padding: 0;
    background: none; backdrop-filter: none;
    opacity: 1; visibility: visible; transform: none;
    overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 0.25rem; }
  .nav__link {
    position: relative;
    padding: 0.5rem 0.9rem; border: 0;
    font-family: var(--font-body);
    font-size: 0.92rem; font-weight: 500; text-transform: none;
    color: var(--text-muted);
  }
  .nav__link:hover, .nav__link.is-active { color: var(--text); padding-left: 0.9rem; }
  .nav__link::after {
    content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0;
    height: 2px; border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transition: transform var(--t);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 45%, rgba(10,10,10,0.2) 100%),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=75") center / cover no-repeat,
    radial-gradient(circle at 75% 30%, rgba(182, 255, 46, 0.15), transparent 50%),
    #0d0d0d;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-text);
  text-shadow: 0 0 40px rgba(182, 255, 46, 0.35);
}
.hero__lead {
  margin-top: 1.5rem; max-width: 540px;
  color: #d4d4d4; font-size: clamp(1.02rem, 2.2vw, 1.2rem);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.25rem;
}
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

.hero__stats {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 3.5rem; max-width: 720px;
}
@media (min-width: 560px) { .hero__stats { grid-template-columns: repeat(3, 1fr); } }

.stat {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px);
}
.stat__icon {
  width: 44px; height: 44px; padding: 10px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text);
}
.stat strong {
  display: block;
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1;
}
.stat div > span { font-size: 0.85rem; color: var(--text-muted); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--border-strong); border-radius: 20px;
  display: none;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 768px) and (min-height: 760px) { .hero__scroll { display: block; } }

/* ---------- 9. About ---------- */
.about__grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; } }

.about__media { position: relative; }
.media--tall { aspect-ratio: 5 / 6; border-radius: var(--radius-lg); }
.about__media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
  opacity: 0.35; z-index: -1;
}
.about__badge {
  position: absolute; right: -0.5rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.25rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .about__badge { right: -1.5rem; } }
.about__badge strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.about__badge span { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }

.feature-list {
  display: grid; gap: 1.25rem;
  margin: 2.25rem 0 2.5rem;
}
@media (min-width: 560px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 0.9rem; }
.feature-list__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--accent-text);
}
.feature-list__icon svg { width: 22px; height: 22px; }
.feature-list h3 { font-size: 1rem; font-weight: 700; }
.feature-list p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-top: 0.15rem; }

/* ---------- 10. Programs ---------- */
.program-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.program-card:hover { transform: translateY(-6px); border-color: rgba(182, 255, 46, 0.4); box-shadow: var(--shadow); }
.program-card:hover img { transform: scale(1.08); }

.program-card__media { aspect-ratio: 4 / 3; }
.program-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(21, 21, 21, 0.95) 100%);
}
.program-card__icon {
  position: absolute; left: 1.25rem; bottom: -0.5rem; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1rem);
}
.program-card__icon svg { width: 26px; height: 26px; }

.program-card__body {
  display: flex; flex-direction: column; gap: 0.6rem; flex: 1;
  padding: 1.25rem 1.5rem 1.6rem;
}
.program-card h3 {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  text-transform: uppercase; line-height: 1.05;
}
.program-card p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.program-card .link-arrow { margin-top: 0.5rem; }

/* ---------- 11. Trainers ---------- */
.trainer-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t);
}
.trainer-card:hover { transform: translateY(-6px); border-color: rgba(182, 255, 46, 0.4); }
.trainer-card:hover img { transform: scale(1.05); }
.trainer-card__media { aspect-ratio: 5 / 6; }
.trainer-card__media img { filter: grayscale(0.35) contrast(1.05); }
.trainer-card:hover .trainer-card__media img { filter: none; }
.trainer-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.85));
  pointer-events: none;
}

.trainer-card__social {
  position: absolute; left: 50%; bottom: 1.25rem; z-index: 1;
  display: flex; gap: 0.6rem;
  transform: translate(-50%, 0);
  transition: transform var(--t), opacity var(--t);
}
@media (hover: hover) {
  .trainer-card__social { opacity: 0; transform: translate(-50%, 12px); }
  .trainer-card:hover .trainer-card__social,
  .trainer-card:focus-within .trainer-card__social { opacity: 1; transform: translate(-50%, 0); }
}
.trainer-card__social a, .social a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: background-color var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.trainer-card__social a:hover, .social a:hover {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  transform: translateY(-3px);
}
.trainer-card__social svg, .social svg { width: 18px; height: 18px; }

.trainer-card__body {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.trainer-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.trainer-card__role { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- 12. Membership / Pricing ---------- */
.billing-toggle {
  display: inline-flex; gap: 0.25rem;
  margin-top: 1rem; padding: 0.3rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface);
}
.billing-toggle__btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  transition: background-color var(--t), color var(--t);
}
.billing-toggle__btn:hover { color: var(--text); }
.billing-toggle__btn.is-active { background: var(--accent); color: var(--accent-ink); }
.billing-toggle__save {
  padding: 0.12rem 0.5rem; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 0.7rem; font-weight: 700;
}
.billing-toggle__btn.is-active .billing-toggle__save { background: rgba(0, 0, 0, 0.15); color: var(--accent-ink); }

.pricing-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: center; } }

.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow); }

.price-card--featured {
  padding-block: 2.75rem;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 255, 46, 0.14), transparent 55%),
    var(--surface-2);
  box-shadow: var(--shadow-glow);
}
@media (min-width: 900px) { .price-card--featured { transform: scale(1.04); } .price-card--featured:hover { transform: scale(1.04) translateY(-6px); } }

.price-card__badge {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.price-card__name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; }
.price-card__desc { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.25rem; }
.price-card__price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 1.5rem; }
.price-card__amount {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1;
  transition: opacity 0.2s ease;
}
.price-card__amount.is-changing { opacity: 0; }
.price-card__period { color: var(--text-muted); font-weight: 500; }
.price-card__note { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.35rem; min-height: 1.3em; }

.check-list { display: grid; gap: 0.8rem; margin: 1.75rem 0 2rem; flex: 1; }
.check-list li { display: flex; align-items: center; gap: 0.7rem; color: #dcdcdc; font-size: 0.95rem; }
.check-list svg {
  width: 22px; height: 22px; padding: 4px; flex-shrink: 0;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
}

/* ---------- 13. Why choose us ---------- */
.why { overflow: hidden; isolation: isolate; }
.why__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10,10,10,0.88) 30%, rgba(10,10,10,0.88) 70%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1605296867304-46d5465a13f1?auto=format&fit=crop&w=1800&q=70") center / cover no-repeat fixed,
    var(--bg);
}
@media (hover: none) { .why__bg { background-attachment: scroll; } }

.why-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(21, 21, 21, 0.75);
  backdrop-filter: blur(8px);
  transition: transform var(--t), border-color var(--t), background-color var(--t);
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(182, 255, 46, 0.4); background: rgba(28, 28, 28, 0.9); }
.why-card__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 1.25rem;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent-text);
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.why-card:hover .why-card__icon { background: var(--accent); color: var(--accent-ink); transform: rotate(-6deg); }
.why-card__icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.15rem; font-weight: 700; }
.why-card p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- 14. Testimonials ---------- */
.testimonial {
  position: relative;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--t), border-color var(--t);
}
.testimonial:hover { transform: translateY(-6px); border-color: rgba(182, 255, 46, 0.35); }
.testimonial__quote { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; color: var(--accent-text); opacity: 0.18; }

.rating { display: flex; gap: 3px; color: #ffc93c; }
.rating svg { width: 18px; height: 18px; }
.rating svg.is-half { clip-path: inset(0 50% 0 0); }

.testimonial blockquote { flex: 1; color: #dedede; font-size: 1rem; line-height: 1.7; }
.testimonial__author {
  display: flex; align-items: center; gap: 0.9rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.testimonial__author img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
  background: var(--surface-2);
}
.testimonial__author strong { display: block; font-weight: 700; }
.testimonial__author span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-size: 0.88rem; font-weight: 600; color: #d6d6d6; }
.field label span { color: var(--accent-text); }

.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23b6ff2e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px;
  padding-right: 2.75rem;
}
.field select option, .field select optgroup { background: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 255, 46, 0.18);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.15); }
.field.is-valid input, .field.is-valid textarea { border-color: rgba(182, 255, 46, 0.55); }

.field__error {
  display: flex; align-items: center; gap: 0.35rem;
  min-height: 0; color: var(--danger); font-size: 0.82rem; font-weight: 500;
}
.field__error:empty { display: none; }
.field__error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #111; font-size: 0.7rem; font-weight: 800; }

/* Hide number spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.form__actions { display: flex; gap: 0.75rem; }
.form__actions .btn--ghost { flex-shrink: 0; }
.form__note { text-align: center; color: var(--text-dim); font-size: 0.8rem; }

/* Button loading state */
.spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. BMI ---------- */
.bmi__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .bmi__grid { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; align-items: center; } }

.bmi-table {
  width: 100%; max-width: 460px; margin-top: 2rem;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; font-size: 0.94rem;
}
.bmi-table th, .bmi-table td { padding: 0.8rem 1.1rem; text-align: left; }
.bmi-table th { background: var(--surface-2); color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bmi-table td { border-top: 1px solid var(--border); transition: background-color var(--t), color var(--t); }
.bmi-table tr.is-active td { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }

.bmi__card { display: grid; gap: 1.75rem; }

.bmi-result {
  min-height: 230px;
  display: grid; place-items: center; text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
}
.bmi-result.has-value { border-style: solid; }
.bmi-result__empty { display: grid; justify-items: center; gap: 0.75rem; color: var(--text-dim); }
.bmi-result__empty svg { width: 42px; height: 42px; color: var(--text-dim); }
.bmi-result.has-value .bmi-result__empty { display: none; }

.bmi-result__value { width: 100%; animation: popIn 0.5s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.bmi-result__label { color: var(--text-muted); font-size: 0.9rem; }
.bmi-result__number {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 800; line-height: 1;
  margin: 0.25rem 0 0.75rem; color: var(--cat-color, var(--accent));
}
.bmi-result__category {
  display: inline-block; padding: 0.35rem 1rem; border-radius: var(--radius-pill);
  background: var(--cat-color, var(--accent)); color: var(--accent-ink);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.bmi-result__tip { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem; max-width: 420px; margin-inline: auto; }

.bmi-gauge { position: relative; margin: 1.75rem auto 0; max-width: 420px; padding-top: 10px; }
.bmi-gauge__bar {
  height: 10px; border-radius: var(--radius-pill);
  /* 15 → 40 scale: 18.5 = 14%, 25 = 40%, 30 = 60% */
  background: linear-gradient(90deg,
    var(--info) 0 14%, var(--accent) 14% 40%, var(--warning) 40% 60%, var(--danger) 60% 100%);
}
.bmi-gauge__marker {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 30px; margin-left: -2px;
  border-radius: 2px; background: #fff;
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px rgba(255, 255, 255, 0.6);
  transition: left 0.8s var(--ease);
}
.bmi-gauge__labels { position: relative; height: 1.2em; margin-top: 0.6rem; font-size: 0.72rem; color: var(--text-dim); }
.bmi-gauge__labels span { position: absolute; transform: translateX(-50%); }
.bmi-gauge__labels span:nth-child(1) { left: 0; transform: none; }
.bmi-gauge__labels span:nth-child(2) { left: 14%; }
.bmi-gauge__labels span:nth-child(3) { left: 40%; }
.bmi-gauge__labels span:nth-child(4) { left: 60%; }
.bmi-gauge__labels span:nth-child(5) { right: 0; left: auto; transform: none; }

/* ---------- 17. Contact ---------- */
.contact__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; } }

.contact__info { display: grid; gap: 1.5rem; align-content: start; }
.info-list { display: grid; gap: 1rem; }
@media (min-width: 560px) and (max-width: 959px) { .info-list { grid-template-columns: 1fr 1fr; } }
.info-list li {
  display: flex; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.info-list__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text);
}
.info-list__icon svg { width: 22px; height: 22px; }
.info-list h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.info-list p { font-size: 0.96rem; line-height: 1.5; margin-top: 0.15rem; overflow-wrap: anywhere; }
.info-list a { transition: color var(--t); }
.info-list a:hover { color: var(--accent-text); }

.map {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.map img { width: 100%; height: 100%; object-fit: cover; }
.map__link { position: absolute; left: 1rem; bottom: 1rem; border: 1px solid var(--border-strong); }

.contact__form-card { position: relative; }
.contact__form-title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; }

.form-success {
  display: grid; justify-items: center; gap: 1rem;
  padding: 3rem 1rem; text-align: center;
  animation: popIn 0.5s var(--ease);
}
.form-success[hidden] { display: none; }
.form-success__icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-glow);
}
.form-success__icon svg { width: 38px; height: 38px; }
.form-success h3 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; }
.form-success p { color: var(--text-muted); max-width: 380px; }

/* ---------- 18. CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band__inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 800px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.cta-band h2 em { font-style: italic; }
.cta-band p { margin-top: 0.5rem; font-weight: 500; }

/* ---------- 19. Footer ---------- */
.footer { background: #070707; border-top: 1px solid var(--border); padding-top: 4.5rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; } }

.footer__brand p { margin: 1.25rem 0 1.5rem; color: var(--text-muted); max-width: 320px; font-size: 0.94rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.footer__col h3 {
  margin-bottom: 1.25rem;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col a { color: var(--text-muted); font-size: 0.94rem; transition: color var(--t), padding var(--t); }
.footer__col a:hover { color: var(--accent-text); }
.footer__col nav a:hover, .footer__col > ul > li > a:hover { padding-left: 4px; }

.footer__contact li { display: flex; gap: 0.7rem; color: var(--text-muted); font-size: 0.94rem; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2rem; color: var(--accent-text); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: 3.5rem; padding-block: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--accent-text); }

/* ---------- 20. Floating UI ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  display: flex; align-items: center; gap: 0.7rem;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(182, 255, 46, 0.5); border-radius: var(--radius-pill);
  background: rgba(21, 21, 21, 0.95); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.92rem; font-weight: 600;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast__icon { width: 24px; height: 24px; padding: 4px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

/* ---------- 20b. Theme toggle ---------- */
.theme-toggle {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.theme-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* Smooth color crossfade only while switching (set briefly by js) */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important;
}

/* ---------- 20c. Light theme overrides (hard-coded dark colors) ---------- */
:root[data-theme="light"] .btn--ghost,
:root[data-theme="light"] .hamburger,
:root[data-theme="light"] .theme-toggle { background: rgba(0, 0, 0, 0.03); }
:root[data-theme="light"] .btn--ghost:hover { background: rgba(0, 0, 0, 0.07); }
:root[data-theme="light"] .btn--dark { background: #111311; color: #f4f4f4; }
:root[data-theme="light"] .btn--dark:hover { background: #000; }

:root[data-theme="light"] .media { background: linear-gradient(135deg, #e6e9e1, #d9ddd3); }
:root[data-theme="light"] .media.is-broken::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(110, 170, 0, 0.2), transparent 55%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e6e9e1, #d4d9cd);
}

:root[data-theme="light"] .navbar::before {
  background: rgba(246, 247, 244, 0.88);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.25);
}
:root[data-theme="light"] .nav { background: rgba(246, 247, 244, 0.98); }

:root[data-theme="light"] .hero__bg {
  background:
    linear-gradient(180deg, rgba(246,247,244,0.55) 0%, rgba(246,247,244,0.35) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(246,247,244,0.96) 0%, rgba(246,247,244,0.8) 45%, rgba(246,247,244,0.25) 100%),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=75") center / cover no-repeat,
    #e9ece4;
}
:root[data-theme="light"] .hero__title em { text-shadow: none; }
:root[data-theme="light"] .hero__lead { color: #2c302c; }
:root[data-theme="light"] .stat { background: rgba(255, 255, 255, 0.7); }

:root[data-theme="light"] .program-card__media::after {
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.95) 100%);
}
:root[data-theme="light"] .program-card:hover,
:root[data-theme="light"] .trainer-card:hover,
:root[data-theme="light"] .why-card:hover,
:root[data-theme="light"] .testimonial:hover { border-color: rgba(80, 140, 0, 0.45); }

/* Trainer social buttons sit on a photo: keep them dark */
:root[data-theme="light"] .trainer-card__social a { color: #f4f4f4; border-color: rgba(255, 255, 255, 0.2); }
:root[data-theme="light"] .social a { background: var(--surface); }
:root[data-theme="light"] .trainer-card__social a:hover,
:root[data-theme="light"] .social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

:root[data-theme="light"] .check-list li { color: #2c302c; }

:root[data-theme="light"] .why__bg {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(246,247,244,0.9) 30%, rgba(246,247,244,0.9) 70%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1605296867304-46d5465a13f1?auto=format&fit=crop&w=1800&q=70") center / cover no-repeat fixed,
    var(--bg);
}
:root[data-theme="light"] .why-card { background: rgba(255, 255, 255, 0.78); }
:root[data-theme="light"] .why-card:hover { background: rgba(255, 255, 255, 0.95); }

:root[data-theme="light"] .rating { color: #e0a100; }
:root[data-theme="light"] .testimonial blockquote { color: #2c302c; }

:root[data-theme="light"] .field label { color: #2c302c; }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background-color: var(--surface); }
:root[data-theme="light"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233f7a00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .field input::placeholder,
:root[data-theme="light"] .field textarea::placeholder { color: #8a8f8a; }
:root[data-theme="light"] .field input:hover,
:root[data-theme="light"] .field select:hover,
:root[data-theme="light"] .field textarea:hover { border-color: rgba(0, 0, 0, 0.3); }
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(110, 170, 0, 0.22); }
:root[data-theme="light"] .field.is-valid input,
:root[data-theme="light"] .field.is-valid textarea { border-color: rgba(80, 140, 0, 0.6); }

:root[data-theme="light"] .bmi-gauge__marker { background: #111311; box-shadow: 0 0 0 3px var(--bg), 0 2px 8px rgba(0, 0, 0, 0.3); }

:root[data-theme="light"] .footer { background: #e8ebe3; }
:root[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.97); border-color: rgba(80, 140, 0, 0.5); }

/* ---------- 21. Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .why__bg { background-attachment: scroll; }
}
