:root {
  --ink: #13202a;
  --muted: #627186;
  --soft: #edf4fb;
  --line: #d7e2ee;
  --paper: #ffffff;
  --page: #f5f8fc;
  --navy: #062f63;
  --teal: #155c9a;
  --teal-dark: #0a3f76;
  --gold: #f0b23f;
  --blue: #1e6fb9;
  --shadow: 0 18px 48px rgba(6, 47, 99, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

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

button,
input,
select {
  font: inherit;
}

img,
iframe {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  padding: 0 clamp(30px, 3.2vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  line-height: 1;
}

.site-header .brand {
  display: inline-flex;
  flex: 0 0 510px;
  align-items: center;
  height: 112px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.site-header .brand span {
  display: none;
}

.site-header .brand-logo {
  display: block;
  flex: 0 0 500px;
  width: 500px;
  height: 100px;
  max-width: 500px;
  max-height: 100px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.site-header .nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 112px;
  min-width: 0;
}

.site-header .nav a,
.site-header .nav-drop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #062f63;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}

.nav a:hover,
.nav-drop-button:hover,
.nav-dropdown.open .nav-drop-button,
.nav-dropdown:hover .nav-drop-button {
  background: transparent;
  color: #0b63ce;
  box-shadow: inset 0 -2px 0 rgba(11, 99, 206, 0.38);
}

.nav-dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-drop-button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-dropdown.open .nav-drop-menu,
.nav-dropdown:hover .nav-drop-menu {
  display: grid;
}

.nav-drop-menu a {
  display: block;
  min-height: 40px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  min-width: 72px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .site-header {
    gap: 14px;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-header .brand {
    flex: 0 1 330px;
    height: 96px;
    font-size: 16px;
  }

  .site-header .brand-logo {
    flex: 0 1 320px;
    width: 100%;
    max-width: 320px;
    height: 76px;
    max-height: 76px;
  }

  .site-header .nav {
    gap: 4px;
    height: 96px;
  }

  .site-header .nav a,
  .site-header .nav-drop-button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 14px;
  }
}

.hero,
.quick-panel,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 34px 0 24px;
}

.hero-copy {
  padding: 22px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: clamp(31px, 3.9vw, 50px);
}

h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 22px;
  font-size: 17px;
}

.hero-actions,
.trust-strip,
.quick-controls,
.bank-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  border: 1px solid var(--teal);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}

.button.primary:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.trust-strip {
  margin-top: 18px;
}

.trust-strip span,
.bank-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-gif {
  display: block;
  width: 100%;
  max-height: 380px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.floating-card {
  position: absolute;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 36px rgba(22, 50, 79, 0.14);
}

.floating-card.top {
  top: 24px;
  left: 24px;
}

.floating-card.bottom {
  right: 24px;
  bottom: 24px;
}

.floating-card span,
.quick-result span,
.result-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.floating-card strong,
.quick-result strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 24px;
}

.quick-panel {
  display: grid;
  grid-template-columns: 0.62fr 1.62fr 0.68fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quick-panel h2 {
  max-width: 340px;
  margin-bottom: 10px;
  font-size: clamp(24px, 2.7vw, 36px);
}

.quick-help {
  max-width: 290px;
  margin-bottom: 0;
  font-size: 14px;
}

.quick-controls {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(190px, 0.9fr) minmax(190px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.quick-control {
  display: grid;
  gap: 13px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 28px rgba(6, 47, 99, 0.06);
}

.quick-control label {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.quick-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid #bfd1e0;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8), 0 10px 24px rgba(6, 47, 99, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quick-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 111, 185, 0.14);
}

.input-addon {
  display: inline-flex;
  min-width: max-content;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef5fb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.quick-input input {
  flex: 1;
  width: 100%;
  min-width: 90px;
  min-height: 52px;
  border: 0;
  padding: 0;
  color: var(--navy);
  background: transparent;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
}

#quickAmountInput {
  min-width: 130px;
}

.quick-input input::-webkit-outer-spin-button,
.quick-input input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.quick-input input[type="number"] {
  appearance: textfield;
}

.quick-input input:focus {
  outline: 0;
}

.range-field {
  display: grid;
  gap: 8px;
}

.range-field div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  border: 1px solid #c6d4df;
  border-radius: 999px;
  padding: 0;
  background: linear-gradient(90deg, var(--blue), #dfe7ee);
  accent-color: var(--teal);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 3px 12px rgba(6, 47, 99, 0.28);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 3px 12px rgba(6, 47, 99, 0.28);
  cursor: pointer;
}

.quick-result {
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--navy), #0e4380);
  color: #fff;
  box-shadow: 0 14px 34px rgba(6, 47, 99, 0.2);
}

.quick-result small {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-transform: uppercase;
}

.quick-result strong,
.calc-output strong,
.calc-output .meter span {
  color: #fff;
}

.quick-result span {
  color: rgba(255, 255, 255, 0.72);
}

.quick-result strong {
  font-size: 32px;
}

.quick-result a {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.section {
  padding: 50px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head.visual-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 47, 99, 0.08);
}

.visual-head img {
  display: block;
  width: 100%;
  max-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbff;
}

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

.loan-card,
.timeline article,
.doc-grid label,
.calc-shell,
.contact,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(22, 50, 79, 0.07);
}

.loan-card {
  min-height: 178px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96)),
    #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.loan-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(30, 111, 185, 0.08);
}

.loan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 127, 122, 0.35);
  box-shadow: var(--shadow);
}

.loan-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(6, 47, 99, 0.1);
}

.loan-card h3,
.loan-card p {
  position: relative;
  z-index: 1;
}

.loan-card h3 {
  font-size: 21px;
}

.calculator-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 10px;
  padding: 34px 0 18px;
}

