/* Pulse Fit brand, sampled from pulsefittraining.com: near-black (Tailwind gray-950) with red-600 #DC2626
   (hover red-700 #B91C1C). #F05252 is the red for small text on black, where #DC2626 is too dark.
   Barlow Condensed echoes the squared, condensed wordmark; Inter for body copy. */
:root {
  --bg: #0B0B0D;
  --bg-2: #111114;
  --panel: #16161A;
  --red: #DC2626;
  --red-hover: #B91C1C;
  --red-text: #F05252;
  --fg: #FFFFFF;
  --soft: #D4D4D8;
  --muted: #A1A1AA;
  --ink: #111114;
  --ink-soft: #3F3F46;
  --paper: #F4F4F5;
  --line: rgba(255, 255, 255, .14);
  --field: rgba(255, 255, 255, .05);
  --picked: rgba(240, 82, 82, .14);
  --error: #FFB4B4;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --intro: 1.2s;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.quiz-open { overflow: hidden; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
main { flex: 1; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- intro: a heartbeat line draws across, then the curtain splits along it ---------- */
/* Timeline (1.2s): 0-.55s line draws + wordmark fades in, .6-1.2s halves slide apart while the line fades.
   page.js removes the layer on the last animationend; the failsafe hides it even if page.js never runs. */
.intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; pointer-events: auto;
  animation: intro-failsafe 0s linear 3s forwards; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg);
  animation: .6s cubic-bezier(.7, 0, .2, 1) .6s forwards; }
.intro-top { top: 0; animation-name: split-up; }
.intro-bottom { bottom: 0; animation-name: split-down; }
.intro-line { position: absolute; left: 0; top: 50%; width: 100%; height: 120px; transform: translateY(-50%); overflow: visible;
  animation: fade .3s ease-in .75s forwards; }
.intro-line path { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(220, 38, 38, .9));
  animation: draw .55s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro-mark { position: absolute; left: 50%; top: calc(50% - 74px); width: min(300px, 62vw); transform: translate(-50%, -100%); opacity: 0;
  animation: mark-in .35s ease-out .1s forwards, fade .25s ease-in .62s forwards; }
html:not(.js) .intro, html.no-intro .intro { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes split-up { to { transform: translateY(-101%); } }
@keyframes split-down { to { transform: translateY(101%); } }
@keyframes fade { to { opacity: 0; } }
@keyframes mark-in { from { opacity: 0; transform: translate(-50%, -88%); } to { opacity: 1; transform: translate(-50%, -100%); } }
@keyframes intro-failsafe { to { visibility: hidden; pointer-events: none; } }

/* hero content rises in as the curtain opens; static when there is no intro or no JS */
.js .reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--intro) * .55 + var(--d, 0) * 90ms); }
.js.no-intro .reveal { animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 8px; cursor: pointer;
  font: 700 15px/1.2 var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 14px 24px; transition: background .15s, transform .15s, box-shadow .15s; }
.btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus-visible, .q-option:focus-visible, .cal-day:focus-visible, .cal-time:focus-visible, .quiz-back:focus-visible,
.quiz-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.btn-go { background: var(--red); color: #fff; box-shadow: 0 12px 32px rgba(220, 38, 38, .35); }
.btn-go:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-go:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 20px 30px; font-size: 16px; }

.eyebrow { font: 700 13px/1.2 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); }

/* ---------- header ---------- */
.topbar { position: relative; z-index: 2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 150px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: -76px; padding: 132px 0 72px; min-height: min(100dvh, 940px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .34; filter: saturate(.9); }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(11, 11, 13, .25), rgba(11, 11, 13, .85) 75%),
              linear-gradient(to bottom, rgba(11, 11, 13, .7), transparent 30%, transparent 60%, var(--bg)); }
.hero-inner { position: relative; text-align: center; }
/* Two lines: "STOP STARTING OVER." then the red "GET <word>." where the word flips (page.js) and lands on "STARTED." */
.hero h1 { margin: 18px auto 0; text-transform: uppercase; letter-spacing: -.005em;
  font: 800 clamp(56px, min(9.6vw, 15vh), 128px)/.92 var(--display); }
