/* =========================================================
   fm144.css — scoped styles for /fm-144 ONLY
   All rules are prefixed .fm-* or #fm-* to avoid leaking
   into shared design system. Uses var(--*) tokens from
   site.css (--gold, --bg, --surface, --text, --muted, etc.)
   ========================================================= */

/* ---------------------------------------------------------
   PAGE LAYOUT — center the FM page as a focused ~1040px reading
   column. It was left-hugging the shared 1560px .container, leaving
   a large empty right gutter. The <main> wrapper holds every section
   + seam; nav/footer sit outside it, so they stay full-width.
   --------------------------------------------------------- */
/* FM content uses the SHARED .container, and every block FILLS it edge-to-edge
   so the content spans the exact same width as the footer and header (no empty
   left/right gutters). */
main .section-header,
main .section-intro,
#fm-hero .fm-hero-body,
#fm-hero .fm-lede,
.fm-flow,
#fm-council .fm-council-body2,
.fm-legal-body,
.fm-disclaimer { max-width: none; }
.fm-rights {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 56px;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
/* Tighten the tagline→lede gap so the hero reads as one cohesive block
   (the shared .section-header margin is sized for sections with a card grid
   below, which is too large for a prose hero). */
#fm-hero .section-header { margin-bottom: clamp(16px, 2.2vh, 26px); }
#fm-hero .fm-lede {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.72;
  color: var(--muted);
  font-weight: 300;
  max-width: 680px;
  margin-bottom: clamp(28px, 4vh, 40px);
}

#fm-hero .fm-counter-row {
  margin-bottom: clamp(24px, 3.5vh, 36px);
}

.fm-chip--lg {
  font-size: 14px;
  padding: 8px 18px;
  gap: 8px;
}

#fm-hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;            /* equal-height buttons (both btn--lg) */
  justify-content: flex-start;     /* left-align CTAs with the rest of the hero copy */
  margin-top: clamp(6px, 1.2vh, 12px);
}

/* ---------------------------------------------------------
   SEAT METER  (#fm-seats)
   Visual 144/2400 progress bar
   --------------------------------------------------------- */
.fm-seats-meter {
  max-width: 560px;
  margin-top: clamp(28px, 4vh, 44px);
}

.fm-seats-meter__track {
  height: 6px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.fm-seats-meter__fill {
  /* 144 / 2400 = 6% of total planned — visual representation only */
  width: 6%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #F4DD86);
  border-radius: 999px;
}

.fm-seats-meter__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fm-seats-meter__now {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.fm-seats-meter__total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------------------------------------------------------
   MEMBER RIGHTS LIST  (#fm-rights)
   2-col grid with gold check markers; 1-col under 760px
   --------------------------------------------------------- */
.fm-rights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  max-width: 760px;
}

.fm-rights li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}

.fm-rights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  /* gold check mark via SVG mask */
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 14%, 80% 0%, 43% 62%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

@media (max-width: 760px) {
  .fm-rights {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   COUNCIL FLOW  (#fm-council)
   Elegant inline pipeline for Proposal → … → Status
   --------------------------------------------------------- */
.fm-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(24px, 4vh, 40px) 0 clamp(20px, 3vh, 32px);
  max-width: 760px;
}

.fm-flow__step {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  padding: 14px 22px;
  line-height: 1.6;
  word-spacing: 0.1em;
  width: 100%;
}

/* render the "→" arrows in gold with slightly smaller weight */
.fm-flow__step::before {
  display: none; /* content provided inline via data-i18n text */
}

#fm-council .fm-council-body2 {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
  font-weight: 300;
  max-width: 680px;
}

/* ---------------------------------------------------------
   DISCLAIMER NOTE  (#fm-apply)
   Small, muted, bordered note immediately above final CTA
   --------------------------------------------------------- */
.fm-disclaimer {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vh, 52px);
  padding: 16px 22px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.04);
}

.fm-disclaimer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
  opacity: 0.85;
}

/* ---------------------------------------------------------
   FINAL CTA alignment
   --------------------------------------------------------- */
.fm-ctas--center {
  justify-content: center;
  display: flex;
}

/* ---------------------------------------------------------
   LEGAL SECTION  (#fm-legal)
   --------------------------------------------------------- */
.fm-legal-body .section-intro + .section-intro {
  margin-top: 16px;
}

/* ---------------------------------------------------------
   HERO BODY
   --------------------------------------------------------- */
#fm-hero .fm-hero-body {
  max-width: 760px;
}

/* ---------------------------------------------------------
   MOBILE SAFETY
   Prose ≤760px, container handles side padding, no
   fixed widths, no horizontal overflow.
   --------------------------------------------------------- */
@media (max-width: 760px) {
  #fm-hero .ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .fm-seats-meter {
    max-width: 100%;
  }

  .fm-flow__step {
    font-size: 11px;
    padding: 12px 14px;
    word-break: break-word;
  }

  .fm-disclaimer {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ===== WIDTH: every content block fills the container = the exact width of the
   footer and header (overrides the earlier readable-measure caps; placed LAST so
   it wins the cascade). No empty left/right gutters. ===== */
/* structural elements stay full-width */
main .section-header,
#fm-hero .fm-hero-body,
.fm-flow,
.fm-seats-meter,
.fm-disclaimer { max-width: none !important; }

/* running prose capped for readability (~80 chars), left-aligned */
#fm-hero .fm-lede,
main .section-intro,
#fm-council .fm-council-body2,
.fm-legal-body { max-width: 46rem !important; }

.fm-rights {
  max-width: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 14px 40px;
}

/* ===== COMPACT vertical rhythm — FM is a focused single-purpose page, so the
   shared section padding (clamp 72–140px) is too airy. Tighten section spacing,
   header margins, and the seam dividers so the rows sit closer together. ===== */
main .section { padding-block: clamp(30px, 4vh, 56px); }
main .section-header { margin-bottom: clamp(14px, 2.2vh, 26px); }
/* the FIRST section must clear the fixed header (nav-h ~74px) so the overline/
   title don't slide under the logo — the compact padding above governs the gaps
   BETWEEN sections, not the top offset. */
#fm-hero { padding-top: clamp(104px, 13vh, 150px); }

/* large CTA size used by the hero + final "Apply" buttons (the .btn--lg class
   was referenced in markup but never defined → buttons rendered default size). */
.btn--lg { padding: 18px 40px; font-size: clamp(15.5px, 1.5vw, 17px); }
