/* =============================================================================
   fxFundedSim — pricing + auth overlay styles
   Companion to billing.js. Self-contained, framework-free, loaded alongside the
   compiled Manus SPA bundle. Every selector is namespaced `fxb-` so nothing here
   can leak into (or be clobbered by) the SPA's own styles.

   Design tokens = D112 brand (see fxfundedsim/BRAND-TOKENS.md):
     black  #0A0908   cream #E8E0D3 / cream-light #FCF5E8
     coral  #FF4D4F (primary) / #FF8A8C (light)   cyan #0099FF
     type   Unbounded (display) · Jura (body)  — both already loaded by index.html
   ============================================================================= */

:root {
  --fxb-black: #0a0908;
  --fxb-panel: rgba(255, 255, 255, 0.035);
  --fxb-panel-2: rgba(255, 255, 255, 0.06);
  --fxb-cream: #e8e0d3;
  --fxb-cream-light: #fcf5e8;
  --fxb-coral: #ff4d4f;
  --fxb-coral-light: #ff8a8c;
  --fxb-cyan: #0099ff;
  --fxb-mute: rgba(232, 224, 211, 0.55);
  --fxb-hair: rgba(232, 224, 211, 0.12);
}

/* ---- Injected nav links (Sign In / Pricing) ------------------------------ */
/* billing.js clones the live nav link's own class for a pixel match; this is a
   graceful fallback so the link is always legible even if cloning finds nothing. */
.fxb-navlink {
  font-family: 'Jura', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--fxb-cream-light);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.fxb-navlink:hover { color: var(--fxb-coral-light); }
/* "Sign In" reads as a quiet ghost button so it sits politely beside the loud CTA. */
.fxb-navlink--signin {
  padding: 0.5rem 1rem;
  border: 1px solid var(--fxb-hair);
  border-radius: 0.5rem;
}
.fxb-navlink--signin:hover {
  border-color: var(--fxb-coral);
  color: var(--fxb-coral-light);
}

/* ---- Pricing section ----------------------------------------------------- */
.fxb-pricing {
  width: 100%;
  box-sizing: border-box;
  padding: 4.5rem 1.25rem 5rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 77, 79, 0.08) 0%, transparent 60%),
    var(--fxb-black);
  border-top: 1px solid var(--fxb-hair);
  color: var(--fxb-cream);
}
.fxb-pricing *,
.fxb-pricing *::before,
.fxb-pricing *::after { box-sizing: border-box; }

.fxb-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

/* ---- Heading ------------------------------------------------------------- */
.fxb-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.fxb-eyebrow {
  font-family: 'Jura', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fxb-coral-light);
  margin: 0;
}
.fxb-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
  color: var(--fxb-cream-light);
  margin: 0;
}
.fxb-sub {
  font-family: 'Jura', sans-serif;
  font-size: 1rem;
  max-width: 40ch;
  color: var(--fxb-mute);
  margin: 0;
}

/* ---- Monthly / annual toggle --------------------------------------------- */
.fxb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border: 1px solid var(--fxb-hair);
  border-radius: 999px;
  background: var(--fxb-panel);
}
.fxb-toggle-btn {
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fxb-mute);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.fxb-toggle-btn:hover { color: var(--fxb-cream-light); }
.fxb-toggle-btn[aria-pressed='true'] {
  color: var(--fxb-black);
  background: var(--fxb-coral);
}

/* ---- Cards grid ---------------------------------------------------------- */
.fxb-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .fxb-grid { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
}

.fxb-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--fxb-hair);
  border-radius: 16px;
  background: var(--fxb-panel);
  position: relative;
}
/* Pro = the recommended plan; lift it with a coral edge + glow. */
.fxb-card--featured {
  border-color: rgba(255, 77, 79, 0.55);
  background: var(--fxb-panel-2);
  box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.25), 0 18px 50px -20px rgba(255, 77, 79, 0.45);
}
.fxb-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  font-family: 'Jura', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fxb-black);
  background: var(--fxb-coral);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.fxb-plan {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--fxb-cream-light);
  margin: 0;
}
.fxb-priceline { display: flex; align-items: flex-end; gap: 0.35rem; min-height: 2.6rem; }
.fxb-price {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--fxb-cream-light);
}
.fxb-per {
  font-family: 'Jura', sans-serif;
  font-size: 0.8rem;
  color: var(--fxb-mute);
  padding-bottom: 0.18rem;
}
.fxb-blurb {
  font-family: 'Jura', sans-serif;
  font-size: 0.92rem;
  color: var(--fxb-mute);
  margin: 0;
  min-height: 2.4em;
}

.fxb-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.fxb-feat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Jura', sans-serif;
  font-size: 0.92rem;
  color: var(--fxb-cream);
}
.fxb-feat::before {
  content: '✓';
  color: var(--fxb-coral);
  font-weight: 700;
}

/* CTA. billing.js ALSO adds the site's own `btn-futuristic-filled rounded-sm`
   classes so the button matches the SPA exactly; these rules only guarantee a
   sensible look if those classes ever change/disappear. */
.fxb-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Jura', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border-radius: 0.5rem;
  border: 1px solid var(--fxb-coral);
  color: var(--fxb-black);
  background: var(--fxb-coral);
  transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.fxb-cta:hover { filter: brightness(1.08); }
/* Secondary (Free) CTA = outline. */
.fxb-cta--ghost {
  background: transparent;
  color: var(--fxb-cream-light);
  border-color: var(--fxb-hair);
}
.fxb-cta--ghost:hover {
  border-color: var(--fxb-coral);
  color: var(--fxb-coral-light);
  filter: none;
}

/* ---- Fine print + legal -------------------------------------------------- */
.fxb-fine {
  font-family: 'Jura', sans-serif;
  font-size: 0.8rem;
  color: var(--fxb-mute);
  text-align: center;
  max-width: 56ch;
  margin: 0;
}
.fxb-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: center;
  font-family: 'Jura', sans-serif;
  font-size: 0.78rem;
}
.fxb-legal a {
  color: var(--fxb-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.fxb-legal a:hover { color: var(--fxb-cream-light); border-bottom-color: var(--fxb-coral); }