.calculator-page-hero > div,
.calculator-page-hero > img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-page-hero > div {
  min-height: 330px;
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 94% 10%, rgba(240, 178, 63, 0.14), transparent 27%),
    linear-gradient(135deg, rgba(30, 111, 185, 0.08), rgba(240, 178, 63, 0.08)),
    #fff;
}

.calculator-page-hero h1 {
  max-width: 700px;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.06;
}

.calculator-page-hero p:not(.eyebrow) {
  max-width: 760px;
}

.calculator-page-hero > img {
  display: block;
  width: 100%;
  height: 330px;
  padding: 14px;
  object-fit: contain;
  background: #f7fbff;
}

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

.calculator-menu-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96)),
    #fff;
  box-shadow: 0 14px 34px rgba(6, 47, 99, 0.08);
}

.calculator-menu-grid article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(240, 178, 63, 0.14);
}

.calculator-menu-grid img {
  position: relative;
  z-index: 1;
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(6, 47, 99, 0.1);
}

.calculator-menu-grid span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
}

.calculator-menu-grid h2,
.calculator-menu-grid p {
  position: relative;
  z-index: 1;
}

.calculator-menu-grid h2 {
  font-size: 22px;
}

.calculator-page-studio {
  padding-top: 24px;
}

.calc-shell {
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(6, 47, 99, 0.35), rgba(30, 111, 185, 0.2), rgba(240, 178, 63, 0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 24px 60px rgba(6, 47, 99, 0.13);
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  background: linear-gradient(180deg, #f9fbff, #eef5fb);
}

.tab {
  flex: 1 0 150px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 47, 99, 0.06);
}

.tab:last-child {
  border-right: 1px solid transparent;
}

.tab.active {
  border-color: rgba(30, 111, 185, 0.2);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  box-shadow: 0 12px 26px rgba(6, 47, 99, 0.18);
}

.calc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  background: linear-gradient(90deg, #fff, #f8fbff);
}

.calc-form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  padding: 28px;
}

.calc-form.active {
  display: grid;
}

.inline-breakdown-graphic {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(30, 111, 185, 0.08), rgba(240, 178, 63, 0.08)),
    #f8fbff;
  box-shadow: 0 12px 30px rgba(6, 47, 99, 0.07);
}

.inline-breakdown-graphic img {
  display: block;
  width: 100%;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
}

.inline-breakdown-graphic span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inline-breakdown-graphic strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.inline-breakdown-graphic p {
  margin: 8px 0 0;
  max-width: 440px;
  font-size: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(6, 47, 99, 0.04);
}

input:focus,
select:focus {
  outline: 3px solid rgba(21, 92, 154, 0.16);
  border-color: var(--teal);
}

.calc-output {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  border-left: 1px solid var(--line);
  padding: 26px;
  background:
    radial-gradient(circle at 85% 8%, rgba(240, 178, 63, 0.25), transparent 26%),
    linear-gradient(145deg, #062f63, #09294f);
  color: #fff;
}

.output-badge {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.result-hero img {
  display: block;
  width: 132px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.result-hero span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
}

.result-hero strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.meter {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  pointer-events: none;
  opacity: 0.76;
}

.meter svg {
  position: absolute;
  width: 94px;
  height: 94px;
  transform: rotate(-90deg);
}

.meter circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 9;
}

#meterArc {
  stroke: var(--gold);
  stroke-dasharray: 301.59;
  stroke-dashoffset: 120;
  stroke-linecap: round;
}

.meter span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.result-grid div {
  min-width: 0;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.result-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.insight {
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.13);
  color: #e9f4f4;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.payment-breakdown {
  padding-top: 18px;
}

.breakdown-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(6, 47, 99, 0.12);
}

.breakdown-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(6, 47, 99, 0.05), rgba(30, 111, 185, 0.08)),
    #fff;
}

.breakdown-visual {
  min-width: 0;
}

.breakdown-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.breakdown-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: transparent;
}

.breakdown-summary div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #f8fbff;
}

.breakdown-summary div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}

.breakdown-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breakdown-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.breakdown-table-wrap {
  overflow-x: auto;
  padding: 0 20px 20px;
}

.breakdown-table {
  width: 100%;
  min-width: 860px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.breakdown-table th {
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  color: #061a2e;
  font-size: 14px;
  font-weight: 900;
}

.breakdown-table td {
  color: #102033;
  font-size: 15px;
}

.breakdown-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.breakdown-table tbody tr:hover {
  background: #edf6ff;
}

.breakdown-table td:first-child {
  color: var(--navy);
  font-weight: 900;
}

.breakdown-table tr:last-child td {
  border-bottom: 0;
}

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bank-row {
  justify-content: flex-end;
}

.timeline article {
  padding: 22px;
}

.timeline article span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.doc-grid label {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--ink);
}

.doc-grid input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--teal);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 28px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form .button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  font-size: 14px;
}

.form-note.info {
  color: var(--blue);
}

