/* ---------- First-visit "Your Journey as a FitFreakk Trainer" popup ----------
   Drawn on the 1424 x 892 reference: --p is one reference pixel, scaled so the whole box fits the viewport. */
.fp { --p: min(calc((100vw - 32px) / 1424), calc((100dvh - 32px) / 892), 1px); --fg: #0b4a24; --fmint: #e4f4e8;
  width: calc(1424 * var(--p)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #0b0d0c; overflow: visible; }
.fp::backdrop { background: rgba(8, 20, 12, .62); backdrop-filter: blur(3px); }
.fp[open] { animation: fp-in .35s cubic-bezier(.2, .7, .3, 1); }
@keyframes fp-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.fp__box { position: relative; height: calc(892 * var(--p)); border-radius: calc(28 * var(--p)); overflow: hidden;
  background: radial-gradient(calc(700 * var(--p)) calc(240 * var(--p)) at 100% 36%, #e7f5ea, transparent 70%), linear-gradient(180deg, #fff 40%, #f3faf4); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.fp__close { position: absolute; z-index: 3; top: calc(16 * var(--p)); right: calc(16 * var(--p)); display: grid; place-items: center; width: calc(46 * var(--p)); height: calc(46 * var(--p)); border: 0; border-radius: 50%; background: #ececec; color: #111; cursor: pointer; transition: background-color .2s; }
.fp__close:hover { background: #dcdcdc; }
.fp__close .icon { width: calc(24 * var(--p)); height: calc(24 * var(--p)); stroke-width: 2.4; }

.fp__top { position: relative; height: calc(367 * var(--p)); }
.fp__photo { position: absolute; top: 0; left: 0; width: calc(564 * var(--p)); height: calc(352 * var(--p)); object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent), linear-gradient(180deg, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 85%, transparent), linear-gradient(180deg, #000 88%, transparent); mask-composite: intersect; }
.fp__title { position: absolute; left: calc(564 * var(--p)); top: calc(92 * var(--p)); font-size: calc(86 * var(--p)); font-weight: 800; line-height: calc(84 * var(--p)); letter-spacing: -.04em; }
.fp__title span { display: block; background: linear-gradient(180deg, #13883a, #0a4a24); -webkit-background-clip: text; background-clip: text; color: transparent; }

.fp__steps { display: grid; grid-template-columns: 276fr 265fr 273fr 266fr 262fr; gap: calc(14 * var(--p)); height: calc(383 * var(--p)); margin: 0; padding: 0 calc(12 * var(--p)) 0 calc(14 * var(--p)); list-style: none; }
.fp__step { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: calc(18 * var(--p)); border: 1px solid #e1efe4; border-radius: calc(22 * var(--p)); background: linear-gradient(180deg, #fff 45%, #eef8f0); box-shadow: 0 calc(8 * var(--p)) calc(24 * var(--p)) rgba(20, 80, 40, .08); text-align: center; }
.fp__num { position: absolute; z-index: 1; left: calc(10 * var(--p)); top: calc(-12 * var(--p)); display: grid; place-items: center; width: calc(62 * var(--p)); height: calc(62 * var(--p)); border: calc(4 * var(--p)) solid #fff; border-radius: 50%; background: linear-gradient(180deg, #13883a, #0a4a24); color: #fff; font-size: calc(32 * var(--p)); font-weight: 800; box-shadow: 0 calc(4 * var(--p)) calc(10 * var(--p)) rgba(10, 74, 36, .3); }
.fp__ico { display: grid; place-items: center; flex: none; width: calc(68 * var(--p)); height: calc(68 * var(--p)); border-radius: 50%; background: var(--fmint); color: var(--fg); }
.fp__ico .icon { width: calc(34 * var(--p)); height: calc(34 * var(--p)); stroke-width: 2.3; }
.fp__step h3 { margin-top: calc(14 * var(--p)); padding-inline: calc(8 * var(--p)); font-size: calc(20 * var(--p)); font-weight: 800; line-height: calc(23 * var(--p)); letter-spacing: -.015em; white-space: pre-line; }
.fp__img { width: 100%; height: calc(226 * var(--p)); margin-top: auto; border-radius: 0 0 calc(22 * var(--p)) calc(22 * var(--p)); object-fit: cover; }
.fp__step:nth-child(2) .fp__img { height: calc(214 * var(--p)); }

.fp__step--clients { padding-inline: calc(12 * var(--p)); }
.fp__step--clients h3 { margin-top: calc(10 * var(--p)); padding: 0; white-space: nowrap; font-size: calc(18 * var(--p)); text-transform: uppercase; letter-spacing: -.01em; }
.fp__step--clients > p { margin-top: calc(6 * var(--p)); font-size: calc(15.5 * var(--p)); line-height: calc(20 * var(--p)); color: #333; }
.fp__stat { display: flex; align-items: center; gap: calc(16 * var(--p)); width: 100%; height: calc(100 * var(--p)); margin-top: calc(10 * var(--p)); padding-left: calc(12 * var(--p)); border: 1px solid #c9e8d0; border-radius: calc(14 * var(--p)); background: #eaf7ed; text-align: left; }
.fp__stat > span { display: grid; place-items: center; flex: none; width: calc(76 * var(--p)); height: calc(76 * var(--p)); border-radius: 50%; background: linear-gradient(180deg, #13883a, #0a4a24); color: #fff; }
.fp__stat .icon { width: calc(36 * var(--p)); height: calc(36 * var(--p)); }
.fp__stat p { font-size: calc(16.5 * var(--p)); font-weight: 800; line-height: calc(20 * var(--p)); text-transform: uppercase; color: #111; }
.fp__stat strong { display: block; font-size: calc(38 * var(--p)); line-height: 1; color: var(--fg); }
.fp__stat--orange { border-color: #f6cfb2; background: #fff2e8; }
.fp__stat--orange > span { background: linear-gradient(180deg, #ff8a3d, #ea5a12); }
.fp__stat--orange strong { color: #e8590c; }

.fp__bar { display: flex; align-items: center; justify-content: space-between; gap: calc(20 * var(--p)); height: calc(142 * var(--p)); padding: 0 calc(26 * var(--p)) 0 calc(36 * var(--p)); }
.fp__bar ul { display: flex; margin: 0; padding: 0; list-style: none; }
.fp__bar li { display: flex; align-items: center; gap: calc(16 * var(--p)); }
.fp__bar li + li { margin-left: calc(22 * var(--p)); padding-left: calc(22 * var(--p)); border-left: calc(2 * var(--p)) solid #dde5df; }
.fp__bar li > span { display: grid; place-items: center; flex: none; width: calc(68 * var(--p)); height: calc(68 * var(--p)); border-radius: 50%; background: var(--fmint); color: var(--fg); }
.fp__bar .icon { width: calc(34 * var(--p)); height: calc(34 * var(--p)); stroke-width: 2.1; }
.fp__bar p { font-size: calc(16 * var(--p)); line-height: calc(22 * var(--p)); color: #222; white-space: nowrap; }
.fp__bar b { display: block; font-size: calc(17.5 * var(--p)); font-weight: 700; color: #111; }
.fp__cta { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: calc(14 * var(--p)); width: calc(311 * var(--p)); height: calc(66 * var(--p)); border-radius: 999px; background: linear-gradient(180deg, #13883a, #0a4a24); color: #fff; font-size: calc(22 * var(--p)); font-weight: 700; box-shadow: 0 calc(8 * var(--p)) calc(20 * var(--p)) rgba(10, 74, 36, .3); transition: transform .2s, filter .2s; }
.fp__cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.fp__cta .icon { width: calc(24 * var(--p)); height: calc(24 * var(--p)); stroke-width: 2.4; }
.fp__close:focus-visible, .fp__cta:focus-visible { outline: 3px solid #8be596; outline-offset: 3px; }

/* tablet & mobile: a scrollable card with the same pieces stacked */
@media (max-width: 899px) {
  .fp { --p: 1px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 20px; }
  .fp__box { height: auto; border-radius: 20px; }
  .fp__close { top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(255, 255, 255, .9); } .fp__close .icon { width: 20px; height: 20px; }
  .fp__top { height: auto; }
  .fp__photo { position: static; width: 100%; height: auto; aspect-ratio: 564 / 352; }
  .fp__title { position: static; padding: 6px 20px 0; font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.05; }
  .fp__steps { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; height: auto; margin-top: 30px; padding: 0 16px; }
  .fp__step h3 { font-size: 1rem; line-height: 1.25; }
  .fp__num { width: 44px; height: 44px; font-size: 1.3rem; border-width: 3px; }
  .fp__ico { width: 56px; height: 56px; } .fp__ico .icon { width: 28px; height: 28px; }
  .fp__img, .fp__step:nth-child(2) .fp__img { height: auto; aspect-ratio: 270 / 222; margin-top: 12px; border-radius: 0 0 22px 22px; }
  .fp__step--clients { grid-column: 1 / -1; padding-bottom: 14px; }
  .fp__step--clients h3 { font-size: 1.05rem; white-space: normal; } .fp__step--clients > p { font-size: .9rem; line-height: 1.4; }
  .fp__stat { height: auto; padding: 12px; gap: 14px; } .fp__stat > span { width: 56px; height: 56px; } .fp__stat .icon { width: 28px; height: 28px; }
  .fp__stat p { font-size: .9rem; line-height: 1.25; } .fp__stat strong { font-size: 1.8rem; }
  .fp__bar { flex-direction: column; align-items: stretch; height: auto; padding: 24px 16px 20px; }
  .fp__bar ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .fp__bar li + li { margin-left: 0; padding-left: 0; border-left: 0; }
  .fp__bar li { gap: 10px; } .fp__bar li > span { width: 44px; height: 44px; } .fp__bar .icon { width: 22px; height: 22px; }
  .fp__bar p { font-size: .82rem; line-height: 1.3; white-space: normal; } .fp__bar b { font-size: .88rem; }
  .fp__cta { width: 100%; height: 52px; font-size: 1.05rem; } .fp__cta .icon { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
  .fp__steps { gap: 22px 10px; padding-inline: 12px; }
  .fp__step { padding-top: 14px; }
  .fp__step h3 { padding-inline: 6px; font-size: .84rem; }
  .fp__ico { width: 44px; height: 44px; } .fp__ico .icon { width: 22px; height: 22px; }
  .fp__num { left: 6px; top: -10px; width: 36px; height: 36px; font-size: 1.05rem; }
}
@media (max-width: 330px) { .fp__steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fp[open] { animation: none; } }
