.credit-page {
   --credit-night: oklch(15% 0.055 294);
   --credit-purple: oklch(52% 0.25 297);
   --credit-purple-dark: oklch(35% 0.18 297);
   --credit-lilac: oklch(93.5% 0.045 306);
   --credit-paper: oklch(98.8% 0.006 305);
   --credit-warm: oklch(96.8% 0.022 82);
   --credit-mint: oklch(74% 0.12 158);
   --credit-line: oklch(79% 0.045 303 / 0.48);
}

.credit-page main {
   overflow: clip;
}

.credit-page .site-header {
   background: var(--credit-night);
}

.credit-page main h1,
.credit-page main h2,
.credit-page main h3 {
   font-family: var(--font-display);
   letter-spacing: -0.055em;
}

.credit-page main h1 span,
.credit-page main h2 span {
   color: var(--lavender-200);
}

.credit-hero {
   min-height: calc(100svh - 84px);
   display: grid;
   align-items: center;
   background: var(--credit-night);
   color: var(--paper);
   padding-block: clamp(64px, 7vw, 104px);
}

.credit-hero-grid {
   display: grid;
   gap: clamp(44px, 7vw, 96px);
   align-items: center;
}

.credit-hero .eyebrow,
.credit-close .eyebrow {
   color: var(--lavender-200);
}

.credit-hero h1 {
   max-width: 11.5ch;
   margin-top: 18px;
   font-size: clamp(3.25rem, 6.4vw, 6rem);
   line-height: 0.94;
}

.credit-hero-lead {
   max-width: 58ch;
   margin-top: 28px;
   color: var(--night-text);
   font-size: clamp(1rem, 1.8vw, 1.2rem);
   line-height: 1.72;
}

.credit-hero .button-row {
   margin-top: 32px;
}

.credit-text-link {
   min-height: 52px;
   display: inline-flex;
   gap: 10px;
   align-items: center;
   color: var(--paper);
   font-weight: 800;
   text-underline-offset: 5px;
}

.credit-text-link span {
   color: var(--lavender-200);
}

.credit-hero-notes {
   display: flex;
   flex-wrap: wrap;
   gap: 12px 24px;
   margin-top: 26px;
   color: var(--night-text);
   font-size: 0.78rem;
   font-weight: 720;
   list-style: none;
}

.credit-hero-notes li {
   display: flex;
   gap: 8px;
   align-items: center;
}

.credit-hero-notes span {
   color: var(--credit-mint);
}

.credit-hero-art {
   margin: 0;
}

.credit-hero-art img {
   width: 100%;
   height: auto;
   border: 1px solid oklch(86% 0.06 302 / 0.18);
   border-radius: clamp(24px, 4vw, 42px);
   box-shadow: 0 36px 90px oklch(5% 0.03 294 / 0.34);
}

.credit-hero-art figcaption {
   margin-top: 14px;
   color: var(--lavender-200);
   font-size: 0.72rem;
   font-weight: 760;
   letter-spacing: 0.02em;
   text-align: right;
}

.credit-incentive,
.two-loans,
.credit-ladder {
   padding-block: clamp(88px, 11vw, 156px);
}

.credit-incentive {
   background: var(--credit-paper);
}

.credit-section-heading {
   display: grid;
   gap: 16px;
}

.credit-section-heading h2,
.credit-ladder-copy h2,
.credit-close h2 {
   max-width: 11ch;
   font-size: clamp(3rem, 6.6vw, 5.8rem);
   line-height: 0.96;
}

.credit-section-heading > p:last-child {
   max-width: 58ch;
   color: var(--ink-soft);
   font-size: 1.05rem;
   line-height: 1.7;
}

.credit-incentive-list {
   margin-top: clamp(50px, 7vw, 88px);
   border-top: 1px solid var(--credit-line);
   list-style: none;
}

.credit-incentive-list li {
   display: grid;
   grid-template-columns: 48px minmax(0, 1fr);
   gap: 22px;
   border-bottom: 1px solid var(--credit-line);
   padding-block: clamp(24px, 4vw, 42px);
}

.credit-incentive-list > li > span {
   color: var(--credit-purple-dark);
   font-family: var(--font-display);
   font-size: clamp(1.8rem, 3vw, 2.7rem);
   font-weight: 850;
   letter-spacing: -0.05em;
   line-height: 0.9;
}