.form-note.success {
  border: 1px solid rgba(20, 132, 83, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: #effaf5;
  color: #11633f;
}

.form-note.error {
  border: 1px solid rgba(185, 52, 52, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff4f4;
  color: #9e2f2f;
}

.is-submitting {
  pointer-events: none;
  opacity: 0.78;
}

.submission-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(3, 20, 43, 0.34);
  backdrop-filter: blur(4px);
}

.submission-overlay.show {
  display: grid;
}

.submission-card {
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 24px 60px rgba(6, 47, 99, 0.22);
}

.submission-card span {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border: 4px solid #dbeeff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: submitSpin 800ms linear infinite;
}

.submission-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.submission-card p {
  margin: 0;
  font-size: 14px;
}

@keyframes submitSpin {
  to {
    transform: rotate(360deg);
  }
}

details {
  margin-bottom: 12px;
  padding: 18px 20px;
}

summary {
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
}

.footer {
  border-top: 1px solid #cfe0ef;
  background:
    radial-gradient(circle at 12% 0%, rgba(11, 99, 206, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff, #fff);
}

.footer p {
  margin: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: 28px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 26px;
}

.footer-logo {
  display: block;
  width: min(320px, 100%);
  height: 82px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.footer-brand-block p {
  max-width: 430px;
  color: #48627e;
  font-size: 14px;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-badges span {
  border: 1px solid #c8dff2;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 800;
}

.footer h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 16px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links a {
  color: #48627e;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: #0b63ce;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-contact p {
  display: grid;
  gap: 3px;
  color: #48627e;
  font-size: 14px;
}

.footer-contact strong {
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.footer-social a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #c8dff2;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 47, 99, 0.13);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 47, 99, 0.2);
}

.footer-social svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social .facebook {
  background: linear-gradient(135deg, #0b63ce, #164a9f);
}

.footer-social .instagram {
  background: linear-gradient(135deg, #feda75, #d62976 48%, #4f5bd5);
}

.footer-contact img {
  width: 100%;
  max-height: 150px;
  border: 1px solid #c8dff2;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid #d8e6f2;
  color: #667b91;
  font-size: 12px;
}

.loan-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 380px;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.loan-page-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(6, 47, 99, 0.04), rgba(30, 111, 185, 0.08)),
    #fff;
  box-shadow: var(--shadow);
}

.loan-page-copy h1 {
  max-width: 720px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.06;
}

.loan-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.loan-benefits span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.loan-page-visual {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(240, 178, 63, 0.18), transparent 34%),
    linear-gradient(145deg, var(--navy), #0d4a86);
  color: #fff;
  box-shadow: var(--shadow);
}

.loan-page-visual img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.loan-page-visual span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
  text-transform: uppercase;
}

.loan-page-visual strong {
  display: block;
  max-width: 330px;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.home-page-hero .loan-page-copy {
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 178, 63, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(30, 111, 185, 0.08), rgba(240, 178, 63, 0.11)),
    #fff;
}

.home-page-hero .loan-benefits span {
  border-color: #b9d1e8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.96));
  box-shadow: 0 10px 22px rgba(6, 47, 99, 0.06);
}

.home-page-hero .loan-page-visual {
  background:
    radial-gradient(circle at 78% 16%, rgba(240, 178, 63, 0.25), transparent 36%),
    linear-gradient(145deg, #063463, #1e6fb9);
}

.personal-page-hero .loan-page-copy {
  background:
    linear-gradient(135deg, rgba(30, 111, 185, 0.06), rgba(240, 178, 63, 0.1)),
    #fff;
}

.personal-page-hero {
  align-items: center;
}

.personal-page-hero .loan-page-copy {
  padding: 24px 26px;
}

.personal-page-hero .loan-page-copy h1 {
  max-width: 760px;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.06;
}

.personal-page-hero .loan-page-copy p {
  margin-bottom: 16px;
}

.personal-page-hero .loan-page-visual {
  background:
    radial-gradient(circle at 80% 12%, rgba(240, 178, 63, 0.24), transparent 36%),
    linear-gradient(145deg, #07386f, #1e6fb9);
  min-height: 270px;
}

.personal-page-hero .loan-page-visual img {
  width: 96px;
  height: 96px;
}

.personal-page-hero .loan-page-visual strong {
  font-size: 22px;
}

.business-page-hero .loan-page-copy {
  background:
    linear-gradient(135deg, rgba(240, 178, 63, 0.11), rgba(30, 111, 185, 0.06)),
    #fff;
}

.business-page-hero .loan-page-visual {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, #09294f, #174f8b);
}

.lap-page-hero .loan-page-copy {
  background:
    linear-gradient(135deg, rgba(240, 178, 63, 0.13), rgba(30, 111, 185, 0.08)),
    #fff;
}

.lap-page-hero .loan-page-copy h1 {
  max-width: 780px;
  font-size: clamp(32px, 3.5vw, 46px);
}

.lap-page-hero .loan-page-visual {
  min-height: 270px;
  background:
    radial-gradient(circle at 22% 20%, rgba(240, 178, 63, 0.25), transparent 34%),
    linear-gradient(145deg, #063463, #1c6daf);
}

.lap-page-hero .loan-page-visual img {
  width: 96px;
  height: 96px;
}

.lap-page-hero .loan-page-visual strong {
  font-size: 22px;
}

.transfer-page-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.78fr);
}

.transfer-page-hero .loan-page-copy {
  background:
    radial-gradient(circle at 94% 10%, rgba(240, 178, 63, 0.18), transparent 27%),
    linear-gradient(135deg, rgba(30, 111, 185, 0.09), rgba(240, 178, 63, 0.1)),
    #fff;
}

.transfer-page-hero .loan-page-copy h1 {
  font-size: clamp(32px, 3.4vw, 46px);
}

.transfer-hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7fbff;
  box-shadow: var(--shadow);
}

.transfer-hero-visual img {
  display: block;
  width: 100%;
  height: 330px;
  border-radius: 8px;
  object-fit: contain;
}

.transfer-apply .apply-intro img {
  min-height: 250px;
  max-height: 330px;
}

.transfer-calculator-link {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid rgba(30, 111, 185, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.transfer-calculator-link:hover {
  border-color: var(--blue);
  background: #e5f1fc;
}

.personal-transfer-page .loan-page-copy {
  background:
    radial-gradient(circle at 94% 10%, rgba(240, 178, 63, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(240, 178, 63, 0.1), rgba(30, 111, 185, 0.08)),
    #fff;
}

.personal-transfer-page .transfer-hero-visual {
  background:
    linear-gradient(135deg, rgba(240, 178, 63, 0.08), rgba(30, 111, 185, 0.06)),
    #f7fbff;
}

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

.loan-info-grid article,
.apply-section,
.home-loan-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 47, 99, 0.07);
}

.loan-info-grid article {
  padding: 24px;
}

.loan-info-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 900;
}

.loan-info-grid h2 {
  font-size: 24px;
}

.apply-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  padding: 24px;
}

.apply-intro img {
  display: block;
  width: 100%;
  min-height: 360px;
  max-height: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbff;
}

.home-loan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: none;
}

.home-loan-form label {
  gap: 9px;
  color: #24415f;
  font-size: 14px;
  font-weight: 600;
}

.home-loan-form input,
.home-loan-form select,
.home-loan-form textarea {
  min-height: 54px;
  border: 1px solid #d4e2ee;
  border-radius: 8px;
  background: #fff;
  color: #102033;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(6, 47, 99, 0.04);
}

.home-loan-form input::placeholder,
.home-loan-form textarea::placeholder {
  color: #8a99a8;
  font-weight: 500;
}

.home-loan-form input:focus,
.home-loan-form select:focus,
.home-loan-form textarea:focus {
  outline: 3px solid rgba(30, 111, 185, 0.12);
  border-color: #7aaedc;
  box-shadow: 0 10px 26px rgba(30, 111, 185, 0.08);
}

.city-search-combo {
  position: relative;
  display: block;
  width: 100%;
}

.city-search-combo input {
  width: 100%;
  padding-right: 46px;
}

.city-search-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: #eef6ff;
  cursor: pointer;
  transform: translateY(-50%);
}

.city-search-toggle::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b63ce;
  border-bottom: 2px solid #0b63ce;
  transform: rotate(45deg);
}

