/* FRF Welcome · 28 Day Kickstart slideshow
   Brand matched to fullrangefitness.com: Montserrat; black / #121212 surfaces;
   FRF yellow #FFD900; headings 900 uppercase, tight tracking, yellow italic accents;
   buttons yellow with black text and 2px radius; grey body copy. */

:root {
  --black: #000;
  --alt: #121212;
  --card: #0a0a0a;
  --line: rgba(255, 255, 255, .1);
  --yellow: #ffd900;
  --white: #fff;
  --text: #d1d5db;
  --muted: #99a4b2;
  --ease: cubic-bezier(.22, .8, .2, 1);
  /* one scaling unit so slides fit a TV, a laptop or a phone */
  --u: min(1vw, 1.8vh);
  --pad: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font: 400 16px/1.55 Montserrat, sans-serif;
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; font-weight: 900; text-transform: uppercase; color: var(--white); }
p { margin: 0; }
em { font-style: italic; color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ---------- chrome ---------- */
.chrome-top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2.2vh, 26px) var(--pad);
  background: linear-gradient(#000 20%, rgba(0,0,0,0));
  pointer-events: none;
}
.chrome-top > * { pointer-events: auto; }
.chrome-logo { height: clamp(36px, 6.5vh, 80px); width: auto; }
.chrome-right { display: flex; align-items: center; gap: 14px; }
.counter { font-weight: 700; font-size: clamp(13px, 1.6vh, 18px); letter-spacing: .05em; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter b { color: var(--yellow); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.icon-btn svg, .nav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .icon-btn { display: none; } }

.chrome-bottom {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 16px;
  padding: clamp(12px, 2.2vh, 24px) var(--pad) calc(clamp(12px, 2.2vh, 24px) + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(0,0,0,0), #000 70%);
}
.bars { flex: 1; display: flex; gap: 6px; }
.bars button { flex: 1; height: 24px; padding: 0; position: relative; }
.bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: rgba(255,255,255,.18); border-radius: 2px; }
.bars button::after { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; background: var(--yellow); border-radius: 2px; transition: width .5s var(--ease); }
.bars button.done::after, .bars button.on::after { width: 100%; }
.nav-btn {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 2px;
  border: 1px solid var(--line); color: var(--white); transition: .2s;
}
.nav-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.nav-btn.primary { background: var(--yellow); border-color: var(--yellow); color: #000; }
.nav-btn.primary:hover { color: #000; filter: brightness(1.08); transform: translateX(2px); }
.nav-btn:disabled { opacity: .25; pointer-events: none; }

/* ---------- deck ---------- */
.deck { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.track { display: flex; height: 100%; transition: transform .75s var(--ease); will-change: transform; }
.track.dragging { transition: none; }
.slide {
  position: relative; flex: 0 0 100%; height: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--black);
  padding: clamp(64px, 11vh, 110px) var(--pad) clamp(84px, 13vh, 120px);
}
.slide.alt { background: var(--alt); }
/* .inner is scaled down by app.js when a slide's content is taller than the screen */
.inner { width: 100%; max-width: 1500px; flex: none; position: relative; transform-origin: center center; }
.center { text-align: center; }

/* entrance animation: elements with .a rise in, staggered by --i */
.a { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.on .a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.photo.a { transform: scale(.96); }
.slide.on .photo.a { transform: none; }

/* type */
.eyebrow {
  font-size: clamp(11px, calc(var(--u) * 1), 16px); font-weight: 900; letter-spacing: .3em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: clamp(10px, 1.6vh, 20px);
}
h1 { font-size: clamp(44px, calc(var(--u) * 8.5), 150px); line-height: .92; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, calc(var(--u) * 4.6), 84px); line-height: .98; letter-spacing: -.03em; margin-bottom: clamp(20px, 4vh, 48px); max-width: 19ch; }
h3 { font-size: clamp(15px, calc(var(--u) * 1.6), 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: clamp(16px, calc(var(--u) * 1.55), 28px); color: var(--text); max-width: 60ch; margin-bottom: clamp(18px, 3vh, 36px); }
p { color: var(--muted); font-size: clamp(14px, calc(var(--u) * 1.25), 24px); }

/* layout */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.grid { display: grid; gap: clamp(12px, 1.5vw, 24px); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g2.tight { gap: clamp(10px, 1.1vw, 16px); }

.photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; background: #111; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.slide.on .photo img { transform: scale(1.06); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(18px, 2vw, 32px); transition: border-color .3s;
}
.slide.alt .card { background: var(--black); }
.card:hover { border-color: var(--yellow); }
.card h3 { margin-bottom: 8px; }
.ico {
  width: clamp(40px, calc(var(--u) * 3.6), 60px); height: clamp(40px, calc(var(--u) * 3.6), 60px); margin-bottom: clamp(14px, 2vh, 24px);
  display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--yellow); color: var(--yellow);
}
.ico svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag-link {
  display: inline-block; margin-top: 14px; font-weight: 700; font-size: clamp(12px, calc(var(--u) * .95), 16px);
  color: var(--yellow); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}

/* denser slides */
.compact h2 { margin-bottom: clamp(16px, 3vh, 32px); }
.compact .card { padding: clamp(14px, 1.5vw, 24px); }
.compact .card p { font-size: clamp(13px, calc(var(--u) * 1.1), 20px); }

/* hero */
.s-hero { background: #000; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; transform: scale(1.1); transition: transform 8s var(--ease); }
.slide.on .hero-bg img { transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), #000 75%); }
.hero-bg.dim img { opacity: .18; }
.hero-mark { width: clamp(90px, calc(var(--u) * 11), 200px); height: auto; margin: 0 auto clamp(18px, 3vh, 36px); }
.slide.on .hero-mark { animation: spinIn 1.2s var(--ease) both; }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.s-hero h1 { margin: 0 auto clamp(18px, 3vh, 32px); }
.tagline { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--white); font-size: clamp(14px, calc(var(--u) * 1.5), 26px); }
.hint { margin-top: clamp(28px, 6vh, 64px); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.swipe-ico { width: 34px; height: 4px; border-radius: 2px; background: var(--yellow); position: relative; overflow: hidden; }
.swipe-ico::after { content: ""; position: absolute; inset: 0; background: #000; animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* numbered list (philosophy) */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2.6vh, 28px); }
.list li { display: flex; gap: clamp(14px, 1.4vw, 22px); align-items: flex-start; }
.n {
  flex: none; width: clamp(38px, calc(var(--u) * 3.4), 56px); height: clamp(38px, calc(var(--u) * 3.4), 56px); border-radius: 50%;
  border: 2px solid var(--yellow); display: grid; place-items: center;
  font-weight: 900; font-size: clamp(15px, calc(var(--u) * 1.5), 24px); color: var(--white);
}
.list h3 { margin-bottom: 4px; }

/* session steps */
.steps { --ring: clamp(70px, calc(var(--u) * 9), 150px); display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.5vw, 24px); margin-bottom: clamp(24px, 5vh, 56px); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--ring) / 2); height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .4s;
}
.slide.on .steps::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.ring {
  width: var(--ring); height: var(--ring); margin: 0 auto clamp(12px, 2vh, 22px);
  border-radius: 50%; border: 2px solid var(--yellow); background: var(--alt); color: var(--yellow);
  display: grid; place-items: center; position: relative;
}
.ring svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step b { display: block; font-size: clamp(11px, calc(var(--u) * 1), 15px); letter-spacing: .2em; color: var(--yellow); margin-bottom: 4px; }
.slide.on .step .ring { animation: ringPulse .7s var(--ease) both; animation-delay: calc(var(--i) * 200ms + 300ms); }
@keyframes ringPulse { 0% { transform: scale(.7); } 60% { transform: scale(1.08); background: var(--yellow); color: #000; } 100% { transform: none; } }

/* classes */
.class { text-align: center; }
.circle {
  width: min(78%, calc(var(--u) * 16)); aspect-ratio: 1; margin: 0 auto clamp(16px, 2.6vh, 28px); border-radius: 50%; overflow: hidden;
  border: 3px solid var(--yellow);
}
.circle img { width: 100%; height: 100%; object-fit: cover; }
.class h3 { margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.tags span, .chip {
  display: inline-block; background: var(--yellow); color: #000; font-weight: 700; text-transform: uppercase;
  font-size: clamp(10px, calc(var(--u) * .85), 13px); letter-spacing: .02em; padding: 5px 9px; border-radius: 4px;
}

/* goals */
.qs { display: grid; gap: clamp(12px, 2.4vh, 26px); }
.q { border-left: 3px solid var(--yellow); padding: 4px 0 4px clamp(14px, 1.4vw, 24px); }
.q .chip { margin-bottom: 10px; }
.q p { color: var(--white); font-weight: 500; font-style: italic; font-size: clamp(16px, calc(var(--u) * 1.5), 26px); line-height: 1.35; }

/* C-I-D */
.curve { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2vw, 30px); }
.curve svg { width: 100%; height: auto; margin-bottom: clamp(12px, 2vh, 20px); overflow: visible; }
.curve svg text { fill: var(--muted); font: 700 10px Montserrat, sans-serif; }
.curve svg .bar { fill: #333; transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.curve svg .bar.smm { fill: #5a5a5a; }
.slide.on .curve svg .bar { transform: none; transition-delay: calc(var(--d, 0ms) + 300ms); }
.curve svg path { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.1s var(--ease); }
.slide.on .curve svg path { stroke-dashoffset: 0; transition-delay: calc(var(--d, 0ms) + 1000ms); }
.curve svg circle { fill: var(--yellow); opacity: 0; transition: opacity .4s; }
.slide.on .curve svg circle { opacity: 1; transition-delay: calc(var(--d, 0ms) + 1000ms); }
.curve h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.curve .big { font-size: 2em; font-style: italic; color: var(--yellow); line-height: 1; }
.goal { margin-top: 10px; color: var(--white); }
.goal b { display: inline-block; background: var(--yellow); color: #000; font-size: .75em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; margin-right: 6px; }

/* identity */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  display: flex; gap: 14px; align-items: center; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(13px, calc(var(--u) * 1.15), 19px); color: var(--white);
  padding: clamp(10px, 1.6vh, 16px) 18px; border: 1px solid var(--line); border-radius: 8px; background: #000;
}
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--yellow);
  background: radial-gradient(circle, var(--yellow) 0 35%, transparent 40%);
}

/* principles */
.s-principles { background: #000; }
.stat { text-align: left; border-top: 3px solid var(--yellow); padding-top: clamp(14px, 2vh, 22px); }
.stat .v { font-weight: 900; font-size: clamp(48px, calc(var(--u) * 7.5), 130px); line-height: .9; letter-spacing: -.04em; color: var(--yellow); margin-bottom: clamp(10px, 1.6vh, 18px); font-variant-numeric: tabular-nums; }
.stat h3 { margin-bottom: 6px; }
.stat p { font-size: clamp(13px, calc(var(--u) * 1.1), 21px); }
.banner { margin-top: clamp(24px, 5vh, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; color: var(--white); font-size: clamp(18px, calc(var(--u) * 2.2), 38px); line-height: 1.15; }

/* apps + final */
.apps { display: grid; gap: clamp(10px, 1.8vh, 18px); }
.app { display: flex; gap: clamp(14px, 1.4vw, 22px); align-items: flex-start; padding: clamp(14px, 2vh, 22px); border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.app h3 { margin-bottom: 4px; }
.book {
  background: var(--yellow); color: #000; border-radius: 12px; padding: clamp(28px, 4vw, 64px); text-align: center;
  box-shadow: 0 30px 80px -30px rgba(255, 217, 0, .45);
}

.book-k { color: #000; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(11px, calc(var(--u) * 1), 15px); margin-bottom: 12px; }
.book h2 { color: #000; margin: 0 auto clamp(18px, 3vh, 30px); max-width: 14ch; }
.book h2 em { color: #000; }
.btn {
  display: inline-block; background: #000; color: var(--white); text-decoration: none; text-transform: uppercase;
  font-weight: 900; font-size: clamp(14px, calc(var(--u) * 1.2), 20px); padding: 18px 30px; border-radius: 2px;
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }

/* ---------- QR codes ---------- */
.qr { display: block; text-decoration: none; color: var(--white); text-align: center; transition: transform .25s var(--ease); }
.qr:hover { transform: translateY(-3px); }
.qr img { width: 100%; height: auto; border-radius: 8%; box-shadow: 0 18px 40px -18px rgba(255, 217, 0, .55); }
.qr span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(11px, calc(var(--u) * .95), 16px);
}
.qr span svg { width: 1.3em; height: 1.3em; fill: currentColor; }

.app-grid { gap: clamp(14px, 2vw, 36px); }
.app-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 1.8vw, 30px); display: flex; flex-direction: column; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.app-col > p { flex: 1; margin-bottom: clamp(14px, 2.4vh, 26px); }
.qr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 20px); }
.scan-hint { margin-top: calc(clamp(20px, 4vh, 48px) * -.5); }

.card-qr { width: clamp(84px, calc(var(--u) * 8), 130px); height: auto; margin-top: 16px; border-radius: 8%; }

.book-split { grid-template-columns: .9fr 1.1fr; }
.book .qr-big { width: min(100%, calc(var(--u) * 24), 360px); margin: 0 auto; color: #000; }
.book .qr-big img { box-shadow: none; border: 3px solid #000; }
.btn-mobile { display: none; }
.keep { display: grid; gap: clamp(12px, 2vh, 20px); }
.keep-row {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 1.6vw, 26px); align-items: center; text-decoration: none;
  background: var(--black); border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 1.6vw, 24px); transition: border-color .3s;
}
.keep-row:hover { border-color: var(--yellow); }
.keep-row h3 { margin-bottom: 6px; }
.keep-row b { display: block; margin-top: 8px; color: var(--yellow); font-size: clamp(12px, calc(var(--u) * 1), 17px); }
.qr-sm { width: clamp(100px, calc(var(--u) * 11), 190px); }

/* ---------- small / portrait screens: stack, scroll within a slide ---------- */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  :root { --u: 1.1vw; }
  .split { grid-template-columns: 1fr; }
  .split > .photo:last-child { order: -1; }
  .photo { aspect-ratio: 16 / 9; max-height: 24vh; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps::before { display: none; }
  .step { display: flex; align-items: center; gap: 16px; text-align: left; }
  .ring { width: 56px; height: 56px; margin: 0; flex: none; }
  .step b { margin: 0; }
  .class { display: grid; grid-template-columns: 96px 1fr; gap: 4px 16px; text-align: left; align-items: center; }
  .class .circle { width: 96px; grid-row: span 3; margin: 0; }
  .class .tags { justify-content: flex-start; }
  .curve { display: grid; grid-template-columns: 130px 1fr; gap: 0 16px; align-items: start; }
  .curve svg { grid-row: span 4; margin: 0; }
  .scan-hint, .card-qr { display: none; }
  .app-col .qr img, .qr-big, .keep-row .qr-sm { display: none; }
  .app-col .qr span { margin: 0; width: 100%; padding: 12px 8px; border: 1px solid var(--yellow); border-radius: 2px; color: var(--yellow); }
  .keep-row { grid-template-columns: 1fr; }
  .btn-mobile { display: inline-block; }
  .book-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g4, .g2 { grid-template-columns: 1fr; }
  .stats.g4 { grid-template-columns: 1fr 1fr; }
  h2 { max-width: none; }
  .nav-btn { width: 46px; height: 46px; }
  .curve { grid-template-columns: 100px 1fr; }
}

/* short landscape screens (laptops, 720p TVs) */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) and (max-height: 840px) {
  .curve svg { max-height: 17vh; }
  .curve p { font-size: clamp(13px, calc(var(--u) * 1.1), 18px); }
  .stat .v { font-size: clamp(44px, calc(var(--u) * 6.2), 110px); }
  .banner { margin-top: clamp(16px, 3vh, 40px); }
  .lead { margin-bottom: clamp(14px, 2.4vh, 28px); }
  .stat p { font-size: clamp(12px, calc(var(--u) * 1), 17px); }
  .app { padding: 12px 16px; }
  .book { padding: clamp(24px, 3vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* the app QR slide is shown to a group across a room: give the codes more width */
.s-apps .inner { max-width: 1760px; }
.s-apps .app-grid { gap: clamp(12px, 1.4vw, 28px); }
