/* ============================================================
   FH5 Performance — fh5online.com (v2)
   - Palette: deep charcoal #101214 background, bright green
     #3ECF5A as the ONLY accent. No red anywhere on this site.
   - Type: system sans stack only. No webfonts, no external assets.
   - Contrast law: green text on charcoal ~8:1 (OK). Green buttons
     always carry dark text (~10:1). NEVER white text on green (~2:1).
   - Type is the design: giant uppercase display headlines; the
     second headline line is outline-only (transparent fill, light
     stroke) over the photo/video layer.
   ============================================================ */

:root {
  --bg: #101214;
  --bg-panel: #14161a;
  --ink: #f2f4f3;
  --muted: #9aa3ab;
  --green: #3ecf5a;
  --line: #26292e;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 30px;
}

.outline-title { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #0b0d0e; /* dark text on green — contrast law */
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 10px 20px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 18px; padding: 15px 30px; }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-block { display: block; text-align: center; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(16, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.wordmark-accent { color: var(--green); }
.topbar-nav { display: flex; align-items: center; gap: 18px; }
.topbar-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.topbar-link:hover { color: var(--green); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  cursor: pointer;
}
.lang-btn.is-active { background: var(--green); color: #0b0d0e; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* extra CSS grade on top of the baked-in grade: darken for legibility */
  filter: brightness(0.52) saturate(0.85) contrast(1.06);
  /* slow Ken Burns zoom (v3 — replaces the removed low-res hero video) */
  animation: kenburns 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.2%); }
}
.hero-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,18,20,0.35) 0%, rgba(16,18,20,0.15) 40%, rgba(16,18,20,0.88) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  align-items: end;
  gap: 12px;
}
.hero-cutout {
  margin: 0;
  text-align: center;
}
.hero-cutout img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
/* v3.4: the left hero figure (Lana) is a half-body cutout — a slightly
   taller cap gives her equal visual weight beside Dr. Kim's full-body
   figure (both bottom-aligned by the grid) */