.city-search-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 50;
  display: none;
  max-height: 238px;
  overflow: auto;
  border: 1px solid #7aaedc;
  background: #fff;
  box-shadow: 0 16px 30px rgba(6, 47, 99, 0.14);
}

.city-search-panel.show {
  display: block;
}

.city-search-panel button,
.city-search-panel p {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 0;
  border: 0;
  padding: 8px 14px;
  background: #fff;
  color: #102033;
  font: inherit;
  text-align: left;
}

.city-search-panel button {
  cursor: pointer;
}

.city-search-panel button:hover,
.city-search-panel button:focus {
  background: #1f6fd1;
  color: #fff;
}

.home-loan-form .wide {
  grid-column: 1 / -1;
}

.form-heading {
  border: 1px solid #dbe8f3;
  border-radius: 8px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(30, 111, 185, 0.08), rgba(240, 178, 63, 0.08)),
    #fff;
}

.form-heading span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-heading strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
}

.home-loan-form textarea {
  min-height: 110px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.home-loan-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.home-loan-form .consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.captcha-box {
  display: grid;
  min-height: 58px;
  align-items: center;
  justify-items: center;
  border: 1px dashed #9bbbd8;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, #eef6ff, #eef6ff 8px, #f8fbff 8px, #f8fbff 16px);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-loan-types {
  padding-top: 36px;
}

.partner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.partner-hero > div,
.partner-hero img,
.partner-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-page-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(480px, 1.24fr);
  gap: 24px;
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 50px;
}

.contact-page-copy {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background:
    radial-gradient(circle at 92% 10%, rgba(240, 178, 63, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(30, 111, 185, 0.09), rgba(240, 178, 63, 0.08)),
    #fff;
  box-shadow: var(--shadow);
}

.contact-page-copy h1 {
  max-width: 430px;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.07;
}

.contact-page-copy > p:not(.eyebrow) {
  margin-bottom: 20px;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.contact-points span {
  border: 1px solid #d4e2ee;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.contact-page-copy img {
  display: block;
  width: 100%;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbff;
}

.contact-basic-form {
  padding: 26px;
}

.visit-office-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(400px, 1fr);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.visit-office-details {
  padding: 20px 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(11, 99, 206, 0.08), transparent 30%),
    linear-gradient(180deg, #fff, #f8fbff);
}

.visit-office-details h2 {
  max-width: 440px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.06;
}

.visit-office-details > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 14px;
  color: #48627e;
  font-size: 14px;
  line-height: 1.55;
}

.visit-office-details article {
  border: 1px solid #d4e2ee;
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.visit-office-details article + article {
  margin-top: 8px;
}

.visit-office-details article span {
  display: block;
  margin-bottom: 6px;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.visit-office-details article strong {
  display: block;
  color: #071d3b;
  font-size: 14px;
  line-height: 1.38;
}

.visit-office-map {
  min-height: 330px;
  background: #eef6ff;
}

.visit-office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

.nav-current {
  background: transparent !important;
  color: #0b63ce !important;
  box-shadow: inset 0 -3px 0 #0b63ce !important;
}

.rates-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.68fr);
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 22px;
}

.rates-hero > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rates-hero > div:first-child {
  padding: 30px;
  background:
    radial-gradient(circle at 94% 10%, rgba(240, 178, 63, 0.15), transparent 27%),
    linear-gradient(135deg, rgba(30, 111, 185, 0.08), rgba(240, 178, 63, 0.08)),
    #fff;
}

.rates-hero h1 {
  max-width: 720px;
  font-size: clamp(34px, 3.7vw, 50px);
  line-height: 1.06;
}

.rate-disclaimer {
  border: 1px solid #d5e4f1;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f5faff;
  color: #465d75;
  font-size: 13px;
}

.rates-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.rates-hero-stats article {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f7fbff;
}

.rates-hero-stats strong {
  display: block;
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}

.rates-hero-stats span,
.rates-hero-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rates-hero-stats .rate-mini-chart {
  grid-column: 1 / -1;
  min-height: 138px;
  background:
    linear-gradient(135deg, rgba(30, 111, 185, 0.06), rgba(240, 178, 63, 0.09)),
    #f7fbff;
}

.rate-mini-chart div {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 68px;
  margin: 10px 0 6px;
}

.rate-mini-chart i {
  display: block;
  flex: 1;
  height: 32px;
  border-radius: 6px 6px 2px 2px;
  background: var(--blue);
}

.rate-mini-chart i:nth-child(2) { height: 55px; background: var(--gold); }
.rate-mini-chart i:nth-child(3) { height: 66px; background: var(--navy); }
.rate-mini-chart i:nth-child(4) { height: 42px; background: #3b8e8a; }

.rates-hero-graphic {
  padding: 14px;
}

.rates-hero-graphic img {
  display: block;
  width: 100%;
  height: 304px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbff;
}

.rate-graphic-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.rate-graphic-stats span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.rate-graphic-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
}

.rates-studio {
  position: relative;
  padding-top: 18px;
  padding-bottom: 100px;
}

.rates-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(150px, 0.72fr));
  gap: 14px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 47, 99, 0.07);
}

