/* ===========================================================================
   Marrow Fit Check. Shared pattern (one CSS, reused three ways)

   The Fit Check is a short, smart, two-minute intake. One question per screen,
   mobile-first. It returns an accurate, personalized on-screen result before
   asking anyone to sign up. The result is the proof.

   Reuses brand tokens from /css/styles.css. Defines NO new color or font
   tokens. Three skins (gym, coach, member) all load this same file and only
   set a small set of per-surface data via JS config.

   Voice: no em / en / parenthetical dashes in any user-facing string.
   =========================================================================== */

body {
  background: var(--bone-cream);
  color: var(--bone-black);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.fc-skip {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--bone-black);
  color: var(--bone-white);
  padding: 8px 14px;
  text-decoration: none;
  z-index: 300;
  font-family: var(--sans);
  font-size: 14px;
}
.fc-skip:focus { top: 0; }

/* ---------------------------------------------------------------------------
   Light nav (matches /welcome/, /enterprise/consult/ light-nav pattern)
   --------------------------------------------------------------------------- */
.fc-nav {
  padding: 16px 0;
  background: var(--bone-cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.fc-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone-black);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}
.fc-brand svg { width: 28px; height: 28px; display: block; }
.fc-nav-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--marrow-red);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Stage shell. Holds the intro screen, the question screens, and the result.
   --------------------------------------------------------------------------- */
.fc-main {
  min-height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
}

.fc-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 22px 64px;
}
.fc-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* Progress rail */
.fc-progress {
  max-width: 640px;
  margin: 0 auto 8px;
  padding: 0 22px;
}
.fc-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.fc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--marrow-red);
  border-radius: 999px;
  transition: width 260ms ease;
}
.fc-progress-label {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------------------------------------------------------------------------
   Intro screen
   --------------------------------------------------------------------------- */
.fc-intro { text-align: center; padding-top: 36px; }
.fc-intro-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 22px;
}
.fc-intro-h {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.016em;
  margin: 0 0 20px;
}
.fc-intro-h .em {
  color: var(--marrow-red);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.fc-intro-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel);
  max-width: 52ch;
  margin: 0 auto 32px;
}
.fc-intro-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 34px;
}
.fc-intro-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}

/* ---------------------------------------------------------------------------
   Question screen
   --------------------------------------------------------------------------- */
.fc-q-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 16px;
}
.fc-q-h {
  font-family: var(--display);
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  color: var(--bone-black);
}
.fc-q-help {
  font-size: 15px;
  line-height: 1.6;
  color: var(--steel);
  margin: 0 0 28px;
  max-width: 52ch;
}

/* Choice list. Each option is a big tap target. */
.fc-options {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--bone-black);
  transition: border-color 120ms, background 120ms, transform 120ms;
}
.fc-option:hover,
.fc-option:focus-visible {
  border-color: var(--marrow-red);
  background: var(--bone-cream);
  outline: none;
}
.fc-option:focus-visible { outline: 2px solid var(--marrow-red); outline-offset: 2px; }
.fc-option[aria-pressed="true"] {
  border-color: var(--marrow-red);
  background: rgba(107, 15, 26, 0.05);
}
.fc-option-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--steel-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms, background 120ms;
}
.fc-option[aria-pressed="true"] .fc-option-mark {
  border-color: var(--marrow-red);
  background: var(--marrow-red);
}
.fc-option-mark svg { width: 12px; height: 12px; fill: var(--bone-cream); opacity: 0; }
.fc-option[aria-pressed="true"] .fc-option-mark svg { opacity: 1; }
.fc-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-option-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.fc-option-sub {
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.45;
}

/* Free-text + number inputs (used for the lightly-gated contact step) */
.fc-input,
.fc-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--bone-black);
  line-height: 1.5;
  transition: border-color 120ms, background 120ms;
}
.fc-input:focus,
.fc-textarea:focus {
  outline: none;
  border-color: var(--marrow-red);
}
.fc-input::placeholder,
.fc-textarea::placeholder { color: var(--steel-mid); }
.fc-textarea { min-height: 110px; resize: vertical; }
.fc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.fc-field-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone-black);
  font-weight: 600;
}
.fc-field-label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--steel);
  font-size: 12px;
}
.fc-field-help {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--steel);
  margin: 0;
}

.fc-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 18px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--steel);
}
.fc-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0;
  cursor: pointer; accent-color: var(--marrow-red);
  flex-shrink: 0;
}
.fc-consent a {
  color: var(--marrow-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot */
.fc-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inline error */
.fc-error {
  display: none;
  background: rgba(107, 15, 26, 0.06);
  border-left: 3px solid var(--marrow-red);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--bone-black);
  margin: 0 0 16px;
}
.fc-error.is-visible { display: block; }

/* ---------------------------------------------------------------------------
   Buttons / nav row
   --------------------------------------------------------------------------- */
.fc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  padding: 16px 30px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 120ms, color 120ms, border-color 120ms, transform 120ms, opacity 120ms;
}
.fc-btn-primary {
  background: var(--bone-black);
  color: var(--bone-white);
}
.fc-btn-primary:hover,
.fc-btn-primary:focus-visible { background: var(--marrow-red); }
.fc-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.fc-btn-ghost {
  background: transparent;
  color: var(--steel);
  border-color: var(--line);
}
.fc-btn-ghost:hover,
.fc-btn-ghost:focus-visible { border-color: var(--bone-black); color: var(--bone-black); }
.fc-btn-block { width: 100%; }

/* ---------------------------------------------------------------------------
   Result screen
   --------------------------------------------------------------------------- */
