#financing,
#connect,
#vip-dialog {
  --finance-accent: #d47461;
  --finance-line: #ffffff23;
  --finance-muted: #c5c1c3;
  --finance-chrome: linear-gradient(151deg, #fff 10%, #e9e7e5 42%, #b5b1b0 57%, #f7f5f2 80%, #d5d0ce);
  --finance-glass: linear-gradient(137deg, #ffffff0c, #ffffff02 44%, #ffffff06), #131314c9;
  --finance-shadow: inset 0 1px 0 #ffffff1f, inset 0 -1px 0 #ffffff06, 0 32px 75px -22px #000d, 0 10px 22px -12px #000b;
}

#financing,
#connect {
  position: relative;
  isolation: isolate;
  color: #f8f7f5;
  background:
    radial-gradient(ellipse at 94% 22%, #731d2142, transparent 53%),
    radial-gradient(ellipse at 18% 80%, #52596418, transparent 49%),
    linear-gradient(180deg, #0d0c0e, #09090a 76%);
  padding-block: clamp(78px, 9vw, 138px) clamp(60px, 7vw, 108px);
}

#financing::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #09090af0 3%, #09090aaa 64%, #09090a80),
    url("./assets/driveforce-escalade-v-concept-v5.webp") center 47% / cover no-repeat;
  opacity: .46;
  content: "";
  pointer-events: none;
}

#financing::after,
#connect::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 40%, #8d30242e, transparent 50%),
    linear-gradient(116deg, transparent 34%, #e5e1d808 42%, transparent 49%);
  content: "";
  pointer-events: none;
}

#connect::before {
  background:
    radial-gradient(ellipse at 68% 40%, #8b46382a, transparent 47%),
    radial-gradient(ellipse at 8% 82%, #8b919e16, transparent 41%),
    linear-gradient(118deg, transparent 31%, #e7e5df0b 38%, transparent 44%);
}

#financing .finance-layout { align-items: center; gap: clamp(30px, 5.5vw, 88px); }
#financing .section-tag,
#vip-dialog .section-tag { color: var(--finance-accent); }

#financing .finance-intro h2 {
  color: #f8f7f5;
  font-size: clamp(42px, 4.7vw, 72px);
  line-height: 1.04;
  letter-spacing: -.058em;
  margin-block: 25px 24px;
  max-width: 13ch;
  font-weight: 750;
  text-shadow: 0 8px 28px #0006;
}

#financing .finance-intro h2 strong,
#vip-dialog h2 strong,
#vip-invitation-title {
  color: #f8f7f5;
  background: var(--finance-chrome);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#financing .finance-intro p,
#connect .connection-aside > p {
  max-width: 35ch;
  color: var(--finance-muted);
  font-size: 16px;
  line-height: 1.8;
}

#financing .finance-note {
  margin-block: 22px 12px;
  padding-left: 16px;
  border-color: #8e4037;
  font-size: 14px;
  line-height: 1.7;
}

#financing .underlined-link { color: #f8f7f5; border-color: #ffffff4f; font-size: 13px; line-height: 1.6; }
#financing .underlined-link span { color: var(--finance-accent); }

#financing .finance-explorer,
#financing .vip-invitation,
#connect .intake-card,
#vip-dialog {
  background: var(--finance-glass);
  color: #f8f7f5;
  border: 1px solid var(--finance-line);
  border-top-color: #ffffff47;
  border-radius: 26px;
  box-shadow: var(--finance-shadow);
}

#financing .finance-explorer,
#financing .vip-invitation,
#connect .intake-card {
  transform: perspective(1100px) rotateX(var(--panel-rotate-x, 0deg)) rotateY(var(--panel-rotate-y, 0deg)) translateY(var(--panel-lift, 0px));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #financing .finance-explorer,
  #financing .vip-invitation,
  #connect .intake-card,
  #vip-dialog {
    background: linear-gradient(137deg, #ffffff0d, #ffffff02 44%, #ffffff05), #13131494;
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    backdrop-filter: blur(24px) saturate(125%);
  }
}

#financing .finance-explorer { position: relative; padding: clamp(20px, 3.3vw, 42px); }
#financing .finance-explorer h3 {
  margin: 0 0 24px;
  color: #f8f7f5;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.22;
  letter-spacing: -.04em;
  font-weight: 650;
}

#financing .credit-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#financing .credit-path,
#vip-dialog .vip-format-list button {
  color: #e9e6e5;
  background: linear-gradient(135deg, #ffffff0a, #ffffff02 65%);
  border: 1px solid #ffffff22;
  border-top-color: #ffffff36;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #ffffff07, 0 8px 15px -11px #000b;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

#financing .credit-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 16px;
}

