:root {
  --ink: #0b1720;
  --muted: #5f6d76;
  --line: #dfe8ea;
  --paper: #ffffff;
  --soft: #f3f8f7;
  --teal: #087f7b;
  --teal-dark: #075c59;
  --green: #24a148;
  --navy: #12344d;
  --gold: #f5b544;
  --shadow: 0 18px 50px rgba(13, 38, 52, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 232, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: min(52vw, 220px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #294653;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.static-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 31, 43, 0.92) 0%, rgba(5, 31, 43, 0.72) 42%, rgba(5, 31, 43, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 31, 43, 0.28), rgba(5, 31, 43, 0.08));
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: white;
  background: var(--teal);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.btn.ghost {
  color: var(--teal);
  border-color: rgba(8, 127, 123, 0.28);
  background: #eef8f6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 12px;
  margin: 44px 0 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats dt {
  font-size: 25px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  padding: 18px;
  color: #284653;
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

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

.section-heading.narrow {
  max-width: 680px;
}

.section-heading p,
.split-section p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.loan-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 28px rgba(13, 38, 52, 0.06);
}

.loan-card .icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  background: var(--navy);
}

.loan-card p {
  min-height: 76px;
  color: var(--muted);
  line-height: 1.6;
}

.loan-card a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.popular-section {
  background: #f8fbfb;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.popular-grid a {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  background: white;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 38, 52, 0.05);
}

.popular-grid a:hover {
  border-color: rgba(8, 127, 123, 0.36);
  background: #eef8f6;
}

.lsp-section,
.process-section,
.faq-section,
.proof-section,
.trust-section {
  background: var(--soft);
}

.service-grid,
.checklist-grid,
.proof-grid,
.compliance-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.checklist-panel,
.proof-grid article,
.compliance-grid article,
.trust-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 28px rgba(13, 38, 52, 0.06);
}

.service-card h3,
.checklist-panel h3,
.proof-grid h3,
.compliance-grid h3,
.trust-grid h3 {
  margin-bottom: 12px;
}

.service-card p,
.proof-grid p,
.compliance-grid p,
.trust-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.proof-grid,
.compliance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid strong {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--teal);
}

.checklist-section {
  background: white;
}

.checklist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

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

.step {
  padding: 24px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: white;
}

.step strong {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 14px;
}

.step p {
  color: var(--muted);
  line-height: 1.6;
}

.lender-section {
  background: white;
}

.lender-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 8px 28px rgba(13, 38, 52, 0.06);
}

.lender-grid article {
  min-height: 150px;
  padding: 24px;
  background: white;
}

.lender-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lender-grid strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.emi-card,
.lead-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #294653;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 48px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid #cddadd;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: white;
}

textarea {
  min-height: 100px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 127, 123, 0.16);
  border-color: var(--teal);
}

.emi-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
}

.emi-result span {
  color: rgba(255, 255, 255, 0.76);
}

.emi-result strong {
  font-size: 24px;
}

.contact-section {
  color: white;
  background: var(--navy);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-links a {
  color: white;
  font-weight: 800;
}

.lead-form {
  color: var(--ink);
}

.lead-form .btn {
  width: 100%;
}

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

.form-progress span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  color: #47616b;
  background: #edf4f3;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.form-progress span.is-active {
  color: white;
  background: var(--teal);
}

.lead-form.is-stepped .form-step {
  display: none;
}

.lead-form.is-stepped .form-step.is-active {
  display: grid;
}

.form-step {
  gap: 16px;
}

.form-buttons {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 10px;
}

.consent-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.consent-line input {
  min-height: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.compliance-section {
  background: white;
}

.policy-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.policy-links a,
.footer-links a {
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #07141d;
}

.site-footer strong {
  color: white;
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.fine-print {
  font-size: 13px;
}

.footer-links {
  grid-column: 1 / -1;
  margin-top: 0;
}

.footer-links a {
  color: white;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: flex;
  gap: 10px;
}

.floating-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: var(--teal);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.simple-page,
.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

.simple-card {
  display: grid;
  gap: 20px;
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 72px 0;
}

.simple-card h1,
.admin-login h1,
.admin-heading h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.simple-card p,
.admin-login p {
  color: var(--muted);
  line-height: 1.7;
}

.simple-brand {
  margin-bottom: 18px;
}

.policy-card {
  width: min(860px, calc(100% - 28px));
}

.policy-card h2 {
  margin: 10px 0 0;
  font-size: 24px;
}

.contact-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-panel p {
  margin: 0;
}

.contact-panel p + p {
  margin-top: 10px;
}

.product-hero {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(5, 31, 43, 0.95), rgba(8, 127, 123, 0.78)),
    var(--navy);
}

.product-hero h1 {
  max-width: 850px;
}

.product-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px);
}

.product-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 28px rgba(13, 38, 52, 0.06);
}

.product-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.product-card p {
  color: var(--muted);
  line-height: 1.7;
}

.product-wide {
  margin: 0 clamp(18px, 5vw, 72px) clamp(34px, 5vw, 72px);
}

.tick-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.6;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 28px;
}

.tick-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 900;
  content: "✓";
}

.product-cta {
  margin: 0 clamp(18px, 5vw, 72px) clamp(58px, 8vw, 104px);
  padding: 34px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
}

.product-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.admin-topbar,
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.secondary-dark {
  color: white;
  background: var(--navy);
}

.admin-login,
.admin-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-login {
  display: grid;
  max-width: 460px;
  gap: 16px;
}

.alert {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #8a1f11;
  background: #fff0ed;
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: var(--soft);
  font-weight: 800;
}

td {
  color: #304b58;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 71px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 31, 43, 0.92), rgba(5, 31, 43, 0.54));
  }

  .hero-stats,
  .trust-strip,
  .loan-grid,
  .popular-grid,
  .service-grid,
  .checklist-grid,
  .proof-grid,
  .trust-grid,
  .lender-grid,
  .compliance-grid,
  .product-grid,
  .steps,
  .split-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .loan-card p {
    min-height: 0;
  }
}

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

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions .btn,
  .hero-stats {
    width: 100%;
  }

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

  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .floating-actions {
    left: 14px;
    right: 14px;
  }

  .floating-actions a {
    flex: 1;
  }
}
