/* Funded: potential-earnings calculator (informative only, no CTA) */
.fcalc-sec { padding: 40px 0 100px; }
.fcalc-lead { max-width: 640px; margin: 0 0 40px; font-size: 18px; line-height: 1.55; color: #BFC4CE; }

.fcalc {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  font-family: 'Manrope', system-ui, sans-serif;
}
@media (min-width: 900px) { .fcalc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; } }

.fcalc-in, .fcalc-out {
  min-width: 0; padding: 26px 24px; border-radius: 18px;
  background: #121820; border: 1px solid rgba(214,179,109,.18);
}
.fcalc-in { display: flex; flex-direction: column; gap: 28px; }
.fcalc-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.fcalc-label {
  display: block; padding: 0; margin: 0 0 12px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #D6B36D;
}
.fcalc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.fcalc-row .fcalc-label { margin: 0; }
.fcalc-help { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #BFC4CE; }
.fcalc-err { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #F3DCA2; }
.fcalc-err::before { content: "! "; font-weight: 800; color: #D6B36D; }

/* account size: radio buttons styled as tiles */
.fcalc-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .fcalc-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fcalc-sizes label { position: relative; display: block; cursor: pointer; }
.fcalc-sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fcalc-sizes span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 8px; border-radius: 12px;
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  transition: border-color .2s, background .2s, color .2s;
}
.fcalc-sizes label:hover span { border-color: rgba(214,179,109,.45); }
.fcalc-sizes input:checked + span { border-color: #D6B36D; background: rgba(214,179,109,.12); color: #F3DCA2; box-shadow: inset 0 0 0 1px rgba(214,179,109,.35); }
.fcalc-sizes input:focus-visible + span { outline: 2px solid #F3DCA2; outline-offset: 2px; }

/* number fields */
.fcalc-num {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 0 14px; height: 46px; border-radius: 12px;
  background: #080B12; border: 1px solid rgba(214,179,109,.35);
  font-family: var(--mono); font-size: 17px; color: #BFC4CE;
}
.fcalc-num:focus-within { border-color: #D6B36D; box-shadow: 0 0 0 3px rgba(214,179,109,.18); }
.fcalc-num input {
  width: 4.6ch; padding: 0; border: 0; outline: 0; background: transparent; text-align: right;
  font: inherit; color: #fff;
}
.fcalc-num.is-invalid { border-color: #F3DCA2; }

/* slider */
.fcalc-range {
  --p: 20%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
.fcalc-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, #A9823F, #D6B36D var(--p), rgba(255,255,255,.1) var(--p));
}
.fcalc-range::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); }
.fcalc-range::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #A9823F, #D6B36D); }
.fcalc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: #F3DCA2; border: 3px solid #D6B36D; box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.fcalc-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #F3DCA2; border: 3px solid #D6B36D; }
.fcalc-range:focus-visible { outline: 2px solid #F3DCA2; outline-offset: 4px; border-radius: 6px; }
.fcalc-scale { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: #6B7280; }

/* results */
.fcalc-out { display: flex; flex-direction: column; gap: 20px; border-color: rgba(214,179,109,.32); }
.fcalc-main { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid rgba(214,179,109,.18); }
.fcalc-main-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #BFC4CE; }
.fcalc-main-val {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  font-size: clamp(38px, 8vw, 56px); color: #D6B36D; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #F3DCA2, #D6B36D 60%, #A9823F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fcalc-na { display: none; font-size: 14px; color: #F3DCA2; }
.fcalc-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.fcalc-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.fcalc-list > div:last-child { border-bottom: 0; }
.fcalc-list dt { font-size: 15px; color: #BFC4CE; }
.fcalc-list dd { margin: 0; font-family: var(--mono); font-size: 15.5px; color: #fff; text-align: right; white-space: nowrap; }
.fcalc-explain { margin: 0; font-size: 15.5px; line-height: 1.6; color: #fff; }
.fcalc-note {
  margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(8,11,18,.6);
  font-size: 13.5px; line-height: 1.6; color: #BFC4CE;
}

/* invalid input: results greyed out, never NaN */
.fcalc-out[data-state="invalid"] .fcalc-main-val,
.fcalc-out[data-state="invalid"] .fcalc-list dd { opacity: .45; }
.fcalc-out[data-state="invalid"] .fcalc-explain { display: none; }
.fcalc-out[data-state="invalid"] .fcalc-na { display: block; }
.fcalc-main-val, .fcalc-list dd, .fcalc-explain { transition: opacity .2s; }

@media (max-width: 640px) {
  .fcalc-sec { padding: 20px 0 70px; }
  .fcalc-lead { font-size: 16px; margin-bottom: 28px; }
  .fcalc-in, .fcalc-out { padding: 22px 18px; }
  .fcalc-sizes span { font-size: 13px; }
  .fcalc-list dt { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fcalc-sizes span, .fcalc-main-val, .fcalc-list dd, .fcalc-explain { transition: none; }
}
