/* ============================================================
   FREEDOM CALCULATOR SUITE — shared widget styles
   Brand tokens (accelerator.ekantikcapital.com). Mobile-first.
   ============================================================ */
.fcalc {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 32px;
  background: var(--deep-navy, #131F38);
  border: 1px solid rgba(200, 169, 81, 0.22);
  border-radius: 14px;
  color: var(--cream, #E9E7E2);
}
.fcalc__head { text-align: center; margin-bottom: 24px; }
.fcalc__kicker {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold, #C8A951);
}
.fcalc__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 8px 0 6px;
  color: var(--cream, #E9E7E2);
}
.fcalc__intro { color: rgba(233, 231, 226, 0.6); font-size: 0.95rem; }

.fcalc__panel {
  padding: 24px 0;
  border-top: 1px solid rgba(200, 169, 81, 0.30);
}
.fcalc__panel:first-of-type { border-top: 0; }
.fcalc__subtitle {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--gold, #C8A951); margin-bottom: 16px; text-align: center;
}

/* controls */
.fcalc__controls { display: grid; gap: 18px; margin-bottom: 24px; }
.fcalc__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(233, 231, 226, 0.85); margin-bottom: 6px;
}
.fcalc__val { font-family: var(--font-mono, monospace); color: var(--gold, #C8A951); font-size: 1rem; }
.fcalc__slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 999px; background: rgba(233, 231, 226, 0.18);
  outline: none; margin: 8px 0; padding: 19px 0; /* pad to a 44px touch target */
  background-clip: content-box;
}
.fcalc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--gold, #C8A951); cursor: pointer;
  border: 2px solid var(--midnight, #10182B); box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.fcalc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold, #C8A951);
  cursor: pointer; border: 2px solid var(--midnight, #10182B);
}
.fcalc__slider:focus-visible { outline: 2px solid var(--gold, #C8A951); outline-offset: 4px; }

/* big readout */
.fcalc__readout { text-align: center; margin: 8px 0 20px; }
.fcalc__bignum {
  font-family: var(--font-mono, monospace); font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 4.5rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--gold, #C8A951); font-feature-settings: "tnum" 1;
}
.fcalc__biglabel {
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(233, 231, 226, 0.6); margin-top: 8px;
}
.fcalc__years {
  margin-top: 14px; font-family: var(--font-mono, monospace); font-size: 1.05rem;
  color: var(--cream, #E9E7E2);
}
.fcalc__hook {
  text-align: center; max-width: 46ch; margin: 20px auto 0;
  font-size: 1.05rem; line-height: 1.6; color: rgba(233, 231, 226, 0.9);
}
.fcalc__hook strong { color: var(--gold, #C8A951); }

/* seesaw */
.fcalc__seesaw { max-width: 460px; margin: 8px auto 0; }
.fcalc__seesaw svg { width: 100%; height: auto; display: block; }

/* compare panel */
.fcalc__compare { display: grid; gap: 12px; margin: 8px 0 16px; }
.fcalc__compare-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 16px; background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(233,231,226,0.25); border-radius: 8px;
}
.fcalc__compare-row.is-steady { border-left-color: var(--gold, #C8A951); }
.fcalc__compare-row.is-volatile { border-left-color: #0D9488; }
.fcalc__compare-label { font-size: 0.9rem; color: rgba(233,231,226,0.8); }
.fcalc__mono { font-family: var(--font-mono, monospace); font-size: 1.15rem; color: var(--cream, #E9E7E2); font-feature-settings: "tnum" 1; }
.fcalc__gap { display: block; font-size: 0.8rem; color: #E0857B; margin-top: 2px; }
.fcalc__note { text-align: center; font-size: 0.9rem; color: rgba(233,231,226,0.6); font-style: italic; }

/* compliance + link */
.fcalc__disclaimer {
  margin-top: 24px; padding: 14px 16px; font-size: 0.875rem; line-height: 1.55;
  color: rgba(233, 231, 226, 0.6);
  border: 1px solid rgba(200,169,81,0.22); border-left: 3px solid var(--gold, #C8A951);
  border-radius: 8px; background: rgba(200,169,81,0.05);
}
.fcalc__link {
  display: inline-block; margin-top: 16px; color: var(--gold, #C8A951);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.fcalc__link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .fcalc { padding: 22px 18px; }
}

/* ---- page-level wrapper for standalone calculator sections ---- */
.fcalc-section { padding: clamp(48px, 8vw, 88px) 20px; background: var(--midnight, #10182B); }

/* ---- strategy chips (CALC-02) ---- */
.fchips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.fchip {
  flex: 1 1 auto; min-width: 120px; max-width: 180px;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(233,231,226,0.16);
  color: var(--cream, #E9E7E2); font-family: var(--font-body); text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.fchip:hover { border-color: rgba(200,169,81,0.5); }
.fchip.is-active { border-color: var(--gold, #C8A951); background: rgba(200,169,81,0.10); }
.fchip__rate { font-family: var(--font-mono, monospace); font-size: 1.15rem; color: var(--gold, #C8A951); font-weight: 500; }
.fchip__tag { display: block; font-size: 0.72rem; color: rgba(233,231,226,0.55); margin-top: 3px; letter-spacing: .02em; }

/* ---- capital bar race (CALC-02) ---- */
.fbars { display: grid; gap: 10px; margin: 18px 0 6px; }
.fbar-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.fbar-key { font-family: var(--font-mono, monospace); font-size: 0.9rem; color: rgba(233,231,226,0.8); text-align: right; }
.fbar-track { position: relative; height: 30px; background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden; }
.fbar-fill { height: 100%; background: linear-gradient(90deg, rgba(200,169,81,0.55), var(--gold, #C8A951)); border-radius: 6px; transition: width .35s ease; }
.fbar-row.is-active .fbar-fill { background: var(--gold, #C8A951); }
.fbar-amt { position: absolute; top: 0; left: 10px; height: 30px; display: flex; align-items: center; font-family: var(--font-mono, monospace); font-size: 0.85rem; color: var(--midnight, #10182B); font-weight: 600; }

/* ---- FCR gauge (CALC-02) ---- */
.fgauge { margin: 14px 0 4px; }
.fgauge-track { position: relative; height: 16px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: visible; }
.fgauge-fill { height: 100%; border-radius: 999px; transition: width .35s ease, background-color .35s ease; }
.fgauge-mark { position: absolute; top: -6px; width: 2px; height: 28px; background: rgba(233,231,226,0.5); }
.fgauge-mark span { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.7rem; color: rgba(233,231,226,0.6); }
.fgauge-status { margin-top: 42px; text-align: center; font-family: var(--font-mono, monospace); font-size: 1.1rem; }
.fgauge-hint { text-align: center; font-size: 0.85rem; color: rgba(233,231,226,0.55); margin-top: 6px; }

/* ---- fee-drag + live counter (CALC-03/04) ---- */
.ffee-note { font-size: 0.8rem; color: rgba(233,231,226,0.55); text-align: center; margin-top: 6px; }
.flive { font-family: var(--font-mono, monospace); color: var(--gold, #C8A951); }
.fcalc__toggle { display: inline-flex; gap: 6px; margin: 4px auto 16px; border: 1px solid rgba(233,231,226,0.16); border-radius: 999px; padding: 4px; }
.fcalc__toggle button { background: transparent; border: 0; color: rgba(233,231,226,0.7); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-size: 0.85rem; }
.fcalc__toggle button.is-active { background: var(--gold, #C8A951); color: var(--midnight, #10182B); font-weight: 600; }
.fnum-input { width: 100%; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(233,231,226,0.16); color: var(--cream, #E9E7E2); font-family: var(--font-mono, monospace); font-size: 1rem; }
.fnum-input:focus-visible { outline: 2px solid var(--gold, #C8A951); outline-offset: 2px; }
