/* Hero refresh (2026-10-23): a gym photo behind the hero instead of the light streaks,
   headline and store buttons first on phones, a smaller cookie banner on phones.
   Loaded after main.css. */

/* Darken the photo so the cards stay the focus: darker on the left behind the phone,
   a little lighter in the middle, dark at the bottom where the next section starts. */
.ct-hero__banner-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7, 7, 16, .35) 0%, rgba(7, 7, 16, .15) 45%, rgba(7, 7, 16, .85) 100%),
    radial-gradient(ellipse at 60% 45%, rgba(7, 7, 16, 0) 0%, rgba(7, 7, 16, .55) 75%);
}

.ct-hero__banner-img {
  filter: none;
}

/* Keep "All Your Fitness" and "Workouts · Meals · Cardio · Progress" on one line each,
   up to the largest screens: the card may widen a little, the text stops growing sooner. */
@media (min-width: 1025px) {
  .ct-hero__tagline {
    max-width: min(700px, 48vw);
  }

  .ct-hero__tagline-title {
    font-size: clamp(40px, min(5.6vw, 9.5vh), 88px);
  }

  .ct-hero__tagline-sub {
    font-size: clamp(20px, min(2.6vw, 4.4vh), 38px);
  }
}

/* "Built to Achieve Your Goals" in the hero's lettering: Bebas Neue capitals, the accent words
   in the hero's orange. */
.ct-steps .ct-section__title,
.features .features-title,
.ct-blog-home .ct-section__title,
.ct-testimonials .ct-section__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

/* "Start Today. It's Free.": the page's closing band over the hero's gym photo, leading into
   the footer's download buttons. */
.ct-final {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(7, 7, 16, .8), rgba(7, 7, 16, .9)),
    url("/images/hero_gym.webp") center / cover no-repeat;
  border-top: 1px solid rgba(0, 204, 255, .25);
}

.ct-final__inner {
  max-width: 760px;
  margin: 0 auto;
}

.ct-final__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.ct-final__sub {
  margin: 18px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 767px) {
  .ct-final {
    padding: 56px 20px;
  }

  /* The orange words on a line of their own: "It's Free.", "Real Advice.", "Own Words". */
  .ct-final__title .ct-section__title-accent,
  .ct-blog-home .ct-section__title-accent,
  .ct-testimonials .ct-section__title-accent {
    display: block;
  }
}

.ct-section__title-accent {
  color: #f4a460;
}

/* The topic words (Goal, Training, ...) replaced "Step 1"... and
   are small labels above the titles, not the old giant numbers. Specific enough to win over
   main.css's media-query sizes. */
.ct-steps .ct-step .ct-step__number {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
  opacity: 1;
  margin-bottom: 10px;
}

/* Each block's picture: a photo card with the app screen overlapping its bottom corner
   (the outer corner: right, or left in the reversed blocks). */
.ct-step__scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 48px;
}

.ct-step__image .ct-step__photo {
  width: 100%;
  max-width: none;
  aspect-ratio: 8 / 9;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

.ct-step__image:hover .ct-step__photo {
  transform: none;
}

.ct-step__device {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 44%;
  z-index: 2;
}

.ct-step--reverse .ct-step__device {
  right: auto;
  left: -10%;
}

/* Progress: the runner is on the photo's left, so its screen goes on the right. */
.ct-step--reverse:last-child .ct-step__device {
  left: auto;
  right: -10%;
}

.ct-step__device .ct-step__stack {
  max-width: none;
}

/* The workouts block shows two screens fanned out: give them more room. */
.ct-step__device:has(.ct-step__stack) {
  width: 56%;
}

@media (max-width: 1024px) {
  .ct-step__scene {
    max-width: 360px;
    margin-bottom: 56px;
  }

  .ct-step__device,
  .ct-step--reverse .ct-step__device {
    left: auto;
    right: -4%;
    bottom: -12%;
  }
}

@media (max-width: 767px) {
  /* Headline and store buttons first, the phone after them. */
  .ct-hero__banner-wrap {
    padding-top: 32px !important;
  }

  /* The card was wider than the space inside the hero's padding, so it ran off the right edge. */
  .ct-hero__tagline {
    order: 0 !important;
    width: 100% !important;
  }

  .ct-hero__tagline-sub {
    font-size: clamp(16px, 5.2vw, 24px) !important;
    letter-spacing: 1px;
  }

  .ct-hero__phone-wrap {
    order: 1 !important;
    margin-top: 8px !important;
  }

  #cookieBanner {
    gap: 12px;
    padding: 10px 16px;
    font-size: 12px;
    line-height: 1.4;
  }

  #cookieAccept {
    padding: 7px 16px;
    font-size: 13px;
  }
}