.rates-intro h2 {
  margin: 0;
  font-size: 23px;
}

.rates-controls input,
.rates-controls select {
  min-height: 50px;
  font-weight: 500;
}

.rate-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 18px 0;
}

.rate-tabs button {
  flex: 1 0 auto;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.rate-tabs button.active {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}

.rate-columns,
.rate-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(190px, 1.15fr) minmax(180px, 1fr) minmax(150px, 0.85fr) 185px;
  align-items: center;
  gap: 14px;
}

.rate-columns {
  margin-bottom: 9px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.rate-results {
  display: grid;
  gap: 10px;
}

.rate-row {
  overflow: hidden;
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(6, 47, 99, 0.05);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.rate-row:hover {
  border-color: #bbd4ea;
  box-shadow: 0 14px 28px rgba(6, 47, 99, 0.09);
}

.rate-bank {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rate-bank b {
  display: inline-grid;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3fc;
  color: var(--navy);
  font-size: 13px;
}

.rate-bank strong,
.rate-service strong,
.rate-roi strong,
.rate-fee strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.rate-bank span,
.rate-service span,
.rate-roi span,
.rate-fee span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rate-service {
  display: grid;
  grid-template-columns: 9px 1fr;
  column-gap: 12px;
}

.rate-service i {
  grid-row: span 2;
  display: block;
  width: 9px;
  height: 46px;
  border-radius: 999px;
  background: var(--blue);
}

.rate-service i.personal { background: var(--gold); }
.rate-service i.business { background: var(--navy); }
.rate-service i.property { background: #16867f; }

.rate-roi strong {
  color: var(--blue);
  font-size: 18px;
}

.rate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rate-actions button,
.rate-actions a,
.compare-clear {
  min-height: 42px;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rate-actions button {
  border: 1px solid #c8dced;
  background: #fff;
  color: var(--navy);
}

.rate-actions button.selected {
  border-color: var(--blue);
  background: var(--soft);
}

.rate-actions a {
  background: var(--blue);
  color: #fff;
}

.rates-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.compare-drawer {
  position: fixed;
  right: 26px;
  bottom: 22px;
  z-index: 18;
  display: none;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  max-width: min(760px, calc(100% - 36px));
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 48px rgba(6, 47, 99, 0.3);
}

.compare-drawer.open {
  display: grid;
}

.compare-drawer span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.compare-drawer strong {
  display: block;
  font-size: 14px;
}

.compare-items {
  display: flex;
  gap: 8px;
}

.compare-items span {
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.compare-items strong {
  display: inline;
  margin-left: 8px;
  color: var(--gold);
}

.compare-clear {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
}

.rate-choice-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.7fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 47, 99, 0.07);
}

.rate-choice-panel h2 {
  margin: 0;
  font-size: 24px;
}

.rates-easy-view .rate-tabs {
  margin: 0;
}

.rates-easy-view .rate-tabs button {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.rates-easy-view .rate-tabs button span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 8px;
  background: #eef5fb;
  color: var(--blue);
  font-size: 12px;
}

.rates-easy-view .rate-tabs button.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.rates-easy-view .rates-controls {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  max-width: 790px;
  margin: 16px 0 22px;
  box-shadow: none;
}

.rate-comparison-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 282px;
  gap: 16px;
  align-items: start;
}

.rate-board,
.compare-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 47, 99, 0.07);
}

.rate-board {
  overflow: hidden;
  padding: 15px;
}

.best-rate-summary {
  display: grid;
  grid-template-columns: minmax(156px, 1.2fr) repeat(3, minmax(125px, 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.best-rate-summary > * {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #f8fbff;
}

.best-rate-summary span,
.best-rate-summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.best-rate-summary strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--navy);
  font-size: 21px;
}

.best-rate-summary .best-offer {
  border-color: rgba(30, 111, 185, 0.25);
  background: #eff7ff;
}

.best-rate-summary .best-offer strong {
  color: var(--blue);
  font-size: 25px;
}

.rates-easy-view .rate-columns,
.rates-easy-view .rate-row {
  grid-template-columns: minmax(210px, 1.55fr) minmax(145px, 1fr) 88px 110px 146px;
}

.rates-easy-view .rate-columns {
  border-radius: 8px;
  padding: 13px 14px;
  background: #f5f8fc;
}

.rates-easy-view .rate-row {
  min-height: 76px;
  padding: 9px 14px;
  box-shadow: none;
}

.rates-easy-view .rate-row.lowest-rate {
  border-color: rgba(30, 111, 185, 0.3);
  background: #f7fbff;
}

.rates-easy-view .rate-bank {
  gap: 10px;
}

.rate-rank {
  width: 27px;
  color: #7a8fa4;
  font-size: 12px;
  font-weight: 700;
}

.rates-easy-view .rate-bank b {
  width: 47px;
  height: 47px;
  flex-basis: 47px;
  font-size: 11px;
}

.rates-easy-view .rate-roi strong {
  font-size: 16px;
}

.rate-difference {
  justify-self: start;
  border-radius: 999px;
  padding: 7px 9px;
  background: #f1f4f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rate-difference.lowest {
  background: #dceefe;
  color: var(--blue);
}

.compare-board {
  position: sticky;
  top: 112px;
  padding: 18px;
}

.compare-board h2 {
  margin-bottom: 7px;
  font-size: 23px;
}

.compare-hint {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.compare-board .compare-items {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.compare-board .compare-items article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #f8fbff;
}

.compare-board .compare-items article div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.compare-board .compare-items b {
  border-radius: 6px;
  padding: 6px;
  background: #e8f2fb;
  color: var(--navy);
  font-size: 11px;
}

.compare-board .compare-items article strong {
  color: var(--navy);
  font-size: 12px;
}

.compare-board .compare-items article span,
.compare-board .compare-items article small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.compare-board .compare-items article em {
  display: block;
  margin: 5px 0;
  color: var(--blue);
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
}

.empty-selection {
  border: 1px dashed #cfdfec;
  border-radius: 8px;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.compare-board .compare-clear {
  width: 100%;
  margin-bottom: 10px;
  border-color: #cbddeb;
  background: #fff;
  color: var(--navy);
}

.compare-apply {
  display: flex;
  justify-content: center;
  width: 100%;
}

.matrix-heading {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.matrix-heading p:not(.eyebrow) {
  margin-bottom: 0;
}

.matrix-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.matrix-legend span {
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: #f7fbff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.matrix-legend .personal { border-color: var(--gold); }
.matrix-legend .business { border-color: var(--navy); }
.matrix-legend .property { border-color: #16867f; }

.rates-matrix-view .rates-controls {
  max-width: none;
  grid-template-columns: repeat(3, minmax(180px, 250px));
}

.rates-matrix-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 47, 99, 0.07);
}

.matrix-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.matrix-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7fbff;
  text-align: center;
}

.matrix-summary span,
.matrix-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.matrix-summary strong {
  display: block;
  margin: 3px 0 2px;
  color: var(--blue);
  font-size: 19px;
}

.rates-matrix-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.rates-matrix-table {
  width: 100%;
  min-width: 940px;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.rates-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  padding: 7px 9px;
  background: #f3f8fd;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.rates-matrix-table td {
  height: 44px;
  border-top: 1px solid var(--line);
  padding: 5px 9px;
  background: #fff;
  text-align: center;
}

.rates-matrix-table tbody tr:hover td {
  background: #f8fbff;
}

.matrix-chip {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 4px;
  place-items: center;
  border-radius: 8px;
  background: #e5f1fc;
  color: var(--blue);
  font-size: 10px;
}

.matrix-chip.personal {
  background: #fff2d9;
  color: #996100;
}

.matrix-chip.business {
  background: #e4eefa;
  color: var(--navy);
}

.matrix-chip.property {
  background: #e1f3f1;
  color: #106862;
}

.matrix-bank {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  text-align: center;
}

.matrix-bank b {
  display: inline-grid;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 7px;
  background: #eaf3fc;
  color: var(--navy);
  font-size: 10px;
}

.matrix-bank strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  text-align: center;
}

.matrix-bank span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.matrix-rate {
  position: relative;
  min-width: 132px;
  text-align: center;
}

.matrix-rate strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}

.matrix-rate span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.matrix-rate.best {
  background: #eff8ff;
}

.matrix-rate.best strong {
  color: var(--blue);
}

.matrix-rate em {
  display: inline-flex;
  margin-top: 2px;
  border-radius: 999px;
  padding: 2px 6px;
  background: #dbeeff;
  color: var(--blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.rate-apply-mini {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  border: 1px solid #c3dcf2;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.rate-apply-mini:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.matrix-rate.best .rate-apply-mini {
  background: var(--blue);
  color: #fff;
}

.matrix-action a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
}

.selected-offer {
  border: 1px solid #c8dff2;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(240, 178, 63, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(30, 111, 185, 0.08), rgba(240, 178, 63, 0.08)),
    #f7fbff;
}

.selected-offer span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.selected-offer strong {
  display: block;
  margin: 5px 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}

.selected-offer small {
  color: var(--muted);
  font-size: 13px;
}

.selected-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.selected-offer-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.selected-offer-grid input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8dff2;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.matrix-empty {
  padding: 38px !important;
  color: var(--muted);
  text-align: center;
}

.partner-hero > div {
  padding: 30px;
}

.partner-hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
}

.partner-hero img {
  display: block;
  width: 100%;
  min-height: 320px;
  object-fit: contain;
  background: #f7fbff;
}

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

.partner-grid article {
  padding: 22px;
}

.partner-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.partner-grid h2 {
  font-size: 23px;
}

.partner-overview {
  margin-bottom: 24px;
}

.partner-flow {
  padding-top: 30px;
}

.bank-partner-page {
  padding-top: 34px;
}

.bank-page-head {
  max-width: none;
  text-align: center;
  padding-top: 8px;
  margin-bottom: 28px;
  display: grid;
  justify-items: center;
}

.bank-page-head h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 56px);
  text-align: center;
  width: 100%;
}

