/* Refreshed website sections for the endurance / strength / hybrid positioning */

.hero-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.57s forwards;
}

.hero-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.hero-mode-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(230,126,34,0.9);
}

.overview-section {
  background: var(--off-white);
  padding-top: 110px;
}

.overview-grid {
  max-width: 1180px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 55px rgba(26,36,51,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 80px rgba(26,36,51,0.10);
}

.overview-card.wide { grid-column: span 2; }

.overview-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-top: 16px;
  color: var(--text-dark);
}

.overview-card p {
  margin-top: 10px;
  color: var(--text-gray);
  line-height: 1.62;
  font-size: 0.96rem;
}

.overview-icon, .mode-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(230,126,34,0.12);
  color: var(--orange);
}

.overview-icon svg, .mode-icon svg, .mode-feature svg, .check-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.training-modes-intro {
  background: white;
  padding-bottom: 60px;
}

.mode-switch-grid {
  max-width: 1080px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.training-mode-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #f8f8fb);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 24px 70px rgba(26,36,51,0.08);
}

.training-mode-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(230,126,34,0.10);
}

.training-mode-card.dark {
  background: linear-gradient(145deg, var(--navy), #0f1722);
  color: white;
}

.training-mode-card.dark h3,
.training-mode-card.dark p { color: white; }
.training-mode-card.dark p { opacity: 0.72; }

.training-mode-card h3 {
  margin-top: 18px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.training-mode-card p {
  margin-top: 12px;
  color: var(--text-gray);
  line-height: 1.6;
}

.mode-section {
  position: relative;
  overflow: hidden;
  padding: 120px 5%;
}

.mode-section.alt { background: white; }
.mode-section.dark {
  background: linear-gradient(160deg, var(--navy) 0%, #1f3045 70%, #2d1a0e 100%);
  color: white;
}
.mode-section.soft { background: var(--off-white); }

.mode-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.mode-inner.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.mode-copy .section-title { margin-bottom: 18px; }
.mode-section.dark .section-title { color: white; }
.mode-section.dark .section-sub { color: rgba(255,255,255,0.70); }

.mode-summary {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(230,126,34,0.12);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
}

.mode-section.dark .metric-pill {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--orange-lt);
}

.mode-features {
  margin-top: 38px;
  display: grid;
  gap: 14px;
}

.mode-feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(0,0,0,0.06);
}

.mode-section.dark .mode-feature {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.mode-feature .mode-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(230,126,34,0.14);
  color: var(--orange);
}

.mode-feature h4 {
  color: var(--text-dark);
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.mode-section.dark .mode-feature h4 { color: white; }

.mode-feature p {
  margin-top: 5px;
  color: var(--text-gray);
  line-height: 1.55;
  font-size: 0.93rem;
}
.mode-section.dark .mode-feature p { color: rgba(255,255,255,0.68); }

.mode-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mode-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(230,126,34,0.17);
  filter: blur(65px);
  pointer-events: none;
}

.phone-demo-screen {
  width: min(310px, 78vw);
  background: #111b28;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  padding: 18px 15px;
  box-shadow: 0 38px 95px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.10);
  position: relative;
}

.phone-demo-inner {
  aspect-ratio: 9/19.5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2433, #111a26);
  color: white;
  display: flex;
  flex-direction: column;
}

.phone-demo-header {
  padding: 18px 16px 12px;
  background: linear-gradient(135deg, rgba(230,126,34,0.18), rgba(255,255,255,0.03));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-demo-label {
  color: rgba(255,255,255,0.50);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-demo-title {
  margin-top: 4px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.phone-demo-body {
  padding: 13px;
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.demo-row, .demo-card {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

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

.demo-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(230,126,34,0.18);
  color: var(--orange-lt);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}

.demo-row-title {
  font-size: 0.66rem;
  font-weight: 750;
}

.demo-row-sub {
  margin-top: 2px;
  color: rgba(255,255,255,0.48);
  font-size: 0.52rem;
}

.demo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.demo-stat {
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
}

.demo-stat strong {
  display: block;
  color: var(--orange-lt);
  font-size: 0.76rem;
}

.demo-stat span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.42);
  font-size: 0.45rem;
}

.check-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  line-height: 1.45;
}

.mode-section.dark .check-list li { color: rgba(255,255,255,0.72); }

.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.coach-band {
  background: white;
  padding: 100px 5%;
}

.coach-band-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.coach-card-refresh {
  background: linear-gradient(145deg, var(--navy), #101826);
  border-radius: 30px;
  padding: 32px;
  color: white;
  box-shadow: 0 28px 85px rgba(26,36,51,0.28);
  border: 1px solid rgba(255,255,255,0.10);
}

.coach-card-refresh .ai-message {
  margin-top: 24px;
  font-size: 1.15rem;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-switch-grid { grid-template-columns: 1fr; }
  .mode-inner, .mode-inner.reverse, .coach-band-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mode-inner.reverse .mode-visual { order: 2; }
}

@media (max-width: 720px) {
  .hero-mode-pills { margin-top: 20px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card.wide { grid-column: auto; }
  .mode-section { padding: 86px 5%; }
  .mode-feature { grid-template-columns: 38px 1fr; padding: 14px; }
  .coach-card-refresh { padding: 24px; border-radius: 24px; }
}

/* Mobile overflow fix: keep the page and fixed title bar inside the viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

*,
*::before,
*::after {
  min-width: 0;
}

body {
  position: relative;
  touch-action: pan-y;
}

#mainNav,
nav {
  max-width: 100vw;
  box-sizing: border-box;
}

.nav-logo,
.nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 860px) {
  #mainNav,
  nav {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    gap: 12px;
    overflow: hidden;
    transform: translateZ(0);
  }

  .nav-links {
    display: none !important;
  }

  .nav-logo {
    min-width: 0;
    font-size: 1rem;
  }

  .nav-cta {
    padding: 7px 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 720px) {
  section,
  .hero,
  .stats-banner,
  .overview-section,
  .training-modes-intro,
  .mode-section,
  .coach-band,
  .privacy-section,
  .cta-section,
  footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  #pricing > div > div[style*="grid-template-columns"],
  #pricing div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .phone-frame,
  .phone-demo-screen {
    max-width: calc(100vw - 32px);
  }

  .hero-glow,
  .mode-visual::before,
  .training-mode-card::after {
    display: none !important;
  }

  #pricing [style*="left:-"],
  #pricing [style*="left: -"],
  [style*="bottom:-"][style*="left:-"],
  [style*="bottom:-"][style*="left: -"] {
    display: none !important;
  }
}