#financing .credit-path b {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: .025em;
  font-weight: 650;
  overflow-wrap: anywhere;
}

#financing .credit-path i { flex: none; font-size: 16px; color: #b4aeab; }
#financing [data-credit-path="unsure"] { grid-column: 1 / -1; }

#financing .credit-path[aria-pressed="true"],
#vip-dialog .vip-format-list button[aria-pressed="true"] {
  color: #fff9f5;
  border-color: #b06051;
  background: linear-gradient(130deg, #8c332c4f, #69231d1f 85%);
  box-shadow: inset 0 1px #d6a79a29, 0 10px 22px -14px #a52b2454;
}

#financing .credit-path[aria-pressed="true"] i,
#vip-dialog .vip-format-list button[aria-pressed="true"] svg { color: #e5b7a9; }

#financing .credit-guidance {
  margin-top: 22px;
  border: 1px solid #ffffff17;
  border-radius: 17px;
  background: linear-gradient(140deg, #08080a80, #15141654);
  box-shadow: inset 0 1px 12px #0004;
  padding: clamp(20px, 2.5vw, 30px);
  min-height: 0;
}

#financing .credit-guidance h4 {
  color: #f8f7f5;
  margin: 0 0 13px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.035em;
}

#financing .credit-guidance p { color: var(--finance-muted); font-size: 15px; line-height: 1.8; }
#financing .credit-guidance .guidance-next {
  margin: 18px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid #ffffff1c;
  color: #e4d3cc;
  font-size: 14px;
  line-height: 1.75;
}

#financing .vip-invitation {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 50px);
  margin: clamp(38px, 5vw, 74px) 0 0;
  gap: clamp(20px, 3vw, 48px);
}

#financing .vip-invitation::before {
  position: absolute;
  inset: 0 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d29d8b69 52%, #ffffff73 74%, transparent);
  pointer-events: none;
  content: "";
}

#financing .vip-invitation h3 {
  font-size: clamp(26px, 3.3vw, 47px);
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -.048em;
}

#financing .vip-invitation p { color: var(--finance-muted); font-size: 16px; line-height: 1.75; max-width: 55ch; }
#financing .vip-invitation .button,
#vip-dialog .button {
  display: inline-flex;
  min-height: 54px;
  gap: 15px;
  padding-inline: 22px;
  background: var(--finance-chrome);
  border: 1px solid #ffffffbe;
  border-radius: 10px;
  color: #1a1716;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px #50475030, 0 14px 28px -13px #000b;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: .055em;
}

#financing .vip-invitation .button { flex: none; }
#financing .vip-invitation .button:hover,
#vip-dialog .button:hover { filter: brightness(1.06); }
#financing :focus-visible,
#connect :focus-visible,
#vip-dialog :focus-visible { outline: 2px solid #e8d5cc; outline-offset: 4px; }

#connect .intake-card { padding: clamp(24px, 3.6vw, 48px); }
#connect .intake-top { font-size: 12px; line-height: 1.6; letter-spacing: .1em; }
#connect .form-step-label { font-size: 12px; letter-spacing: .12em; }
#connect .form-step h3 {
  font-size: clamp(30px, 3vw, 43px);
  margin-block: 17px 16px;
  line-height: 1.15;
  font-weight: 600;
}

#connect .form-step > p { font-size: 16px; line-height: 1.75; margin-bottom: 25px; }
#connect .choice-list { gap: 10px; }
#connect .tile-choice > span {
  padding: 18px 48px 18px 18px;
  border-radius: 12px;
  border-color: #ffffff21;
  border-top-color: #ffffff2c;
  background: linear-gradient(135deg, #ffffff08, #ffffff02);
  box-shadow: inset 0 1px #ffffff05, 0 7px 13px -11px #000b;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

#connect .tile-choice b { font-size: 14px; }
#connect .tile-choice small { font-size: 14px; line-height: 1.5; }
#connect .tile-choice input { right: 18px; }
#connect .tile-choice input:checked + span {
  border-color: #a75243;
  background: linear-gradient(130deg, #8c332c37, #69231d0e 85%);
  box-shadow: inset 3px 0 #b75745, 0 9px 22px -14px #000a;
}

#connect .input-label { font-size: 14px; line-height: 1.6; margin-top: 22px; }
#connect .input-label > span { font-size: 12px; letter-spacing: .07em; }
#connect .input-label input,
#connect .form-step select,
#connect #zipcode {
  min-height: 52px;
  border: 1px solid #ffffff33;
  border-radius: 10px;
  background: #09090a73;
  color: #f8f7f5;
  box-shadow: inset 0 2px 8px #0003;
  font-size: 16px;
}

