/* =========================================================
   Stamina — homepage rebuild
   ========================================================= */

:root {
  --bg: #080808;
  --surface: #141414;
  --surface-2: #1c1c1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --text-strong: #e3e3e3;
  --text-muted: #b5b5ba;
  --text-dim: rgba(255, 255, 255, 0.65);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
}
.btn--light { background: #fff; color: #080808; }
.btn--light:hover { background: #e9e9ea; transform: translateY(-1px); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; padding: 0 24px; }
.section-head h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-muted);
}

.br-desktop { display: inline; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 12px 0 auto 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(100% - 48px, 1200px);
  height: 58px;
  padding: 0 0 0 0;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: width 0.6s var(--ease), padding 0.6s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled .nav__inner {
  width: min(100% - 32px, 880px);
  padding: 0 8px 0 20px;
  background: rgba(20, 20, 20, 0.72);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.nav__logo img { width: 130px; height: auto; }
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}
.nav.is-scrolled .nav__links { gap: 20px; }
.nav__links a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

.nav__mobile {
  pointer-events: auto;
  display: none;
  flex-direction: column;
  gap: 4px;
  width: calc(100% - 32px);
  margin-top: 8px;
  padding: 12px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__mobile a:not(.btn) {
  padding: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
}
.nav__mobile a:not(.btn):hover { background: rgba(255, 255, 255, 0.05); }
.nav__mobile .btn { margin-top: 8px; height: 48px; }
.nav.is-open .nav__mobile { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: 110px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1328px;
  z-index: -1;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0) 40%, var(--bg) 92%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.hero__title {
  font-size: 80px;
  line-height: 88px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--text-strong);
}
.hero__sub {
  margin-top: 40px;
  font-size: 20px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
}

/* download block (QR + badges) */
.download {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 56px;
  text-align: left;
}
.download--center { justify-content: center; margin-top: 64px; }
.download__qr {
  width: 117px;
  height: 117px;
  padding: 9px;
  background: #fff;
  border-radius: 17px;
  flex: none;
}
.download__qr img { width: 100%; height: 100%; }
.download__trial { font-size: 16px; color: var(--text-muted); }
.download__trial strong { color: var(--text); font-weight: 600; }
.download__badges { display: flex; gap: 10px; margin-top: 14px; }
.download__badges a { transition: transform 0.25s var(--ease), opacity 0.25s; }
.download__badges a:hover { transform: translateY(-2px); opacity: 0.85; }
.download__badges img { height: 40px; width: auto; }
.download__rating { margin-top: 14px; font-size: 15px; color: var(--text-muted); }

/* phone mock (shadow + screen + frame) */
.phone {
  position: relative;
  flex: none;
  aspect-ratio: 1350 / 2760;
}
.phone__frame,
.phone__screen { position: absolute; pointer-events: none; user-select: none; }
.phone__frame { inset: 0; width: 100%; height: 100%; z-index: 2; }
.phone__screen {
  z-index: 1;
  left: 5.2%;
  top: 2.4%;
  width: 89.2%;
  height: 95.2%;
  object-fit: cover;
  object-position: top;
  border-radius: 12% / 5.6%;
}

.hero__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-top: 75px;
  height: 600px;
  /* fade the bottom of the row into the page */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.phone--sm { width: 294px; margin-top: 61px; }
.phone--md { width: 314px; margin-top: 41px; }
.phone--lg { width: 353px; }
.hero__phones .phone { animation: rise 1.2s var(--ease) both; }
.hero__phones .phone:nth-child(1),
.hero__phones .phone:nth-child(5) { animation-delay: 0.35s; }
.hero__phones .phone:nth-child(2),
.hero__phones .phone:nth-child(4) { animation-delay: 0.2s; }
.hero__phones .phone:nth-child(3) { animation-delay: 0.05s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   REVIEWS (marquee)
   ========================================================= */
.reviews { padding: 120px 0 140px; }
.marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 8px)); }
}

.review {
  width: 400px;
  min-height: 296px;
  padding: 24px 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex: none;
}
.review__head { display: flex; justify-content: space-between; align-items: flex-start; }
.review__author { font-size: 16px; font-weight: 500; color: var(--text); }
.review__head img { width: 20px; height: 20px; opacity: 0.85; }
.review__meta { margin-top: 4px; font-size: 15px; color: var(--text-dim); }
.review__stars { color: #fff; letter-spacing: 1px; margin-right: 8px; }
.review__title {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f2f2f2;
}
.review__body { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-dim); }

/* =========================================================
   COACHES
   ========================================================= */
