html,
body {
  background: var(--rf-site-background) !important;
}

body.invest-onboarding-app-shell > main {
  display: block;
  flex: 1 1 auto;
  width: 100%;
}

.invest-nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rf-chrome);
  border-bottom: 1px solid var(--rf-chrome-border);
}

.invest-nav-shell__inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding-inline: 1rem;
}

.invest-nav-shell__brand,
.invest-funding-pill,
.invest-exit-link,
.invest-bottom-nav a {
  text-decoration: none;
}

.invest-nav-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #fff;
}

.invest-nav-shell__brand img {
  width: auto;
  height: 1.75rem;
  flex: 0 0 auto;
}

.invest-nav-shell__brand span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.invest-nav-shell__desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1rem;
}

.invest-nav-shell__desktop a,
.invest-nav-shell__langs a {
  color: var(--app-muted);
  transition: color 160ms ease;
}

.invest-nav-shell__desktop a {
  font-size: 0.82rem;
}

.invest-nav-shell__desktop a:hover,
.invest-nav-shell__desktop a.is-active,
.invest-nav-shell__langs a:hover,
.invest-nav-shell__langs a.is-active {
  color: #fff;
}

.invest-funding-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  min-width: 0;
  height: 2.85rem;
  max-width: 46vw;
  padding: 0.25rem 0.8rem 0.25rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.invest-funding-pill__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #d8a13a;
  color: #07101d;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.invest-funding-pill__body {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
  line-height: 1;
}

.invest-funding-pill__line {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
}

.invest-funding-pill__amount {
  overflow: hidden;
  max-width: 7.5rem;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 650;
}

.invest-funding-pill__currency,
.invest-funding-pill__select {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--app-muted);
}

.invest-funding-pill__select {
  max-width: 5rem;
  border: 0;
  background: transparent;
  padding: 0 1rem 0 0;
  outline: none;
  color: #fff;
}

.invest-funding-pill__select option {
  background: #17294e;
  color: #fff;
}

.invest-funding-pill__return {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--app-muted);
}

.invest-funding-pill__return.is-positive {
  color: var(--app-green);
}

.invest-funding-pill__return.is-negative {
  color: var(--app-red);
}

.invest-nav-shell__right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.invest-nav-shell__langs {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.invest-exit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  font-size: 0;
}

.invest-exit-link::before {
  content: "";
  width: 1.08rem;
  height: 1.08rem;
  opacity: 0.78;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 7V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2M15 12H3m0 0 4-4m-4 4 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 7V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2M15 12H3m0 0 4-4m-4 4 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.invest-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.45rem 0.65rem calc(env(safe-area-inset-bottom) + 0.45rem);
  border-top: 1px solid var(--rf-chrome-border);
  background: var(--rf-chrome);
  backdrop-filter: blur(18px);
}

.invest-bottom-nav a {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 3.6rem;
  color: var(--app-muted);
  text-align: center;
}

.invest-bottom-nav a.is-active {
  color: #d7e1ee;
}

.invest-bottom-nav svg {
  width: 1.35rem;
  height: 1.35rem;
}

.invest-bottom-nav span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
}

@media (min-width: 640px) {
  .invest-nav-shell__inner {
    padding-inline: 1.5rem;
  }

  .invest-nav-shell__langs {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .invest-nav-shell__inner {
    padding-inline: 2rem;
  }

  .invest-nav-shell__desktop {
    display: inline-flex;
  }

  .invest-bottom-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .invest-nav-shell__inner {
    min-height: 58px;
    gap: 0.65rem;
  }

  .invest-nav-shell__brand img {
    height: 1.75rem;
  }

  .invest-nav-shell__brand span {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
  }

  .invest-funding-pill {
    max-width: 36vw;
    height: 2.5rem;
    gap: 0.3rem;
    padding-right: 0.5rem;
  }

  .invest-funding-pill__plus {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 1.05rem;
  }

  .invest-funding-pill__amount {
    max-width: 4rem;
    font-size: 0.8rem;
  }

  .invest-funding-pill__currency,
  .invest-funding-pill__select {
    display: none;
  }

  .invest-funding-pill__return {
    font-size: 0.6rem;
  }
}

.partner-page {
  min-height: 100vh;
  background-color: var(--rf-site-background-color);
  color: #fff;
  background: var(--rf-site-background);
}

.partner-shell {
  display: grid;
  width: 100%;
  max-width: 1320px;
  gap: 2.5rem;
  margin: 0 auto;
  padding: 4rem 1rem 3.5rem;
}

.partner-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.partner-title {
  max-width: 64rem;
  margin-top: 1.5rem;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.06;
}

.partner-subtitle {
  max-width: 48rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 2rem;
}

.partner-secondary,
.model-copy {
  max-width: 48rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  line-height: 2rem;
}

.secondary-action {
  display: inline-flex;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.partner-audience-line {
  max-width: 56rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.75rem;
}

.content-section {
  margin-top: 3rem;
}

.section-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

.benefit-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.benefit-item,
.path-item {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.benefit-item h3,
.path-item h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}

.benefit-item p,
.path-item p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.model-list,
.keep-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
  counter-reset: model;
}

.model-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.875rem;
  line-height: 1.5rem;
  counter-increment: model;
}

.model-list li:before {
  content: counter(model, decimal-leading-zero);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.875rem;
  font-weight: 600;
}

.keep-list {
  column-gap: 2.5rem;
  row-gap: 0.75rem;
}

.keep-list li {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.partner-form {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.045);
  padding: 1.25rem 1rem;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
}

