/* ---------- LoanRates shared styles ---------- */
:root {
  --bg: #0b0e1a;
  --bg-2: #12162a;
  --card: #171b2d;
  --card-border: #262b40;
  --text: #ffffff;
  --muted: #a7adc3;
  --muted-2: #8a90a8;
  --blue: #2563eb;
  --green: #22c55e;
  --purple: #6d0df5;
  --purple-2: #5b21b6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Nav ---------- */
.nav {
  background: #141829;
  border-bottom: 1px solid #1c2136;
  height: 54px;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; }
.brand .light { color: var(--blue); font-weight: 500; }
.brand .bold { color: #fff; font-weight: 700; }
.brand svg { width: 22px; height: 22px; }
.brand.purple .light { color: var(--purple); }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.btn-nav {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 16px;
  border-radius: 8px;
  text-transform: uppercase;
}
.btn-nav:hover { background: #1d4ed8; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 8% 25%, rgba(37, 78, 200, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 90% at 100% 100%, rgba(29, 143, 222, 0.85), transparent 65%),
    linear-gradient(135deg, #0f1a3a 0%, #142a66 55%, #1a6fc9 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 660px; margin: 0 auto; }
.hero h1 { font-size: 46px; line-height: 1.25; margin-bottom: 26px; }
.hero .sub { font-size: 18px; color: #dfe4f2; max-width: 660px; margin: 0 auto 40px; line-height: 1.6; }

.options { display: flex; flex-direction: column; gap: 16px; max-width: 448px; margin: 0 auto 26px; }
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #171a2c;
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease;
}
.option:hover { transform: translateY(-2px); background: #1c2034; }
.option .icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.option .icon svg { width: 26px; height: 26px; }
.option .icon.green { background: var(--green); box-shadow: 0 6px 18px rgba(34,197,94,0.45); }
.option .icon.blue { background: var(--blue); box-shadow: 0 6px 18px rgba(37,99,235,0.45); }
.option .text { flex: 1; }
.option .title { font-size: 18px; font-weight: 600; }
.option .desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.option .chev {
  width: 40px; height: 40px; border-radius: 50%;
  background: #262a3d; display: flex; align-items: center; justify-content: center;
}
.option .chev svg { width: 16px; height: 16px; }

.hero .fine { font-size: 15px; color: #d6dbea; margin-bottom: 30px; }
.trust { display: flex; justify-content: center; gap: 14px; font-size: 14px; color: #d6dbea; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 13px; height: 13px; }
.trust .dot { color: #9aa3bd; }

/* ---------- Sections ---------- */
section { padding: 72px 24px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: #d6dbea; }
.divider { border-top: 1px solid #1a1e33; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.step {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; margin-bottom: 26px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1024px; margin: 0 auto; }
.feature {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 16px;
}
.feature .tile {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.feature .tile svg { width: 20px; height: 20px; }
.tile.lav { background: #e7dbff; color: #6d28d9; }
.tile.mint { background: #d9f7e6; color: #16a34a; }
.tile.sky { background: #dfe6ff; color: #4f46e5; }
.tile.sun { background: #fdf0c2; color: #b45309; }
.feature h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 64px 24px 56px;
  background:
    radial-gradient(ellipse 55% 100% at 50% 100%, rgba(84, 30, 200, 0.75), transparent 70%),
    linear-gradient(180deg, #0b0e1a 0%, #16113a 100%);
}
.cta h2 { font-size: 32px; margin-bottom: 20px; }
.cta p { font-size: 18px; color: #dfe4f2; margin-bottom: 26px; }
.btn-cta {
  display: block;
  max-width: 672px;
  margin: 0 auto 18px;
  background: #0f1220;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #1c2036;
}
.btn-cta:hover { background: #151930; }
.cta .trust { color: #c8cde0; }

/* ---------- Slider page ---------- */
.nav.center .nav-inner { justify-content: center; }
.form-wrap { padding: 48px 24px; }
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: #171a2b;
  border-radius: 14px;
  padding: 40px 40px 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted-2); font-size: 14px; margin-bottom: 8px;
}
.back svg { width: 12px; height: 12px; }
.back:hover { color: #fff; }
.form-card h1 { font-size: 30px; text-align: center; margin-bottom: 28px; }
.amount-pill {
  width: 130px; height: 70px; margin: 0 auto 28px;
  border-radius: 40px;
  background: rgba(109, 13, 245, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: #a67cff; font-size: 26px; font-weight: 700;
}
.range-wrap { padding: 8px 0 0; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--purple) 0%, var(--purple) var(--pct, 3%), #2a2e42 var(--pct, 3%), #2a2e42 100%);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(109,13,245,0.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(109,13,245,0.25);
  cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 14px; margin: 22px 0 32px; }
.btn-continue {
  display: block; width: 100%;
  background: var(--purple); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 18px; border: none; border-radius: 12px; cursor: pointer;
}
.btn-continue:hover { background: #5c0bd6; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .steps, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
  .form-card { padding: 28px 22px 36px; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 480px) {
  .hero { padding: 40px 20px 40px; }
  .hero h1 { font-size: 34px; }
  .hero .sub { font-size: 16px; margin-bottom: 30px; }
  .option { padding: 14px; gap: 12px; }
  .option .icon { width: 48px; height: 48px; }
  .option .title { font-size: 17px; }
  .option .desc { font-size: 13px; }
  .trust { flex-direction: column; align-items: center; gap: 10px; }
  .trust .dot { display: none; }
  section { padding: 56px 20px; }
  .section-head h2 { font-size: 28px; }
  .cta h2 { font-size: 27px; }
  .btn-cta { padding: 16px; }
  .form-card h1 { font-size: 26px; }
}

/* ---------- Range choice page ---------- */
.form-card .lead { text-align: center; color: var(--muted); font-size: 16px; margin: -18px 0 28px; }
.choices { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left;
  background: #1e2236; border: 1px solid #2c3049; border-radius: 12px;
  padding: 20px 20px; cursor: pointer; color: #fff; font: inherit;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.choice:hover, .choice:focus-visible { background: #232742; border-color: var(--purple); transform: translateY(-2px); outline: none; }
.choice:active { transform: translateY(0); }
.choice-title { display: block; font-size: 19px; font-weight: 600; }
.choice-desc { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.choice-chev {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.choice-chev svg { width: 16px; height: 16px; }
.form-card .fine { text-align: center; color: var(--muted-2); font-size: 14px; }
@media (max-width: 480px) {
  .choice { padding: 16px; }
  .choice-title { font-size: 17px; }
}
