/* ===========================================
   FITNESSFINDER - HOW IT WORKS CSS
   =========================================== */

/* -- HERO -- */
.hiw-hero {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  padding: 72px 6% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hiw-hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
}
.hiw-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #00768e;
  background: rgba(0,194,238,0.1);
  border: 1px solid rgba(0,194,238,0.3);
  padding: 5px 16px; border-radius: 50px;
  margin-bottom: 20px;
}
.hiw-hero h1 {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls); text-transform: uppercase;
  font-size: 2.8rem; color: var(--ff-ink);
  margin-bottom: 16px; line-height: 1.15;
}
.hiw-hero > p {
  font-size: 1rem; color: var(--ff-muted-2);
  max-width: 520px; margin: 0 auto 36px;
  line-height: 1.75;
}

/* Hero anchor pills */
.hiw-hero-pills {
  display: flex; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.hiw-hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 50px;
  border: 1.5px solid #dddddd; background: none;
  font-family: var(--ff-font-body);
  font-size: 0.84rem; font-weight: 700;
  color: var(--ff-muted); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hiw-hero-pill:hover {
  border-color: #00768e; color: #00768e;
  background: rgba(0,194,238,0.07);
}
.hiw-hero-pill i { font-size: 0.8rem; }

/* -- SHARED SECTION -- */
.hiw-section {
  padding: 90px 6%;
  background: var(--ff-surface-3);
  scroll-margin-top: 150px;
}
.hiw-section-dark {
  background: var(--ff-ink);
}

.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* -- TWO-COLUMN VIDEO BLOCK -- */
.hiw-video-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hiw-video-block-reverse {
  direction: rtl;
}
.hiw-video-block-reverse > * {
  direction: ltr;
}

/* -- EYEBROW -- */
.hiw-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ff-brand);
  background: var(--ff-brand-tint);
  border: 1px solid var(--ff-brand-soft);
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 16px;
}
.hiw-eyebrow-light {
  background: rgba(0,194,238,0.12);
  border-color: rgba(0,194,238,0.3);
  color: var(--ff-brand);
}

/* -- LABEL PANEL -- */
.hiw-label { display: flex; flex-direction: column; align-items: flex-start; }