.credit-incentive-list h3 {
   font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.credit-incentive-list p {
   max-width: 52ch;
   margin-top: 8px;
   color: var(--ink-soft);
   line-height: 1.65;
}

.loan-lab {
   background: var(--credit-lilac);
   padding-block: clamp(72px, 9vw, 116px);
}

.loan-lab-shell {
   border: 1px solid var(--credit-line);
   border-radius: clamp(24px, 4vw, 44px);
   background: var(--paper);
   padding: clamp(24px, 5vw, 68px);
   box-shadow: var(--shadow-md);
}

.loan-lab-head {
   display: grid;
   gap: 18px;
}

.loan-lab-head h2 {
   max-width: 10ch;
   margin-top: 12px;
   font-size: clamp(2.6rem, 5vw, 4.6rem);
   line-height: 0.98;
}

.loan-lab-head > p {
   max-width: 40ch;
   color: var(--ink-soft);
   line-height: 1.6;
}

.loan-choice {
   display: grid;
   gap: 10px;
   margin-top: 34px;
   border: 1px solid var(--credit-line);
   border-radius: 20px;
   background: var(--canvas);
   padding: 8px;
}

.loan-choice button {
   min-height: 72px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   border: 0;
   border-radius: 14px;
   background: transparent;
   color: var(--ink);
   padding: 14px 18px 14px 20px;
   cursor: pointer;
   text-align: left;
   transition:
      background-color 200ms var(--ease-out),
      color 200ms var(--ease-out),
      transform 200ms var(--ease-out);
}

.loan-choice button[aria-pressed='true'] {
   background: var(--credit-purple-dark);
   color: var(--paper);
}

.loan-choice-copy {
   display: grid;
   gap: 5px;
}

.loan-choice-copy > span {
   font-size: 0.78rem;
   font-weight: 760;
}

.loan-choice-copy small {
   color: var(--muted);
   font-size: 0.66rem;
   font-weight: 680;
   line-height: 1.35;
}

.loan-choice button[aria-pressed='true'] .loan-choice-copy small {
   color: var(--lavender-200);
}

.loan-choice button strong {
   font-family: var(--font-display);
   font-size: 1.5rem;
}

.loan-choice button:focus-visible {
   outline: 3px solid var(--credit-purple);
   outline-offset: 3px;
}

.loan-lab-result {
   display: grid;
   gap: clamp(34px, 6vw, 72px);
   align-items: center;
   margin-top: 42px;
}

.loan-lab-result.is-updating > * {
   animation: credit-result-in 340ms var(--ease-out) both;
}

@keyframes credit-result-in {
   from {
      opacity: 0.35;
      transform: translateY(8px);
   }
}

.loan-lab-kicker,
.loan-label {
   color: var(--credit-purple-dark);
   font-size: 0.7rem;
   font-weight: 850;
   letter-spacing: 0.1em;
   text-transform: uppercase;
}

.loan-lab-copy h3 {
   max-width: 14ch;
   margin-top: 12px;
   font-size: clamp(2rem, 4vw, 3.6rem);
   line-height: 1;
}

.loan-lab-copy > p:nth-of-type(2) {
   max-width: 55ch;
   margin-top: 18px;
   color: var(--ink-soft);
   line-height: 1.7;
}

.loan-outcomes {
   display: grid;
   gap: 10px;
   margin-top: 28px;
}

.loan-outcomes p {
   display: flex;
   justify-content: space-between;
   gap: 18px;
   border-bottom: 1px solid var(--credit-line);
   padding-block: 12px;
}

.loan-outcomes span {
   color: var(--muted);
   font-size: 0.78rem;
   font-weight: 720;
}

.loan-product {
   border-radius: 28px;
   background: var(--credit-night);
   color: var(--paper);
   padding: clamp(22px, 4vw, 36px);
   box-shadow: 0 24px 60px oklch(16% 0.07 296 / 0.22);
}

.loan-product-top,
.loan-product-amount,
.loan-product-due {
   display: flex;
   justify-content: space-between;
   gap: 20px;
   align-items: center;
}

.loan-product-top {
   color: var(--lavender-200);
   font-size: 0.72rem;
   font-weight: 800;
}

.loan-product-top b {
   border-radius: 999px;
   background: oklch(29% 0.1 297);
   padding: 7px 10px;
   color: var(--paper);
}

.loan-product-amount {
   margin-top: 28px;
   border-bottom: 1px solid oklch(90% 0.03 306 / 0.16);
   padding-bottom: 24px;
}

.loan-product-amount span,
.loan-product-due span {
   color: var(--night-text);
   font-size: 0.78rem;
}

.loan-product-amount strong {
   font-family: var(--font-display);
   font-size: clamp(2.4rem, 5vw, 4rem);
}

.loan-product-due {
   min-height: 74px;
}

.loan-product-due strong {
   max-width: 15ch;
   font-size: 0.86rem;
   text-align: right;
}

.loan-product-route {
   display: grid;
   grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
   gap: 8px;
   align-items: center;
   margin-top: 18px;
}

.loan-product-route span {
   color: var(--night-text);
   font-size: 0.6rem;
   font-weight: 790;
}

.loan-product-route .is-done {
   color: var(--credit-mint);
}

.loan-product-route i {
   height: 1px;
   background: oklch(90% 0.03 306 / 0.2);
}

.loan-product > p {
   margin-top: 24px;
   color: var(--lavender-200);
   font-size: 0.72rem;
   font-weight: 740;
}

.loan-lab-note {
   margin-top: 18px;
   color: var(--muted);
   font-size: 0.7rem;
   line-height: 1.5;
}

.two-loans {
   background: var(--credit-paper);
}

.loan-compare {
   display: grid;
   gap: 0;
   margin-top: clamp(48px, 7vw, 84px);
   border-block: 1px solid var(--credit-line);
}

.loan-compare article {
   padding: clamp(32px, 5vw, 58px) 0;
}

.loan-compare .trust-loan {
   border-bottom: 1px solid var(--credit-line);
}

.loan-compare .credit-loan {
   color: var(--ink);
}

.loan-compare h3 {
   max-width: 12ch;
   margin-top: 14px;
   font-size: clamp(2rem, 4vw, 3.2rem);
   line-height: 1;
}

.loan-compare article > p:nth-of-type(2) {
   max-width: 52ch;
   margin-top: 18px;
   color: var(--ink-soft);
   line-height: 1.7;
}

.loan-compare dl {
   margin-top: 32px;
}

.loan-compare dl div {
   display: grid;
   grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
   gap: 18px;
   border-top: 1px solid var(--credit-line);
   padding-block: 14px;
}

.loan-compare dt {
   color: var(--muted);
   font-size: 0.7rem;
   font-weight: 800;
}

.loan-compare dd {
   font-size: 0.86rem;
   font-weight: 760;
   line-height: 1.5;
}

.credit-ladder {
   background: var(--credit-warm);
}

.credit-ladder-grid {
   display: grid;
   gap: clamp(52px, 8vw, 112px);
   align-items: start;
}

.credit-ladder-copy > p:nth-of-type(2) {
   max-width: 57ch;
   margin-top: 24px;
   color: var(--ink-soft);
   line-height: 1.75;
}

.credit-ladder-rule {
   display: flex;
   flex-wrap: wrap;
   gap: 10px 14px;
   align-items: center;
   margin-top: 30px;
   border-block: 1px solid var(--credit-line);
   padding-block: 16px;
   color: var(--ink) !important;
   font-size: 0.76rem;
   font-weight: 780;
}

.credit-ladder-rule b {
   color: var(--credit-purple-dark);
   font-family: var(--font-display);
   font-size: 1.1rem;
}

.credit-ladder-rule strong {
   color: var(--credit-purple-dark);
}

.credit-ladder-warning {
   margin-top: 28px;
   border: 1px solid oklch(72% 0.09 75 / 0.5);
   border-radius: 16px;
   background: var(--amber-soft);
   padding: 18px 20px;
   color: var(--ink) !important;
   font-size: 0.88rem;
}

.credit-ladder-steps {
   position: relative;
   border-top: 1px solid var(--credit-line);
   list-style: none;
}

.credit-ladder-steps::before {
   position: absolute;
   top: 30px;
   bottom: 30px;
   left: 8px;
   width: 2px;
   background: var(--credit-line);
   content: '';
}

.credit-ladder-steps li {
   display: grid;
   grid-template-columns: 18px 76px 78px minmax(0, 1fr);
   gap: 16px;
   align-items: center;
   border-bottom: 1px solid var(--credit-line);
   padding-block: 20px;
}

.credit-ladder-steps li::before {
   z-index: 1;
   width: 18px;
   height: 18px;
   border: 4px solid var(--credit-warm);
   border-radius: 50%;
   background: var(--credit-line);
   box-shadow: 0 0 0 1px var(--credit-line);
   content: '';
}

.credit-ladder-steps li.is-current::before {
   background: var(--credit-purple-dark);
   box-shadow: 0 0 0 1px var(--credit-purple-dark);
}

.credit-ladder-steps span {
   color: var(--muted);
   font-size: 0.72rem;
   font-weight: 800;
}

.credit-ladder-steps strong {
   font-family: var(--font-display);
   font-size: 1.8rem;
}

.credit-ladder-steps small {
   color: var(--ink-soft);
   font-size: 0.74rem;
   line-height: 1.45;
}

.credit-ladder-steps .is-current strong {
   color: var(--credit-purple-dark);
}

.credit-close {
   background: var(--credit-purple-dark);
   color: var(--paper);
   padding-block: clamp(86px, 11vw, 148px);
}

.credit-close-grid {
   display: grid;
   gap: clamp(38px, 8vw, 112px);
   align-items: end;
}

.credit-close-grid > div:last-child > p {
   max-width: 54ch;
   color: var(--night-text);
   font-size: 1.05rem;
   line-height: 1.72;
}

.credit-close .button-row {
   margin-top: 28px;
}

@media (min-width: 760px) {
   .credit-incentive .container {
      display: grid;
      grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
      gap: clamp(54px, 8vw, 118px);
      align-items: start;
   }

   .credit-incentive-list {
      margin-top: 0;
   }

   .loan-lab-head,
   .credit-close-grid {
      grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
   }

   .loan-choice,
   .loan-lab-result,
   .loan-compare {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .loan-compare article {
      padding-inline: clamp(28px, 4vw, 58px);
   }

   .loan-compare .trust-loan {
      border-right: 1px solid var(--credit-line);
      border-bottom: 0;
      padding-left: 0;
   }

   .loan-compare .credit-loan {
      padding-right: 0;
   }

   .credit-ladder-grid {
      grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
   }
}

@media (min-width: 1000px) {
   .credit-hero-grid {
      grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
   }
}

@media (min-width: 1000px) and (max-height: 800px) {
   .credit-hero {
      padding-block: 48px;
   }

   .credit-hero h1 {
      font-size: clamp(3.25rem, 5.6vw, 5.3rem);
   }

   .credit-hero-lead {
      margin-top: 20px;
      font-size: 1rem;
      line-height: 1.58;
   }

   .credit-hero .button-row {
      margin-top: 24px;
   }

   .credit-hero-notes {
      margin-top: 18px;
   }
}

@media (min-width: 760px) and (max-width: 999px) {
   .credit-hero-copy,
   .credit-hero-art {
      max-width: 720px;
   }
}

@media (max-width: 759px) {
   .credit-hero {
      min-height: auto;
      padding-top: 68px;
   }

   .credit-hero-art figcaption {
      text-align: left;
   }

   .credit-hero-art img {
      height: auto;
   }

   .loan-choice button {
      min-height: 62px;
   }

   .loan-product-route {
      gap: 5px;
   }

   .credit-ladder-rule {
      display: grid;
      grid-template-columns: auto auto 1fr;
   }

   .credit-ladder-rule b:nth-of-type(2) {
      grid-column: 2;
   }

   .credit-ladder-rule strong {
      grid-column: 3;
   }

   .loan-compare dl div {
      grid-template-columns: 1fr;
      gap: 5px;
   }

   .credit-ladder-steps li {
      grid-template-columns: 18px 58px 58px minmax(0, 1fr);
      gap: 10px;
   }

   .credit-close .button-row,
   .credit-close .button {
      width: 100%;
   }
}

@media (max-width: 430px) {
   .credit-hero h1 {
      font-size: clamp(3rem, 14vw, 4rem);
   }

   .credit-section-heading h2,
   .credit-ladder-copy h2,
   .credit-close h2 {
      font-size: clamp(2.8rem, 13vw, 3.8rem);
   }

   .credit-ladder-steps li {
      grid-template-columns: 18px 50px 54px minmax(0, 1fr);
   }

   .credit-ladder-steps strong {
      font-size: 1.45rem;
   }
}

@media (hover: hover) and (pointer: fine) {
   .loan-choice button:hover:not([aria-pressed='true']) {
      background: var(--credit-lilac);
      transform: translateY(-1px);
   }

   .credit-hero-art img {
      transition: transform 520ms var(--ease-out);
   }

   .credit-hero-art:hover img {
      transform: translateY(-4px);
   }
}

@media (prefers-reduced-motion: reduce) {
   .loan-lab-result.is-updating > * {
      animation: none;
   }
}