.bank-page-head p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.bank-brand-wall {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.bank-brand-card {
  position: relative;
  display: grid;
  min-height: 170px;
  align-content: space-between;
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,251,255,0.96)),
    #fff;
  box-shadow: 0 12px 30px rgba(6, 47, 99, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bank-brand-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(30, 111, 185, 0.08);
}

.bank-brand-card.wide {
  grid-column: span 3;
}

.bank-brand-card.tall {
  grid-row: span 2;
  min-height: 356px;
}

.bank-brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 111, 185, 0.32);
  box-shadow: var(--shadow);
}

.bank-brand-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 96px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.bank-brand-card.tall img {
  height: 190px;
  object-position: center;
}

.bank-brand-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: end;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.bank-tree {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(30, 111, 185, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: var(--shadow);
}

.tree-canopy {
  position: relative;
  min-height: 430px;
}

.tree-canopy::before,
.tree-canopy::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 72%;
  height: 70%;
  border-top: 3px solid rgba(30, 111, 185, 0.22);
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.tree-canopy::after {
  width: 46%;
  height: 48%;
  border-color: rgba(240, 178, 63, 0.32);
}

.bank-leaf {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cddfed;
  border-radius: 999px 999px 999px 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(6, 47, 99, 0.09);
  transform: rotate(var(--tilt, 0deg));
}

.bank-leaf::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 2px;
  height: 34px;
  background: linear-gradient(rgba(30, 111, 185, 0.32), transparent);
  transform: translateX(-50%);
}

