:root {
  --blue: #2161f5;
  --blue-dark: #1749c7;
  --blue-soft: #edf3ff;
  --green: #21a66f;
  --ink: #172033;
  --muted: #667085;
  --line: #e3e8f1;
  --surface: #ffffff;
  --background: #f6f8fc;
  --radius: 18px;
  --container: min(1180px, calc(100% - 40px));
  --shadow: 0 16px 48px rgba(31, 55, 97, 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

[hidden] {
  display: none !important;
}

.container,
.wrap {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand>span:last-child>span {
  color: var(--blue);
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 17px;
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--blue);
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #fff;
}

.brand-mark i:nth-child(1) {
  height: 7px;
}

.brand-mark i:nth-child(2) {
  height: 11px;
}

.brand-mark i:nth-child(3) {
  height: 16px;
  background: #9df5cf;
}

.header-nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

.header-nav a {
  color: #526078;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--blue);
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  font-size: 13px;
}

.header-cta:hover,
.primary-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(33, 97, 245, .22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  padding: 76px 0 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 52%, #f9fbff 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .78fr);
  gap: 72px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #3e5e9a;
  background: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 700;
}

.hero-badge span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 11px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -3.7px;
}

.hero h1 em {
  display: block;
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #44516a;
  font-size: 13px;
  font-weight: 700;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-benefits span {
  color: var(--green);
}

.finder {
  padding: 28px;
  border: 1px solid #dce5f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.finder-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.finder-toggle {
  display: none;
}

.finder-top>div>span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.finder h2 {
  margin: 3px 0 0;
  font-size: 28px;
  letter-spacing: -1.1px;
}

.finder-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.finder-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #e5f8f1;
}

.finder-control {
  margin-top: 22px;
}

.finder-control label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.finder-control output {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.7px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(90deg, var(--blue) 0 18%, #e3e8f1 18% 100%);
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 9px rgba(33, 97, 245, .4);
  cursor: pointer;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 9px rgba(33, 97, 245, .4);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #98a2b3;
  font-size: 10px;
}

.finder-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 14px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--blue-soft);
}

.finder-match>span {
  color: #5b6c8c;
  font-size: 11px;
}

.finder-match strong {
  color: #2b416d;
  font-size: 13px;
}

.finder-match b {
  color: var(--blue);
  font-size: 19px;
}

.finder-button {
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
}

.finder-button span,
.offer-cta__icon,
.modal-cta span {
  font-size: 20px;
}

.finder-note {
  margin: 10px 0 0;
  color: #98a2b3;
  font-size: 10px;
  text-align: center;
}

.lender-preview {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid #dbe4f2;
}

