/* fit-cards.css — styles for the Manon Fit collection cards + La Boîte tier
   cards, shared verbatim between /fit (fit.html) and the admin console's
   live preview (admin.html #fit). One stylesheet, two consumers, zero drift —
   the matching markup comes from /assets/fit-cards.js.

   These rules were lifted unchanged from fit.html's page <style>; both cards
   sit on a dark canvas on every consumer (the fit page's espresso ground, the
   preview's espresso pane), so the --mn-ondark / --mn-gold-bright tokens are
   correct in both places and in both site themes. */

/* ── shared ring drawing ───────────────────────────────────── */
.fit-ring-track { fill: none; stroke: rgba(243, 233, 218, 0.13); stroke-width: 5; }
.fit-ring-val { fill: none; stroke-width: 5; stroke-linecap: round; }

/* ── the collection grid ───────────────────────────────────── */
.fit-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.fit-card {
  display: flex; flex-direction: column;
  background: var(--mn-dark);
  border: 1px solid rgba(243, 233, 218, 0.10);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px);
  transition: transform 0.35s var(--mn-ease), border-color 0.35s var(--mn-ease);
}
.fit-card:hover { transform: translateY(-4px); border-color: rgba(216, 179, 102, 0.38); }
.fit-card-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; line-height: 1.12;
  color: var(--mn-ondark);
}
.fit-card-name { margin-bottom: var(--sp-5); }
.fit-card-desc {
  margin: -16px 0 var(--sp-5);
  font-size: 13.5px; line-height: 1.55;
  color: var(--mn-ondark-dim);
}

/* the macro display — the signature of the page.
   margin-top:auto anchors it to the card foot; the name/desc
   margins above guarantee a minimum gap in the tallest card. */
.fit-macros {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(243, 233, 218, 0.10);
}
.fit-cal { display: flex; align-items: baseline; gap: 10px; }
/* the mark gets a tile of its own — a bare stroke floating beside 46px
   Cormorant reads as a stray smudge, not a feature (same device as the
   flagship's .pm-notice-badge) */
.fit-cal-mark {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; align-self: center;
  width: 34px; height: 34px;
  border-radius: var(--r-btn-sm);
  background: var(--glass-fill-2-band);
  border: 1px solid var(--glass-edge-band);
}
.fit-cal-mark iconsax-icon { --icon-size: 18px; }
.fit-cal-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 46px); font-weight: 600; line-height: 1;
  color: var(--mn-gold-bright);
  font-variant-numeric: lining-nums tabular-nums;
}
.fit-cal-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mn-ondark-dim);
}
.fit-rings {
  display: flex; justify-content: space-between;
  gap: clamp(8px, 4%, 18px);
  margin-top: var(--sp-4);
}
.fit-ring { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.fit-ring-face { position: relative; width: 68px; height: 68px; }
.fit-ring-face svg { width: 100%; height: 100%; display: block; }
.fit-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: var(--mn-ondark);
  font-variant-numeric: tabular-nums;
}
.fit-ring-label {
  margin-top: 7px;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--mn-ondark-dim);
}
.fit-card-note {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--mn-ondark-dim);
}
.fit-card-nomacro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px; line-height: 1.5;
  color: var(--mn-ondark-dim);
}
.fit-card-btn { margin-top: var(--sp-4); width: 100%; }

/* ── la boîte (tiers) ──────────────────────────────────────── */
.fit-tiers {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.fit-tier {
  display: flex; flex-direction: column;
  background: var(--mn-dark);
  border: 1px solid rgba(216, 179, 102, 0.32);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
}
.fit-tier-name {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; line-height: 1.1;
  color: var(--mn-ondark);
}
.fit-tier-cycle {
  margin-top: 7px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mn-gold-bright);
}
.fit-tier-price { margin-top: var(--sp-4); margin-bottom: var(--sp-4); display: flex; align-items: baseline; gap: 6px; }
.fit-tier-amount {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 44px); font-weight: 600; line-height: 1;
  color: var(--mn-ondark);
  font-variant-numeric: lining-nums;
}
.fit-tier-per { font-size: 14px; color: var(--mn-ondark-dim); }
.fit-tier-tba {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px; line-height: 1.3;
  color: var(--mn-ondark-dim);
}
.fit-tier-desc {
  margin-top: -6px;               /* against the price's floor: keeps the 10px gap */
  margin-bottom: var(--sp-4);
  font-size: 14px; line-height: 1.6;
  color: var(--mn-ondark-dim);
}
/* the card foot (hairline + pickup line + CTA) is anchored to the bottom so
   three boxes with different copy lengths still present ONE CTA row — the
   same device .fit-macros uses in .fit-card. The margin-bottom pair above is
   the floor the auto margin collapses to in the tallest card, so the gap is
   unchanged (16px + the foot's own 16px padding) when nothing is spare. */
.fit-tier-pickup {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(243, 233, 218, 0.10);
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--mn-ondark-dim);
}
.fit-tier .mn-btn { margin-top: var(--sp-5); width: 100%; }
.fit-tier .pm-help { margin-top: 10px; text-align: center; }

/* ── honest-launch pieces the cards themselves carry ───────── */
.fit-cal-num-group { display: inline-flex; align-items: baseline; }
.fit-cal-approx {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1;
  color: var(--mn-gold-bright);
  margin-right: 4px;
}
.fit-tier-gloss {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400; letter-spacing: 0.01em;
  color: var(--mn-ondark-dim);
}

/* ── icon sizing (glass.css §4.4 scale) for the card glyphs ── */
.fit-cal-label iconsax-icon,
.fit-card-nomacro iconsax-icon,
.fit-tier-pickup iconsax-icon { --icon-size: 14px; margin-right: 7px; }
.fit-tier-name iconsax-icon    { --icon-size: 18px; margin-right: 9px; }

/* ── motion safety ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fit-card:hover { transform: none; }
}