.hiw-label h2 {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 2rem; color: var(--ff-ink);
  margin-bottom: 16px; line-height: 1.2;
}
.hiw-label-light { color: #fff !important; }
.hiw-label-light-sub { color: var(--ff-muted-3) !important; }

.hiw-label > p {
  font-size: 0.95rem; color: var(--ff-muted-2);
  line-height: 1.8; margin-bottom: 32px;
  max-width: 420px;
}

/* -- STEPS -- */
.hiw-steps {
  display: flex; flex-direction: column;
  gap: 20px; margin-bottom: 36px; width: 100%;
}
.hiw-step {
  display: flex; align-items: flex-start; gap: 16px;
}
.hiw-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ff-brand); color: #fff;
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls); font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,194,238,0.35);
}
.hiw-step-num-light {
  background: transparent;
  border: 2px solid var(--ff-brand);
  color: var(--ff-brand);
  box-shadow: none;
}
.hiw-step-title      { font-weight: 700; font-size: 0.92rem; color: var(--ff-ink); margin-bottom: 3px; }
.hiw-step-desc       { font-size: 0.84rem; color: #777; line-height: 1.55; }
.hiw-step-title-light { color: #fff !important; }
.hiw-step-desc-light  { color: var(--ff-muted-2) !important; }

/* -- LABEL CTA BUTTONS -- */
.hiw-label-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hiw-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  background: var(--ff-brand); color: #fff;
  font-family: var(--ff-font-body);
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,194,238,0.3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.hiw-btn-primary:hover {
  background: #00aed4;
  box-shadow: 0 6px 22px rgba(0,194,238,0.45);
  transform: translateY(-1px);
}
.hiw-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  border: 1.5px solid #d0d0d0; color: var(--ff-muted-2);
  font-family: var(--ff-font-body);
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.hiw-btn-ghost:hover { border-color: #999; color: var(--ff-ink); }
.hiw-btn-ghost-light {
  border-color: #383838; color: var(--ff-muted-3);
}
.hiw-btn-ghost-light:hover { border-color: var(--ff-muted-2); color: #fff; }

/* -- VIDEO EMBED -- */
.hiw-video-wrap {
  position: relative;
  width: 100%;
}
.hiw-video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: none;
  background: #0a0a0a;
}

/* Video label badge */
.hiw-video-badge {
  position: absolute;
  bottom: -14px; left: 24px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ff-brand); color: #fff;
  font-family: var(--ff-font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,194,238,0.4);
}
.hiw-video-badge-green  { background: var(--ff-success); box-shadow: 0 4px 16px rgba(39,174,96,0.4); }
.hiw-video-badge-purple { background: var(--ff-accent-purple); box-shadow: 0 4px 16px rgba(139,92,246,0.4); }

/* -- FAQ LINK CARDS -- */
.hiw-faq-links {
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 36px; width: 100%;
}
.hiw-faq-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.hiw-faq-link:hover {
  border-color: var(--ff-brand);
  box-shadow: 0 4px 16px rgba(0,194,238,0.1);
  transform: translateX(3px);
}
.hiw-faq-link-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ff-brand-tint); color: var(--ff-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.hiw-faq-link-icon-green  { background: #e8faf0; color: var(--ff-success); }
.hiw-faq-link-icon-purple { background: #f5f0ff; color: var(--ff-accent-purple); }
.hiw-faq-link-title { font-weight: 700; font-size: 0.88rem; color: var(--ff-ink); margin-bottom: 2px; }
.hiw-faq-link-sub   { font-size: 0.76rem; color: var(--ff-muted-4); }
.hiw-faq-link-arrow { margin-left: auto; color: #ccc; font-size: 0.8rem; flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.hiw-faq-link:hover .hiw-faq-link-arrow { color: var(--ff-brand); transform: translateX(2px); }

/* -- CTA STRIP -- */
.hiw-cta {
  background: linear-gradient(135deg, var(--ff-ink) 0%, #2a2a2a 100%);
  padding: 90px 6%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hiw-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,194,238,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hiw-cta-inner  { position: relative; max-width: 540px; margin: 0 auto; }
.hiw-cta h2 {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 2rem; color: #fff;
  margin-bottom: 14px; line-height: 1.2;
}
.hiw-cta p {
  font-size: 0.95rem; color: var(--ff-muted-3);
  margin-bottom: 36px; line-height: 1.75;
}
.hiw-cta-btns {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}
.hiw-cta-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  background: var(--ff-brand); color: #fff;
  font-family: var(--ff-font-body);
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,194,238,0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.hiw-cta-btn-primary:hover {
  background: #00aed4;
  box-shadow: 0 6px 24px rgba(0,194,238,0.5);
  transform: translateY(-1px);
}
.hiw-cta-btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 32px; border-radius: 50px;
  border: 1.5px solid #383838; color: var(--ff-muted-3);
  font-family: var(--ff-font-body);
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.hiw-cta-btn-ghost:hover { border-color: var(--ff-muted-2); color: #fff; }

/* -- RESPONSIVE -- */
@media (max-width: 960px) {
  .hiw-video-block,
  .hiw-video-block-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }
  .hiw-video-block-reverse > * { direction: ltr; }
  .hiw-hero h1    { font-size: 2rem; }
  .hiw-section    { padding: 64px 6%; }
  .hiw-label h2   { font-size: 1.6rem; }
  .hiw-label > p  { max-width: 100%; }
}
@media (max-width: 600px) {
  .hiw-hero h1    { font-size: 1.6rem; }
  .hiw-hero       { padding: 52px 6% 44px; }
  .hiw-cta h2     { font-size: 1.5rem; }
  .hiw-cta        { padding: 60px 6%; }
  .hiw-video-badge { font-size: 0.65rem; padding: 6px 12px; }
}
/* =============================================================================
   TABBED PANELS
   Only one section is on screen at a time now, so the generous 90px band that
   separated three stacked sections is no longer doing any work — it just pushed
   the content below the fold.
   ========================================================================== */
.hiw-tabs {
  background: var(--ff-surface-3);
  padding: 30px 0 0;
}

.hiw-tabs .hiw-section {
  padding: 40px 6% 72px;
  scroll-margin-top: 0;
}

/* The middle panel used to sit on a dark band; as a tab it takes the same
   surface as its siblings so switching doesn't flash between themes. */
.hiw-tabs .hiw-section-dark { background: var(--ff-surface-3); }

@media (max-width: 768px) {
  .hiw-tabs { padding-top: 22px; }
  .hiw-tabs .hiw-section { padding: 28px 6% 52px; }
}