.lender-preview>span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lender-preview>div {
  display: flex;
  gap: 28px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.lender-preview img {
  width: 86px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .58;
}

.offers-section,
.how-section,
.comparison-section,
.safety-section,
.faq-section {
  padding: 96px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading>div:first-child {
  max-width: 690px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.section-heading h2,
.simple-heading h2,
.safety-card h2,
.faq-intro h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -2.1px;
}

.section-heading>div:first-child>p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
}

.catalog-sort {
  min-width: 240px;
}

.catalog-sort>span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-sort select {
  width: 100%;
  padding: 11px 36px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.offer-card:hover {
  border-color: #b8c9ed;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.offer-card[hidden],
.offer-card.is-collapsed {
  display: none;
}

.offer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.offer-label {
  padding: 6px 9px;
  border-radius: 999px;
  color: #31599e;
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.offer-number {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

.offer-logo {
  display: flex;
  align-items: center;
  height: 75px;
  margin: 14px 0;
}

.offer-logo img {
  width: 120px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.offer-amount>span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.offer-amount strong {
  display: block;
  margin-top: 2px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.offer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.offer-stats div {
  padding: 11px;
  border-radius: 10px;
  background: #f7f9fc;
}

.offer-stats dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.offer-stats dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.offer-cta {
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  min-height: 56px;
  padding: 9px 10px 9px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a3d 0%, #ff4f32 100%);
  box-shadow: 0 10px 24px rgba(255, 79, 50, .25);
  font-size: 14px;
  letter-spacing: .1px;
}

.offer-cta::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
  content: "";
  transform: skewX(-20deg);
  transition: left 420ms ease;
}

.offer-cta__icon {
  position: relative;
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  transition: transform 160ms ease;
}

.offer-cta__icon::before {
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #e54328;
  content: "";
  transform: translateX(-1px);
}

.offer-cta__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #e54328;
  border-right: 2px solid #e54328;
  content: "";
  transform: translate(-2px, -50%) rotate(45deg);
}

.offer-cta:hover,
.offer-cta:focus-visible {
  background: linear-gradient(135deg, #ff6c2d 0%, #ec3f27 100%);
  box-shadow: 0 13px 29px rgba(236, 63, 39, .34);
}

.offer-cta:hover::before,
.offer-cta:focus-visible::before {
  left: 118%;
}

.offer-cta:hover .offer-cta__icon,
.offer-cta:focus-visible .offer-cta__icon {
  transform: translateX(2px);
}

.offer-details {
  margin-top: 11px;
  padding: 3px;
  border: 0;
  color: #21adff;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.offer-details:hover {
  text-decoration: none;
}

.show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  margin: 28px auto 0;
  padding: 12px 19px;
  border: 1px solid #cfd7e6;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-empty,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px;
  border: 1px dashed #b9c4d7;
  border-radius: var(--radius);
  text-align: center;
}

.filter-empty strong,
.empty-state strong {
  font-size: 21px;
}

.filter-empty span,
.empty-state span {
  color: var(--muted);
}

.filter-empty button {
  margin-top: 15px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.how-section {
  background: #fff;
}

.simple-heading {
  max-width: 600px;
  margin-bottom: 42px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps>li>span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.steps h3 {
  margin: 2px 0 7px;
  font-size: 18px;
  letter-spacing: -.4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.comparison-section {
  border-top: 1px solid var(--line);
  background: #fff;
}

.comparison-heading {
  align-items: end;
}

.comparison-count {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #31599e;
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 55, 97, .05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.comparison-card:hover {
  border-color: #bed0f2;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.comparison-card__head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fd;
}

.comparison-card__head img {
  width: 68px;
  height: 48px;
  padding: 6px;
  border: 1px solid #e0e6f0;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
}

.comparison-card__head span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.comparison-card__head h3 {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-card__rows {
  margin: 0;
  padding: 4px 17px;
}

.comparison-card__rows>div {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f5;
}

.comparison-card__rows dt {
  color: var(--muted);
  font-size: 10px;
}

.comparison-card__rows dd {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.comparison-example {
  margin: 9px 17px 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--blue-soft);
}

.comparison-example span {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.comparison-example p {
  margin: 0;
  color: #526078;
  font-size: 10px;
  line-height: 1.45;
}

.comparison-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  margin-top: auto;
  padding: 0 17px 17px;
}

.comparison-actions button,
.comparison-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.comparison-actions button {
  border: 1px solid var(--line);
  color: #526078;
  background: #fff;
  cursor: pointer;
}

.comparison-actions a {
  gap: 10px;
  color: #fff;
  background: var(--blue);
}

.comparison-actions a:hover {
  background: var(--blue-dark);
}

.safety-section {
  padding-block: 70px;
}

.safety-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 34px;
  border-radius: 20px;
  color: #fff;
  background: #172033;
}

.safety-card>div {
  display: flex;
  gap: 15px;
  align-items: center;
}

.safety-card .section-kicker {
  color: #a9c2ff;
}

.safety-card h2 {
  font-size: 30px;
  letter-spacing: -1px;
}

.safety-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #172033;
  background: #ffd770;
  font-size: 23px;
  font-weight: 900;
}

.safety-card>p {
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.safety-card>a {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.faq-section {
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 90px;
}

.faq-intro>p:last-child {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.faq-intro a {
  color: var(--blue);
  font-weight: 700;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -5px 50px 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 60px 0 28px;
  color: #fff;
  background: #121a2a;
}

.footer-main {
  display: grid;
  grid-template-columns: .8fr 1fr 1.2fr;
  gap: 45px;
  align-items: start;
  padding-bottom: 38px;
}

.footer-top {
  display: grid;
  grid-template-columns: .8fr 1fr 1.2fr;
  gap: 45px;
  align-items: start;
  padding-bottom: 38px;
}

.brand--footer {
  color: #fff;
}

.footer-main>p {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

.footer-top>p {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

.footer-main nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  font-size: 12px;
  font-weight: 700;
}

.footer-top nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  font-size: 12px;
  font-weight: 700;
}

.footer-main nav a {
  color: rgba(255, 255, 255, .72);
}

.footer-top nav a {
  color: rgba(255, 255, 255, .72);
}

.footer-main nav a:hover {
  color: #fff;
}

.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  padding-top: 22px;
  color: rgba(255, 255, 255, .42);
  font-size: 9px;
}

.footer-bottom span:nth-child(2) {
  text-align: center;
}

.mobile-action {
  display: none;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 42, .72);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(18, 38, 76, .24);
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: 30px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dbe3f0;
  border-radius: 50%;
  color: #667085;
  background: rgba(255, 255, 255, .92);
  font-size: 24px;
  cursor: pointer;
}

.modal-summary {
  overflow: hidden;
  border-radius: 18px;
  background: #f5f8fe;
}

.modal-brand {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px 68px 16px 20px;
}

.modal-logo {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 55, 97, .08);
}

.modal-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.modal-brand>div:last-child>span {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.modal-brand h2 {
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -.8px;
}

.modal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(190px, .85fr);
  gap: 22px;
  align-items: center;
  padding: 16px 20px 20px;
}

.modal-hero>div>span,
.modal-hero>div>strong {
  display: block;
}

.modal-hero>div>span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.modal-hero>div>strong {
  font-size: 19px;
  line-height: 1.15;
}

.modal-hero-cta {
  justify-content: space-between;
  width: 100%;
  padding: 13px 15px;
  font-size: 13px;
}

.modal-tabs {
  display: flex;
  gap: 26px;
  padding: 0 20px;
  border-top: 1px solid #e1e7f2;
}

.modal-tab {
  padding: 14px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #6d788d;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.modal-tab.is-active {
  border-bottom-color: var(--blue);
  color: var(--ink);
}

.modal-panel {
  display: none;
  padding: 23px 3px 4px;
}

.modal-panel.is-active {
  display: block;
}

.modal-panel h3 {
  margin: 0 0 15px;
  font-size: 17px;
  letter-spacing: -.3px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
}

.modal-info-list {
  margin: 0;
}

.modal-info-list>div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.modal-info-list dt {
  color: var(--muted);
  font-size: 11px;
}

.modal-info-list dd {
  max-width: 62%;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.calculation {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 11px;
  background: #eef4ff;
}

.calculation>span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculation p {
  margin: 0;
  color: #526078;
  font-size: 12px;
}

.calculation p strong {
  color: var(--ink);
}

.creditor-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 0;
}

.creditor-data dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.creditor-data dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.modal-documents {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.modal-documents>span {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-documents a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.modal-documents a b {
  font-size: 15px;
}

.modal-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #fff8e7;
}

.modal-warning>span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #6e4a00;
  background: #ffd56b;
  font-size: 12px;
  font-weight: 900;
}

.modal-warning p {
  margin: 1px 0 0;
  color: #765f2e;
  font-size: 11px;
}

.modal-warning strong {
  display: block;
  color: #4f3c13;
}

.modal-cta {
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 80px 0 65px;
  color: #fff;
  background: #172033;
}

.legal-hero .section-number {
  margin: 0 0 16px;
  color: #a9c2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.legal-hero h1 {
  max-width: 850px;
  font-size: clamp(48px, 6vw, 78px);
}

.legal-hero p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 17px;
}

.legal-content {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 70px;
  padding: 75px 0 105px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 12px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
}

.legal-copy section {
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}

.legal-copy section+section {
  padding-top: 35px;
}

.legal-copy h2 {
  margin: 0 0 15px;
  font-size: 27px;
  letter-spacing: -1px;
}

.legal-copy h3 {
  margin: 22px 0 8px;
}

.legal-copy p,
.legal-copy li {
  color: #59667a;
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 20px;
}

.legal-copy a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .hero-layout {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 55px;
  }

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

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

  .safety-card {
    grid-template-columns: 1fr 1fr;
  }

  .safety-card>a {
    justify-self: start;
  }
}

@media (max-width: 800px) {
  :root {
    --container: min(100% - 30px, 720px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-nav {
    position: fixed;
    z-index: 1;
    top: 72px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px 20px 28px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 30px rgba(31, 55, 97, .12);
    transform: translateY(-140%);
    transition: transform 180ms ease;
  }

  .header-nav.is-open {
    transform: translateY(0);
  }

  .header-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: clamp(45px, 9vw, 64px);
  }

  .finder {
    width: min(100%, 570px);
  }

  .lender-preview {
    margin-top: 45px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .catalog-sort {
    width: min(100%, 330px);
  }

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

  .safety-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main nav {
    grid-column: 1 / -1;
  }

  .footer-top nav {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .footer-bottom span:nth-child(2) {
    text-align: left;
  }

  .legal-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-toc {
    position: static;
  }

  .modal-hero {
    grid-template-columns: 1fr 1fr;
  }

  .modal-hero-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100% - 24px);
    --radius: 15px;
  }

  body {
    padding-bottom: 67px;
  }

  .site-header {
    height: 64px;
  }

  .header-nav {
    top: 64px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    padding: 7px;
    border-radius: 9px;
  }

  .hero {
    padding: 38px 0 24px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2.4px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-benefits {
    display: grid;
    gap: 8px;
  }

  .finder {
    overflow: hidden;
    padding: 0;
    border-radius: 17px;
  }

  .finder-top {
    align-items: center;
    margin-bottom: 0;
    padding: 16px 14px;
  }

  .finder h2 {
    font-size: 21px;
  }

  .finder-live {
    display: none;
  }

  .finder-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d8e2f3;
    border-radius: 9px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
  }

  .finder-toggle i {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
  }

  .finder-toggle[aria-expanded="true"] i {
    transform: translateY(2px) rotate(225deg);
  }

  .finder-body {
    padding: 2px 16px 18px;
    border-top: 1px solid var(--line);
  }

  .finder-body[hidden] {
    display: none;
  }

  .finder-match {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .lender-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .lender-preview>div {
    gap: 18px;
    width: 100%;
  }

  .lender-preview img {
    flex: 0 0 70px;
    width: 70px;
  }

  .offers-section,
  .how-section,
  .comparison-section,
  .faq-section {
    padding: 70px 0;
  }

  .section-heading {
    gap: 25px;
    margin-bottom: 30px;
  }

  .section-heading h2,
  .simple-heading h2,
  .faq-intro h2 {
    font-size: 36px;
    letter-spacing: -1.6px;
  }

  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .comparison-count {
    align-self: flex-start;
  }

  .offer-card {
    padding: 10px;
    border-radius: 12px;
  }

  .offer-label {
    padding: 5px 6px;
    font-size: 7px;
  }

  .offer-number {
    display: none;
  }

  .offer-logo {
    height: 45px;
    margin: 8px 0;
  }

  .offer-logo img {
    width: 88px;
    max-height: 38px;
  }

  .offer-amount>span {
    font-size: 9px;
  }

  .offer-amount strong {
    font-size: 18px;
    line-height: 1.05;
  }

  .offer-stats {
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 11px 0;
  }

  .offer-stats div {
    padding: 7px;
  }

  .offer-stats dt {
    font-size: 7px;
  }

  .offer-stats dd {
    font-size: 9px;
  }

  .offer-cta {
    gap: 5px;
    min-height: 44px;
    padding: 7px 7px 7px 9px;
    border-radius: 10px;
    font-size: 10px;
  }

  .offer-cta__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .offer-cta__icon::before {
    width: 10px;
  }

  .offer-cta__icon::after {
    width: 6px;
    height: 6px;
  }

  .offer-details {
    margin-top: 8px;
    font-size: 9px;
  }

  .safety-section {
    padding: 55px 0;
  }

  .safety-card {
    padding: 24px 20px;
  }

  .safety-card>div {
    align-items: flex-start;
  }

  .safety-card h2 {
    font-size: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-main nav {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .footer-top nav {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .mobile-action {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 10px 13px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 28px rgba(31, 55, 97, .1);
    backdrop-filter: blur(10px);
  }

  .mobile-action>div {
    display: flex;
    flex-direction: column;
  }

  .mobile-action span {
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-action strong {
    font-size: 12px;
  }

  .mobile-action b {
    color: var(--blue);
  }

  .mobile-action button {
    padding: 11px 18px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 800;
  }

  .modal {
    padding: 8px;
  }

  .modal-dialog {
    max-height: calc(100vh - 16px);
    padding: 10px;
    border-radius: 17px;
  }

  .modal-close {
    top: 20px;
    right: 20px;
  }

  .modal-brand {
    padding: 16px 56px 13px 14px;
  }

  .modal-logo {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .modal-logo img {
    width: 36px;
    height: 36px;
  }

  .modal-brand h2 {
    font-size: 22px;
  }

  .modal-hero {
    gap: 14px;
    padding: 13px 14px 16px;
  }

  .modal-hero>div>strong {
    font-size: 16px;
  }

  .modal-tabs {
    gap: 18px;
    padding: 0 14px;
    overflow-x: auto;
  }

  .modal-tab {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .modal-panel {
    padding: 20px 4px 3px;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-info-list dd {
    max-width: 58%;
  }

  .creditor-data {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 55px 0 48px;
  }

  .legal-hero h1 {
    font-size: 44px;
  }

  .legal-content {
    padding: 50px 0 75px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
