/* Shared by every PPPT demo: fonts, reset, reveals, pulse line, lightbox,
   demo switcher. Each variant layers its own style.css on top. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Anton"; font-display: swap; src: url(fonts/anton-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo Black"; font-display: swap; src: url(fonts/archivo-black-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-display: swap; src: url(fonts/fraunces-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(fonts/fraunces-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/fraunces-latin-400-italic.woff2) format("woff2"); }

:root {
  --pulse-red: #EA3426;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 72px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Scroll reveal: core.js adds .in when an element enters the viewport. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* Heartbeat line. Colour and weight come from the variant.
   It's revealed with a clip-path wipe, not a stroke-dash animation: with
   non-scaling strokes, browsers measure dashes in screen pixels, so a
   resize (or a paused animation) left gaps in the line. A clip doesn't
   care how big the line is. */
.pulse-line { display: block; width: 100%; height: 100%; overflow: visible; clip-path: inset(-50% 0 -50% 0); animation: pulse-draw 1.8s cubic-bezier(.6, 0, .3, 1) .2s backwards; }
.pulse-line path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse-line.loop { animation: pulse-sweep 3.2s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes pulse-draw { from { clip-path: inset(-50% 100% -50% 0); } }
@keyframes pulse-sweep {
  0% { clip-path: inset(-50% 100% -50% 0); }
  50% { clip-path: inset(-50% 0 -50% 0); }
  100% { clip-path: inset(-50% 0 -50% 100%); }
}

/* ---- in person | online -------------------------------------------------
   core.js sets html[data-location]; anything marked for the other location
   is hidden. */

html[data-location="online"] [data-loc="in-person"],
html[data-location="in-person"] [data-loc="online"] { display: none !important; }

.loc-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 44px; }
.loc-bar > span { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

/* ---- online coaching block ----------------------------------------------
   Shared markup from core.js. Designs restyle it through these variables. */

:root {
  --oc-bg: #fff;
  --oc-fg: #111;
  --oc-muted: #666;
  --oc-line: rgba(0, 0, 0, .12);
  --oc-accent: var(--pulse-red);
  --oc-font: inherit;
  --oc-case: none;
  --oc-radius: 0;
  --oc-border: 1px solid var(--oc-line);
  --oc-shadow: none;
  --oc-feature-bg: #111;
  --oc-feature-fg: #fff;
  --oc-feature-muted: rgba(255, 255, 255, .75);
  --oc-feature-line: rgba(255, 255, 255, .2);
  --oc-feature-check: var(--oc-accent);
}

.oc-head { max-width: 780px; margin-bottom: 44px; }
.oc-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--oc-accent); }
.oc-title { margin: 10px 0 18px; }
.oc-intro { color: var(--oc-muted); font-size: 17px; margin-top: 10px; }

.oc-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.oc-plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px;
  background: var(--oc-bg); color: var(--oc-fg); border: var(--oc-border); border-radius: var(--oc-radius); box-shadow: var(--oc-shadow); }
.oc-featured { background: var(--oc-feature-bg); color: var(--oc-feature-fg); --oc-muted: var(--oc-feature-muted); --oc-line: var(--oc-feature-line); }
.oc-badge { position: absolute; top: -13px; left: 32px; background: var(--oc-accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--oc-radius); }
.oc-plan h3, .oc-extras-head h3 { font-family: var(--oc-font); font-weight: 400; text-transform: var(--oc-case); font-size: 30px; line-height: 1.1; }
.oc-price { color: var(--oc-muted); font-size: 15px; margin: 14px 0 8px; }
.oc-price b { font-family: var(--oc-font); font-weight: 400; font-size: 56px; line-height: 1; color: var(--oc-fg); margin-right: 2px; }
.oc-featured .oc-price b { color: var(--oc-feature-fg); }
.oc-blurb { font-weight: 600; margin-bottom: 16px; }
.oc-plan ul { list-style: none; padding: 0; flex: 1; margin: 0 0 28px; }
.oc-plan li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--oc-line); font-size: 15px; }
.oc-plan li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 11px; height: 5px; border-left: 2px solid var(--oc-accent); border-bottom: 2px solid var(--oc-accent); transform: rotate(-45deg); }
.oc-featured li::before { border-color: var(--oc-feature-check); }
.oc-plan > a { justify-content: center; text-align: center; }
.oc-note { font-size: 13px; color: var(--oc-muted); margin: 20px 0 44px; max-width: 780px; }

.oc-extras { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1px; background: var(--oc-line); border: var(--oc-border); border-radius: var(--oc-radius); overflow: hidden; box-shadow: var(--oc-shadow); }
.oc-extras > div { background: var(--oc-bg); color: var(--oc-fg); padding: 26px 24px; }
.oc-extras-head h3 { font-size: 26px; }
.oc-extras-head p, .oc-item > p:not(.oc-price) { color: var(--oc-muted); font-size: 14px; margin-top: 6px; }
.oc-item h4 { font-size: 15px; font-weight: 800; }
.oc-item .oc-price { margin: 8px 0 4px; }
.oc-item .oc-price b { font-size: 38px; }
.oc-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--oc-accent); text-underline-offset: 3px; }

.oc-suits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: 13px; }
.oc-suits span { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--oc-muted); margin-right: 6px; }
.oc-suits i { font-style: normal; border: 1px solid var(--oc-line); border-radius: 999px; padding: 4px 11px; }

@media (max-width: 900px) {
  .oc-plans, .oc-extras { grid-template-columns: 1fr; }
  .oc-plan { padding: 32px 22px 26px; }
  .oc-price b { font-size: 48px; }
}