.leaf-1 { left: 7%; top: 50px; --tilt: -5deg; }
.leaf-2 { left: 31%; top: 22px; --tilt: 2deg; }
.leaf-3 { right: 28%; top: 48px; --tilt: -2deg; }
.leaf-4 { right: 7%; top: 96px; --tilt: 5deg; }
.leaf-5 { left: 13%; top: 162px; --tilt: 3deg; }
.leaf-6 { left: 39%; top: 128px; --tilt: -4deg; }
.leaf-7 { right: 19%; top: 184px; --tilt: 4deg; }
.leaf-8 { left: 4%; top: 292px; --tilt: -2deg; }
.leaf-9 { left: 30%; top: 268px; --tilt: 4deg; }
.leaf-10 { right: 34%; top: 296px; --tilt: -5deg; }
.leaf-11 { right: 6%; top: 272px; --tilt: 3deg; }
.leaf-12 { left: 45%; top: 356px; --tilt: -1deg; }

.tree-trunk {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(360px, 100%);
  min-height: 116px;
  place-items: center;
  margin: -12px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 44px rgba(6, 47, 99, 0.18);
}

.tree-trunk::before,
.tree-trunk::after {
  content: "";
  position: absolute;
  top: -92px;
  width: 3px;
  height: 92px;
  background: linear-gradient(transparent, rgba(6, 47, 99, 0.45));
}

.tree-trunk::before {
  left: 38%;
  transform: rotate(-18deg);
}

.tree-trunk::after {
  right: 38%;
  transform: rotate(18deg);
}

.tree-trunk strong {
  font-size: 28px;
  line-height: 1.1;
}

