.pf-profitability {
  background: #fff;
}

.pf-profitability .pf-nav {
  position: static;
  backdrop-filter: none;
}

.pf-profit-intro {
  padding: 56px 0 32px;
  background: #f6f8fc;
  border-bottom: 1px solid var(--pf-line);
}

.pf-profit-intro h1 {
  max-width: 860px;
  margin: 10px 0 16px;
  color: var(--pf-navy);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.pf-profit-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--pf-muted);
  font-size: 1.08rem;
}

.pf-profit-tool-section {
  padding: 32px 0 72px;
  background: #f6f8fc;
}

.pf-profit-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .85fr);
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(11, 24, 52, .09);
}

.pf-profit-form {
  padding: 34px;
}

.pf-profit-form-heading h2,
.pf-profit-result-heading h2 {
  margin: 6px 0 8px;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.pf-profit-form-heading p,
.pf-profit-result-heading p {
  margin: 0;
  color: var(--pf-muted);
}

.pf-profit-step {
  color: var(--pf-blue);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pf-profit-errors {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 4px solid #b42318;
  background: #fff1f0;
  color: #7a271a;
  font-weight: 650;
}

.pf-profit-fieldset {
  margin: 30px 0 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--pf-line);
}

.pf-profit-fieldset legend {
  padding: 0;
  color: var(--pf-ink);
  font-size: 1rem;
  font-weight: 800;
}

.pf-profit-legend-note {
  margin: 5px 0 15px;
  color: var(--pf-muted);
  font-size: .84rem;
}

.pf-profit-fields {
  display: grid;
  gap: 16px;
  margin-top: 15px;
}

.pf-profit-fields-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pf-profit-field {
  min-width: 0;
  color: #344057;
  font-size: .86rem;
  font-weight: 700;
}

.pf-profit-field > span:first-child {
  display: block;
  margin-bottom: 7px;
}

.pf-profit-field small {
  display: block;
  margin-top: 6px;
  color: var(--pf-muted);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.35;
}

.pf-profit-field input,
.pf-role-row input {
  width: 100%;
  height: 46px;
  border: 1px solid #b9c4d4;
  border-radius: 6px;
  background: #fff;
  color: var(--pf-ink);
  font: inherit;
  font-size: .98rem;
  font-weight: 650;
}

.pf-profit-field input:focus,
.pf-role-row input:focus {
  outline: 3px solid rgba(21, 101, 192, .16);
  border-color: var(--pf-blue);
}

.pf-money-input,
.pf-percent-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  height: 46px;
  overflow: hidden;
  border: 1px solid #b9c4d4;
  border-radius: 6px;
  background: #fff;
}

.pf-percent-input {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pf-money-input > span,
.pf-percent-input > span {
  padding: 0 11px;
  color: #667085;
  font-weight: 750;
}

.pf-money-input input,
.pf-percent-input input {
  height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0 11px 0 0;
}

.pf-percent-input input {
  padding: 0 0 0 11px;
}

.pf-money-input:focus-within,
.pf-percent-input:focus-within {
  outline: 3px solid rgba(21, 101, 192, .16);
  border-color: var(--pf-blue);
}

.pf-money-input input:focus,
.pf-percent-input input:focus {
  outline: 0;
}

.pf-role-table {
  display: grid;
  gap: 8px;
}

.pf-role-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(110px, .75fr) minmax(140px, .85fr);
  gap: 12px;
  align-items: center;
}

.pf-role-row label {
  color: #344057;
  font-size: .9rem;
  font-weight: 700;
}

.pf-role-row > input {
  padding: 0 11px;
}

.pf-role-header {
  color: #667085;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pf-profit-submit {
  width: 100%;
  margin-top: 26px;
  min-height: 48px;
}

.pf-profit-privacy {
  margin: 13px 0 0;
  color: #667085;
  font-size: .76rem;
  text-align: center;
}