@media (min-width: 981px) {
  .partner-form-wrap {
    align-self: start;
    position: sticky;
    top: 2rem;
  }

  .partner-form {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

.form-title {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.form-summary {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.lead-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.lead-form label,
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  padding: 0.875rem 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.lead-form select {
  appearance: none;
  background-color: rgba(255,255,255,0.075);
}

.lead-form textarea {
  min-height: 118px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.choice-pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.5rem 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.choice-pill input {
  width: 1rem;
  height: 1rem;
  accent-color: #fff;
}

.consent-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.consent-card input {
  min-height: 20px;
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  margin-top: 0.25rem;
  padding: 0;
  accent-color: #fff;
}

.consent-card span {
  min-width: 0;
  text-align: left;
}

.lead-form .consent-card {
  display: grid;
}

.lead-form .consent-card input {
  min-height: 20px;
  height: 20px;
  width: 20px;
  padding: 0;
}

.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background: #fff;
  padding: 0.875rem 1.25rem;
  color: #07101d;
  font-size: 1rem;
  font-weight: 600;
  transition: background 160ms ease;
}

.submit-button:hover {
  background: rgba(255, 255, 255, 0.90);
}

.form-reassurance {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.field-error {
  margin-top: 0.5rem;
  color: #fecaca;
  font-size: 0.875rem;
}

.submission-state {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 1.5rem;
}

.submission-state p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.75rem;
}

.submission-state a {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  padding: 0.75rem 1.25rem;
  color: #07101d;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 160ms ease;
}

.submission-state a:hover {
  background: rgba(255, 255, 255, 0.90);
}

@media (min-width: 640px) {
  .partner-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .partner-title {
    font-size: 2.25rem;
  }

  .partner-subtitle {
    font-size: 1.125rem;
  }

  .section-title,
  .form-title {
    font-size: 1.875rem;
  }

  .benefit-grid,
  .keep-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-list li {
    font-size: 1rem;
  }

  .partner-form {
    padding: 1.75rem 1.5rem;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea,
  .submit-button {
    font-size: 0.875rem;
  }

  .choice-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .choice-pill {
    border-radius: 9999px;
  }
}

@media (min-width: 768px) {
  .partner-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .partner-shell {
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 5rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }

  .partner-title {
    font-size: 3.75rem;
  }

  .benefit-grid {
    column-gap: 3rem;
    row-gap: 2rem;
  }

  .benefit-item,
  .path-item {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    padding: 1.25rem 0 0;
  }

  .benefit-item p,
  .path-item p {
    line-height: 1.75rem;
  }

  .partner-form {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 980px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 0;
  }

  .partner-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .partner-copy {
    padding: 3rem 1rem 2.5rem;
    scroll-snap-align: start;
  }

  .partner-title {
    font-size: 1.875rem;
  }

  .partner-secondary {
    font-size: 0.875rem;
    line-height: 1.75rem;
  }

  .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .partner-audience-line {
    margin-top: 1.5rem;
  }

  .content-section {
    margin-top: 2.25rem;
  }

  .benefit-grid,
  .model-list,
  .keep-list {
    gap: 0;
  }

  .benefit-item,
  .path-item,
  .keep-list li {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0;
    background: transparent;
    padding: 1.25rem 0;
  }

  .benefit-item:first-child,
  .path-item:first-child,
  .keep-list li:first-child {
    border-top: 0;
  }

  .benefit-item h3,
  .path-item h3 {
    font-size: 1.25rem;
  }

  .benefit-item p,
  .path-item p {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.75rem;
  }

  .model-list li {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0;
    background: transparent;
    padding: 1rem 0;
    font-size: 1rem;
    line-height: 1.75rem;
  }

  .model-list li:first-child {
    border-top: 0;
  }

  .partner-form-wrap {
    display: flex;
    min-height: 100svh;
    align-items: stretch;
    background: var(--rf-site-background);
    padding-right: 0;
    padding-left: 0;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .partner-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-right: 1rem;
    padding-left: 1rem;
    box-shadow: none;
    max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-top: max(28px, calc(18px + env(safe-area-inset-top)));
    padding-bottom: max(28px, calc(18px + env(safe-area-inset-bottom)));
  }

  .form-title {
    margin-top: 0.5rem;
    font-size: 1.5rem;
  }

  .form-summary {
    display: none;
  }

  .partner-form > .partner-eyebrow {
    display: none;
  }

  .lead-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .field-grid {
    gap: 0.75rem;
  }

  .lead-form label,
  .field-label {
    margin-bottom: 0.375rem;
    font-size: 13px;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    min-height: 48px;
    border-radius: 13px;
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
  }

  .lead-form textarea {
    min-height: 96px;
  }

  .choice-grid {
    gap: 0.5rem;
  }

  .choice-pill {
    min-height: 44px;
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
  }

  .consent-card {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.75rem;
    border-radius: 18px;
    padding: 0.875rem;
    font-size: 13px;
    line-height: 1.25rem;
  }

  .submit-button {
    min-height: 50px;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  body.invest-form-fullscreen > header > .lg\:hidden > .fixed,
  body.invest-form-fullscreen > header > .lg\:hidden > nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-120%);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.invest-form-fullscreen > header > .lg\:hidden > nav {
    transform: translateY(120%);
  }

  body:not(.invest-form-fullscreen) > header > .lg\:hidden > .fixed,
  body:not(.invest-form-fullscreen) > header > .lg\:hidden > nav {
    transition: opacity 160ms ease, transform 160ms ease;
  }
}