.fc-result-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 18px;
}
.fc-verdict {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  margin: 0 0 22px;
}
.fc-verdict-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--marrow-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fc-verdict-dot svg { width: 16px; height: 16px; fill: var(--bone-cream); }
.fc-verdict-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-black);
  font-weight: 600;
}
.fc-result-h {
  font-family: var(--display);
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.014em;
  margin: 0 0 14px;
  color: var(--bone-black);
}
.fc-result-h .em {
  color: var(--marrow-red);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.fc-result-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel);
  max-width: 54ch;
  margin: 0 0 30px;
}

/* Snapshot card grid (Run / Grow / Operate, or member screen blocks) */
.fc-snapshot {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}
.fc-snapshot-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .fc-snapshot-3 { grid-template-columns: 1fr; } }
.fc-snap-card {
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px;
}
.fc-snap-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 10px;
}
.fc-snap-h {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bone-black);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.fc-snap-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bone-black);
  margin: 0;
}
.fc-snap-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.fc-snap-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--steel);
}
.fc-snap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--marrow-red);
  border-radius: 1px;
}

/* Express result: the personalized logo lockup at the top of the result.
   Premium treatment. A crisp monogram medallion by default; a real logo only
   swaps in when it is genuinely high-resolution (handled in fit-check.js).
   We never upscale a tiny favicon into a stretched blur. */
.fc-x-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 24px;
}
.fc-x-logo-mark {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--bone-white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(10, 9, 8, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fc-x-logo-monogram {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--marrow-red);
  user-select: none;
}
.fc-x-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13px;
  background: var(--bone-white);
  image-rendering: auto;
}

/* Single emphasis block on the dark ground (the close) */
.fc-close {
  background: var(--bone-black);
  color: var(--bone-cream);
  border-radius: 18px;
  padding: 32px 30px;
  margin: 0 0 8px;
}
.fc-close-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marrow-red-glow);
  font-weight: 600;
  margin: 0 0 12px;
}
.fc-close-h {
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.008em;
  margin: 0 0 12px;
  color: var(--bone-cream);
}
.fc-close-h .em {
  color: var(--bone-cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.fc-close-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--steel-light);
  margin: 0 0 20px;
  max-width: 52ch;
}
/* Full-scope line at the booking moment: this is everything, not just PT. */
.fc-close-scope {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone-cream);
  margin: 0 0 26px;
  max-width: 54ch;
  padding: 14px 18px;
  border-left: 2px solid var(--marrow-red-glow);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}
.fc-close .fc-btn-primary {
  background: var(--marrow-red);
  color: var(--bone-cream);
}
.fc-close .fc-btn-primary:hover,
.fc-close .fc-btn-primary:focus-visible { background: var(--marrow-red-glow); }
.fc-close .fc-btn-ghost {
  color: var(--steel-light);
  border-color: var(--line-dark);
}
.fc-close .fc-btn-ghost:hover,
.fc-close .fc-btn-ghost:focus-visible { color: var(--bone-cream); border-color: var(--bone-cream); }
.fc-close-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Branded preview frame (coach + member) */
.fc-preview {
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 28px;
}
.fc-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bone-cream);
}
.fc-preview-dot {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--marrow-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-cream);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
}
.fc-preview-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--bone-black);
}
.fc-preview-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.fc-preview-body { padding: 22px 20px; }
.fc-preview-screen {
  display: grid;
  gap: 12px;
}
.fc-preview-row {
  background: var(--bone-cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.fc-preview-row-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 6px;
}
.fc-preview-row-h {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: var(--bone-black);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.fc-preview-row-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--steel);
  margin: 0;
}

/* Sending / spinner */
.fc-sending {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(251, 248, 242, 0.4);
  border-top-color: var(--bone-white);
  border-radius: 50%;
  animation: fc-spin 700ms linear infinite;
}
@keyframes fc-spin { to { transform: rotate(360deg); } }

/* No-JS fallback line */
.fc-noscript {
  max-width: 620px;
  margin: 24px auto;
  padding: 18px 20px;
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--steel);
  text-align: center;
}
.fc-noscript a { color: var(--marrow-red); }

/* Working state (server is scoring) */
.fc-working {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 260px;
  text-align: center;
}
.fc-working .fc-sending {
  width: 26px; height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--marrow-red);
}
.fc-working-text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

/* Deeper human follow-up, rendered AFTER the result snapshot */
.fc-followup {
  margin: 28px 0 8px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.fc-followup-h {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.008em;
  color: var(--bone-black);
  margin: 0 0 10px;
}
.fc-followup-h .em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--marrow-red);
}
.fc-followup-done {
  font-size: 15px;
  line-height: 1.6;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 14px 0 0;
}

/* Foot strip */
.fc-foot {
  padding: 24px 0;
  background: var(--bone-black);
  color: var(--bone-cream);
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.fc-foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.fc-foot a { color: var(--bone-cream); opacity: 0.7; text-decoration: none; }
.fc-foot a:hover, .fc-foot a:focus-visible { opacity: 1; }
.fc-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Screen transitions */
.fc-screen { display: none; }
.fc-screen.is-active { display: block; animation: fc-fade 220ms ease; }
@keyframes fc-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .fc-stage { padding: 28px 18px 56px; }
  .fc-actions { flex-direction: column-reverse; align-items: stretch; }
  .fc-btn { width: 100%; }
  .fc-close-actions { flex-direction: column; }
  .fc-close-actions .fc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fc-screen.is-active { animation: none; }
  .fc-sending { animation: none; border-top-color: rgba(251, 248, 242, 0.4); }
}
