/* ═══════════════════════════════════════════════
   VITALS VERSUS — "Competitive Scoreboard" theme
   Barlow Condensed (display) + DM Sans (body)
   ═══════════════════════════════════════════════ */

:root {
  --blue:       #185FA5;
  --navy:       #0C447C;
  --deep:       #061B35;
  --sky:        #378ADD;
  --ice:        #E6F1FB;
  --gold:       #EF9F27;
  --gold-dim:   #c6851f;
  --silver:     #B4B2A9;
  --bronze:     #CD7F32;
  --bg:         #F6F8FB;
  --bg-alt:     #ffffff;
  --text:       #1a1a2e;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --max-w:      1120px;
  --radius:     10px;
  --radius-lg:  16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Typography ── */
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.text-center { text-align: center; }

.section__heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section__heading--light { color: var(--ice); }

.section__description {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.section__description--light { color: rgba(255,255,255,0.7); }

/* ── Scroll reveal ── */
/* Progressive enhancement: only animate when JS is active */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   HEADER
   ══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1;
}

.nav__wordmark-accent {
  color: var(--sky);
  font-weight: 600;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 4px 16px rgba(239,159,39,0.3);
}
.btn--gold:hover {
  background: var(--gold-dim);
  box-shadow: 0 6px 24px rgba(239,159,39,0.4);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24,95,165,0.25);
}
.btn--primary:hover {
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(24,95,165,0.35);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn--outline-light:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.btn--coming-soon {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}
.btn--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(55,138,221,0.15) 0%, transparent 70%),
    linear-gradient(170deg, var(--deep) 0%, var(--navy) 50%, var(--blue) 100%);
  z-index: 0;
}

/* Subtle grid texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  background: rgba(239,159,39,0.12);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.hero__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  opacity: 0.8;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Medal bar — podium accent stripe */
.medal-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 3.5rem;
}

.medal-bar__segment {
  height: 4px;
  border-radius: 2px;
}

.medal-bar__segment--gold   { width: 80px; background: var(--gold); }
.medal-bar__segment--silver { width: 56px; background: var(--silver); }
.medal-bar__segment--bronze { width: 56px; background: var(--bronze); }

/* ══════════════════════════════════
   CHALLENGE CARDS
   ══════════════════════════════════ */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.challenge-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* Top accent border per medal */
.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
}
.challenge-card--gold::before   { background: var(--gold); }
.challenge-card--silver::before { background: var(--silver); }
.challenge-card--bronze::before { background: var(--bronze); }

.challenge-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.challenge-card--gold .challenge-card__rank   { background: var(--gold); }
.challenge-card--silver .challenge-card__rank { background: var(--silver); }
.challenge-card--bronze .challenge-card__rank { background: var(--bronze); }

.challenge-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.challenge-card__desc {
  color: var(--text-mid);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ══════════════════════════════════
   FEATURES (dark section)
   ══════════════════════════════════ */
.section--dark {
  background: var(--deep);
  position: relative;
}

/* Diagonal top edge */
.section--dark::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--deep);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
}

/* ══════════════════════════════════
   STEPS (How It Works)
   ══════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
}

.step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.step__badge--gold   { background: var(--gold); }
.step__badge--silver { background: var(--silver); }
.step__badge--bronze { background: var(--bronze); }

.step__connector { display: none; }

.step__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step__title--light { color: var(--ice); }

.step__desc {
  color: var(--text-mid);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 0.95rem;
}

.step__desc--light { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════
   AUDIENCE BANNER
   ══════════════════════════════════ */
.section--audiences {
  background: linear-gradient(135deg, var(--ice) 0%, #dce8f5 100%);
}

.audience-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px rgba(12,68,124,0.08);
  border: 1px solid rgba(24,95,165,0.08);
}

.audience-banner__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.audience-banner__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.audience-banner__desc {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.audience-banner__visual {
  display: flex;
  justify-content: center;
}

.audience-banner__icon {
  width: 140px;
  height: 140px;
  opacity: 0.6;
  filter: drop-shadow(0 8px 24px rgba(12,68,124,0.15));
}

/* ══════════════════════════════════
   TRUST
   ══════════════════════════════════ */
.trust-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.trust-badge {
  display: flex;
  justify-content: center;
}

.trust-badge__icon {
  width: 56px;
  height: 56px;
  color: var(--blue);
}

.trust__body {
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.trust__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}

/* ══════════════════════════════════
   BENEFITS GRID (Gyms page)
   ══════════════════════════════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.benefit-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.benefit-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.benefit-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.benefit-card__desc {
  color: var(--text-mid);
  line-height: 1.65;
  font-size: 0.93rem;
}

/* ══════════════════════════════════
   PRICING CARD
   ══════════════════════════════════ */
.pricing-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 2px solid var(--ice);
  text-align: center;
}

.pricing-card .section__heading { margin-bottom: 1rem; }
.pricing-card .trust__body { margin: 0 auto 2rem; text-align: center; }

/* ══════════════════════════════════
   CTA SECTION (Gyms page bottom)
   ══════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(239,159,39,0.08) 0%, transparent 60%),
    linear-gradient(170deg, var(--deep) 0%, var(--navy) 100%);
}

.cta-section > .container { position: relative; z-index: 1; }

.cta-section__heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════
   BLOG
   ══════════════════════════════════ */
.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.post-list li:last-child { border-bottom: none; }

.post-list__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.post-list__title a { color: var(--navy); }
.post-list__title a:hover { color: var(--blue); }

.post-list__meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.post-list__summary {
  color: var(--text-mid);
  line-height: 1.65;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: disc; }
.post-content li { margin-bottom: 0.5rem; }

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.6);
  padding: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer__brand .nav__brand { margin-bottom: 1rem; }
.footer__brand .nav__wordmark { color: #fff; }
.footer__brand .nav__wordmark-accent { color: var(--sky); }

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; text-decoration: none; }

.footer__muted {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.25);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════
   RESPONSIVE — Tablet+
   ══════════════════════════════════ */
@media (min-width: 768px) {
  .hero__title { font-size: 3.75rem; }
  .hero__subtitle { font-size: 1.2rem; }

  .section__heading { font-size: 2.8rem; }

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

  .features-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  /* Show connectors between steps */
  .step__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 1.5rem;
  }
  .step__connector::after { content: ''; width: 100%; height: 2px; background: var(--silver); border-radius: 1px; }
  /* When connectors are between steps, use a 5-column grid */
  .steps:has(.step__connector) { grid-template-columns: 1fr auto 1fr auto 1fr; }

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

  .audience-banner { grid-template-columns: 1fr auto; }

  .trust-layout { grid-template-columns: auto 1fr; gap: 2.5rem; }

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

  .section { padding: 7rem 0; }
}

/* ══════════════════════════════════
   RESPONSIVE — Desktop
   ══════════════════════════════════ */
@media (min-width: 1024px) {
  .hero { padding: 9rem 2rem 6rem; }
  .hero__title { font-size: 4.25rem; }
  .section__heading { font-size: 3rem; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════
   RESPONSIVE — Mobile nav
   ══════════════════════════════════ */
@media (max-width: 767px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    gap: 0.25rem;
  }

  .nav__links a {
    display: block;
    padding: 0.6rem 0;
  }

  .nav__links--open { display: flex; }

  .nav__hamburger { display: block; }

  .nav__hamburger--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__hamburger--open span:nth-child(2) { opacity: 0; }
  .nav__hamburger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero { padding: 5rem 1.5rem 4rem; }
  .hero__title { font-size: 2.5rem; }

  .section--dark::before { top: -20px; height: 40px; }
}
