/* Home page only. Overrides the shared hero, feature strip, card and CTA banner
   rules in base.css to follow docs/mockups/home-*.jpg. Phone first; 640px
   widens it, 1100px is the desktop layout. */

/* Mockup margins are tighter than the shared container. */
.home .container { max-width: 1280px; padding-inline: 10px; }

/* ---------- Hero: text on the left over a faded photo, man on the right ---------- */
.home .hero {
  display: flex; align-items: center; min-height: 250px; padding: 0;
}
.home .hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #fff 0, #fff 30%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, 0) 68%);
}
.home .hero::after { /* carousel dots from the mockup, decorative */
  content: ""; position: absolute; z-index: 2; left: 28px; bottom: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy);
  box-shadow: 14px 0 0 #c9cedb, 28px 0 0 #c9cedb;
}
.home .hero__inner { position: relative; z-index: 2; padding-block: 14px 32px; padding-inline: 14px; }
.home .hero__text { max-width: 64%; }
.home .hero__title { font-size: 16.5px; line-height: 1.17; padding-left: 10px; border-left-width: 3px; }
.home .hero__title .gold { display: block; }
.home .hero__sub { margin-top: 10px; font-size: 11.5px; line-height: 1.4; font-weight: 500; }
.home .hero__actions { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.home .hero__actions .btn { padding: 8px 16px; min-height: 40px; font-size: 12px; gap: 7px; white-space: nowrap; }
.home .hero__actions .btn .icon { font-size: 14px; }
.home picture { display: contents; }
.home .hero__img {
  position: absolute; z-index: 0; top: 0; bottom: 0; right: -16px; width: auto; height: 100%;
  max-width: none; margin: 0; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}

/* ---------- Feature strip: one row of five ---------- */
.home-features { margin-top: 10px; }
.home .features {
  flex-wrap: nowrap; justify-content: stretch; margin-top: 0; padding: 10px 2px;
  border-radius: 14px; background: #f7f8fc; box-shadow: var(--shadow-md);
}
.home .feature {
  flex: 1 1 0; min-width: 0; gap: 5px; padding: 2px 1px;
  font-size: 11px; line-height: 1.25;
}
.home .feature span { overflow-wrap: anywhere; }
.home .feature + .feature { border-left: 1px solid var(--line); }
.home .feature .icon { width: 24px; height: 24px; }
/* Below 480px the strip goes 3 + 2, centred, so no label is squeezed. */
@media (max-width: 479px) {
  .home .features { flex-wrap: wrap; justify-content: center; padding: 8px 4px; }
  .home .feature { flex: 0 0 33.333%; padding: 8px 4px; }
  .home .feature + .feature { border-left: 0; }
  .home .feature:is(:nth-child(2), :nth-child(3), :nth-child(5)) { border-left: 1px solid var(--line); }
}

/* ---------- Solutions ---------- */
.home-solutions { margin-top: 16px; }
.home .section-title { font-size: 16px; gap: 9px; }
.home .section-title::before { width: 24px; height: 4px; }
.home .cards { gap: 10px; margin-top: 10px; }
.home .card {
  grid-template-columns: 29% auto minmax(0, 1fr) auto;
  grid-template-areas: "media icon body cta";
  grid-template-rows: auto;
  column-gap: 8px; align-items: center; min-height: 66px; border: 0; border-radius: 14px;
}
.home .card__media { align-self: stretch; min-height: 0; }
.home .card__icon { grid-area: icon; width: 24px; height: 24px; color: var(--navy); }
.home .card__body {
  grid-area: body; align-self: center; margin-block: 8px; padding-left: 8px;
  border-left: 2px solid var(--gold);
}
.home .card__body h3 { font-size: 13px; line-height: 1.2; }
.home .card__text { padding: 2px 0 0; font-size: 11px; line-height: 1.35; }
.home .card__cta { margin-right: 10px; width: 40px; height: 40px; }
.home .card__cta .icon { width: 16px; height: 16px; }

/* ---------- Trainer banner: one row ---------- */
.home-cta { margin-top: 14px; }
.home .cta-banner {
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr) auto;
  grid-template-areas: "icon title text btn"; gap: 0 7px; padding: 10px 8px;
  border-radius: 14px; align-items: center;
}
.home .cta-banner__icon { width: 30px; height: 30px; }
.home .cta-banner__title { font-size: 11px; line-height: 1.25; padding-right: 7px; border-right: 2px solid var(--gold); align-self: stretch; display: flex; align-items: center; }
.home .cta-banner__text { font-size: 11px; line-height: 1.35; }
.home .cta-banner .btn { justify-self: end; padding: 8px 10px; font-size: 11px; gap: 5px; max-width: 80px; line-height: 1.15; text-align: left; }
.home .cta-banner .btn .icon { font-size: 14px; }