#connect .input-label input:focus,
#connect .form-step select:focus,
#connect #zipcode:focus { border-color: #b09a8f; }
#connect .form-step select option { background: #171517; }
#connect .field-hint { font-size: 13px; line-height: 1.65; }
#connect .next-button {
  min-height: 54px;
  border-radius: 10px;
  background: var(--finance-chrome);
  border: 1px solid #ffffffb3;
  box-shadow: inset 0 1px #fff, 0 10px 22px -12px #000b;
  color: #191616;
  font-size: 13px;
  letter-spacing: .055em;
}

#connect .next-button:hover { background: var(--finance-chrome); filter: brightness(1.06); }
#connect .next-button:disabled { opacity: .45; cursor: not-allowed; }
#connect .back-button { font-size: 13px; }
#connect .intake-disclosure p { font-size: 13px; line-height: 1.7; }
#connect .disclosure-small { font-size: 12px; line-height: 1.8; }
#connect .consent-check { font-size: 14px; line-height: 1.7; }
#connect .connection-promises { font-size: 13px; line-height: 1.75; }

#vip-dialog {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  width: min(680px, calc(100% - 32px));
  margin: auto;
  box-shadow: inset 0 1px #ffffff38, 0 45px 100px #000b;
}

#vip-dialog::backdrop { background: #060607b8; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#vip-dialog .vip-dialog-inner { padding: clamp(26px, 4.5vw, 50px); }
#vip-dialog .dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff38;
  background: #ffffff0a;
  color: #fff;
  border-radius: 50%;
}

#vip-dialog h2 {
  font-weight: 750;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin-block: 24px 20px;
}

#vip-dialog .vip-format-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px 20px; }
#vip-dialog .vip-format-list button {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 14px 10px;
}

#vip-dialog .vip-format-list b { font-size: 14px; letter-spacing: .025em; }
#vip-dialog .vip-format-list svg {
  width: 24px;
  height: 24px;
  fill: none;
  color: #d7d0ca;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#vip-dialog .vip-format-status {
  padding: 18px;
  color: #e4d3cc;
  border-color: #824238;
  border-radius: 12px;
  background: #09090a6b;
  font-size: 15px;
  line-height: 1.7;
}

#vip-dialog .vip-disclosure { margin-block: 16px 0; color: var(--finance-muted); font-size: 14px; line-height: 1.7; }

@media (hover: hover) and (pointer: fine) {
  #financing .credit-path:hover,
  #vip-dialog .vip-format-list button:hover {
    border-color: #c8b5aa80;
    background: linear-gradient(135deg, #ffffff10, #ffffff05);
    box-shadow: inset 0 1px #ffffff29, 0 13px 20px -14px #000c;
    transform: translateY(-3px);
  }
  #connect .tile-choice:hover > span { border-color: #c8b5aa80; background: #ffffff08; transform: translateY(-2px); }
}

@media (max-width: 650px) {
  #financing .finance-intro h2 { max-width: none; font-size: clamp(38px, 11vw, 58px); }
  #financing .finance-explorer,
  #financing .vip-invitation,
  #connect .intake-card,
  #vip-dialog { border-radius: 20px; }
  #financing .credit-path { padding: 13px; gap: 6px; min-height: 80px; }
  #financing .credit-path b { font-size: 14px; }
  #financing .credit-path i { display: none; }
  #financing .vip-invitation { align-items: stretch; flex-direction: column; }
  #financing .vip-invitation .button { width: 100%; justify-content: space-between; white-space: normal; }
  #connect .intake-top { flex-wrap: wrap; }
  #vip-dialog .vip-format-list { gap: 8px; }
  #vip-dialog .vip-format-list button { padding: 14px 6px; min-height: 100px; }
  #vip-dialog .vip-format-list b { font-size: 14px; letter-spacing: 0; }
  #vip-dialog .button { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

@media (max-width: 420px) {
  #vip-dialog .vip-format-list { grid-template-columns: 1fr; }
  #vip-dialog .vip-format-list button {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 64px;
    padding: 16px 18px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  #financing .finance-explorer,
  #financing .vip-invitation,
  #financing button,
  #connect .intake-card,
  #connect .tile-choice > span,
  #vip-dialog,
  #vip-dialog button { transition: none; animation: none; transform: none; }
}

@media (forced-colors: active) {
  #financing .finance-intro h2 strong,
  #vip-dialog h2 strong,
  #vip-invitation-title { -webkit-text-fill-color: currentColor; }
  #financing .credit-path[aria-pressed="true"],
  #connect .tile-choice input:checked + span,
  #vip-dialog .vip-format-list button[aria-pressed="true"] { border: 2px solid Highlight; }
}
