/* Fitness Mastery: shared look for the landing and results pages. Matches the physique planner. */
/* Inter, hosted here (variable weight, Latin). Same file Google Fonts serves, without the extra requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #1d1d1f; --muted: #6e6e73; --bg: #f5f5f7; --card: #fff; --line: #e5e5ea;
  --accent: #1a7f4e; --soft: #eaf5ef; --navy: #0b2636;
  --ease: cubic-bezier(.16, 1, .3, 1);
  interpolate-size: allow-keywords; /* lets the FAQ answers animate open */
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 17px/1.55 "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* .cta sets display, which would otherwise override hidden */
h1, h2, h3 { margin: 0 0 12px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(32px, 5vw, 52px); text-wrap: balance; }
h3 { font-size: 20px; letter-spacing: -.015em; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
section { padding: 96px 0; }
.white { background: #fff; }

/* Buttons */
.cta { display: inline-block; padding: 15px 30px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 999px;
  text-decoration: none; text-align: center; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
@media (hover: hover) { .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(26, 127, 78, .28); background: #16703f; } }
.cta:active { transform: scale(.98); }
.cta:focus-visible { outline: 3px solid rgba(26, 127, 78, .35); outline-offset: 3px; }
.cta-row { margin-top: 40px; text-align: center; }
.cta-row .note { margin-top: 10px; }

/* Header */
header { position: sticky; top: 0; z-index: 30; background: rgba(245, 245, 247, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
header img { height: 50px; width: auto; }
header .cta { padding: 8px 18px; font-size: 15px; }

/* Hero */
.hero { background: #fff; padding: 88px 0 32px; }
.hero-copy { max-width: 940px; } /* headline in two lines on desktop */
.eyebrow { margin: 0 0 14px; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.hero .sub { max-width: 640px; margin: 18px auto 30px; font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45; color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 48px 0 0; border-radius: 28px; overflow: hidden; background: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, .12); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } /* sits on the poster, which shows until the player loads */
@media (hover: hover) { .video:hover img { transform: scale(1.03); } }

/* Play buttons on videos and thumbnails */
.play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: none; border: 0; cursor: pointer; color: #fff; font: inherit; }
.play span { position: relative; padding: 13px 22px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; font-weight: 600; transition: transform .25s var(--ease), background .25s; }
.video .play span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .55); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (hover: hover) { .play:hover span { transform: scale(1.06); background: rgba(0, 0, 0, .75); } }
.play:focus-visible span { outline: 3px solid #fff; outline-offset: 3px; }

/* Client stories */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #222; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .7); border-radius: 6px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; text-align: left; }
.story { display: flex; flex-direction: column; padding: 14px 14px 20px; background: var(--card); border-radius: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .story:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); } .story:hover .thumb img { transform: scale(1.04); } }
.story .person { margin: 14px 6px 0; font-weight: 700; }
.story .job { margin: 0 6px 10px; font-size: 14px; color: var(--muted); }
.story .result { margin: 0 6px 8px; font-weight: 600; line-height: 1.4; }
.story .quote { margin: 0 6px; color: #3a3a3c; font-style: italic; line-height: 1.5; }
.disclaimer { max-width: 620px; margin: 24px auto 0; font-size: 14px; color: var(--muted); }
.more { display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Wall of results under the headline: two rows drifting in opposite directions. Hover pauses them, a click plays the story. */
.wall { display: grid; gap: 14px; margin: 56px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.row { display: flex; width: max-content; animation: drift 180s linear infinite; }
.row.rev { animation-direction: reverse; }
.wall:hover .row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.tile { position: relative; flex: 0 0 auto; width: 340px; margin-right: 14px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #222; cursor: pointer; font: inherit; }
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } }
.tile span { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .92); border-radius: 999px; }
.tile span b { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .row { animation: none; } .wall { overflow-x: auto; } }

/* Press and stats */
.press-label { margin: 56px 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.press { width: 100%; max-width: 720px; height: auto; margin: 0 auto; filter: invert(1); opacity: .45; }
.stats { background: #fff; padding: 24px 0 96px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--muted); }

/* Who it's for */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.card { padding: 28px; background: var(--card); border-radius: 22px; }
.check { list-style: none; margin: 16px 0 0; padding: 0; }
.check li { position: relative; margin-bottom: 12px; padding-left: 30px; }
.check li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--soft); }
.check li::after { content: ''; position: absolute; left: 7px; top: 9px; width: 6px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.check.no li::before { background: #f0f0f2; }
.check.no li::after { left: 6px; top: 12px; width: 8px; height: 0; border: 0; border-top: 2px solid #8e8e93; transform: none; }

/* Why this is different: the one dark section */
.dark { background: var(--navy); color: #fff; }
.dark h2 { color: #fff; }
.dark .lede { max-width: 560px; margin: 0 auto; color: #b8c7d0; font-size: 19px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 56px; background: rgba(255, 255, 255, .1); border-radius: 24px; overflow: hidden; }
.point { padding: 40px; background: var(--navy); }
.point i { display: block; margin-bottom: 18px; font-style: normal; font-size: 15px; font-weight: 600; color: #5fd39a; letter-spacing: .04em; }
.point h3 { font-size: 26px; color: #fff; }
.point p { margin: 0; color: #b8c7d0; }

/* About */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: center; }
.about img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 24% 50%; }
.about p { font-size: 18px; color: #3a3a3c; }
.about .cta { margin-top: 12px; }

/* FAQ */
details { background: var(--card); border-radius: 18px; margin-bottom: 10px; }
summary { position: relative; padding: 20px 56px 20px 24px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
details[open]::details-content { height: auto; }
details p, details ol { margin: 0; padding: 0 24px 20px; color: #3a3a3c; }
details ol { padding-left: 44px; }

/* Application */
#apply { background: #fff; }
.bar { height: 4px; max-width: 560px; margin: 28px auto; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .45s var(--ease); }
#app { max-width: 560px; margin: 0 auto; }
#apply.applied .wrap > :not(#app) { display: none; } /* after booking or applying: just the confirmation */
#app > * { animation: enter .32s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
#app h3 { font-size: 24px; outline: none; margin-bottom: 18px; }
.step { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.opt { display: block; width: 100%; min-height: 56px; margin: 0 0 10px; padding: 15px 18px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt:focus-visible, .opt.on { border-color: var(--accent); outline: none; }
.opt.on { background: var(--soft); }
.opt:active { transform: scale(.99); }
@media (hover: hover) { .opt:hover { border-color: var(--accent); } }
.bf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.bf-tile { padding: 0; overflow: hidden; background: #fff; border: 3px solid transparent; border-radius: 14px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.bf-tile img { width: 100%; height: auto; aspect-ratio: 200 / 218; }
.bf-tile:focus-visible, .bf-tile.on { border-color: var(--accent); outline: none; }
@media (hover: hover) { .bf-tile:hover { border-color: var(--accent); transform: translateY(-2px); } }
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.unit { padding: 12px; font: inherit; font-size: 15px; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.unit.on { border-color: var(--accent); background: var(--soft); font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#app label { display: block; margin: 14px 0 6px; font-size: 15px; font-weight: 600; }
#app input { width: 100%; padding: 14px 16px; font: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s; }
#app input:focus, #app textarea:focus { border-color: var(--accent); outline: none; }
#app textarea { width: 100%; padding: 14px 16px; font: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; transition: border-color .2s; }
#app label .muted { font-weight: 400; }
.booked-when { margin: 4px 0 2px; font-size: 22px; font-weight: 600; color: var(--accent); }
#app .video { margin: 14px 0 26px; border-radius: 16px; }
#app h4 { margin: 0 0 4px; font-size: 18px; }
#app .check { margin-bottom: 18px; }
#app .cta { display: block; width: 100%; margin-top: 16px; }
.opt + form.typed { margin: -2px 0 16px; } /* the typed answer that opens under "Other" */
.opt + form.typed .cta { margin-top: 10px; }
.back { padding: 12px 0; font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; cursor: pointer; }
#cal { min-height: 640px; }

/* Video player */
#player { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
#player[open] { animation: enter .32s ease-out; }
#player::backdrop { background: rgba(0, 0, 0, .85); }
#player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
#player .close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; font-size: 20px; color: #fff; background: none; border: 0; cursor: pointer; }

footer { padding: 32px 0 110px; text-align: center; font-size: 14px; color: var(--muted); }
footer a { color: inherit; }

/* Sticky Apply bar on phones */
.sticky-cta { display: none; }

/* Scroll reveal. Only hides things when JS runs, and never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Uses `translate`, not `transform`, so it doesn't fight the hover lift. The last two keep the cards' hover transitions. */
  .js .reveal { opacity: 0; translate: 0 8px; }
  .js .reveal.in { --d: calc(var(--i, 0) * 60ms); opacity: 1; translate: none;
    transition: opacity .32s ease-out var(--d), translate .32s ease-out var(--d), transform .35s var(--ease), box-shadow .35s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .video .play span::after, #app > *, #player[open] { animation: none; } }

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 24px; }
  .video { margin-top: 36px; border-radius: 20px; }
  .wall { margin: 40px 0; }
  .tile { width: 250px; }
  .cols, .points, .about { grid-template-columns: 1fr; }
  .about { gap: 28px; }
  .point { padding: 28px; }
  .stats { padding-bottom: 64px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  /* Client stories swipe sideways on phones instead of stacking */
  .grid.swipe { display: flex; gap: 12px; margin: 32px -20px 0; padding: 0 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .grid.swipe::-webkit-scrollbar { display: none; }
  .grid.swipe .story { flex: 0 0 84%; scroll-snap-align: center; }
  .swipe-hint { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
  header .cta { display: none; } /* the sticky bar below does this job on phones */
  .sticky-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 25;
    padding: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); transform: translateY(150%); transition: transform .35s var(--ease); }
  .sticky-cta.show { transform: none; }
}
@media (min-width: 761px) { .swipe-hint { display: none; } }