/* Phones: the banner stacks (icon + title, text, full-width button). */
@media (max-width: 639px) {
  .home .cta-banner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "text text" "btn btn"; gap: 8px 12px; padding: 14px; }
  .home .cta-banner__icon { width: 36px; height: 36px; }
  .home .cta-banner__title { font-size: 15px; padding-right: 0; border-right: 0; }
  .home .cta-banner__text { font-size: 12.5px; }
  .home .cta-banner .btn { justify-self: stretch; justify-content: center; max-width: none; min-height: 44px; font-size: 13px; text-align: center; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .home .container { padding-inline: 24px; }
  .home .hero__inner { padding-inline: 24px; }
  .home .hero { min-height: 340px; }
  .home .hero::before {
    background: linear-gradient(90deg, #fff 0, #fff 30%, rgba(255, 255, 255, .7) 46%, rgba(255, 255, 255, 0) 62%);
  }
  .home .hero__inner { padding-block: 28px 40px; }
  .home .hero__text { max-width: 56%; }
  .home .hero__title { font-size: 27px; padding-left: 14px; border-left-width: 4px; }
  .home .hero__title .gold { display: inline; }
  .home .hero__sub { margin-top: 14px; font-size: 15px; }
  .home .hero__actions { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
  .home .hero__actions .btn { padding: 11px 20px; font-size: 14px; }
  .home .hero__actions .btn .icon { font-size: 18px; }
  .home .hero::after { left: 40px; bottom: 14px; }

  .home .features { padding: 14px 6px; }
  .home .feature { font-size: 12px; gap: 7px; padding: 4px 8px; }
  .home .feature .icon { width: 32px; height: 32px; }
  .home .feature br { display: inline; }

  .home .section-title { font-size: 21px; }
  .home .cards { gap: 14px; margin-top: 14px; }
  .home .card { min-height: 112px; column-gap: 16px; grid-template-columns: 30% auto minmax(0, 1fr) auto; }
  .home .card__icon { width: 36px; height: 36px; }
  .home .card__body { padding-left: 14px; margin-block: 14px; }
  .home .card__body h3 { font-size: 18px; }
  .home .card__text { font-size: 14px; padding-top: 4px; }
  .home .card__cta { width: 42px; height: 42px; margin-right: 18px; }
  .home .card__cta .icon { width: 20px; height: 20px; }

  .home-cta { margin-top: 20px; }
  .home .cta-banner { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 0 18px; padding: 18px 24px; }
  .home .cta-banner__icon { width: 52px; height: 52px; }
  .home .cta-banner__title { font-size: 19px; padding-right: 18px; }
  .home .cta-banner__text { font-size: 14px; }
  .home .cta-banner .btn { padding: 12px 22px; font-size: 15px; max-width: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  .home .container { padding-inline: 30px; }
  .home .hero__inner { padding-inline: 55px; }
  .home .hero { min-height: 252px; }
  .home .hero::before { display: none; }
  .home .hero::after { display: none; }
  .home .hero__inner { padding-block: 26px 0; }
  .home .hero__text { max-width: 640px; }
  .home .hero__title { font-size: 31px; }
  .home .hero__sub { font-size: 16px; }
  .home .hero__actions { flex-wrap: nowrap; margin-top: 16px; padding-bottom: 20px; }
  .home .hero__actions .btn { padding: 10px 20px; font-size: 14px; }
  .home .hero__img {
    right: 0; width: 62%; object-position: 55% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0, #000 32%);
  }

  /* Full-bleed pale band under the hero, icons beside the labels. */
  .home-features { margin-top: 0; background: #f5f6fb; }
  .home .features {
    padding: 8px 0; border-radius: 0; background: none; box-shadow: none;
  }
  .home .feature { flex-direction: row; text-align: left; gap: 12px; font-size: 12.5px; padding: 4px 14px; white-space: nowrap; }
  .home .feature .icon { width: 34px; height: 34px; }

  .home-solutions { margin-top: 18px; }
  .home .section-title { font-size: 23.5px; }
  .home .cards { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
  .home .card {
    grid-template-columns: 38% 34px minmax(0, 1fr);
    grid-template-areas: "media icon title" "media text text" "media cta cta";
    grid-template-rows: auto 1fr auto;
    column-gap: 10px; align-items: start; min-height: 168px; border-radius: 16px;
  }
  .home .card__body { display: contents; }
  .home .card__body h3 { grid-area: title; align-self: center; font-size: clamp(16px, 1.5vw, 19px); padding-top: 14px; padding-right: 12px; }
  .home .card__icon { align-self: center; margin-top: 14px; width: 36px; height: 36px; justify-self: start; }
  .home .card__text { grid-area: text; padding: 8px 14px 0 0; font-size: 13px; line-height: 1.4; }
  .home .card__media { min-height: 168px; }
  .home .card__cta {
    width: auto; height: auto; justify-self: stretch; margin: 10px 12px 14px 0; padding: 9px 12px;
    display: flex; justify-content: space-between; gap: 6px; background: var(--white);
    border: 1.5px solid var(--navy); border-radius: var(--r-pill); box-shadow: none; font: 600 clamp(12px, 1vw, 13px) var(--font-head);
  }
  .home .card__cta span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .home .card__cta .icon { width: 18px; height: 18px; }

  .home-cta { margin-top: 26px; }
  .home .cta-banner { grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1.15fr) auto; gap: 0 22px; padding: 12px 30px; }
  .home .cta-banner__icon { width: 54px; height: 54px; }
  .home .cta-banner__title { font-size: 22px; border-right: 0; border-left: 3px solid var(--gold); padding: 0 0 0 24px; }
  .home .cta-banner__text { font-size: 15px; border-left: 3px solid var(--gold); padding-left: 24px; }
  .home .cta-banner .btn { padding: 14px 28px; font-size: 16px; }
}

@media (min-width: 1280px) {
  .home .card { grid-template-columns: 43% 38px minmax(0, 1fr); }
  .home .card__cta { padding-inline: 14px; margin-right: 14px; }
}
