/* The Fit Class homepage hero - premium standalone front page section */

.tfc-home-hero,
.tfc-home-hero * {
  box-sizing: border-box;
}

.tfc-home-hero {
  --blue: #0758ff;
  --blue-2: #1558e8;
  --blue-3: #3f46ff;
  --ink: #071126;
  --muted: #536176;
  --soft: #f7fbff;
  --line: rgba(148, 163, 184, .26);
  --panel: rgba(255, 255, 255, .78);

  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 77% 48%, rgba(37, 99, 235, .18), transparent 32%),
    radial-gradient(circle at 90% 72%, rgba(124, 58, 237, .18), transparent 30%),
    radial-gradient(circle at 14% 74%, rgba(96, 165, 250, .20), transparent 36%),
    linear-gradient(180deg, #fff 0%, #f7fbff 55%, #fff 100%);
}

.tfc-home-hero::before {
  content: "";
  position: absolute;
  inset: 84px 0 auto 42%;
  height: 74%;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255,255,255,0) 0%, rgba(59,130,246,.10) 42%, rgba(124,58,237,.10) 100%);
  clip-path: polygon(26% 0, 100% 0, 77% 100%, 0 100%);
  opacity: .75;
}

.tfc-home-hero__inner {
  position: relative;
  width: min(100% - 56px, 1460px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(26px, 3.5vw, 52px) 0 clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(380px, .88fr) minmax(520px, 1.12fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(44px, 6vw, 102px);
  align-items: center;
}

.tfc-home-hero__login {
  position: absolute;
  top: clamp(30px, 3.5vw, 54px);
  right: 0;
  z-index: 5;
  color: var(--ink);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 850;
  text-decoration: none;
}

.tfc-home-hero__login strong {
  color: var(--ink);
  font-weight: 900;
}

.tfc-home-hero__brand {
  grid-column: 1 / -1;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tfc-home-hero__wordmark {
  color: var(--blue-2);
  font-size: clamp(42px, 4vw, 68px);
  line-height: .84;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.11em;
  transform: skew(-8deg);
}

.tfc-home-hero__divider {
  width: 1px;
  height: 42px;
  background: rgba(148, 163, 184, .45);
}

.tfc-home-hero__brand-text strong {
  display: block;
  color: var(--ink);
  font-size: clamp(14px, 1.4vw, 21px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .16em;
}

.tfc-home-hero__brand-text span {
  display: block;
  margin-top: 5px;
  color: var(--blue-2);
  font-size: clamp(8px, .8vw, 12px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .18em;
}

.tfc-home-hero__copy {
  grid-column: 1;
  grid-row: 2;
  padding-top: clamp(18px, 3vh, 40px);
}

.tfc-home-hero__pill {
  width: fit-content;
  margin-bottom: clamp(18px, 2vh, 28px);
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(21, 88, 232, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .10);
  color: var(--blue-2);
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .045em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tfc-home-hero__pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfc-home-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(62px, 6vw, 104px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 950;
}

.tfc-home-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(120deg, var(--blue) 0%, #1558e8 58%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 18px 44px rgba(21, 88, 232, .10);
}

.tfc-home-hero__copy > p {
  max-width: 590px;
  margin: clamp(22px, 2.5vh, 32px) 0 clamp(28px, 3vh, 40px);
  padding: 0;
  color: var(--muted);
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.35;
  font-weight: 850;
}

.tfc-home-hero__benefits {
  width: min(100%, 660px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(219, 226, 239, .86);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.tfc-home-hero__benefits > div {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 1.8vw, 26px) clamp(10px, 1.4vw, 19px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tfc-home-hero__benefits > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: calc(100% - 36px);
  background: var(--line);
}

.tfc-home-hero__icon {
  width: clamp(50px, 3.6vw, 62px);
  height: clamp(50px, 3.6vw, 62px);
  margin-bottom: 13px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.38), transparent 38%),
    linear-gradient(135deg, var(--blue), var(--blue-3));
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.tfc-home-hero__icon svg,
.tfc-home-hero__trust-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfc-home-hero__benefits strong {
  display: block;
  color: var(--ink);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.tfc-home-hero__benefits small {
  display: block;
  margin-top: 9px;
  color: #64748b;
  font-size: clamp(12px, .85vw, 14px);
  line-height: 1.28;
  font-weight: 750;
}

.tfc-home-hero__cta {
  width: min(100%, 560px);
  margin-top: clamp(22px, 3vh, 34px);
}

.tfc-home-hero__cta a {
  min-height: 62px;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-radius: 18px;
  background: linear-gradient(105deg, var(--blue) 0%, var(--blue-2) 54%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 20px 42px rgba(37, 99, 235, .28);
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.1;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.tfc-home-hero__cta a span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.tfc-home-hero__cta small {
  display: block;
  margin-top: 12px;
  color: #5e6b80;
  font-size: clamp(13px, .95vw, 15px);
  line-height: 1.2;
  font-weight: 750;
  text-align: center;
}

.tfc-home-hero__cta small::before {
  content: "🔒";
  margin-right: 6px;
  opacity: .8;
}

.tfc-home-hero__phones {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: clamp(12px, 2vh, 28px);
}

.tfc-home-hero__phones img {
  width: min(100%, 820px);
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 44px rgba(15, 23, 42, .16));
}

.tfc-home-hero__trust {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  margin-top: clamp(22px, 3vh, 42px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(219, 226, 239, .82);
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .055);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.tfc-home-hero__trust > div {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 1.7vw, 26px);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
}

.tfc-home-hero__trust > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: calc(100% - 36px);
  background: var(--line);
}

.tfc-home-hero__trust-icon {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-2);
  background: #edf4ff;
}

.tfc-home-hero__trust strong {
  color: var(--ink);
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.1;
  font-weight: 950;
}

.tfc-home-hero__trust small {
  margin-top: 4px;
  color: #64748b;
  font-size: clamp(12px, .9vw, 14px);
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .tfc-home-hero__inner {
    grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
    column-gap: 34px;
  }

  .tfc-home-hero h1 {
    font-size: clamp(54px, 6.6vw, 78px);
  }
}

@media (max-width: 900px) {
  .tfc-home-hero {
    min-height: auto;
  }

  .tfc-home-hero::before {
    display: none;
  }

  .tfc-home-hero__inner {
    width: min(100% - 28px, 680px);
    min-height: auto;
    padding: 18px 0 28px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    text-align: center;
  }

  .tfc-home-hero__brand {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .tfc-home-hero__login {
    top: 22px;
    right: 0;
    font-size: 14px;
  }

  .tfc-home-hero__copy,
  .tfc-home-hero__phones,
  .tfc-home-hero__trust {
    grid-column: 1;
  }

  .tfc-home-hero__copy {
    grid-row: 2;
    padding-top: 0;
  }

  .tfc-home-hero__pill {
    margin-left: auto;
    margin-right: auto;
  }

  .tfc-home-hero h1 {
    margin: 0 auto;
    font-size: clamp(42px, 13vw, 76px);
    text-align: center;
  }

  .tfc-home-hero__copy > p {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(15px, 4.3vw, 20px);
    text-align: center;
  }

  .tfc-home-hero__phones {
    grid-row: 3;
    margin: 18px 0 6px;
    padding-top: 0;
  }

  .tfc-home-hero__phones img {
    width: min(96vw, 620px);
  }

  .tfc-home-hero__benefits {
    margin: 0 auto;
  }

  .tfc-home-hero__cta {
    width: min(100%, 620px);
    margin: 20px auto 0;
  }

  .tfc-home-hero__trust {
    grid-row: 4;
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfc-home-hero__trust > div:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .tfc-home-hero__brand-text strong {
    font-size: 11px;
  }

  .tfc-home-hero__brand-text span {
    font-size: 7px;
  }

  .tfc-home-hero__benefits {
    border-radius: 22px;
  }

  .tfc-home-hero__benefits > div {
    padding: 14px 6px;
  }

  .tfc-home-hero__icon {
    width: 42px;
    height: 42px;
  }

  .tfc-home-hero__benefits strong {
    font-size: 11px;
  }

  .tfc-home-hero__benefits small {
    font-size: 10px;
  }

  .tfc-home-hero__trust {
    grid-template-columns: 1fr;
  }

  .tfc-home-hero__trust > div:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 18px;
    right: 18px;
    width: auto;
    height: 1px;
  }
}


/* SVG hard fix + cache-bust version
   This stops SVG paths rendering as black blobs if older/theme styles interfere. */

.tfc-home-hero svg,
.tfc-home-hero svg *,
.tfc-home-hero path,
.tfc-home-hero rect,
.tfc-home-hero circle,
.tfc-home-hero line,
.tfc-home-hero polyline,
.tfc-home-hero polygon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.tfc-home-hero__pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tfc-home-hero__pill svg {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  stroke-width: 2 !important;
  color: var(--blue-2) !important;
}

.tfc-home-hero__icon svg {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  stroke-width: 2.2 !important;
  color: #fff !important;
}

.tfc-home-hero__trust-icon svg {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  stroke-width: 2 !important;
  color: var(--blue-2) !important;
}


/* Hero variant when header/menu is its own separate block */
.tfc-home-hero--no-header .tfc-home-hero__inner {
  grid-template-rows: 1fr auto;
  padding-top: clamp(34px, 5vw, 76px);
}

.tfc-home-hero--no-header .tfc-home-hero__copy,
.tfc-home-hero--no-header .tfc-home-hero__phones {
  grid-row: 1;
}

.tfc-home-hero--no-header .tfc-home-hero__trust {
  grid-row: 2;
}

@media (max-width: 900px) {
  .tfc-home-hero--no-header .tfc-home-hero__inner {
    grid-template-rows: auto auto auto;
  }

  .tfc-home-hero--no-header .tfc-home-hero__copy {
    grid-row: 1;
  }

  .tfc-home-hero--no-header .tfc-home-hero__phones {
    grid-row: 2;
  }

  .tfc-home-hero--no-header .tfc-home-hero__trust {
    grid-row: 3;
  }
}