/* ---- opening special --------------------------------------------------
   The banner sits above the plans, .sp-plan inside each plan, and the card
   in the bottom-right corner. Designs restyle them through these variables. */

:root {
  --sp-bg: #111;
  --sp-fg: #fff;
  --sp-muted: rgba(255, 255, 255, .7);
  --sp-accent: var(--pulse-red);
  --sp-font: inherit;
  --sp-radius: 0;
  --sp-border: 0;
}

.sp-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  background: var(--sp-bg); color: var(--sp-fg); border: var(--sp-border); border-left: 6px solid var(--sp-accent); border-radius: var(--sp-radius);
  padding: 22px 28px; margin-bottom: 32px; }
.sp-banner > div { flex: 1 1 420px; }
.sp-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sp-accent); }
.sp-head { font-family: var(--sp-font); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; margin: 4px 0 6px; }
.sp-terms { font-size: 13px; line-height: 1.5; color: var(--sp-muted); max-width: 640px; }
.sp-banner .sp-terms { font-size: 14px; }
.sp-plan { font-size: 13px; font-weight: 700; color: var(--sp-accent); margin: 2px 0 4px; }

.sp-card { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: min(360px, calc(100vw - 32px));
  background: var(--sp-bg); color: var(--sp-fg); border: var(--sp-border); border-top: 5px solid var(--sp-accent); border-radius: var(--sp-radius);
  padding: 20px 22px 18px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55);
  transform: translateY(calc(100% + 32px)); visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.sp-card.in { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.sp-card.in.away { transform: translateY(calc(100% + 32px)); visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.sp-card .sp-head { font-size: 24px; padding-right: 20px; }
.sp-card .sp-kicker { margin-right: 30px; }
.sp-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: var(--sp-muted); font-size: 22px; line-height: 1; }
.sp-x:hover { color: var(--sp-fg); }
.sp-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.sp-more { font-size: 14px; font-weight: 600; color: var(--sp-fg); }
@media (max-width: 700px) {
  .sp-card { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 16px 18px 14px; }
  .sp-card .sp-head { font-size: 21px; }
  .sp-card .sp-terms { display: none; }
  .sp-card .sp-actions { margin-top: 10px; }
  .sp-banner { padding: 20px; }
}

/* Merch tiles: a photo (or the logo) and a row of size buttons, one per
   myPTHub product. Designs set the media box's shape; these keep the photo
   filling it and the buttons readable on any background. */
.prod-media { position: relative; overflow: hidden; }
.prod-full { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.prod-photo { position: absolute; inset: 0; width: 100% !important; height: 100%; object-fit: cover; opacity: 1 !important; transform: none !important; }
.sizes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.sizes-label { font-size: 11px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-right: 4px; }
.size { min-width: 40px; padding: 7px 8px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; color: inherit; border: 1px solid currentColor; transition: background .15s, color .15s, border-color .15s; }
.size:hover { background: var(--pulse-red); border-color: var(--pulse-red); color: #fff; }
.size-buy { padding: 8px 12px; }

/* Coach photo and career timeline (markup from core.js). */
.coach-photo { overflow: hidden; }
/* The portrait is a cut-out, so it sits on the design's own backdrop, anchored to the bottom. */
.coach-img { position: absolute; inset: 6% 0 0; width: 100% !important; height: 94%; object-fit: contain; object-position: 50% 100%; opacity: 1 !important; filter: none !important; }
.timeline { list-style: none; padding: 0; margin: 26px 0 0; border-left: 2px solid var(--tl-line, rgba(127, 127, 127, .3)); }
.timeline li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 0 0 16px 20px; font-size: 15px; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--tl-accent, var(--pulse-red)); }
.timeline b { color: var(--tl-accent, var(--pulse-red)); font-weight: 800; letter-spacing: .04em; }
.timeline span { color: var(--tl-text, inherit); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* myPTHub "buy online" links. Designs can restyle .buy. */
.buy { display: inline-block; font-size: 13px; font-weight: 600; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-line, .pulse-line.loop { animation: none; clip-path: none; }
  .sp-card, .sp-card.in, .sp-card.in.away { transition: none; }
}

/* ---- lightbox ---------------------------------------------------------- */

#pppt-lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; color: #fff;
}
#pppt-lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
#pppt-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
#pppt-lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 12px; }
#pppt-lightbox img { max-height: 82vh; width: auto; object-fit: contain; }
#pppt-lightbox figcaption { font: 600 14px var(--sans); letter-spacing: .04em; opacity: .8; }
#pppt-lightbox button { background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; padding: 12px; opacity: .7; }
#pppt-lightbox button:hover { opacity: 1; }
#pppt-lightbox .lb-close { position: fixed; top: 8px; right: 12px; }
#pppt-lightbox .lb-prev { grid-column: 1; }
#pppt-lightbox .lb-next { grid-column: 3; }

/* ---- demo switcher ----------------------------------------------------- */

#pppt-switcher {
  position: fixed; z-index: 100; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
  padding: 4px; border-radius: 999px;
  background: rgba(20, 20, 20, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12);
  font: 600 11px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
}
#pppt-switcher a { color: #ddd; text-decoration: none; padding: 7px 10px; border-radius: 999px; }
#pppt-switcher a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
#pppt-switcher a[aria-current] { background: var(--pulse-red); color: #fff; }
#pppt-switcher .sw-home { color: #999; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
#pppt-switcher button { background: none; border: 0; color: #999; font-size: 18px; padding: 2px 10px 4px; }
#pppt-switcher button:hover { color: #fff; }
@media (max-width: 560px) { #pppt-switcher .sw-home { display: none; } }
