:root {
  --primary: #ec297b;
  --primary-dark: #b01860;
  --primary-soft: #ffe4f1;
  --ink: #111827;
  --body: #475569;
  --muted: #64748b;
  --line: #d9dee7;
  --line-soft: #edf0f4;
  --white: #ffffff;
  --shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Ubuntu, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 7px 26px rgba(15, 23, 42, 0.04);
}

.brand {
  width: 228px;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 36px);
  color: #344054;
  font-size: 1rem;
  font-weight: 700;
}

.desktop-nav a:not(.nav-cta):hover {
  color: var(--primary-dark);
}

.nav-cta,
.apply-button,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: var(--primary);
  border-radius: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.apply-button:hover,
.footer-cta:hover {
  background: var(--primary-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #334155;
}

.menu-button svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 150px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.88) 0, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 75% 38%, rgba(236, 41, 123, 0.08), rgba(236, 41, 123, 0) 42%),
    linear-gradient(180deg, #fff9fc 0%, #ffffff 36%, #ffffff 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  align-items: center;
  gap: clamp(54px, 8vw, 96px);
  width: min(1248px, calc(100% - 48px));
  min-height: calc(100vh - 280px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 610px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 24px;
  margin-bottom: 28px;
  color: #101828;
  background: var(--white);
  border: 1px solid #cfd6df;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-pill svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(4rem, 5.7vw, 5.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  color: var(--primary);
}

.hero-copy p {
  max-width: 590px;
  margin-bottom: 28px;
  color: var(--body);
  font-size: clamp(1.2rem, 1.65vw, 1.38rem);
  line-height: 1.45;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-size: 0.86rem;
}

.google {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.stars {
  color: #facc15;
  font-size: 1rem;
  letter-spacing: 2px;
  line-height: 1;
}

.rating strong {
  color: var(--ink);
  font-weight: 800;
}

.loan-card {
  position: relative;
  padding: clamp(30px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.loan-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  filter: blur(22px);
}

.card-heading {
  margin-bottom: 30px;
  text-align: center;
}

.card-heading h2 {
  margin-bottom: 6px;
  color: #030712;
  font-size: clamp(1.65rem, 2.1vw, 1.95rem);
  line-height: 1.18;
}

.card-heading p {
  margin-bottom: 0;
  color: var(--body);
  font-size: 1.05rem;
}

.amount-label,
.purpose-label {
  display: block;
  margin: 0 0 10px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 800;
}

.amount-field {
  position: relative;
  margin-bottom: 10px;
}

.amount-field span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #94a3b8;
  transform: translateY(-50%);
}

.amount-field input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 34px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

.amount-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(236, 41, 123, 0.16);
}

.amount-error {
  margin: 0 0 18px;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.purpose-grid button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  color: #334155;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.purpose-grid button:hover,
.purpose-grid button:focus-visible,
.purpose-grid button[aria-pressed="true"] {
  border-color: var(--primary);
  background: #fff4fa;
  outline: none;
}

.purpose-grid button[aria-pressed="true"] {
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(236, 41, 123, 0.34);
}

.purpose-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.purpose-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.apply-button {
  width: 100%;
  min-height: 61px;
  font-size: 1.2rem;
}

.modal {
  width: min(620px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.modal-shell {
  position: relative;
  max-height: min(820px, calc(100vh - 32px));
  padding: clamp(28px, 4vw, 40px);
  overflow: auto;
  background:
    radial-gradient(circle at 92% 6%, rgba(236, 41, 123, 0.13), rgba(236, 41, 123, 0) 34%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.3);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--primary-dark);
  border-color: var(--primary);
  outline: none;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-heading {
  padding-right: 42px;
}

.modal-heading h2,
.form-success h2,
.privacy-shell h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.modal-heading p:not(.section-kicker),
.privacy-copy p,
.form-success p {
  color: var(--body);
  font-size: 1.04rem;
}

.lead-summary {
  display: grid;
  gap: 4px;
  margin: 26px 0;
  padding: 18px 20px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #ffc6df;
  border-radius: 14px;
  font-weight: 800;
}

.lead-summary span {
  color: #7a1745;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(236, 41, 123, 0.16);
}

.lead-form.was-validated .field input:invalid {
  border-color: #f04438;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 6px 0 24px;
  color: var(--body);
  font-size: 0.91rem;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.consent-row a,
.privacy-copy a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error {
  margin: -4px 0 18px;
  padding: 12px 14px;
  color: #912018;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
}

.apply-button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-success {
  display: grid;
  justify-items: center;
  padding: 34px 0 8px;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
}

.success-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.form-success .apply-button,
.privacy-shell .apply-button {
  width: auto;
  min-height: 50px;
  margin-top: 12px;
  padding-inline: 28px;
  font-size: 1rem;
}

.privacy-modal {
  width: min(680px, calc(100% - 32px));
}

.privacy-copy {
  display: grid;
  gap: 12px;
  margin: 20px 0 18px;
}

.privacy-copy p {
  margin-bottom: 0;
}

.content-section {
  position: relative;
  padding: clamp(76px, 9vw, 118px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}

.content-section > .section-grid,
.content-section > .section-heading,
.content-section > .option-cards,
.content-section > .steps-list,
.content-section > .contact-panel {
  width: min(1248px, calc(100% - 48px));
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-section h2 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-copy p,
.section-heading > p,
.contact-panel p {
  max-width: 660px;
  color: var(--body);
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #ffc6df;
  border-radius: 999px;
  font-weight: 800;
}

.tinted-section {
  background:
    radial-gradient(circle at 80% 12%, rgba(236, 41, 123, 0.1), rgba(236, 41, 123, 0) 34%),
    #fff8fc;
}

.section-heading {
  margin-bottom: 36px;
}

.option-cards,
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.option-cards article,
.steps-list li {
  min-height: 270px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.content-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 10px;
}

.content-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.option-cards h3,
.steps-list h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.15;
}

.option-cards p,
.steps-list p {
  margin-bottom: 0;
  color: var(--body);
}

.steps-list {
  padding: 0;
  list-style: none;
}

.steps-list span {
  display: block;
  margin-bottom: 48px;
  color: var(--primary);
  font-weight: 900;
}

.contact-section {
  background: #0f172a;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.42fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(34px, 5vw, 54px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 18%, rgba(236, 41, 123, 0.32), rgba(236, 41, 123, 0) 44%),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.contact-panel h2,
.contact-panel p {
  color: var(--white);
}

.contact-panel p {
  color: #dbe4ee;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-actions .apply-button {
  min-height: 56px;
  padding-inline: 22px;
  font-size: 1rem;
}

.contact-actions span {
  color: #dbe4ee;
  text-align: center;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) minmax(160px, 0.75fr) minmax(190px, 0.75fr);
  gap: clamp(42px, 8vw, 100px);
  width: min(1248px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 46px;
}

.footer-about {
  max-width: 590px;
}

.footer-about img {
  margin-bottom: 20px;
}

.footer-about p,
footer li,
.footer-bottom p {
  color: var(--body);
  font-size: 1rem;
}

footer h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

footer a:hover {
  color: var(--primary-dark);
}

.compact {
  margin-top: 22px;
}

.footer-cta {
  width: fit-content;
  min-height: 44px;
  margin-top: 22px;
  padding-inline: 20px;
  font-size: 0.98rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1248px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 980px) {
  .site-header {
    height: 100px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding: 142px 0 120px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 72px;
    width: min(680px, calc(100% - 32px));
  }

  .hero-copy {
    max-width: 100%;
  }

  .loan-card {
    width: 100%;
  }

  .footer-inner,
  .footer-bottom,
  .content-section > .section-grid,
  .content-section > .section-heading,
  .content-section > .option-cards,
  .content-section > .steps-list,
  .content-section > .contact-panel {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 32px));
  }

  .section-grid,
  .option-cards,
  .steps-list,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    width: 200px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .hero-inner {
    gap: 70px;
  }

  .hero-pill {
    padding-inline: 18px;
    margin-bottom: 24px;
    font-size: 0.86rem;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(2.3rem, 10vw, 3.35rem);
    line-height: 1.05;
  }

  .hero-copy p {
    font-size: 1.18rem;
  }

  .rating {
    flex-wrap: wrap;
    gap: 8px;
  }

  .stars {
    letter-spacing: 1px;
  }

  .loan-card {
    padding: 32px;
    border-radius: 16px;
  }

  .card-heading h2 {
    font-size: 1.6rem;
  }

  .purpose-grid {
    gap: 12px;
  }

  .purpose-grid button {
    display: grid;
    justify-items: center;
    min-height: 66px;
    padding: 10px;
    text-align: center;
    line-height: 1.25;
  }

  .purpose-icon {
    width: 34px;
    height: 34px;
  }

  .purpose-icon svg {
    width: 21px;
    height: 21px;
  }

  .modal {
    width: min(100% - 24px, 430px);
    max-height: calc(100vh - 24px);
  }

  .modal-shell {
    max-height: calc(100vh - 24px);
    padding: 28px;
    border-radius: 16px;
  }

  .modal-heading {
    padding-right: 32px;
  }

  .modal-heading h2,
  .form-success h2,
  .privacy-shell h2 {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding-top: 50px;
  }

  .content-section {
    padding: 62px 0;
  }

  .content-section > .section-grid,
  .content-section > .section-heading,
  .content-section > .option-cards,
  .content-section > .steps-list,
  .content-section > .contact-panel {
    width: min(100% - 32px, 390px);
  }

  .content-section h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .option-cards article,
  .steps-list li {
    min-height: auto;
    padding: 24px;
  }

  .contact-panel {
    padding: 28px;
  }
}
