/* Limitless Fitness — onboarding landing pages. Mobile-first (90% of traffic). */
:root {
  --black: #0a0a0a;
  --panel: #141414;
  --panel-2: #0e0e0e;
  --line: #262626;
  --gold: #d4a94e;
  --gold-bright: #e8c877;
  --white: #ffffff;
  --grey: #b5b5b5;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 56px;
  background:
    linear-gradient(rgba(10,10,10,.82), rgba(10,10,10,.96)),
    url('../assets/gym.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* subtle gold wash bleeding down from the top of the hero */
.hero::after {
  content: '';
  position: absolute; inset: -40% -10% auto -10%;
  height: 80%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(212,169,78,.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero img.logo { width: 130px; margin: 0 auto 20px; }
.kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 1px;
}
h1 .gold { color: var(--gold); }
h1 .h1-was {
  color: var(--grey); font-weight: 700; font-size: .58em;
  text-decoration: line-through; text-decoration-color: rgba(181,181,181,.7);
  margin-right: .22em; vertical-align: middle;
}
.hero p.sub {
  color: var(--grey);
  font-size: 16px;
  max-width: 460px;
  margin: 16px auto 0;
}

/* ---- Sections ---- */
section { padding: 48px 0; border-bottom: 1px solid var(--line); }
h2 {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
h2 .gold { color: var(--gold); }
.lead { color: var(--grey); font-size: 15px; margin-bottom: 24px; }

/* ---- Video ---- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: url('../assets/gym.jpg') center / cover no-repeat;
  transition: border-color .25s, box-shadow .25s;
}
.video-wrap:hover { border-color: var(--gold); box-shadow: 0 16px 50px -18px rgba(212,169,78,.4); }
.video-wrap iframe, .video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: rgba(10,10,10,.55);
}
.play-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.play-badge::after {
  content: '';
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 4px;
}
.video-placeholder span {
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  font-weight: 600;
}

/* ---- Steps ---- */
.steps { list-style: none; display: grid; gap: 14px; }
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.steps li:hover, .steps li.tapped {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px -14px rgba(0,0,0,.7);
}
.step-num {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background .22s, color .22s;
}
.steps li:hover .step-num, .steps li.tapped .step-num { background: var(--gold); color: var(--black); }
.steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.steps p { color: var(--grey); font-size: 14px; }

/* ---- Benefits ---- */
.benefits { list-style: none; display: grid; gap: 10px; }
.benefits li {
  position: relative;
  padding: 5px 0 5px 34px;
  font-size: 15px;
  transition: color .15s, transform .15s;
}
.benefits li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 4px;
  width: 21px; height: 21px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.benefits li:hover { color: var(--gold-bright); transform: translateX(3px); }

/* ---- Plans ---- */
.plans { display: grid; gap: 18px; margin-top: 24px; }
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .22s var(--ease), border-color .22s;
}
.plan.basic:hover, .plan.basic.tapped { transform: translateY(-3px); border-color: var(--grey); }
/* hover on the key card — lift + brighten the gold edge */
.plan.featured:hover, .plan.featured.tapped { transform: translateY(-4px); }
.plan.featured:hover::before, .plan.featured.tapped::before { opacity: 1; }

/* the star of the show — glowing gold Plus card */
.plan.featured {
  position: relative;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 34px 2px rgba(212,169,78,.55), 0 20px 60px -12px rgba(212,169,78,.6);
  animation: cardGlow 3s ease-in-out infinite;
}
.plan.featured::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-bright), rgba(212,169,78,.15) 45%, var(--gold-bright));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
}
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 26px 0 rgba(212,169,78,.45), 0 16px 50px -14px rgba(212,169,78,.45); }
  50%      { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 48px 6px rgba(212,169,78,.85), 0 24px 70px -8px rgba(212,169,78,.8); }
}
.plan .tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--gold); color: var(--black);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(212,169,78,.7);
}
.plan h3 {
  font-size: 18px; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 4px;
}
.plan .price { font-size: 32px; font-weight: 800; color: var(--gold); }
.plan .price small { font-size: 14px; color: var(--grey); font-weight: 400; }
.plan .terms { color: var(--grey); font-size: 13px; margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.plan ul li { display: flex; gap: 10px; }
.plan ul li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.plan.basic ul li::before { color: var(--grey); }

/* ---- Buttons ---- */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: var(--black);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 16px 28px;
  border-radius: 999px;
  margin-top: 20px;
  transition: background .15s, transform .1s, box-shadow .18s;
}
.btn:hover { background: var(--gold-bright); box-shadow: 0 10px 28px -10px rgba(212,169,78,.6); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; box-shadow: none; }