.h1-line { display: block; text-wrap: balance; }
.hero h1 em { display: block; white-space: nowrap; font-style: italic; color: var(--red-text); perspective: 600px; }
.rot { display: inline-block; transform-origin: 50% 60%; backface-visibility: hidden; }
.hero-sub { margin: 24px auto 0; max-width: 640px; font-size: clamp(17px, 1.8vw, 19px); color: var(--soft); text-wrap: pretty; }
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-note { font-size: 14px; color: var(--muted); }
.proof { list-style: none; margin: 40px auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px;
  font-size: 14px; color: var(--soft); }
.proof li { display: flex; align-items: baseline; gap: 6px; }
.proof strong { font: 800 22px/1 var(--display); text-transform: uppercase; color: #fff; letter-spacing: .02em; }

/* ---------- shared section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head h2, .closer h2 { margin-top: 12px; font: 800 clamp(36px, 5vw, 60px)/.95 var(--display); text-transform: uppercase; text-wrap: balance; }
.section-sub { margin-top: 14px; color: var(--ink-soft); }

/* ---------- results ---------- */
.results { background: var(--paper); color: var(--ink); padding: 88px 0 80px; }
.results .eyebrow { color: var(--red); }
.results-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.result { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #18181B; box-shadow: 0 16px 36px rgba(0, 0, 0, .14); }
.result img { width: 100%; height: 100%; object-fit: contain; }
.disclaimer { margin-top: 22px; text-align: center; font-size: 13px; color: #71717A; }
.mid-cta { margin-top: 32px; display: flex; justify-content: center; }

/* ---------- closer ---------- */
.closer { background: var(--red); padding: 80px 0; }
.closer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closer .eyebrow { color: #fff; opacity: .85; }
.closer h2 { max-width: 15em; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps li { padding: 24px 22px; border-radius: 14px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .22); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--red); font: 800 22px/1 var(--display); }
.steps h3 { margin-top: 16px; font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.steps p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.closer .btn-go { margin-top: 36px; background: #fff; color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.closer .btn-go:hover { background: #F4F4F5; }

.footer { background: #060607; color: var(--muted); font-size: 13px; padding: 34px 0 40px; text-align: center; }
.footer-logo { width: 130px; margin: 0 auto 16px; opacity: .9; }
.footer p + p { margin-top: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- sticky phone CTA ---------- */
.sticky-cta { display: none; }

/* ---------- pop-up ---------- */
.quiz { border: 1px solid var(--line); padding: 0; width: min(640px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); border-radius: 18px;
  background: var(--panel); color: var(--fg); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; }
.quiz::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.quiz[open] { display: flex; animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.quiz-shell { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.quiz-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 0; }
.quiz-progress { flex: 1; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .3s ease; }
.quiz-back, .quiz-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--field); cursor: pointer; display: grid; place-items: center; }
.quiz-back[hidden] { display: none; }
.quiz-back svg, .quiz-close svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-body { overflow-y: auto; padding: 26px 32px 32px; overscroll-behavior: contain; }

.q-enter { animation: slide .26s ease-out; }
@keyframes slide { from { opacity: 0; transform: translateY(14px); } }
.q-count { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); margin-bottom: 12px; }
.q-title { font: 800 clamp(30px, 5vw, 40px)/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.q-help { margin-top: 10px; color: var(--muted); font-size: 16px; }
.q-options { margin-top: 24px; display: grid; gap: 10px; }
.q-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 10px; cursor: pointer;
  background: var(--field); border: 1px solid var(--line); font-weight: 500; font-size: 16px; transition: border-color .12s, background .12s; }
.q-option:hover { border-color: rgba(255, 255, 255, .45); }
.q-option[aria-checked="true"] { border-color: var(--red-text); background: var(--picked); }
.q-key { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); color: var(--muted); }
.q-option[aria-checked="true"] .q-key { background: var(--red); border-color: var(--red); color: #fff; }
.q-input { display: block; width: 100%; margin-top: 20px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: 500 22px/1.3 var(--font); color: var(--fg); border-radius: 0; }
.q-input::placeholder { color: rgba(255, 255, 255, .38); }
.q-input:focus { border-bottom-color: var(--red-text); outline: none; }
.q-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.q-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); }
.q-error { min-height: 1.4em; margin-top: 12px; color: var(--error); font-weight: 500; font-size: 15px; }
.q-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.q-hint { font-size: 13px; color: var(--muted); }

/* calendar (only when PF.booking is true) */
.cal-body { margin-top: 22px; }
.cal-loading { color: var(--muted); padding: 30px 0; text-align: center; }
.cal-zone { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cal-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cal-day { flex: none; scroll-snap-align: start; width: 72px; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--field); cursor: pointer; display: grid; gap: 2px; }
.cal-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cal-dom { font-weight: 600; }
.cal-day[aria-selected="true"] { border-color: #fff; background: #fff; }
.cal-day[aria-selected="true"] span { color: var(--ink); }
.cal-times { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cal-time { padding: 12px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--field); font-weight: 500; cursor: pointer; }
.cal-time:hover { border-color: rgba(255, 255, 255, .45); }
.cal-time[aria-checked="true"] { background: var(--picked); border-color: var(--red-text); }
.cal-confirm { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.cal-confirm[hidden] { display: none; }
.cal-summary { font-weight: 600; }
.cal-other { margin-top: 4px; background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* end screens */
.q-end { text-align: center; padding: 18px 0 6px; display: flex; flex-direction: column; align-items: center; }
.q-end .btn { margin-top: 22px; }
.q-end-icon { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 18px; background: var(--red)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 30px no-repeat; }

/* ---------- thank-you page (booking mode only) ---------- */
.ty-hero { position: relative; overflow: hidden; padding: 40px 0 64px; text-align: center; }
.ty-hero::before { content: ''; position: absolute; left: 50%; top: 40%; width: min(1000px, 160vw); aspect-ratio: 1.5; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(220, 38, 38, .22), rgba(220, 38, 38, .05) 55%, transparent); pointer-events: none; }
.ty-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.ty-check { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 22px; box-shadow: 0 12px 32px rgba(220, 38, 38, .35); background: var(--red)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 36px no-repeat;
  animation: pop .4s ease-out; }
.ty-hero h1 { margin-top: 14px; font: 800 clamp(48px, 9vw, 104px)/.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.ty-card { margin-top: 32px; width: min(460px, 100%); padding: 22px 24px; border-radius: 14px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); border-top: 4px solid var(--red); }
.ty-card[hidden] { display: none; }
.ty-card-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ty-when { margin-top: 6px; font: 800 clamp(26px, 4.4vw, 34px)/1.05 var(--display); text-transform: uppercase; }
.ty-when span { display: block; }
.ty-time { color: var(--red-text); }
.ty-what { margin-top: 10px; font-size: 15px; color: var(--soft); line-height: 1.5; }
.ty-lead { margin-top: 26px; max-width: 560px; color: var(--soft); text-wrap: pretty; }
.ty-expect { background: var(--paper); color: var(--ink); padding: 72px 0 80px; }
.ty-expect h2 { text-align: center; font: 800 clamp(38px, 5.4vw, 60px)/.95 var(--display); text-transform: uppercase; }
.ty-steps { list-style: none; margin: 40px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ty-steps li { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
.ty-num { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--red); color: #fff; font: 800 22px/1 var(--display); }
.ty-steps h3 { font: 800 24px/1.05 var(--display); text-transform: uppercase; }
.ty-steps p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- tablets ---------- */
@media (max-width: 980px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
}

/* ---------- phones: headline sized so the longest flip, "GET COMMUNITY.", fits on one line ---------- */
@media (max-width: 639px) {
  .hero h1 { font-size: clamp(36px, calc((100vw - 32px) / 6.3), 84px); }
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-inner { height: 64px; }
  .brand img { width: 118px; }
  .hero { margin-top: -64px; min-height: 0; align-items: flex-start; padding: 92px 0 56px; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 26px; }
  .proof { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; line-height: 1.3; }
  .proof li { flex-direction: column; align-items: center; gap: 4px; }
  .proof strong { font-size: 22px; }
  .btn-lg { width: 100%; padding: 18px 16px; font-size: 15px; letter-spacing: .04em; }
  .results { padding: 64px 0; }
  .steps { margin-top: 28px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .steps h3 { margin-top: 0; align-self: center; font-size: 23px; }
  .steps p { grid-column: 2; margin-top: 4px; }
  .results-grid { gap: 10px; margin-top: 32px; }
  .closer { padding: 64px 0 104px; }
  .footer { padding-bottom: 96px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 11, 13, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease; }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta .btn { width: 100%; padding: 16px; }
  .quiz { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .quiz-body { padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); }
  .q-hint { display: none; }
  .q-actions .btn { width: 100%; }
  .cal-confirm .btn { width: 100%; }
  .ty-hero { padding: 28px 0 48px; }
  .ty-expect { padding: 56px 0 60px; }
  .ty-steps li { flex-direction: row; align-items: flex-start; padding: 20px 18px; }
  .ty-num { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