.pf-profit-results {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px;
  background: #0b1834;
  color: #fff;
}

.pf-profit-result-heading p {
  color: #cdd8eb;
}

.pf-profit-status {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #7f8da5;
  border-radius: 4px;
  color: #e6edf8;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pf-profit-status[data-status="profitable"] {
  border-color: #6ce1c1;
  background: #133f3a;
  color: #b8f5e5;
}

.pf-profit-status[data-status="fragile"] {
  border-color: #f8d878;
  background: #493b16;
  color: #ffe9a8;
}

.pf-profit-status[data-status="subsidized"] {
  border-color: #ff9b8f;
  background: #4d211d;
  color: #ffd0ca;
}

.pf-profit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid #32435f;
  border-radius: 6px;
  background: #32435f;
}

.pf-profit-metrics div {
  min-width: 0;
  padding: 16px;
  background: #102343;
}

.pf-profit-metrics dt {
  color: #aebcd2;
  font-size: .72rem;
  font-weight: 750;
}

.pf-profit-metrics dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 1.23rem;
  font-weight: 800;
}

.pf-profit-explanation {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid #32435f;
}

.pf-profit-explanation h3 {
  margin: 0 0 7px;
  font-size: .9rem;
}

.pf-profit-explanation p {
  margin: 0;
  color: #cdd8eb;
  font-size: .87rem;
}

.pf-button-light {
  width: 100%;
  margin-top: auto;
  background: #fff;
  color: #0b3264;
}

.pf-button-light:hover {
  background: #eaf2fc;
}

.pf-profit-formulas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--pf-line);
}

.pf-profit-formulas article {
  padding-top: 22px;
}

.pf-profit-formulas article > span {
  color: var(--pf-mint);
  font-size: .78rem;
  font-weight: 850;
}

.pf-profit-formulas h3 {
  margin: 7px 0 6px;
  font-size: 1.1rem;
}

.pf-profit-formulas p,
.pf-profit-limit {
  color: var(--pf-muted);
}

.pf-profit-limit {
  max-width: 870px;
  margin: 30px 0 0;
  padding: 16px 18px;
  border-left: 4px solid #d59b16;
  background: #fff8e7;
  color: #664d12;
  font-size: .88rem;
}

.pf-profit-product-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.pf-profit-product-copy h2 {
  margin-bottom: 16px;
}

.pf-profit-product-copy > p {
  color: var(--pf-muted);
}

.pf-profit-product-copy .pf-checklist {
  margin: 24px 0 28px;
}

.pf-profit-product-visual {
  margin: 0;
}

.pf-profit-product-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(11, 24, 52, .14);
}

.pf-profit-product-visual figcaption {
  margin-top: 10px;
  color: #667085;
  font-size: .78rem;
}

@media (max-width: 900px) {
  .pf-profit-tool,
  .pf-profit-product-grid {
    grid-template-columns: 1fr;
  }

  .pf-profit-product-grid {
    gap: 34px;
  }

  .pf-profit-results {
    min-height: 560px;
  }
}

@media (max-width: 660px) {
  .pf-profit-intro {
    padding-top: 40px;
  }

  .pf-profit-intro h1 {
    font-size: 2.25rem;
  }

  .pf-profit-tool-section {
    padding-top: 20px;
  }

  .pf-profit-form,
  .pf-profit-results {
    padding: 24px 18px;
  }

  .pf-profit-fields-three,
  .pf-profit-formulas {
    grid-template-columns: 1fr;
  }

  .pf-role-header {
    display: none;
  }

  .pf-role-row:not(.pf-role-header) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 14px 0;
    border-top: 1px solid var(--pf-line);
  }

  .pf-role-row label {
    grid-column: 1 / -1;
  }

  .pf-profit-metrics {
    grid-template-columns: 1fr;
  }

  .pf-profit-results {
    min-height: 780px;
  }

  .pf-profit-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
