.ff-loan-invest {
  --ff-li-navy: var(--navy, #173a63);
  --ff-li-gold: var(--gold, #c5a15a);
  --ff-li-soft: var(--soft, #f3f6fa);
  --ff-li-ink: var(--ink, #17253a);
  --ff-li-muted: var(--muted, #5d6877);
  --ff-li-line: var(--line, #d8e0e9);
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 0 100px;
  color: var(--ff-li-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

.ff-loan-invest,
.ff-loan-invest * {
  box-sizing: border-box;
}

.ff-loan-invest [hidden] {
  display: none !important;
}

.ff-loan-invest__intro {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(197, 161, 90, 0.2), transparent 34%),
    var(--ff-li-navy);
  color: #fff;
}

.ff-loan-invest__intro::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.ff-loan-invest__eyebrow {
  margin: 0 0 10px;
  color: var(--ff-li-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ff-loan-invest h2,
.ff-loan-invest h3,
.ff-loan-invest h4 {
  margin-top: 0;
  color: inherit;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.ff-loan-invest__intro h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.ff-loan-invest__intro > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

.ff-loan-invest__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.ff-loan-invest__form,
.ff-loan-invest__method,
.ff-loan-invest__results {
  min-width: 0;
}

.ff-loan-invest__form {
  display: grid;
  gap: 18px;
}

.ff-loan-invest__group {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 58, 99, 0.05);
}

.ff-loan-invest__group > legend {
  display: grid;
  width: 100%;
  padding: 0 0 18px;
}

.ff-loan-invest__group > legend > span {
  /* Brand gold is decorative; darker gold keeps this small text WCAG AA. */
  color: #765718;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ff-loan-invest__group > legend > strong {
  margin-top: 3px;
  color: var(--ff-li-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

.ff-loan-invest__group > legend > small {
  margin-top: 4px;
  color: var(--ff-li-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.ff-loan-invest__grid {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.ff-loan-invest__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ff-loan-invest__field {
  min-width: 0;
}

.ff-loan-invest__field + .ff-loan-invest__field,
.ff-loan-invest__group > .ff-loan-invest__field,
.ff-loan-invest__term,
.ff-loan-invest__choice {
  margin-top: 18px;
}

.ff-loan-invest__grid .ff-loan-invest__field + .ff-loan-invest__field {
  margin-top: 0;
}

.ff-loan-invest__field label,
.ff-loan-invest__term > legend,
.ff-loan-invest__choice > legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ff-li-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.ff-loan-invest__field > small,
.ff-loan-invest__term > small {
  display: block;
  margin-top: 6px;
  color: var(--ff-li-muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.ff-loan-invest input,
.ff-loan-invest select,
.ff-loan-invest button {
  font: inherit;
}

.ff-loan-invest input[type="number"],
.ff-loan-invest select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--ff-li-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ff-li-ink);
  font-size: 0.9rem;
}

.ff-loan-invest__input-wrap {
  position: relative;
  min-width: 0;
}

.ff-loan-invest__input-wrap input {
  padding-right: 62px;
}

.ff-loan-invest__input-wrap > span {
  position: absolute;
  top: 50%;
  right: 13px;
  max-width: 52px;
  overflow: hidden;
  transform: translateY(-50%);
  color: var(--ff-li-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.ff-loan-invest__term,
.ff-loan-invest__choice {
  min-width: 0;
  padding: 0;
  border: 0;
}

.ff-loan-invest__choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ff-loan-invest__choice-grid label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.ff-loan-invest__choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.ff-loan-invest__choice-grid label > span {
  display: grid;
  min-height: 94px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--ff-li-line);
  border-radius: 6px;
  background: var(--ff-li-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ff-loan-invest__choice-grid strong {
  color: var(--ff-li-navy);
  font-size: 0.82rem;
}

.ff-loan-invest__choice-grid small {
  margin-top: 5px;
  color: var(--ff-li-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.ff-loan-invest__choice-grid input:checked + span {
  border-color: var(--ff-li-gold);
  background: #fffaf0;
  box-shadow: 0 0 0 2px rgba(197, 161, 90, 0.15);
}

.ff-loan-invest input:focus-visible,
.ff-loan-invest select:focus-visible,
.ff-loan-invest button:focus-visible,
.ff-loan-invest summary:focus-visible,
.ff-loan-invest [tabindex="-1"]:focus-visible,
.ff-loan-invest__choice-grid input:focus-visible + span {
  outline: 3px solid #173a63;
  outline-offset: 2px;
}

.ff-loan-invest [aria-invalid="true"] {
  border-color: #b33f45 !important;
  box-shadow: 0 0 0 2px rgba(179, 63, 69, 0.12) !important;
}

.ff-loan-invest__errors {
  padding: 14px 16px;
  border: 1px solid #e3aeb1;
  border-radius: 6px;
  background: #fff3f3;
  color: #8d2930;
  font-size: 0.8rem;
  font-weight: 600;
}

.ff-loan-invest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ff-loan-invest__submit,
.ff-loan-invest__reset {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.ff-loan-invest__submit {
  flex: 1 1 260px;
  border: 1px solid var(--ff-li-navy);
  background: var(--ff-li-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 58, 99, 0.13);
}

.ff-loan-invest__reset {
  flex: 0 1 auto;
  border: 1px solid var(--ff-li-line);
  background: #fff;
  color: var(--ff-li-navy);
}

.ff-loan-invest__submit:hover,
.ff-loan-invest__reset:hover {
  transform: translateY(-1px);
}

.ff-loan-invest__disclaimer {
  margin: -4px 0 0;
  color: var(--ff-li-muted);
  font-size: 0.69rem;
  text-align: center;
}

.ff-loan-invest__method {
  position: sticky;
  top: 96px;
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: var(--ff-li-soft);
}

.ff-loan-invest__method details {
  padding: 0 20px;
}

.ff-loan-invest__method summary {
  padding: 18px 0;
  color: var(--ff-li-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.ff-loan-invest__method ul {
  margin: 0;
  padding: 0 0 20px 18px;
  color: var(--ff-li-muted);
  font-size: 0.72rem;
}

.ff-loan-invest__method li + li {
  margin-top: 10px;
}

.ff-loan-invest__results {
  margin-top: 32px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: var(--ff-li-soft);
}

.ff-loan-invest__results > h3 {
  margin-bottom: 14px;
  color: var(--ff-li-navy);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.ff-loan-invest__results > .ff-loan-invest__eyebrow {
  color: #765718;
}

.ff-loan-invest__conclusion {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--ff-li-gold);
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: var(--ff-li-navy);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  font-weight: 700;
}

.ff-loan-invest__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ff-loan-invest__metrics > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ff-li-line);
  border-radius: 6px;
  background: #fff;
}

.ff-loan-invest__metrics dt,
.ff-loan-invest__scenario-metrics dt {
  color: var(--ff-li-muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.ff-loan-invest__metrics dd {
  margin: 6px 0 0;
  color: var(--ff-li-navy);
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ff-loan-invest__metrics small {
  display: block;
  margin-top: 3px;
  color: var(--ff-li-muted);
  font-size: 0.62rem;
}

.ff-loan-invest__scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ff-loan-invest__scenario {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: #fff;
}

.ff-loan-invest__scenario.is-winner {
  border-color: var(--ff-li-gold);
  box-shadow: 0 8px 24px rgba(197, 161, 90, 0.13);
}

.ff-loan-invest__winner {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #fff5dc;
  color: #765718;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ff-loan-invest__scenario-kicker {
  margin: 0 0 5px;
  color: #765718;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ff-loan-invest__scenario h4 {
  margin-bottom: 8px;
  color: var(--ff-li-navy);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.ff-loan-invest__scenario-description {
  min-height: 3.9em;
  margin: 0;
  color: var(--ff-li-muted);
  font-size: 0.7rem;
}

.ff-loan-invest__scenario-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 0;
}

.ff-loan-invest__scenario-metrics > div {
  min-width: 0;
  padding: 11px;
  border-radius: 6px;
  background: var(--ff-li-soft);
}

.ff-loan-invest__scenario-metrics > .is-highlighted {
  grid-column: 1 / -1;
  background: var(--ff-li-navy);
}

.ff-loan-invest__scenario-metrics > .is-highlighted dt {
  color: rgba(255, 255, 255, 0.66);
}

.ff-loan-invest__scenario-metrics dd {
  margin: 4px 0 0;
  color: var(--ff-li-navy);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ff-loan-invest__scenario-metrics > .is-highlighted dd {
  color: #fff;
  font-size: 1.35rem;
}

/* SEO-visible page sections live outside the shortcode root but load only on
 * the calculator page because this module's stylesheet is conditional. */
.calculator-page .ff-pvi-editorial-section,
.calculator-page .ff-pvi-decision-section,
.calculator-page .ff-pvi-authorship-section {
  padding: 100px 0;
}

.calculator-page .ff-pvi-guide-heading {
  padding: 28px 0 18px;
  color: var(--navy, #173a63);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.calculator-page .ff-pvi-editorial-section {
  padding-top: 0;
  background: #fff;
}

.calculator-page .ff-pvi-faq-section {
  padding-top: 0;
}

.calculator-page .ff-pvi-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line, #d8e0e9);
  border-radius: 4px;
  background: var(--line, #d8e0e9);
}

.calculator-page .ff-pvi-editorial-card {
  min-width: 0;
  padding: 28px;
  background: #fff;
}

.calculator-page .ff-pvi-editorial-card h3 {
  color: var(--navy, #173a63);
  font-size: 1.35rem;
}

.calculator-page .ff-pvi-editorial-card p,
.calculator-page .ff-pvi-method-note,
.calculator-page .ff-pvi-decision-list,
.calculator-page .ff-pvi-sources,
.calculator-page .ff-pvi-authorship-inner > p {
  color: var(--muted, #5d6877);
  font-size: 0.84rem;
  line-height: 1.7;
}

.calculator-page .ff-pvi-method-note {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 4px solid var(--gold, #c5a15a);
  background: var(--gold-soft, #f3ead7);
}

.calculator-page .ff-pvi-decision-section {
  background: var(--soft, #f3f6fa);
}

.calculator-page .ff-pvi-decision-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  padding: 1px;
  background: var(--line, #d8e0e9);
  list-style: none;
}

.calculator-page .ff-pvi-decision-list li {
  min-width: 0;
  padding: 22px 24px;
  background: #fff;
}

.calculator-page .ff-pvi-decision-list strong {
  color: var(--ink, #17253a);
}

.calculator-page .ff-pvi-sources {
  margin-top: 24px;
  font-size: 0.74rem;
}

.calculator-page .ff-pvi-sources a,
.calculator-page .ff-pvi-authorship-section a {
  color: var(--navy, #173a63);
  font-weight: 700;
}

.calculator-page .ff-pvi-authorship-section {
  color: #fff;
  background: var(--navy, #173a63);
}

.calculator-page .ff-pvi-authorship-inner {
  max-width: 820px;
}

.calculator-page .ff-pvi-authorship-inner h2 {
  color: #fff;
}

.calculator-page .ff-pvi-authorship-inner > p {
  color: #d4dee8;
}

.calculator-page .ff-pvi-authorship-section a {
  color: #efd995;
}

.calculator-page .ff-pvi-authorship-section .wp-block-button__link {
  color: var(--navy, #173a63);
  background: var(--gold, #c5a15a);
}

@media (max-width: 920px) {
  .ff-loan-invest__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ff-loan-invest__method {
    position: static;
  }

  .calculator-page .ff-pvi-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .ff-loan-invest__intro {
    border-radius: 8px;
  }

  .ff-loan-invest__grid--two,
  .ff-loan-invest__choice-grid,
  .ff-loan-invest__metrics,
  .ff-loan-invest__scenarios {
    grid-template-columns: minmax(0, 1fr);
  }

  .ff-loan-invest__scenario-description {
    min-height: 0;
  }

  .ff-loan-invest__reset {
    flex: 1 1 100%;
  }

  .calculator-page .ff-pvi-editorial-section,
  .calculator-page .ff-pvi-decision-section,
  .calculator-page .ff-pvi-authorship-section {
    padding: 72px 0;
  }

  .calculator-page .ff-pvi-editorial-section,
  .calculator-page .ff-pvi-faq-section {
    padding-top: 0;
  }

  .calculator-page .ff-pvi-decision-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .ff-loan-invest {
    width: min(1180px, calc(100% - 32px));
  }
}

@media (max-width: 390px) {
  .ff-loan-invest__intro,
  .ff-loan-invest__group,
  .ff-loan-invest__results,
  .ff-loan-invest__scenario {
    padding: 18px;
  }

  .ff-loan-invest__scenario-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .ff-loan-invest__scenario-metrics > .is-highlighted {
    grid-column: auto;
  }
}

/* V5 workspace structure, adapted to the current Financial Freedom tokens. */
.ff-loan-invest__layout {
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(32px, 4.6vw, 54px);
  margin-top: 0;
}

.ff-loan-invest__workspace-side {
  position: sticky;
  top: 108px;
  min-width: 0;
}

.ff-loan-invest__intro {
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ff-li-ink);
}

.ff-loan-invest__intro::after {
  display: none;
  content: none;
}

.ff-loan-invest__intro h2 {
  max-width: none;
  margin-bottom: 14px;
  color: var(--ff-li-navy);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
}

.ff-loan-invest__intro > p:last-child {
  max-width: none;
  color: var(--ff-li-muted);
  font-size: 0.9rem;
}

.ff-loan-invest__live-payment {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #173a63, #244d78);
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 58, 99, 0.16);
}

.ff-loan-invest__live-payment span,
.ff-loan-invest__live-payment strong,
.ff-loan-invest__live-payment small {
  display: block;
}

.ff-loan-invest__live-payment span {
  color: #d5e0ec;
  font-size: 0.68rem;
  font-weight: 700;
}

.ff-loan-invest__live-payment strong {
  margin: 5px 0 3px;
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  line-height: 1.15;
}

.ff-loan-invest__live-payment small {
  color: #bdcddd;
  font-size: 0.62rem;
}

.ff-loan-invest__reset {
  min-height: 32px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ff-li-navy);
  font-size: 0.75rem;
  text-align: left;
  box-shadow: none;
}

.ff-loan-invest__privacy {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d7e4f1;
  border-radius: 6px;
  background: #edf4fb;
}

.ff-loan-invest__privacy > span {
  flex: 0 0 auto;
  color: var(--ff-li-navy);
  font-weight: 900;
}

.ff-loan-invest__privacy p {
  margin: 0;
  color: #40546b;
  font-size: 0.7rem;
}

.ff-loan-invest__privacy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ff-li-navy);
}

.ff-loan-invest__method {
  position: static;
  margin-top: 16px;
  border-radius: 6px;
  background: #fff;
}

.ff-loan-invest__method details {
  padding: 0 14px;
}

.ff-loan-invest__method summary {
  padding: 14px 0;
  font-size: 1rem;
}

.ff-loan-invest__method ul {
  padding-bottom: 16px;
}

.ff-loan-invest__form {
  display: block;
  padding: clamp(22px, 3.2vw, 32px);
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 58, 99, 0.08);
}

.ff-loan-invest__errors {
  margin-bottom: 20px;
}

.ff-loan-invest__group {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ff-loan-invest__group + .ff-loan-invest__group {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ff-li-line);
}

.ff-loan-invest__group > legend {
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
  padding-bottom: 20px;
}

.ff-loan-invest__group > legend > span {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #edf3f9;
  color: #765718;
}

.ff-loan-invest__group > legend > strong,
.ff-loan-invest__group > legend > small {
  grid-column: 2;
}

.ff-loan-invest__group > legend > strong {
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
}

.ff-loan-invest__group > legend > small {
  grid-row: 2;
  margin-top: 2px;
}

.ff-loan-invest__quick-horizon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.ff-loan-invest__quick-horizon > span {
  margin-right: 3px;
  color: var(--ff-li-muted);
  font-size: 0.65rem;
}

.ff-loan-invest__quick-horizon button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--ff-li-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ff-li-navy);
  font-size: 0.64rem;
  font-weight: 750;
  cursor: pointer;
}

.ff-loan-invest__quick-horizon button.is-active,
.ff-loan-invest__quick-horizon button[aria-pressed="true"] {
  border-color: #9fb4ca;
  background: #edf3f9;
}

.ff-loan-invest__advanced {
  margin-top: 28px;
  padding-top: 5px;
  border-top: 1px solid var(--ff-li-line);
}

.ff-loan-invest__advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  color: var(--ff-li-navy);
  font-size: 0.77rem;
  font-weight: 750;
  cursor: pointer;
}

.ff-loan-invest__advanced-content {
  display: grid;
  gap: 16px;
  padding: 4px 0 18px;
}

.ff-loan-invest__reserve-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 6px;
  background: var(--ff-li-soft);
  cursor: pointer;
}

.ff-loan-invest__reserve-check input {
  margin-top: 3px;
}

.ff-loan-invest__reserve-check strong,
.ff-loan-invest__reserve-check small {
  display: block;
}

.ff-loan-invest__reserve-check strong {
  color: var(--ff-li-ink);
  font-size: 0.75rem;
}

.ff-loan-invest__reserve-check small {
  margin-top: 3px;
  color: var(--ff-li-muted);
  font-size: 0.65rem;
}

.ff-loan-invest__actions {
  margin-top: 20px;
}

.ff-loan-invest__warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 6px;
}

.ff-loan-invest__warning > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

.ff-loan-invest__warning p {
  margin: 2px 0 0;
  font-size: 0.75rem;
}

.ff-loan-invest__warning--reserve {
  background: #fff2df;
  color: #6e4c1b;
}

.ff-loan-invest__warning--variable {
  background: #eaf2fa;
  color: #294b70;
}

.ff-loan-invest__context {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.5fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: #fff;
}

.ff-loan-invest__context-title {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.ff-loan-invest__context-title > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: #edf3f9;
  color: var(--ff-li-navy);
  font-weight: 900;
}

.ff-loan-invest__context-title p,
.ff-loan-invest__context-title strong,
.ff-loan-invest__context-title small {
  display: block;
  margin: 0;
}

.ff-loan-invest__context-title strong {
  color: var(--ff-li-navy);
  font-size: 0.8rem;
}

.ff-loan-invest__context-title small {
  margin-top: 4px;
  color: var(--ff-li-muted);
  font-size: 0.64rem;
}

.ff-loan-invest__context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.ff-loan-invest__context-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--ff-li-soft);
}

.ff-loan-invest__context-grid dt {
  color: var(--ff-li-muted);
  font-size: 0.6rem;
  font-weight: 700;
}

.ff-loan-invest__context-grid dd {
  margin: 3px 0 0;
  color: var(--ff-li-navy);
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ff-loan-invest__chart-head h4 {
  margin-bottom: 6px;
  color: var(--ff-li-navy);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

.ff-loan-invest__chart-head p:not(.ff-loan-invest__eyebrow) {
  margin: 0;
  color: var(--ff-li-muted);
  font-size: 0.72rem;
}

.ff-loan-invest__metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.ff-loan-invest__metrics > div {
  height: 100%;
}

.ff-loan-invest__metrics dt,
.ff-loan-invest__chart-help,
.ff-loan-invest__scenario-net-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.ff-loan-invest__scenarios {
  align-items: stretch;
}

.ff-loan-invest__scenario {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  height: 100%;
  padding: 22px;
}

.ff-loan-invest__scenario-status {
  min-height: 34px;
}

.ff-loan-invest__scenario-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.ff-loan-invest__scenario-help {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ff-li-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ff-li-navy);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.ff-loan-invest__help-button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ff-li-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ff-li-navy);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ff-loan-invest__scenario-description {
  min-height: 5.8em;
  margin-top: 8px;
}

.ff-loan-invest__scenario-flow {
  margin-top: 16px;
  border-top: 1px solid var(--ff-li-line);
  border-bottom: 1px solid var(--ff-li-line);
}

.ff-loan-invest__flow-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.ff-loan-invest__flow-row + .ff-loan-invest__flow-row {
  border-top: 1px solid #e8edf2;
}

.ff-loan-invest__flow-row > span {
  color: var(--ff-li-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.ff-loan-invest__flow-row > strong {
  color: var(--ff-li-ink);
  font-size: 0.66rem;
  line-height: 1.45;
}

.ff-loan-invest__scenario-net {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 6px;
  background: var(--ff-li-navy);
  color: #fff;
}

.ff-loan-invest__scenario-net > span,
.ff-loan-invest__scenario-net-label > span,
.ff-loan-invest__scenario-net > small {
  color: #cbd8e5;
  font-size: 0.62rem;
}

.ff-loan-invest__scenario-net-label .ff-loan-invest__help-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
  color: #fff;
}

.ff-loan-invest__scenario-net > strong {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
}

.ff-loan-invest__scenario-net > em {
  margin-top: 4px;
  color: #ead497;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 750;
}

.ff-loan-invest__scenario-metrics {
  align-self: start;
}

.ff-loan-invest__scenario-metrics > div {
  background: var(--ff-li-soft);
}

.ff-loan-invest__scenario-details {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--ff-li-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ff-li-navy);
  font-size: 0.67rem;
  font-weight: 750;
  cursor: pointer;
}

.ff-loan-invest__chart-card,
.ff-loan-invest__sensitivity {
  margin-top: 18px;
  border: 1px solid var(--ff-li-line);
  border-radius: 8px;
  background: #fff;
}

.ff-loan-invest__chart-help {
  margin: 8px 0 0;
}

.ff-loan-invest__chart-help > span {
  color: var(--ff-li-muted);
}

.ff-loan-invest__chart-card {
  padding: 22px;
}

.ff-loan-invest__chart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.ff-loan-invest__chart-legend {
  display: flex;
  max-width: 360px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 12px;
}

.ff-loan-invest__chart-legend-item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--ff-li-muted);
  font-size: 0.62rem;
}

.ff-loan-invest__chart-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ff-li-navy);
}

.ff-loan-invest__chart-legend-item i[data-scenario-color="loan"] { background: #765718; }
.ff-loan-invest__chart-legend-item i[data-scenario-color="hybrid"] { background: #168768; }
.ff-loan-invest__chart-legend-item i[data-scenario-color="split"] { background: #7d8da3; }
.ff-loan-invest__chart-legend-item i[data-scenario-color="invest"] { background: #2467ef; }

.ff-loan-invest__chart-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

.ff-loan-invest__chart-wrap svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.ff-loan-invest__chart-grid-line {
  stroke: #e3e9ef;
  stroke-width: 1;
}

.ff-loan-invest__chart-grid-line.is-vertical {
  stroke: #eef2f5;
}

.ff-loan-invest__chart-zero-line {
  stroke: #9eacba;
  stroke-dasharray: 5 5;
  stroke-width: 1;
}

.ff-loan-invest__chart-axis-label {
  fill: #667589;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
}

.ff-loan-invest__sensitivity summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  color: var(--ff-li-navy);
  cursor: pointer;
}

.ff-loan-invest__sensitivity summary span,
.ff-loan-invest__sensitivity summary small,
.ff-loan-invest__sensitivity summary strong {
  display: block;
}

.ff-loan-invest__sensitivity summary small {
  color: #765718;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.ff-loan-invest__sensitivity summary strong {
  margin-top: 3px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.35rem;
}

.ff-loan-invest__sensitivity summary b {
  font-size: 0.68rem;
}

.ff-loan-invest__sensitivity-content {
  padding: 0 22px 22px;
}

.ff-loan-invest__sensitivity-content > p {
  color: var(--ff-li-muted);
  font-size: 0.7rem;
}

.ff-loan-invest__sensitivity-scroll {
  overflow-x: auto;
}

.ff-loan-invest__sensitivity table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.67rem;
}

.ff-loan-invest__sensitivity th,
.ff-loan-invest__sensitivity td {
  padding: 11px;
  border: 1px solid var(--ff-li-line);
  text-align: center;
}

.ff-loan-invest__sensitivity th {
  background: var(--ff-li-soft);
  color: var(--ff-li-navy);
}

.ff-loan-invest__sensitivity td strong,
.ff-loan-invest__sensitivity td span {
  display: block;
}

.ff-loan-invest__sensitivity td span {
  margin-top: 3px;
  color: var(--ff-li-muted);
  font-size: 0.59rem;
}

.ff-loan-invest__sensitivity td.is-loan { background: #fff6e4; }
.ff-loan-invest__sensitivity td.is-invest { background: #eaf7f2; }
.ff-loan-invest__sensitivity td.is-close { background: #f2f5f8; }

.ff-loan-invest__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ff-loan-invest__modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.ff-loan-invest-modal-open {
  overflow: hidden;
}

.ff-loan-invest__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 48, 0.72);
}

.ff-loan-invest__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  padding: clamp(20px, 3vw, 30px);
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 25, 46, 0.35);
}

.ff-loan-invest__dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.ff-loan-invest__dialog-head h4 {
  margin-bottom: 0;
  color: var(--ff-li-navy);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.ff-loan-invest__dialog-close {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ff-li-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ff-li-navy);
  font-size: 1.45rem;
  cursor: pointer;
}

.ff-loan-invest__dialog-intro,
.ff-loan-invest__dialog-summary,
.ff-loan-invest__dialog-comparison {
  color: var(--ff-li-muted);
  font-size: 0.77rem;
}

.ff-loan-invest__dialog-intro {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--ff-li-gold);
  background: var(--ff-li-soft);
}

.ff-loan-invest__dialog-summary {
  margin: 18px 0 0;
}

.ff-loan-invest__dialog-section {
  margin-top: 22px;
}

.ff-loan-invest__dialog-section h5 {
  margin: 0 0 10px;
  color: var(--ff-li-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
}

.ff-loan-invest__dialog-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ff-li-line);
  border-radius: 6px;
  background: var(--ff-li-line);
}

.ff-loan-invest__dialog-list--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ff-loan-invest__dialog-row {
  min-width: 0;
  padding: 12px;
  background: #fff;
}

.ff-loan-invest__dialog-row dt {
  color: var(--ff-li-muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.ff-loan-invest__dialog-row dd {
  margin: 4px 0 0;
  color: var(--ff-li-ink);
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ff-loan-invest__dialog-formula {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 6px;
  background: var(--ff-li-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
}

.ff-loan-invest__dialog-comparison {
  margin: 10px 0 0;
  font-weight: 700;
}

@media (max-width: 920px) {
  .ff-loan-invest__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ff-loan-invest__workspace-side {
    position: static;
  }

  .ff-loan-invest__intro h2,
  .ff-loan-invest__intro > p:last-child {
    max-width: 760px;
  }

  .ff-loan-invest__live-payment,
  .ff-loan-invest__privacy,
  .ff-loan-invest__method,
  .ff-loan-invest__reset {
    max-width: 560px;
  }

  .ff-loan-invest__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ff-loan-invest__form {
    padding: 20px;
  }

  .ff-loan-invest__context,
  .ff-loan-invest__chart-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .ff-loan-invest__scenarios {
    grid-template-columns: minmax(0, 1fr);
  }

  .ff-loan-invest__scenario-description {
    min-height: 0;
  }

  .ff-loan-invest__chart-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .ff-loan-invest__metrics,
  .ff-loan-invest__context-grid,
  .ff-loan-invest__dialog-list--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .ff-loan-invest__dialog {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }
}

/* V5 layout fidelity pass. Geometry and typography follow the reviewed
   standalone reference; only semantic colours use Financial Freedom tokens. */
.ff-pvi-v5-hero,
.ff-pvi-v5-value-section,
.ff-pvi-v5-calculator-section,
.ff-pvi-v5-method-section,
.ff-pvi-v5-faq-section,
.ff-pvi-v5-final-cta {
  --ff-v5-navy: var(--navy, #173a63);
  --ff-v5-deep: #0f2948;
  --ff-v5-ink: var(--ink, #17253a);
  --ff-v5-soft: var(--soft, #f3f6fa);
  --ff-v5-muted: var(--muted, #5d6877);
  --ff-v5-line: var(--line, #d8e0e9);
  --ff-v5-gold: var(--gold, #c5a15a);
  --ff-v5-dark-gold: #765718;
  box-sizing: border-box;
  color: var(--ff-v5-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.ff-pvi-v5-hero *,
.ff-pvi-v5-value-section *,
.ff-pvi-v5-method-section *,
.ff-pvi-v5-faq-section *,
.ff-pvi-v5-final-cta * {
  box-sizing: border-box;
}

.ff-pvi-v5-hero h1,
.ff-pvi-v5-hero h2,
.ff-pvi-v5-hero h3,
.ff-pvi-v5-value-section h2,
.ff-pvi-v5-value-section h3,
.ff-pvi-v5-method-section h2,
.ff-pvi-v5-method-section h3,
.ff-pvi-v5-faq-section h2,
.ff-pvi-v5-final-cta h2,
.ff-pvi-v5-final-cta h3 {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.ff-pvi-v5-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ff-pvi-v5-eyebrow--light { color: #d8e5f4; }
.ff-pvi-v5-eyebrow--dark { color: var(--ff-v5-dark-gold); }

.ff-pvi-v5-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(133deg, #0a1e35 0%, var(--ff-v5-deep) 55%, var(--ff-v5-navy) 100%);
  box-shadow: 0 0 0 100vmax var(--ff-v5-deep);
  clip-path: inset(0 -100vmax);
  color: #fff;
}

.ff-pvi-v5-hero::before,
.ff-pvi-v5-hero::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.ff-pvi-v5-hero::before {
  top: -260px;
  right: -240px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(197, 161, 90, 0.2), transparent 68%);
}

.ff-pvi-v5-hero::after {
  bottom: -250px;
  left: -220px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(197, 161, 90, 0.1), transparent 68%);
}

.ff-pvi-v5-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin-inline: auto;
  padding: 60px 0 48px;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 58px;
  align-items: center;
}

.ff-pvi-v5-hero-copy h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(43px, 5.1vw, 70px);
}

.ff-pvi-v5-hero-lead {
  max-width: 700px;
  margin: 24px 0 28px;
  color: #d2dce8;
  font-size: 18px;
  line-height: 1.7;
}

.ff-pvi-v5-hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0;
}

.ff-pvi-v5-hero-actions .wp-block-button__link {
  border-radius: 12px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.ff-pvi-v5-primary-action .wp-block-button__link {
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--ff-v5-gold), #ad8743);
  box-shadow: 0 13px 32px rgba(197, 161, 90, 0.24);
  color: #10243c;
}

.ff-pvi-v5-link-action .wp-block-button__link {
  padding: 12px 0;
  background: transparent;
  color: #e2ebf5;
}

.ff-pvi-v5-trust-row {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.ff-pvi-v5-trust-item {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.ff-pvi-v5-trust-item p,
.ff-pvi-v5-trust-item strong,
.ff-pvi-v5-trust-item span { display: block; margin: 0; }
.ff-pvi-v5-trust-item strong { color: #fff; font-size: 17px; }
.ff-pvi-v5-trust-item span { margin-top: 4px; color: #aebccc; font-size: 11px; }

.ff-pvi-v5-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.ff-pvi-v5-hero-photo {
  position: relative;
  width: min(430px, 100%);
  height: 545px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #183454;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.33);
}

.ff-pvi-v5-hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 14, 27, 0.52));
  pointer-events: none;
  content: "";
}

.ff-pvi-v5-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.ff-pvi-v5-hero-photo figcaption {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(10, 30, 62, 0.07);
  color: var(--ff-v5-ink);
  text-align: left;
}

.ff-pvi-v5-hero-photo figcaption strong,
.ff-pvi-v5-hero-photo figcaption small { display: block; }
.ff-pvi-v5-hero-photo figcaption small { margin-top: 2px; color: var(--ff-v5-muted); font-size: 11px; }
.ff-pvi-v5-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #168768; }

.ff-pvi-v5-value-section {
  padding: 92px 0;
  background: var(--ff-v5-soft);
  box-shadow: 0 0 0 100vmax var(--ff-v5-soft);
  clip-path: inset(0 -100vmax);
}

.ff-pvi-v5-value-section > .shell,
.ff-pvi-v5-method-section > .shell,
.ff-pvi-v5-faq-section > .shell,
.ff-pvi-v5-final-cta > .shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ff-pvi-v5-section-head { max-width: 780px; }
.ff-pvi-v5-section-head--centered { margin: 0 auto 42px; text-align: center; }
.ff-pvi-v5-section-head--left { text-align: left; }
.ff-pvi-v5-section-head h2 { color: var(--ff-v5-ink); font-size: 42px; }
.ff-pvi-v5-section-head > p:last-child { margin: 17px 0 0; color: var(--ff-v5-muted); font-size: 17px; }

.ff-pvi-v5-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ff-pvi-v5-value-card {
  padding: 25px;
  border: 1px solid var(--ff-v5-line);
  border-radius: 18px;
  background: #fff;
}

.ff-pvi-v5-value-card .card-number { margin: 0; color: var(--ff-v5-dark-gold); font-size: 11px; font-weight: 850; }
.ff-pvi-v5-value-card h3 { margin: 23px 0 10px; color: var(--ff-v5-ink); font-size: 20px; }
.ff-pvi-v5-value-card > p:last-child { margin: 0; color: var(--ff-v5-muted); font-size: 13px; }

.ff-pvi-v5-calculator-section { padding: 95px 0 0; }

.ff-pvi-v5-method-section {
  padding: 92px 0;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}

.ff-pvi-v5-method-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 58px;
}

.ff-pvi-v5-method-list { display: grid; gap: 12px; }
.ff-pvi-v5-method-list .numbered-step {
  display: grid;
  padding: 18px;
  border: 1px solid var(--ff-v5-line);
  border-radius: 16px;
  grid-template-columns: 38px 1fr;
  gap: 13px;
}

.ff-pvi-v5-method-list .step-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0;
  place-items: center;
  border-radius: 10px;
  background: var(--ff-v5-soft);
  color: var(--ff-v5-dark-gold);
  font-size: 10px;
  font-weight: 850;
}

.ff-pvi-v5-method-list h3 { color: var(--ff-v5-ink); font-size: 17px; }
.ff-pvi-v5-method-list .step-copy p { margin: 5px 0 0; color: var(--ff-v5-muted); font-size: 11px; }
.ff-pvi-v5-assumptions { margin-top: 26px; }
.ff-pvi-v5-assumptions-details { overflow: hidden; border: 1px solid var(--ff-v5-line); border-radius: 17px; }
.ff-pvi-v5-assumptions-details > summary { padding: 18px 20px; cursor: pointer; font-size: 13px; font-weight: 750; }
.ff-pvi-v5-assumption-grid { display: grid; padding: 18px 20px; border-top: 1px solid var(--ff-v5-line); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ff-pvi-v5-assumption-grid p { margin: 0; padding: 13px; border-radius: 12px; background: var(--ff-v5-soft); color: var(--ff-v5-muted); font-size: 10px; }
.ff-pvi-v5-assumption-grid strong { color: var(--ff-v5-ink); }

.ff-pvi-v5-faq-section {
  padding: 92px 0;
  background: var(--ff-v5-soft);
  box-shadow: 0 0 0 100vmax var(--ff-v5-soft);
  clip-path: inset(0 -100vmax);
}

.ff-pvi-v5-faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 58px; }
.ff-pvi-v5-faq-item { padding: 17px 0; border: 0; border-bottom: 1px solid var(--ff-v5-line); border-radius: 0; background: transparent; }
.ff-pvi-v5-faq-item summary { cursor: pointer; color: var(--ff-v5-ink); font-weight: 750; }
.ff-pvi-v5-faq-item p { margin: 12px 0 0; color: var(--ff-v5-muted); font-size: 13px; }

.ff-pvi-v5-final-cta {
  padding: 78px 0;
  background: var(--ff-v5-deep);
  box-shadow: 0 0 0 100vmax var(--ff-v5-deep);
  clip-path: inset(0 -100vmax);
  color: #fff;
}

.ff-pvi-v5-final-heading h2 { max-width: 780px; color: #fff; font-size: 41px; }
.ff-pvi-v5-choice-grid { display: grid; margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ff-pvi-v5-choice-card { padding: 25px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; background: rgba(255, 255, 255, 0.035); color: #fff; }
.ff-pvi-v5-choice-kicker { margin: 0; color: #b7c6d7; font-size: 9px; letter-spacing: 0.08em; }
.ff-pvi-v5-choice-card h3 { margin: 10px 0; color: #fff; font-size: 22px; }
.ff-pvi-v5-choice-card > p:not(.ff-pvi-v5-choice-kicker) { margin: 0; color: #c4d0dd; font-size: 12px; }
.ff-pvi-v5-choice-action { margin-top: 14px; }
.ff-pvi-v5-choice-action .wp-block-button__link { padding: 0; background: transparent; color: #fff; font-size: 12px; font-weight: 750; text-decoration: none; }

/* Calculator workspace and result components. */
.ff-loan-invest {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--ff-li-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.ff-loan-invest__layout,
.ff-loan-invest__results {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ff-loan-invest__layout {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 54px;
  align-items: start;
}

.ff-loan-invest__workspace-side { position: sticky; top: 108px; }
.ff-loan-invest__intro { overflow: visible; padding: 0; border-radius: 0; background: transparent; color: var(--ff-li-ink); }
.ff-loan-invest__intro::after { display: none; }
.ff-loan-invest__intro h2 { max-width: none; margin: 0; color: var(--ff-li-ink); font-size: 42px; }
.ff-loan-invest__intro > p:last-child { max-width: none; margin: 15px 0 0; color: var(--ff-li-muted); font-size: 15px; }
.ff-loan-invest__eyebrow { margin: 0 0 10px; color: #765718; font-size: 9px; font-weight: 850; letter-spacing: 0.12em; }

.ff-loan-invest__live-payment {
  margin-top: 24px;
  padding: 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2948, #173a63);
  color: #fff;
  box-shadow: none;
}

.ff-loan-invest__live-payment span,
.ff-loan-invest__live-payment small,
.ff-loan-invest__live-payment strong { display: block; }
.ff-loan-invest__live-payment span { color: #c8d6e5; font-size: 11px; }
.ff-loan-invest__live-payment strong { margin: 5px 0 2px; color: #fff; font-size: 31px; }
.ff-loan-invest__live-payment small { color: #afc0d2; font-size: 10px; }

.ff-loan-invest__reset {
  display: inline-flex;
  width: auto;
  min-height: 32px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #765718;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}
.ff-loan-invest__reset:hover { background: transparent; transform: none; text-decoration: underline; }

.ff-loan-invest__privacy {
  display: flex;
  margin-top: 22px;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: var(--ff-li-soft);
  gap: 11px;
}
.ff-loan-invest__privacy > span { color: #765718; font-weight: 900; }
.ff-loan-invest__privacy p { margin: 0; color: #40506a; font-size: 12px; }
.ff-loan-invest__privacy strong { display: inline; color: inherit; }

.ff-loan-invest__form {
  padding: 30px;
  border: 1px solid var(--ff-li-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 65px rgba(10, 30, 62, 0.09);
}

.ff-loan-invest__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.ff-loan-invest__group + .ff-loan-invest__group { margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--ff-li-line); }
.ff-loan-invest__group > legend { display: flex; width: 100%; margin: 0 0 20px; padding: 0; gap: 13px; align-items: center; }
.ff-loan-invest__group > legend > span:first-child {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 11px;
  background: var(--ff-li-soft);
  color: #765718;
  font-size: 12px;
  font-weight: 850;
}
.ff-loan-invest__group > legend > .ff-loan-invest__group-heading { display: block; width: auto; min-width: 0; height: auto; padding: 0; border-radius: 0; background: transparent; }
.ff-loan-invest__group-heading small { display: block; color: var(--ff-li-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.ff-loan-invest__group-heading strong { display: block; margin-top: 3px; color: var(--ff-li-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 24px; line-height: 1.08; }

.ff-loan-invest__grid { display: grid; gap: 14px; }
.ff-loan-invest__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-loan-invest__grid--three { grid-template-columns: 1.15fr 0.85fr 0.85fr; }
.ff-loan-invest__term-grid { margin-top: 14px; }
.ff-loan-invest__field + .ff-loan-invest__field,
.ff-loan-invest__group > .ff-loan-invest__field,
.ff-loan-invest__term,
.ff-loan-invest__choice { margin-top: 0; }
.ff-loan-invest__field label,
.ff-loan-invest__term > legend,
.ff-loan-invest__choice > legend { display: block; margin: 0 0 7px; color: var(--ff-li-ink); font-size: 12px; font-weight: 750; }
.ff-loan-invest__field > small { display: block; margin-top: 6px; color: var(--ff-li-muted); font-size: 10px; line-height: 1.4; }
.ff-loan-invest__input-wrap { position: relative; }
.ff-loan-invest__input-wrap input,
.ff-loan-invest__field select {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 48px 0 13px;
  border: 1px solid var(--ff-li-line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ff-li-ink);
  font: inherit;
}
.ff-loan-invest__field select { padding-right: 34px; }
.ff-loan-invest__input-wrap > span { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: #6c7989; font-size: 12px; font-weight: 700; pointer-events: none; }
.ff-loan-invest__input-wrap input:focus,
.ff-loan-invest__field select:focus { border-color: var(--ff-li-gold); box-shadow: 0 0 0 3px rgba(197, 161, 90, 0.14); }
.ff-loan-invest__split-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ff-loan-invest__term { min-width: 0; padding: 0; border: 0; }

.ff-loan-invest__choice { min-width: 0; margin-top: 14px; padding: 0; border: 0; }
.ff-loan-invest__choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ff-loan-invest__choice-grid label { position: relative; cursor: pointer; }
.ff-loan-invest__choice-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ff-loan-invest__choice-grid label > span { display: flex; min-height: 54px; padding: 9px 12px; align-items: center; justify-content: center; border: 1px solid var(--ff-li-line); border-radius: 12px; color: #536176; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; }
.ff-loan-invest__choice-grid input:checked + span { border-color: var(--ff-li-gold); background: #fbf7ef; box-shadow: 0 0 0 2px rgba(197, 161, 90, 0.08); color: #765718; }

.ff-loan-invest__quick-horizon { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 14px; }
.ff-loan-invest__quick-horizon > span { margin-right: 3px; color: var(--ff-li-muted); font-size: 10px; }
.ff-loan-invest__quick-horizon button { min-height: 32px; padding: 7px 10px; border: 1px solid var(--ff-li-line); border-radius: 999px; background: #fff; color: var(--ff-li-ink); font-size: 10px; font-weight: 750; cursor: pointer; }
.ff-loan-invest__quick-horizon button.is-active,
.ff-loan-invest__quick-horizon button[aria-pressed="true"] { border-color: var(--ff-li-gold); background: #fbf7ef; color: #765718; }

.ff-loan-invest__advanced { margin-top: 25px; padding-top: 5px; border-top: 1px solid var(--ff-li-line); }
.ff-loan-invest__advanced summary { display: flex; padding: 13px 0; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.ff-loan-invest__advanced summary::-webkit-details-marker { display: none; }
.ff-loan-invest__advanced-content { display: grid; padding: 3px 0 18px; gap: 16px; }
.ff-loan-invest__reserve-check { display: flex; padding: 14px; border-radius: 13px; background: #f7f9fc; gap: 10px; align-items: flex-start; }
.ff-loan-invest__reserve-check input { margin-top: 3px; }
.ff-loan-invest__reserve-check strong,
.ff-loan-invest__reserve-check small { display: block; }
.ff-loan-invest__reserve-check strong { font-size: 12px; }
.ff-loan-invest__reserve-check small { margin-top: 3px; color: var(--ff-li-muted); font-size: 10px; }
.ff-loan-invest__errors { margin: 0 0 12px; padding: 11px 13px; border: 1px solid #f2c8c9; border-radius: 12px; background: #fff0f0; color: #9f3438; font-size: 12px; }
.ff-loan-invest__actions { margin-top: 0; }
.ff-loan-invest__submit { width: 100%; min-height: 54px; padding: 17px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--ff-li-navy), #0f2948); color: #fff; font-size: 16px; font-weight: 750; box-shadow: 0 13px 32px rgba(23, 58, 99, 0.22); }
.ff-loan-invest__submit:hover { background: linear-gradient(135deg, #1c4778, #102f53); }
.ff-loan-invest__disclaimer { margin: 10px 0 0; color: var(--ff-li-muted); font-size: 10px; text-align: center; }

.ff-loan-invest__results {
  position: relative;
  margin-top: 92px;
  padding: 92px 0;
  border: 0;
  border-radius: 0;
  background: var(--ff-li-soft);
  box-shadow: 0 0 0 100vmax var(--ff-li-soft);
  clip-path: inset(0 -100vmax);
}

.ff-loan-invest__result-topline { display: flex; margin-bottom: 26px; gap: 25px; align-items: flex-end; justify-content: space-between; }
.ff-loan-invest__result-topline h2 { margin: 0; color: var(--ff-li-ink); font-size: 43px; }
.ff-loan-invest__preview-version { display: inline-flex; margin-top: 10px; padding: 6px 10px; border-radius: 999px; background: #e9edf2; color: #765718; font-size: 9px; font-weight: 850; letter-spacing: 0.08em; }
.ff-loan-invest__edit { min-height: 42px; padding: 10px 15px; border: 1px solid var(--ff-li-line); border-radius: 12px; background: #fff; color: var(--ff-li-navy); font-size: 13px; font-weight: 750; cursor: pointer; }

.ff-loan-invest__headline-result { display: grid; padding: 25px; border: 1px solid var(--ff-li-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(10, 30, 62, 0.07); grid-template-columns: 64px 1fr; gap: 18px; align-items: center; }
.ff-loan-invest__headline-icon { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 17px; background: var(--ff-li-soft); color: #765718; font-size: 25px; font-weight: 900; }
.ff-loan-invest__headline-result > div:last-child > span { color: #765718; font-size: 9px; font-weight: 850; letter-spacing: 0.12em; }
.ff-loan-invest__headline-result h3 { margin: 4px 0 7px; color: var(--ff-li-ink); font-size: 28px; }
.ff-loan-invest__headline-result p { margin: 0; color: var(--ff-li-muted); font-size: 13px; }

.ff-loan-invest__warning { display: flex; margin-top: 13px; padding: 14px 16px; border: 0; border-radius: 14px; gap: 11px; align-items: flex-start; }
.ff-loan-invest__warning > span { display: grid; width: 24px; min-width: 24px; height: 24px; place-items: center; border-radius: 8px; background: rgba(255,255,255,0.65); font-weight: 850; }
.ff-loan-invest__warning p { margin: 1px 0 0; font-size: 12px; }
.ff-loan-invest__warning--reserve { background: #fff2e2; color: #74511e; }
.ff-loan-invest__warning--variable { background: #eaf0f7; color: #27496f; }

.ff-loan-invest__context { display: grid; margin-top: 16px; padding: 20px 22px; border: 1px solid var(--ff-li-line); border-radius: 20px; background: #fff; grid-template-columns: 1.05fr 1.95fr; gap: 22px; align-items: center; }
.ff-loan-invest__context-title { display: flex; gap: 12px; align-items: flex-start; }
.ff-loan-invest__context-title > span { display: grid; width: 34px; min-width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--ff-li-soft); color: #765718; font-weight: 850; }
.ff-loan-invest__context-title p,
.ff-loan-invest__context-title strong,
.ff-loan-invest__context-title small { display: block; margin: 0; }
.ff-loan-invest__context-title strong { font-size: 14px; }
.ff-loan-invest__context-title small { margin-top: 4px; color: var(--ff-li-muted); font-size: 10px; }
.ff-loan-invest__context-grid { display: grid; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ff-loan-invest__context-grid > div { padding: 11px 12px; border: 0; border-radius: 12px; background: var(--ff-li-soft); }
.ff-loan-invest__context-grid dt { color: var(--ff-li-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.ff-loan-invest__context-grid dd { margin: 3px 0 0; color: var(--ff-li-ink); font-size: 13px; font-weight: 750; line-height: 1.25; }

.ff-loan-invest__metrics { display: grid; margin: 18px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ff-loan-invest__metrics > div { padding: 20px; border: 1px solid var(--ff-li-line); border-radius: 18px; background: #fff; }
.ff-loan-invest__metrics dt { display: flex; gap: 6px; align-items: flex-start; color: var(--ff-li-muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.ff-loan-invest__metrics dt > span { flex: 1; }
.ff-loan-invest__metrics dd { margin: 6px 0 3px; color: var(--ff-li-ink); font-size: 27px; font-weight: 800; line-height: 1.15; }
.ff-loan-invest__metrics small { display: block; color: var(--ff-li-muted); font-size: 9px; }
.ff-loan-invest__metric--break-even { background: #fff; }
.ff-loan-invest__metric--break-even dd { color: #173a63; }

.ff-loan-invest__help-button,
.ff-loan-invest__scenario-help { display: inline-grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; place-items: center; border: 1px solid #cbd6e5; border-radius: 50%; background: #fff; color: #47617f; font-size: 13px; font-weight: 850; line-height: 1; cursor: pointer; }
.ff-loan-invest__help-button:hover,
.ff-loan-invest__scenario-help:hover { border-color: var(--ff-li-gold); color: #765718; }
.ff-loan-invest__help-button:focus-visible,
.ff-loan-invest__scenario-help:focus-visible { outline: 3px solid rgba(197, 161, 90, 0.25); outline-offset: 2px; }

.ff-loan-invest__scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ff-loan-invest__scenario { position: relative; min-width: 0; padding: 23px; overflow: hidden; border: 1px solid var(--ff-li-line); border-radius: 20px; background: #fff; }
.ff-loan-invest__scenario.is-winner { border-color: var(--ff-li-gold); box-shadow: 0 14px 40px rgba(197, 161, 90, 0.14); }
.ff-loan-invest__scenario-status { position: absolute; top: 15px; right: 15px; min-height: 0; }
.ff-loan-invest__winner { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f5efe3; color: #765718; font-size: 9px; font-weight: 850; }
.ff-loan-invest__scenario-head { display: flex; padding: 0; gap: 14px; align-items: flex-start; justify-content: space-between; }
.ff-loan-invest__scenario.is-winner .ff-loan-invest__scenario-head { padding-right: 148px; }
.ff-loan-invest__scenario-kicker { margin: 0; color: var(--ff-li-muted); font-size: 9px; font-weight: 850; letter-spacing: 0.11em; }
.ff-loan-invest__scenario h4 { margin: 8px 0 0; color: var(--ff-li-ink); font-size: 22px; }
.ff-loan-invest__scenario-description { min-height: 33px; margin: 9px 0 0; color: #506078; font-size: 11px; line-height: 1.48; }
.ff-loan-invest__scenario.is-winner .ff-loan-invest__scenario-description { max-width: 78%; }
.ff-loan-invest__scenario-flow { display: grid; margin: 16px 0; padding: 12px 13px; border: 1px solid #edf1f5; border-radius: 14px; background: #f8fafc; gap: 8px; }
.ff-loan-invest__scenario-flow .ff-loan-invest__flow-row { display: grid; padding: 0; border: 0; grid-template-columns: 94px 1fr; gap: 10px; align-items: start; }
.ff-loan-invest__scenario-flow .ff-loan-invest__flow-row span { color: var(--ff-li-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.ff-loan-invest__scenario-flow .ff-loan-invest__flow-row strong { color: var(--ff-li-ink); font-size: 11px; line-height: 1.35; }
.ff-loan-invest__flow-note { margin: 1px 0 0; padding-top: 8px; border-top: 1px solid #e6ebf1; color: #607088; font-size: 9px; }
.ff-loan-invest__plain-meaning { display: flex; margin: 10px 0 0; padding: 10px 11px; border-radius: 11px; background: #eef2f6; color: #173a63; font-size: 10px; line-height: 1.45; gap: 9px; align-items: flex-start; }
.ff-loan-invest__plain-meaning b { flex: 0 0 auto; }
.ff-loan-invest__scenario-net { margin: 13px 0; padding: 14px; border-radius: 14px; background: #f1f5fa; color: var(--ff-li-ink); }
.ff-loan-invest__scenario-net-label { display: flex; gap: 6px; align-items: center; color: var(--ff-li-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.ff-loan-invest__scenario-net-label > span { color: inherit; }
.ff-loan-invest__scenario-net-label .ff-loan-invest__help-button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; border-color: #cbd6e5; background: #fff; color: #47617f; }
.ff-loan-invest__scenario-net > strong { display: block; margin: 4px 0 2px; color: var(--ff-li-ink); font-size: 26px; }
.ff-loan-invest__scenario-net > small { display: block; color: var(--ff-li-muted); font-size: 9px; }
.ff-loan-invest__scenario-net > em { display: inline-flex; margin-top: 7px; padding: 5px 8px; border-radius: 999px; background: #f1f4f8; color: #647286; font-size: 9px; font-style: normal; font-weight: 800; }
.ff-loan-invest__scenario-net > em.is-best { background: #e8f6f1; color: #166d59; }
.ff-loan-invest__scenario-metrics { display: grid; margin: 0; gap: 9px; }
.ff-loan-invest__scenario-metrics > div { display: flex; min-height: 0; padding: 0 0 8px; border: 0; border-bottom: 1px solid #edf0f4; border-radius: 0; background: transparent; gap: 12px; align-items: flex-start; justify-content: space-between; }
.ff-loan-invest__scenario-metrics > div:last-child { border: 0; }
.ff-loan-invest__scenario-metrics dt { color: var(--ff-li-muted); font-size: 11px; }
.ff-loan-invest__scenario-metrics dd { margin: 0; color: var(--ff-li-ink); font-size: 11px; font-weight: 750; text-align: right; }
.ff-loan-invest__scenario-details { display: inline-flex; width: auto; min-height: 32px; margin: 0; padding: 10px 0 0; border: 0; border-radius: 0; background: transparent; color: #765718; font-size: 10px; font-weight: 800; cursor: pointer; }

.ff-loan-invest__chart-card,
.ff-loan-invest__sensitivity { border: 1px solid var(--ff-li-line); border-radius: 22px; background: #fff; }
.ff-loan-invest__chart-card { margin-top: 17px; padding: 24px; }
.ff-loan-invest__chart-head { display: flex; gap: 25px; align-items: flex-start; justify-content: space-between; }
.ff-loan-invest__chart-head h3 { margin: 4px 0 6px; color: var(--ff-li-ink); font-size: 24px; }
.ff-loan-invest__chart-help { display: flex; max-width: 620px; margin: 0; color: var(--ff-li-muted); font-size: 11px; align-items: center; flex-wrap: wrap; }
.ff-loan-invest__chart-help > span { display: inline; }
.ff-loan-invest__chart-legend { display: flex; gap: 7px; align-items: center; justify-content: flex-end; flex-wrap: wrap; color: var(--ff-li-muted); font-size: 9px; }
.ff-loan-invest__chart-legend-item { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.ff-loan-invest__chart-legend-item i { width: 13px; height: 3px; border-radius: 4px; }
.ff-loan-invest__chart-wrap { width: 100%; margin-top: 15px; overflow-x: auto; overflow-y: hidden; }
.ff-loan-invest__chart-wrap svg { display: block; width: 100%; min-width: 620px; min-height: 270px; height: auto; }

.ff-loan-invest__sensitivity { margin-top: 17px; border-radius: 20px; }
.ff-loan-invest__sensitivity summary { display: flex; padding: 21px 23px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.ff-loan-invest__sensitivity summary small { display: block; color: var(--ff-li-muted); font-size: 9px; font-weight: 850; letter-spacing: 0.12em; }
.ff-loan-invest__sensitivity summary strong { display: block; margin-top: 3px; color: var(--ff-li-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 22px; }
.ff-loan-invest__sensitivity summary b { color: #765718; font-size: 10px; font-weight: 800; }
.ff-loan-invest__sensitivity-content { padding: 20px 23px; border-top: 1px solid var(--ff-li-line); }
.ff-loan-invest__sensitivity-content > p { margin: 0 0 14px; color: var(--ff-li-muted); font-size: 11px; }
.ff-loan-invest__sensitivity-scroll { overflow-x: auto; }
.ff-loan-invest__sensitivity table { width: 100%; min-width: 660px; border-collapse: collapse; }
.ff-loan-invest__sensitivity th,
.ff-loan-invest__sensitivity td { padding: 11px; border: 1px solid var(--ff-li-line); font-size: 10px; text-align: center; }

.ff-loan-invest__interpret-grid { display: grid; margin-top: 17px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.ff-loan-invest__interpret-grid article { display: flex; padding: 20px; border: 1px solid var(--ff-li-line); border-radius: 18px; background: #fff; gap: 13px; }
.ff-loan-invest__interpret-icon { display: grid; width: 34px; min-width: 34px; height: 34px; place-items: center; border-radius: 11px; font-weight: 850; }
.ff-loan-invest__interpret-icon--safe { background: #e8f6f1; color: #166d59; }
.ff-loan-invest__interpret-icon--liquid { background: #eef2f6; color: var(--ff-li-navy); }
.ff-loan-invest__interpret-icon--risk { background: #fff1e3; color: #765718; }
.ff-loan-invest__interpret-grid h3 { margin: 0; color: var(--ff-li-ink); font-size: 16px; }
.ff-loan-invest__interpret-grid p { margin: 6px 0 0; color: var(--ff-li-muted); font-size: 10px; }

.ff-loan-invest__consultation-cta { display: grid; margin-top: 55px; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, #0a1e35, #173a63); color: #fff; grid-template-columns: 0.82fr 1.18fr; }
.ff-loan-invest__cta-photo { min-height: 540px; }
.ff-loan-invest__cta-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.ff-loan-invest__cta-copy { padding: 52px; }
.ff-loan-invest__cta-copy .ff-loan-invest__eyebrow { color: #d8e5f4; }
.ff-loan-invest__cta-copy h2 { margin: 0; color: #fff; font-size: 39px; }
.ff-loan-invest__cta-copy > p:not(.ff-loan-invest__eyebrow) { margin: 16px 0 0; color: #cbd7e4; font-size: 14px; }
.ff-loan-invest__cta-copy ul { margin: 16px 0 0; padding-left: 18px; color: #dbe5ef; font-size: 13px; }
.ff-loan-invest__cta-copy li { margin: 7px 0; }
.ff-loan-invest__cta-price { display: flex; margin: 22px 0; gap: 10px; align-items: baseline; }
.ff-loan-invest__cta-price strong { color: #fff; font-size: 31px; }
.ff-loan-invest__cta-price span { color: #aebfd1; font-size: 11px; }
.ff-loan-invest__cta-actions { display: flex; gap: 12px; align-items: flex-start; flex-direction: column; }
.ff-loan-invest__cta-primary { display: inline-flex; padding: 14px 20px; border-radius: 12px; background: #fff; color: var(--ff-li-navy); font-size: 13px; font-weight: 750; text-decoration: none; }
.ff-loan-invest__cta-secondary { display: inline-flex; color: #cad7e5; font-size: 11px; font-weight: 750; text-decoration: none; }

.ff-loan-invest__modal { padding: 20px; }
.ff-loan-invest__dialog { width: min(720px, 100%); max-height: min(84vh, 760px); padding: 30px; border-radius: 24px; box-shadow: 0 30px 100px rgba(0,0,0,0.35); }
.ff-loan-invest__dialog-head h2 { margin: 6px 48px 0 0; color: var(--ff-li-ink); font-size: 30px; }
.ff-loan-invest__dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }

@media (max-width: 980px) {
  .ff-pvi-v5-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .ff-pvi-v5-hero-visual { justify-content: flex-start; }
  .ff-pvi-v5-hero-photo { width: 100%; height: 520px; }
  .ff-pvi-v5-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-pvi-v5-method-grid,
  .ff-pvi-v5-faq-grid { grid-template-columns: 1fr; }
  .ff-pvi-v5-assumption-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ff-loan-invest__layout { grid-template-columns: 1fr; }
  .ff-loan-invest__workspace-side { position: static; }
  .ff-loan-invest__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-loan-invest__context { grid-template-columns: 1fr; }
  .ff-loan-invest__context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-loan-invest__interpret-grid { grid-template-columns: 1fr; }
  .ff-loan-invest__consultation-cta { grid-template-columns: 1fr; }
  .ff-loan-invest__cta-photo { height: 430px; min-height: 0; }
}

@media (max-width: 640px) {
  .ff-pvi-v5-hero-grid,
  .ff-pvi-v5-value-section > .shell,
  .ff-pvi-v5-method-section > .shell,
  .ff-pvi-v5-faq-section > .shell,
  .ff-pvi-v5-final-cta > .shell,
  .ff-loan-invest__layout,
  .ff-loan-invest__results { width: min(1180px, calc(100% - 28px)); }

  .ff-pvi-v5-hero-grid { padding: 35px 0 34px; gap: 28px; }
  .ff-pvi-v5-eyebrow { font-size: 9px; }
  .ff-pvi-v5-hero-copy h1 { font-size: 39px; }
  .ff-pvi-v5-hero-lead { margin: 18px 0 22px; font-size: 15px; }
  .ff-pvi-v5-hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .ff-pvi-v5-hero-actions .wp-block-button { width: 100%; }
  .ff-pvi-v5-hero-actions .wp-block-button__link { width: 100%; text-align: center; }
  .ff-pvi-v5-trust-row { margin-top: 29px; grid-template-columns: 1fr; }
  .ff-pvi-v5-trust-item { padding-top: 10px; }
  .ff-pvi-v5-hero-photo { height: 415px; border-radius: 21px; }
  .ff-pvi-v5-value-section,
  .ff-pvi-v5-method-section,
  .ff-pvi-v5-faq-section { padding: 62px 0; }
  .ff-pvi-v5-calculator-section { padding-top: 62px; }
  .ff-pvi-v5-section-head h2,
  .ff-pvi-v5-final-heading h2 { font-size: 31px; }
  .ff-pvi-v5-value-grid { grid-template-columns: 1fr; }
  .ff-pvi-v5-assumption-grid { grid-template-columns: 1fr; }
  .ff-pvi-v5-choice-grid { grid-template-columns: 1fr; }
  .ff-pvi-v5-final-cta { padding: 58px 0; }

  .ff-loan-invest__intro h2,
  .ff-loan-invest__result-topline h2 { font-size: 31px; }
  .ff-loan-invest__form { padding: 18px; border-radius: 20px; }
  .ff-loan-invest__grid--two,
  .ff-loan-invest__grid--three { grid-template-columns: 1fr; }
  .ff-loan-invest__choice-grid { grid-template-columns: 1fr; }
  .ff-loan-invest__result-topline { align-items: flex-start; flex-direction: column; }
  .ff-loan-invest__headline-result { padding: 18px; grid-template-columns: 47px 1fr; }
  .ff-loan-invest__headline-icon { width: 46px; height: 46px; border-radius: 13px; }
  .ff-loan-invest__headline-result h3 { font-size: 22px; }
  .ff-loan-invest__metrics > div { padding: 15px; }
  .ff-loan-invest__metrics dd { font-size: 21px; }
  .ff-loan-invest__scenarios { grid-template-columns: 1fr; }
  .ff-loan-invest__scenario { padding: 19px; }
  .ff-loan-invest__scenario.is-winner .ff-loan-invest__scenario-head { padding-right: 0; }
  .ff-loan-invest__scenario.is-winner .ff-loan-invest__scenario-description { max-width: none; }
  .ff-loan-invest__scenario-status { position: static; margin-bottom: 10px; }
  .ff-loan-invest__chart-head { align-items: flex-start; flex-direction: column; }
  .ff-loan-invest__chart-legend { justify-content: flex-start; }
  .ff-loan-invest__chart-wrap svg { min-height: 225px; }
  .ff-loan-invest__consultation-cta { margin-top: 40px; }
  .ff-loan-invest__cta-photo { height: 330px; }
  .ff-loan-invest__cta-copy { padding: 29px 21px; }
  .ff-loan-invest__cta-copy h2 { font-size: 30px; }
  .ff-loan-invest__dialog { padding: 24px 20px; }
  .ff-loan-invest__dialog-head h2 { font-size: 25px; }
}

@media (max-width: 390px) {
  .ff-pvi-v5-hero-copy h1 { font-size: 36px; }
  .ff-loan-invest__metrics { grid-template-columns: 1fr; }

  .ff-loan-invest__help-button,
  .ff-loan-invest__scenario-help,
  .ff-loan-invest__scenario-net-label .ff-loan-invest__help-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .ff-loan-invest__dialog-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .ff-loan-invest__edit,
  .ff-loan-invest__quick-horizon button,
  .ff-loan-invest__reset,
  .ff-loan-invest__scenario-details,
  .ff-loan-invest__advanced summary,
  .ff-loan-invest__sensitivity summary,
  .ff-loan-invest__cta-primary,
  .ff-loan-invest__cta-secondary {
    min-width: 44px;
    min-height: 44px;
  }

  .ff-loan-invest__quick-horizon button {
    min-width: 44px;
  }

  .ff-loan-invest__reset,
  .ff-loan-invest__scenario-details,
  .ff-loan-invest__cta-primary,
  .ff-loan-invest__cta-secondary {
    align-items: center;
  }

  .ff-loan-invest__choice-grid label,
  .ff-loan-invest__choice-grid label > span,
  .ff-loan-invest__reserve-check {
    min-height: 44px;
  }

  .ff-pvi-v5-hero-actions .wp-block-button__link,
  .ff-pvi-v5-choice-action .wp-block-button__link,
  .ff-pvi-v5-assumptions-details > summary,
  .ff-pvi-v5-faq-item > summary {
    min-height: 44px;
  }
}
