/* Upload to: public_html/themes/custom/thefitclass/css/pt2home-tfc-hero.css */

.pt2-tfc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 84px 0 76px;
  background:
    radial-gradient(circle at 12% 6%, rgba(47, 124, 255, .18), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(0, 183, 255, .18), transparent 34%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.pt2-tfc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(47, 124, 255, .08), rgba(255, 255, 255, .4) 40%, rgba(0, 183, 255, .08));
}

.pt2-tfc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 54px;
  align-items: center;
}

.pt2-tfc-hero__copy {
  min-width: 0;
}

.pt2-tfc-hero .pt2-tfc-kicker {
  color: #2a77ff;
  letter-spacing: .16em;
}

.pt2-tfc-hero h1 {
  max-width: 770px;
  margin-top: 20px;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.pt2-tfc-hero__lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #475569;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}

.pt2-tfc-hero__mobile-app-link,
.pt2-tfc-hero__mobile-app-card {
  display: none;
}

.pt2-tfc-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.pt2-tfc-hero__buttons .pt2-tfc-btn {
  min-height: 58px;
  padding-left: 28px;
  padding-right: 28px;
  border-radius: 16px;
  font-size: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .10);
}

.pt2-tfc-hero__buttons .pt2-tfc-btn--primary {
  background: linear-gradient(135deg, #2176ff 0%, #00b7ff 100%);
  box-shadow: 0 18px 38px rgba(33, 118, 255, .24);
}

.pt2-tfc-btn__icon {
  display: inline-flex;
  margin-right: 8px;
  transform: translateY(1px);
}

.pt2-tfc-hero__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 720px;
  margin: 42px 0 0;
}

.pt2-tfc-hero__benefit {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 5px;
  padding: 0 20px;
  color: #111827;
}

.pt2-tfc-hero__benefit + .pt2-tfc-hero__benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 8px;
  width: 1px;
  background: rgba(100, 116, 139, .28);
}

.pt2-tfc-hero__benefit-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border: 2px solid #2180ff;
  border-radius: 999px;
  color: #2180ff;
  background: rgba(255, 255, 255, .68);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.pt2-tfc-hero__benefit strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.pt2-tfc-hero__benefit span:last-child {
  display: block;
  max-width: 150px;
  color: #475569;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.pt2-tfc-hero__media {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  text-decoration: none;
}

.pt2-tfc-hero__media:hover .pt2-tfc-hero__phone,
.pt2-tfc-hero__media:focus-visible .pt2-tfc-hero__phone {
  transform: translateY(-4px) scale(1.01);
}

.pt2-tfc-hero__image-glow {
  position: absolute;
  z-index: -1;
  width: min(88%, 560px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(47, 124, 255, .18) 0%, rgba(0, 183, 255, .14) 46%, rgba(255, 255, 255, 0) 70%);
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
}

.pt2-tfc-hero__phone {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 54px rgba(15, 23, 42, .20));
  transition: transform .22s ease;
}


/* Desktop fix: hide the mobile image card and keep the main app image on the right. */
@media (min-width: 641px) {
  .pt2-tfc-hero__mobile-app-card {
    display: none !important;
  }

  .pt2-tfc-hero__media {
    display: flex !important;
  }

  .pt2-tfc-hero__phone {
    max-height: 560px;
    object-fit: contain;
  }
}

@media (max-width: 980px) {
  .pt2-tfc-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pt2-tfc-hero__copy {
    text-align: center;
  }

  .pt2-tfc-hero h1,
  .pt2-tfc-hero__lead,
  .pt2-tfc-hero__benefits {
    margin-left: auto;
    margin-right: auto;
  }

  .pt2-tfc-hero__buttons {
    justify-content: center;
  }

  .pt2-tfc-hero__phone {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .pt2-tfc-hero {
    padding: 44px 0 38px;
  }

  .pt2-tfc-hero__inner {
    display: block;
  }

  .pt2-tfc-hero .pt2-tfc-kicker {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .13em;
  }

  .pt2-tfc-hero h1 {
    max-width: 365px;
    margin: 18px auto 0;
    font-size: clamp(38px, 10.7vw, 48px);
    line-height: 1.06;
    letter-spacing: -.058em;
  }

  .pt2-tfc-hero__lead {
    max-width: 360px;
    margin: 18px auto 0;
    font-size: 17px;
    line-height: 1.55;
  }

  /* Mobile: phone image sits fully inside its own card, with the buttons underneath. */
  .pt2-tfc-hero__mobile-app-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    min-height: 210px;
    margin: 24px auto 0;
    overflow: hidden;
    border-radius: 28px;
    background:
      radial-gradient(circle at 50% 65%, rgba(47, 124, 255, .14), transparent 54%),
      linear-gradient(180deg, rgba(255,255,255,.92), rgba(239,248,255,.96));
    box-shadow: 0 18px 46px rgba(15, 23, 42, .13);
    border: 1px solid rgba(255, 255, 255, .95);
  }

  .pt2-tfc-hero__mobile-app-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.64));
    pointer-events: none;
  }

  .pt2-tfc-hero__mobile-app-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 94%;
    max-width: 330px;
    height: auto;
    object-fit: contain;
    transform: translateY(6px);
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, .16));
  }

  .pt2-tfc-hero__buttons {
    width: 100%;
    max-width: 360px;
    margin: 18px auto 0;
    gap: 12px;
  }

  .pt2-tfc-hero__buttons .pt2-tfc-btn {
    width: 100%;
    min-height: 58px;
    padding: 17px 20px;
    border-radius: 18px;
    font-size: 17px;
  }

  .pt2-tfc-hero__buttons .pt2-tfc-btn--primary {
    display: inline-flex;
  }

  .pt2-tfc-hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 390px;
    margin-top: 32px;
  }

  .pt2-tfc-hero__benefit {
    padding: 0 9px;
  }

  .pt2-tfc-hero__benefit + .pt2-tfc-hero__benefit::before {
    top: 24px;
    bottom: 2px;
  }

  .pt2-tfc-hero__benefit-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    font-size: 16px;
  }

  .pt2-tfc-hero__benefit strong {
    font-size: 15px;
  }

  .pt2-tfc-hero__benefit span:last-child {
    max-width: 105px;
    font-size: 13px;
    line-height: 1.32;
  }

  /* Desktop/tablet image is hidden on mobile to avoid repeating the image. */
  .pt2-tfc-hero__media {
    display: none;
  }
}

@media (max-width: 390px) {
  .pt2-tfc-hero h1 {
    font-size: 38px;
  }

  .pt2-tfc-hero__lead {
    font-size: 16.5px;
  }

  .pt2-tfc-hero__mobile-app-card {
    min-height: 196px;
  }

  .pt2-tfc-hero__mobile-app-img {
    max-width: 310px;
  }

  .pt2-tfc-hero__benefit strong {
    font-size: 14px;
  }

  .pt2-tfc-hero__benefit span:last-child {
    font-size: 12.5px;
  }
}