.tree-trunk span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.tree-roots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.tree-roots span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bank-network-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 28px 28px;
  background:
    radial-gradient(circle at 50% 48%, rgba(30, 111, 185, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: var(--shadow);
}

.bank-network-map::before {
  content: "";
  position: absolute;
  inset: 330px 9% 112px;
  border: 2px dashed rgba(30, 111, 185, 0.18);
  border-radius: 999px;
}

.network-gif {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
}

.network-gif img {
  display: block;
  width: 100%;
  max-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbff;
}

.bank-node,
.network-hub,
.network-points {
  position: relative;
  z-index: 1;
}

.bank-node {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid #cddfed;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 28px rgba(6, 47, 99, 0.08);
}

.network-hub {
  display: grid;
  grid-column: 2 / 4;
  min-height: 132px;
  place-items: center;
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 44px rgba(6, 47, 99, 0.2);
}

.network-hub strong {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.network-hub span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.network-points {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.network-points span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .quick-panel,
  .calc-workspace,
  .band,
  .contact,
  .breakdown-hero,
  .section-head.visual-head,
  .loan-page-hero,
  .transfer-page-hero,
  .apply-section,
  .partner-hero,
  .calculator-page-hero,
  .contact-page-hero,
  .visit-office-section,
  .rates-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-gif {
    max-height: 340px;
  }

  .calc-output {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .calc-workspace {
    grid-template-columns: 1fr;
  }

  .loan-grid,
  .timeline,
  .doc-grid,
  .loan-info-grid,
  .partner-grid,
  .bank-brand-wall,
  .calculator-menu-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bank-brand-card,
  .bank-brand-card.wide,
  .bank-brand-card.tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 190px;
  }

  .bank-tree {
    min-height: auto;
  }

  .tree-canopy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
  }

  .tree-canopy::before,
  .tree-canopy::after,
  .bank-leaf::before,
  .tree-trunk::before,
  .tree-trunk::after {
    display: none;
  }

  .bank-leaf {
    position: static;
    min-height: 48px;
    border-radius: 8px;
    transform: none;
  }

  .tree-trunk {
    margin-top: 18px;
  }

  .bank-network-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-hub,
  .network-points {
    grid-column: 1 / -1;
  }

  .network-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bank-row {
    justify-content: flex-start;
  }

  .rates-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rates-intro {
    grid-column: 1 / -1;
  }

  .rate-choice-panel,
  .rate-comparison-layout {
    grid-template-columns: 1fr;
  }

  .matrix-heading {
    grid-template-columns: 1fr;
  }

  .matrix-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-board {
    position: static;
  }

  .best-rate-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rates-easy-view .rate-columns {
    display: none;
  }

  .rates-easy-view .rate-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
  }

  .rate-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-header .brand {
    flex: 1 1 auto;
    gap: 9px;
    height: 96px;
    min-width: 0;
    font-size: 14px;
  }

  .site-header .brand-logo {
    flex: 0 1 225px;
    width: min(225px, calc(100vw - 106px));
    height: 62px;
    max-width: 225px;
    max-height: 62px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-header .nav {
    position: absolute;
    top: 96px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    height: auto;
    max-height: calc(100vh - 112px);
    min-width: 0;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-dropdown,
  .nav-drop-button {
    width: 100%;
  }

  .nav-dropdown {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-drop-button {
    text-align: left;
  }

  .site-header .nav a,
  .site-header .nav-drop-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 42px;
    height: auto;
    padding: 12px;
    font-size: 15px;
  }

  .nav-drop-menu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    background: #f8fbff;
  }

  .nav-dropdown:hover .nav-drop-menu {
    display: none;
  }

  .nav-dropdown.open .nav-drop-menu {
    display: grid;
  }
}

@media (max-width: 760px) {

  .hero-copy {
    padding: 10px 0 0;
  }

  .quick-controls {
    grid-template-columns: 1fr;
  }

  .hero-gif {
    max-height: 260px;
  }

  .floating-card {
    position: static;
    display: inline-block;
    margin-top: 10px;
    margin-right: 8px;
  }

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

  .calc-form,
  .lead-form,
  .loan-grid,
  .timeline,
  .doc-grid,
  .loan-info-grid,
  .home-loan-form,
  .partner-grid,
  .bank-brand-wall,
  .calculator-menu-grid {
    grid-template-columns: 1fr;
  }

  .calculator-page-hero h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .calculator-page-hero > img {
    min-height: 220px;
  }

  .contact-page-hero {
    padding-top: 24px;
  }

  .visit-office-section {
    margin-bottom: 28px;
  }

  .visit-office-details {
    padding: 24px;
  }

  .visit-office-map,
  .visit-office-map iframe {
    min-height: 360px;
  }

  .rates-controls,
  .rates-hero-stats,
  .rates-easy-view .rate-row,
  .best-rate-summary,
  .matrix-summary,
  .matrix-legend,
  .selected-offer-grid {
    grid-template-columns: 1fr;
  }

  .rates-matrix-view .rates-controls {
    grid-template-columns: 1fr;
  }

  .rates-hero-graphic img {
    height: auto;
    min-height: 220px;
  }

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

  .rates-matrix-card {
    padding: 12px;
  }

  .rate-choice-panel {
    padding: 16px;
  }

  .rates-easy-view .rate-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rates-easy-view .rate-bank,
  .rates-easy-view .rate-roi,
  .rates-easy-view .rate-difference,
  .rates-easy-view .rate-fee {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .rate-actions a,
  .rate-actions button {
    flex: 1;
    text-align: center;
  }

  .compare-board .compare-items {
    grid-template-columns: 1fr;
  }

  .tree-canopy {
    grid-template-columns: 1fr;
  }

  .bank-network-map,
  .network-points {
    grid-template-columns: 1fr;
  }

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

  .inline-breakdown-graphic {
    grid-template-columns: 1fr;
  }

  .result-hero img {
    width: 100%;
    height: 130px;
  }

  .meter {
    right: 18px;
    top: 18px;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
  }

  .footer-logo {
    width: 260px;
    height: 72px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .hero,
  .quick-panel,
  .section,
  .calc-shell,
  .contact,
  .breakdown-hero,
  .loan-page-hero,
  .transfer-page-hero,
  .apply-section,
  .partner-hero,
  .calculator-page-hero,
  .contact-page-hero,
  .visit-office-section,
  .rates-hero,
  .footer-main,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 34px 0;
  }

  h1,
  .hero-copy h1,
  .loan-page-copy h1,
  .rates-hero h1,
  .contact-page-copy h1,
  .partner-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
  }

  h2,
  .section-head h2,
  .rates-intro h2 {
    font-size: clamp(24px, 7.5vw, 34px);
    line-height: 1.12;
  }

  .hero,
  .loan-page-hero,
  .transfer-page-hero,
  .partner-hero,
  .calculator-page-hero,
  .contact-page-hero,
  .rates-hero {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .quick-panel {
    gap: 18px;
    padding: 20px 16px;
  }

  .quick-panel h2,
  .quick-help {
    max-width: none;
  }

  .quick-control,
  .loan-card,
  .contact,
  .calc-shell,
  .rates-matrix-card,
  .visit-office-details,
  .home-loan-form {
    padding: 16px;
  }

  .quick-input {
    min-height: 54px;
  }

  .quick-input input {
    min-width: 0;
    font-size: 22px;
  }

  #quickAmountInput {
    min-width: 0;
  }

  .quick-result strong {
    font-size: 30px;
  }

  .tabs {
    gap: 8px;
    padding: 8px;
  }

  .tabs button,
  .rate-tabs button {
    min-height: 44px;
    padding: 10px 8px;
    white-space: normal;
  }

  .calc-output {
    padding: 18px;
  }

  .result-hero {
    min-height: 0;
    padding: 14px;
  }

  .meter {
    position: static;
    margin-left: auto;
    margin-bottom: 10px;
  }

  .breakdown-table-wrap,
  .rates-matrix-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rates-matrix-table {
    min-width: 760px;
  }

  .rates-matrix-table th,
  .rates-matrix-table td {
    height: auto;
    padding: 7px 6px;
  }

  .matrix-bank {
    min-width: 155px;
    gap: 6px;
  }

  .matrix-bank b {
    width: 34px;
    height: 34px;
  }

  .matrix-bank strong {
    font-size: 12px;
  }

  .matrix-rate {
    min-width: 118px;
  }

  .matrix-rate strong {
    font-size: 15px;
  }

  .rate-apply-mini {
    width: 100%;
    max-width: 72px;
  }

  input,
  select,
  textarea {
    min-width: 0;
    max-width: 100%;
  }

  .visit-office-map,
  .visit-office-map iframe {
    min-height: 300px;
  }

  .footer-badges {
    align-items: stretch;
  }

  .footer-badges span,
  .footer-links a,
  .footer-contact p {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-header .brand-logo {
    width: min(190px, calc(100vw - 94px));
    max-width: 190px;
    height: 54px;
    max-height: 54px;
  }

  .menu-toggle {
    width: 42px;
    min-width: 42px;
  }

  .button,
  .quick-result a,
  .rate-actions a,
  .rate-actions button {
    width: 100%;
  }

  .trust-strip span,
  .bank-row span,
  .loan-benefits span,
  .contact-points span {
    width: 100%;
    text-align: center;
  }

  .footer-logo {
    width: min(230px, 100%);
    height: auto;
  }
}