.coaches { padding: 0 24px 140px; }
.coaches__grid {
  display: grid;
  grid-template-columns: repeat(3, 267px);
  justify-content: center;
  column-gap: 91px;
  row-gap: 64px;
  margin-top: 48px;
}
.coach { display: flex; flex-direction: column; align-items: center; }
.coach__photo {
  width: 267px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.coach__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.coach:hover .coach__photo img { transform: scale(1.04); }
.coach h3 {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-strong);
}
.coach ul {
  margin-top: 18px;
  padding-left: 34px;
  padding-right: 10px;
  flex: 1;
  list-style: square;
}
.coach li {
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}
.coach li::marker { font-size: 0.7em; color: rgba(255, 255, 255, 0.7); }
.coach__links { display: flex; gap: 10px; margin-top: 40px; }
.coach__links a { transition: transform 0.25s var(--ease), opacity 0.25s; }
.coach__links a:hover { transform: translateY(-2px); opacity: 0.8; }
.coach__links img { width: 50px; height: 50px; object-fit: contain; padding: 3px; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: 0 24px 80px; }
.features .section-head { margin-bottom: 80px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 844px;
  margin: 0 auto 160px;
}
.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone--feature { width: 282px; }
.feature__watch {
  position: absolute;
  width: 174px;
  left: calc(50% + 65px);
  top: 323px;
  z-index: 3;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.feature--reverse .feature__media { order: 2; }
.feature__text h3 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feature__text p {
  margin-top: 24px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-muted);
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing { padding: 40px 24px 140px; }
.price-card {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 32px;
}
.price-card__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan { padding: 24px 24px 26px; border-radius: 24px; }
.plan--featured { background: #262626; }
.plan__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
}
.pill {
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan__amount {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.plan__per { font-size: 16px; color: rgba(255, 255, 255, 0.5); }
.plan__billing { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.6); }

.price-card__includes { padding: 24px 24px 20px; }
.includes__title { font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.price-card__includes ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 14px;
  list-style: none;
}
.price-card__includes li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
}
.price-card__includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1.6px solid rgba(255, 255, 255, 0.7);
  transform: rotate(-45deg);
}
.price-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 0 24px;
  border-top: 1px solid var(--border);
  margin: 0 -8px -8px;
  padding: 8px 8px 8px 32px;
}
.price-card__footer p { font-size: 16px; color: rgba(255, 255, 255, 0.7); }
.price-card__footer strong { color: var(--text); font-weight: 600; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 0 24px 120px; }
.faq__sub { max-width: 460px; margin-left: auto; margin-right: auto; font-size: 20px !important; line-height: 1.2; color: rgba(255,255,255,0.5) !important; }
.faq__list {
  max-width: 500px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.faq__item {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.25s, background 0.25s;
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { background: #141414; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 15px;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #d2d2d7;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7.25px;
  width: 16px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.35s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 15px 18px; }
.faq__answer p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.faq__answer a { text-decoration: underline; text-underline-offset: 3px; color: #fff; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta { padding: 40px 0 0; overflow: hidden; }
.cta__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin-top: 88px;
  height: 420px;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.phone--cta-sm { width: 250px; margin-top: 40px; }
.phone--cta-lg { width: 290px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { max-width: 952px; margin: 0 auto; padding: 40px 24px 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; }
.footer__logo img { width: 130px; height: auto; }
.footer__cols { display: flex; gap: 72px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}
.footer__col a { font-size: 15px; color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 16px; margin-top: 2px; }
.footer__social img { width: 20px; height: 20px; opacity: 0.85; transition: opacity 0.2s; }
.footer__social a:hover img { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer__bottom div { display: flex; gap: 20px; }
.footer__bottom a:hover { color: rgba(255, 255, 255, 0.75); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__phones .phone { animation: none; }
  .marquee__track { animation-duration: 400s; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .coaches__grid { grid-template-columns: repeat(3, 240px); column-gap: 40px; }
  .coach__photo { width: 240px; height: 315px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile { display: flex; visibility: hidden; }
  .nav.is-open .nav__mobile { visibility: visible; }
  .nav .nav__inner,
  .nav.is-scrolled .nav__inner { width: calc(100% - 32px); padding: 0 8px 0 20px; }
  .nav.is-open .nav__inner,
  .nav.is-scrolled .nav__inner {
    background: rgba(20, 20, 20, 0.72);
    border-color: var(--border-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .coaches__grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .coach__photo { width: 100%; height: auto; aspect-ratio: 267 / 350; }
}

@media (max-width: 760px) {
  .br-desktop { display: none; }
  .section-head h2 { font-size: 32px; }
  .section-head p { font-size: 17px; }

  .hero { padding-top: 104px; }
  .hero__title { font-size: 48px; line-height: 52px; letter-spacing: -0.05em; }
  .hero__sub { margin-top: 24px; font-size: 18px; line-height: 1.3; max-width: 340px; }
  .download { flex-direction: column; text-align: center; margin-top: 40px; gap: 0; }
  .download__qr { display: none; }
  .download__badges { justify-content: center; }
  .hero__phones { gap: 20px; margin-top: 48px; height: 420px; }
  .phone--lg { width: 220px; }
  .phone--md { width: 196px; margin-top: 26px; }
  .phone--sm { width: 184px; margin-top: 38px; }

  .reviews { padding: 80px 0 100px; }
  .review { width: 300px; min-height: 280px; }

  .features .section-head { margin-bottom: 56px; }
  .feature,
  .feature--reverse { grid-template-columns: 1fr; gap: 32px; margin-bottom: 96px; text-align: center; }
  .feature--reverse .feature__media { order: 0; }
  .feature__text h3 { font-size: 26px; }
  .feature__text p { margin-top: 14px; font-size: 18px; }
  .phone--feature { width: 240px; }
  .feature__watch { width: 130px; top: 270px; left: calc(50% + 50px); }

  .price-card__plans,
  .price-card__includes ul { grid-template-columns: 1fr; }
  .plan__amount { font-size: 38px; }
  .price-card__footer { flex-direction: column; align-items: stretch; text-align: center; padding: 16px 8px 8px; }

  .cta__phones { gap: 14px; height: 340px; margin-top: 56px; }
  .phone--cta-lg { width: 200px; }
  .phone--cta-sm { width: 172px; margin-top: 28px; }

  .footer__top { flex-direction: column; }
  .footer__cols { flex-wrap: wrap; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}