/* ---- Ad-page hero video (9:16 portrait) ---- */
.video-portrait {
  position: relative;
  width: 100%;                /* mobile: fill the wrap (~20px gutters). Desktop capped below. */
  aspect-ratio: 9 / 16;
  margin: 26px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: url('../assets/gym.jpg') center / cover no-repeat;
  transition: border-color .25s, box-shadow .25s;
}
.video-portrait:hover { border-color: var(--gold); box-shadow: 0 16px 50px -18px rgba(212,169,78,.4); }
.video-portrait video, .video-portrait iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border: 0;
}
@media (min-width: 560px) { .video-portrait { max-width: 340px; } }

/* ---- Ad-page offer block (hero £10 focal card) ---- */
.offer {
  max-width: 400px;
  margin: 26px auto 0;
  padding: 22px 24px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 34px 2px rgba(212,169,78,.5), 0 20px 60px -12px rgba(212,169,78,.55);
  animation: cardGlow 3s ease-in-out infinite;
}
.offer-tag {
  display: inline-block;
  background: var(--gold); color: var(--black);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.offer-price { font-size: 52px; font-weight: 800; color: var(--gold); line-height: 1; }
.offer-price .was {
  color: var(--grey); font-size: 26px; font-weight: 600;
  text-decoration: line-through; text-decoration-color: rgba(181,181,181,.75);
  margin-right: 10px; vertical-align: middle;
}
.offer-price small { display: block; font-size: 13px; color: var(--grey); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }
.offer-terms { color: var(--grey); font-size: 13px; margin-top: 12px; }

/* ---- Dual gym CTA (two JOIN buttons) ---- */
.join-choices { display: grid; gap: 12px; margin-top: 24px; }
.join-choices .btn { margin-top: 0; }
@media (min-width: 560px) {
  .join-choices { grid-template-columns: 1fr 1fr; }
}

/* ---- Gym blurb ---- */
.gym-facts { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.gym-facts li { display: flex; gap: 12px; font-size: 15px; }
.gym-facts li::before { content: '•'; color: var(--gold); font-weight: 700; }

/* ---- Footer ---- */
footer { padding: 40px 0 120px; text-align: center; }
footer .motto {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 18px;
}
footer address { font-style: normal; color: var(--grey); font-size: 14px; line-height: 1.8; }
footer a { color: var(--grey); }

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 10;
}
.sticky-cta .btn { margin: 0 auto; max-width: 640px; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* light stagger inside a revealed section — fill:backwards so it releases transform
   after entry. fill:both would lock transform:none and kill the :hover lifts + the
   Plus card's glow (it also overrode cardGlow entirely). Plans ride the section fade,
   so they're left out — keeps the featured card's cardGlow uninterrupted. */
.reveal.in .steps li { animation: fadeUp .55s var(--ease) backwards; }
.reveal.in .steps li:nth-child(2) { animation-delay: .07s; }
.reveal.in .steps li:nth-child(3) { animation-delay: .14s; }
.reveal.in .steps li:nth-child(4) { animation-delay: .21s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero entrance on load */
.hero .logo, .hero .kicker, .hero h1, .hero .sub { animation: fadeUp .7s var(--ease) both; }
.hero .kicker { animation-delay: .08s; }
.hero h1 { animation-delay: .16s; }
.hero .sub { animation-delay: .26s; }

/* ---- Upgrade modal ---- */
dialog#upgrade-modal {
  border: 0;
  background: var(--panel);
  color: var(--white);
  border-radius: 18px;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(212,169,78,.35);
}
dialog#upgrade-modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
dialog#upgrade-modal[open] { animation: modalIn .28s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-inner { position: relative; padding: 32px 26px 28px; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; color: var(--grey);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px;
  transition: color .15s;
}
.modal-close:hover { color: var(--gold); }
.modal-inner h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.modal-inner h3 .gold { color: var(--gold); }
.modal-sub { color: var(--grey); font-size: 14px; margin-bottom: 20px; }
.field { display: block; margin-bottom: 14px; }
.field span {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.field input {
  width: 100%; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; color: #fff; font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,169,78,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal-fine { color: var(--grey); font-size: 12px; margin-top: 12px; text-align: center; }
.modal-success { display: none; text-align: center; padding: 6px 0; }
.modal-success .tick {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%; border: 2px solid var(--gold);
  color: var(--gold); font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.modal-success p { color: var(--grey); font-size: 14px; margin-bottom: 20px; }

/* ---- Benefit detail cards (image + copy per Plus benefit) ---- */
.benefit-grid { display: grid; gap: 16px; margin-top: 8px; }
.benefit-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.benefit-detail:hover, .benefit-detail.tapped {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 36px -16px rgba(0,0,0,.7);
}
/* placeholder look until James's images drop in — swap .img-slot for an <img> */
.benefit-detail .img-slot {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #111 0 12px, #0d0d0d 12px 24px);
  border-bottom: 1px solid var(--line);
  color: #4a4a4a; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.benefit-detail .bd-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  display: block; border-bottom: 1px solid var(--line);
}
.benefit-detail { position: relative; }
/* "Plus only" pill, top-left over the card image */
.bd-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--gold); color: var(--black);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.7);
}
/* inline "Coming soon" chip next to a card heading */
.bd-soon {
  display: inline-block; vertical-align: middle;
  background: rgba(212,169,78,.15); color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; margin-left: 6px;
}
/* two photos side by side inside one card image slot */
.bd-split { display: flex; gap: 2px; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.bd-split img { flex: 1; width: 50%; height: 100%; object-fit: cover; display: block; }
.benefit-detail .bd-body { padding: 18px 20px 22px; }
.benefit-detail h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.benefit-detail p { color: var(--grey); font-size: 14px; line-height: 1.55; }

/* ---- Elite equipment brand banner ---- */
.eq-banner { padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.eq-kicker {
  text-align: center; color: var(--gold);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  margin: 0 auto 18px; max-width: 340px; padding: 0 20px; line-height: 1.5;
}
/* equipment logos a touch larger than the retail marquee for presence */
.eq-banner .marquee-track img { height: 44px; margin-right: 40px; }

/* ---- Brand rewards marquee (pure CSS, no deps) ----
   Seamless loop = two identical logo sets + translateX(-50%). The gap MUST be a
   trailing margin on EVERY item (not flex `gap`) or -50% lands half a gap off and
   logos clip at the seam (was the "Miller & Carter cut in half" bug). No -webkit-mask:
   iOS Safari drops/tears masked + animated layers (the "logos vanish/glitch" bug). */
.marquee { overflow: hidden; margin: 22px 0 26px; }
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;      /* stable GPU layer → no iOS repaint glitches */
}
.marquee-track img {
  flex: 0 0 auto;
  height: 40px; width: auto; object-fit: contain;
  margin-right: 46px;          /* trailing gap on every item → seamless -50% */
  opacity: .9;
}
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-track img:hover { opacity: 1; }
}

/* ---- Larger screens: it's a landing page, keep the single column, just breathe more ---- */
@media (min-width: 700px) {
  .hero { padding: 80px 0; }
  section { padding: 64px 0; }
  .plans { grid-template-columns: 1fr 1fr; align-items: start; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in .steps li, .reveal.in .plans .plan,
  .hero .logo, .hero .kicker, .hero h1, .hero .sub,
  .plan.featured, dialog#upgrade-modal[open], .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; }
}