.hero-cutout-left img { max-height: 565px; }
.hero-cutout figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-center { text-align: center; padding-bottom: 26px; }
.hero-headline {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.0;
  margin: 0 0 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
.hero-support {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 18px;
  color: #dfe5e2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.hero-offer { margin: 0 auto 8px; max-width: 540px; font-size: 17px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.hero-offer strong { color: var(--green); }
.hero-offer-primary { font-size: 19px; }
.hero-offer-secondary { color: #cfd6d2; margin-bottom: 26px; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-preview-link { margin: 18px 0 0; font-size: 15px; font-weight: 600; }
.hero-preview-link a { text-decoration: none; }
.hero-preview-link a:hover { text-decoration: underline; }

/* ---------- marquee (FH5 system steps) ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 15px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- how it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-step {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.how-num {
  margin: 0 0 14px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.8px var(--green);
}
.how-step-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.how-step-text { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- season 1 episode list ---------- */
.ep-list-wrap { max-width: 640px; margin-top: 34px; }
.ep-list-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}
.ep-list { list-style: none; margin: 0; padding: 0; }
.ep-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.ep-list li:first-child { border-top: 1px solid var(--line); }
.ep-num { color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; min-width: 36px; }
.ep-name { flex: 1; }
.ep-dur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14.5px; }

/* ---------- ebook showcase ---------- */
.ebook-lede { max-width: 68ch; color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.ebook-cover { margin: 0 0 16px; background: #0b0d0f; border-radius: var(--radius); }
.ebook-cover img {
  width: 100%;
  aspect-ratio: 1200 / 693;
  object-fit: contain;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ebook-pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.ebook-page { margin: 0; }
.ebook-page img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- fade-up reveal on scroll ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion: no decorative animation at all ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero-bg-img, .venue-card img { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- coaches carousel ---------- */
.coach-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.coach-panel {
  flex: 0 0 88%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 430px;
}
.coach-info {
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.coach-face {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
}
.coach-giant {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
}
.giant-outline { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 5px 12px;
}
.coach-bio { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 44ch; }
.coach-photo-wrap { position: relative; min-height: 300px; }
.coach-photo-lg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.coach-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.coach-arrow {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
}
.coach-arrow:hover { border-color: var(--green); color: var(--green); }
.coach-nav-hint { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- athletes ---------- */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.athlete-card {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.athlete-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  flex: 1;
}
.athlete-card-poster img { aspect-ratio: 1122 / 1402; min-height: 0; }
.athlete-card figcaption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- venue ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.venue-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}
.venue-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  /* slow Ken Burns zoom, alternating phase per card */
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
.venue-card:nth-child(2) img { animation-duration: 26s; animation-delay: -6s; }
.venue-card:nth-child(3) img { animation-duration: 24s; animation-delay: -12s; }
.venue-card:nth-child(4) img { animation-duration: 28s; animation-delay: -3s; }
.venue-card figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- video player ---------- */
.player {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.preview-name { font-size: 21px; font-weight: 700; margin: 0 0 20px; }
.preview-coach { color: var(--muted); font-weight: 600; }
.note { color: var(--muted); margin: 14px 0 0; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.membership-card { border: 2px solid var(--green); max-width: 640px; }
.membership-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 8px;
}
.membership-name { margin: 0; font-weight: 800; letter-spacing: 0.1em; font-size: 15px; }
.membership-price { margin: 0; font-size: 44px; font-weight: 800; }
.membership-price .per { font-size: 18px; color: var(--muted); font-weight: 600; }
.checklist { list-style: none; margin: 14px 0 26px; padding: 0; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 800;
}

.program-card { max-width: 640px; }
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.program-meta strong { color: var(--ink); font-size: 19px; }
.program-desc { margin: 0 0 20px; font-size: 17px; }
.program-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.program-price { margin: 0; }
.price-launch { font-size: 44px; font-weight: 800; }
.price-regular { color: var(--muted); font-size: 17px; }
.badge {
  margin: 0;
  background: var(--green);
  color: #0b0d0e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 13px;
}
.fineprint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
/* Cris Vargas credit: corner, small, low prominence — by design. */
.corner-credit {
  margin: 22px 0 0;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  margin-bottom: 12px;
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17.5px;
  padding: 14px 0;
}
.faq-item p { margin: 0 0 16px; color: var(--muted); }

/* ---------- final CTA / footer ---------- */
.final-cta { text-align: center; }
.final-sub { color: var(--muted); font-size: 18px; margin: -12px 0 26px; }
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 24px 40px;
  text-align: center;
}
.footer-line { margin: 4px 0; color: var(--muted); font-size: 14.5px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 170px 1fr 170px; }
  /* v3.3: smaller display type in the narrow center column, so
     "OWN SEASON 1." stays on one line instead of orphaning "1." */
  .hero-headline { font-size: clamp(34px, 5.4vw, 54px); }
  .athlete-grid, .venue-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 52px 18px; }
  .topbar { padding: 12px 16px; }
  .topbar-link { display: none; }
  /* Mobile hero: still bg stays; cutouts shrink to bottom flanks under the offer */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "center center" "left right";
    padding: 48px 18px 34px;
    align-items: start;
  }
  .hero-center { grid-area: center; padding-bottom: 6px; }
  .hero-cutout-left { grid-area: left; }
  .hero-cutout-right { grid-area: right; }
  .hero-cutout img { max-height: 240px; }
  .hero-cutout-left img { max-height: 240px; } /* v3.4: keep the mobile cap */
  .hero-cutout figcaption { font-size: 11px; }
  .coach-panel { flex-basis: 94%; grid-template-columns: 1fr; min-height: 0; }
  .coach-photo-wrap { order: -1; min-height: 260px; height: 260px; }
  .coach-info { padding: 26px 24px 30px; }
  .how-grid { grid-template-columns: 1fr; }
  .ebook-pages { grid-template-columns: 1fr; }
  .ep-list li { font-size: 15px; gap: 10px; }
  .athlete-grid, .venue-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 26px 22px; }
  .membership-price, .price-launch { font-size: 36px; }
}

/* ---------- v3.2: narrow-screen top bar (fits 360px) ---------- */
@media (max-width: 560px) {
  .topbar { padding: 10px 10px; gap: 6px; }
  .wordmark { font-size: 13.5px; letter-spacing: 0.02em; }
  .topbar-nav { gap: 6px; min-width: 0; }
  .lang-toggle { flex-shrink: 0; }
  .lang-btn { padding: 5px 7px; font-size: 11.5px; white-space: nowrap; }
  .topbar .btn-sm { padding: 6px 7px; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
}
