:root {
  --ink: #17342f;
  --ink-strong: #0c221f;
  --muted: #5f706c;
  --soft: #7c8c88;
  --mint: #65cdbb;
  --mint-dark: #2cae9c;
  --mint-deep: #0f756b;
  --pearl: #fbfdf9;
  --pearl-soft: #eef8f4;
  --warm: #d7c5a3;
  --warm-soft: #f5eddd;
  --line: rgba(23, 52, 47, 0.12);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-soft: rgba(255, 255, 255, 0.54);
  --shadow: 0 24px 70px rgba(22, 73, 66, 0.13);
  --soft-shadow: 0 14px 34px rgba(22, 73, 66, 0.11);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(238, 248, 244, 0.74)),
    linear-gradient(135deg, #fbfdf9 0%, #edf8f4 48%, #f8f1e4 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

[data-site-header] {
  display: block;
  min-height: 96px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0 0;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(22, 73, 66, 0.13);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(145deg, #8fe3d5, #45bfae);
  box-shadow: 0 16px 32px rgba(44, 174, 156, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.brand-mark svg path:first-child {
  fill: rgba(255, 255, 255, 0.12);
}

.brand-mark-lines {
  stroke-width: 1.9;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  color: #314743;
  font-size: 14px;
  font-weight: 760;
}

.nav-item {
  position: relative;
}

.nav-item-wide[open]::after {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 59;
  width: min(760px, calc(100vw - 72px));
  height: 18px;
  content: "";
}

.nav-item summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease;
}

.nav-item summary::-webkit-details-marker {
  display: none;
}

.main-nav a,
.main-nav span {
  white-space: nowrap;
}

.nav-item summary:hover,
.main-nav a:hover {
  color: var(--mint-deep);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 8px;
  min-width: 250px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 24px 60px rgba(22, 73, 66, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  visibility: hidden;
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.nav-panel::before {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
  content: "";
}

.nav-item[open] .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-panel > a,
.nav-panel > span,
.nav-group {
  border: 1px solid rgba(23, 52, 47, 0.08);
  border-radius: 14px;
  background: rgba(246, 252, 249, 0.72);
}

.nav-panel > a,
.nav-panel > span {
  padding: 9px 11px;
  color: var(--ink);
  font-size: 13px;
}

.nav-panel-catalog {
  left: 0;
  top: calc(100% + 8px);
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  width: min(760px, calc(100vw - 72px));
  max-height: min(72vh, 640px);
  overflow: auto;
  transform: translateY(8px);
}

.nav-item-wide[open] .nav-panel-catalog {
  transform: translateY(0);
}

.nav-group {
  display: grid;
  gap: 8px;
  padding: 11px;
}

.nav-group > a {
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 900;
}

.nav-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-group > div a,
.nav-group > div span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 760;
}

.nav-group > div a {
  color: var(--mint-deep);
  background: rgba(223, 250, 244, 0.92);
}

.nav-item-current > summary,
.nav-panel a.is-current {
  color: var(--mint-deep);
}

.nav-panel a.is-current,
.nav-group > div a.is-current {
  border-color: rgba(101, 205, 187, 0.48);
  background: rgba(101, 205, 187, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.glass,
.card,
.glass-soft {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(242, 252, 249, 0.50)),
    rgba(255, 255, 255, 0.46);
  box-shadow: 0 24px 70px rgba(22, 73, 66, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.glass-soft {
  background: var(--glass-soft);
  box-shadow: var(--soft-shadow);
}

.section {
  padding: 40px 0;
}

.section-tight {
  padding-top: 26px;
}

.hero {
  padding: 32px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.eyebrow,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(44, 174, 156, 0.26);
  border-radius: 999px;
  color: var(--mint-deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 850;
}

.status-pill {
  color: var(--mint-deep);
  background: rgba(235, 251, 247, 0.72);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint-dark);
  box-shadow: 0 0 0 5px rgba(44, 174, 156, 0.14);
}

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

h1 {
  max-width: 700px;
  margin: 18px 0 16px;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4vw, 59px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lead {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid rgba(44, 174, 156, 0.28);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(44, 174, 156, 0.48);
  box-shadow: var(--soft-shadow);
  background: rgba(255, 255, 255, 0.86);
}

.button-primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #62d2c0, var(--mint-dark));
  box-shadow: 0 18px 36px rgba(44, 174, 156, 0.28);
}

.button-primary:hover {
  background: linear-gradient(135deg, #4fc4b1, #229b8b);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.button-icon svg {
  width: 20px;
  height: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 650px;
  margin-top: 28px;
}

.stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  min-height: 92px;
  padding: 16px;
}

.stat-icon,
.tile-icon,
.step-number,
.strip-icon {
  display: inline-grid;
  place-items: center;
  color: var(--mint-deep);
  background: rgba(235, 251, 247, 0.88);
  border: 1px solid rgba(44, 174, 156, 0.18);
}

.stat-icon {
  width: 42px;
  height: 42px;
  align-self: start;
  border-radius: 17px;
}

.stat-icon svg {
  align-self: center;
  justify-self: center;
  width: 22px;
  height: 22px;
}

.stat-card strong {
  display: block;
  color: var(--mint-deep);
  font-size: 32px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.stat-card > .stat-icon {
  display: inline-grid;
  place-items: center;
  align-self: start;
  margin-top: 0;
}

.stat-card > .stat-icon svg {
  margin: auto;
}

.hero-visual {
  position: relative;
  min-height: 445px;
  overflow: hidden;
  border-radius: 0;
}

.hero-visual::before {
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(251, 253, 249, 0.95) 0%, rgba(251, 253, 249, 0) 16%, rgba(251, 253, 249, 0) 78%, rgba(251, 253, 249, 0.95) 100%),
    linear-gradient(to right, rgba(251, 253, 249, 0.95) 0%, rgba(251, 253, 249, 0) 16%, rgba(251, 253, 249, 0) 94%, rgba(251, 253, 249, 0.72) 100%);
  content: "";
}

.hero-image {
  position: absolute;
  inset: -28px -48px -20px -54px;
  z-index: 0;
  width: calc(100% + 110px);
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: saturate(1.04) contrast(0.98) brightness(1.03);
  transform: none;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title {
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.section-note {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--mint-deep);
  font-weight: 850;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

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

.tool-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 5px 12px;
  min-height: 126px;
  padding: 18px;
  color: var(--ink);
  overflow: hidden;
}

.tool-tile::after {
  position: absolute;
  inset: auto 14px 12px auto;
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: rgba(44, 174, 156, 0.22);
  content: "";
}

.tool-tile strong {
  align-self: end;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.18;
}

.tool-tile small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tool-tile .badge {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  margin-top: 6px;
}

.tool-tile-active {
  border-color: rgba(44, 174, 156, 0.42);
  background: rgba(235, 251, 247, 0.70);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-tile-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(44, 174, 156, 0.20);
}

.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 19px;
  font-size: 15px;
  font-weight: 900;
}

.available-panel {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 24px;
  overflow: hidden;
}

.available-panel h2 {
  margin: 12px 0 9px;
  color: var(--ink-strong);
  font-size: 28px;
  line-height: 1.08;
}

.available-panel p {
  margin-bottom: 14px;
  color: var(--muted);
}

.mortgage-visual {
  width: 100%;
  height: 148px;
  max-width: none;
  margin-top: 16px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--ink);
  list-style: none;
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
}

.benefit-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.benefit-strip article:last-child {
  border-right: 0;
}

.benefit-strip strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.benefit-strip p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.strip-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
}

.catalog-grid {
  display: grid;
  gap: 18px;
}

.topic-section {
  padding: 18px;
}

.topic-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.topic-section h3 {
  margin-bottom: 0;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.18;
}

.topic-count {
  min-width: 34px;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--mint-dark);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

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

.catalog-tool {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-height: 92px;
  padding: 16px 16px 38px;
  border: 1px solid rgba(44, 174, 156, 0.36);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 14px 34px rgba(22, 73, 66, 0.08);
  font-size: 14px;
  font-weight: 760;
  overflow: hidden;
}

.catalog-tool::after {
  display: none;
  content: none;
}

.catalog-tool-active {
  border-color: rgba(44, 174, 156, 0.68);
  background: rgba(235, 251, 247, 0.70);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.catalog-tool-active:hover {
  transform: translateY(-1px);
  border-color: rgba(44, 174, 156, 0.62);
  background: rgba(235, 251, 247, 0.92);
}

.catalog-tool-disabled {
  border-color: rgba(23, 52, 47, 0.16);
  color: #73837f;
  cursor: not-allowed;
}

.catalog-tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(23, 52, 47, 0.09);
  border-radius: 50%;
  color: #63807b;
  background: rgba(246, 252, 249, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), 0 8px 20px rgba(22, 73, 66, 0.07);
}

.catalog-tool-icon svg {
  width: 24px;
  height: 24px;
}

.catalog-tool-title {
  min-width: 0;
  color: var(--ink-strong);
  line-height: 1.18;
  white-space: normal;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.catalog-tool .badge {
  position: absolute;
  right: 12px;
  bottom: 13px;
  z-index: 1;
}

.badge-live {
  color: #178d7f;
  background: rgba(213, 250, 242, 0.96);
  box-shadow: inset 0 0 0 1px rgba(101, 205, 187, 0.22);
}

.badge-soon {
  color: #7a8581;
  background: rgba(230, 237, 234, 0.92);
  box-shadow: inset 0 0 0 1px rgba(23, 52, 47, 0.05);
}

.badge::before,
.badge::after {
  display: none;
  content: none;
}

.card-grid,
.steps-grid {
  display: grid;
  gap: 14px;
}

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

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

.future-card,
.step-card,
.faq details {
  padding: 18px;
}

.future-card h3,
.step-card h3 {
  margin: 12px 0 7px;
  color: var(--ink-strong);
  font-size: 17px;
}

.future-card p,
.step-card p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.future-card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.step-card {
  position: relative;
  padding-top: 56px;
}

.step-number {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--mint-dark);
  font-size: 13px;
  font-weight: 850;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq summary {
  color: var(--ink-strong);
  font-weight: 850;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
}

.site-footer {
  padding: 10px 0 16px;
}

.footer-card {
  padding: 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(241, 251, 248, 0.42)),
    rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 34px rgba(22, 73, 66, 0.09);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(23, 52, 47, 0.10);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.footer-brand .brand-mark svg {
  width: 18px;
  height: 18px;
}

.footer-top p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.footer-copy {
  flex: 0 0 auto;
  text-align: right;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 7px;
}

.footer-menu-group {
  display: flex;
  flex: 1 1 190px;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.footer-menu-group h3 {
  flex: 0 0 auto;
  margin: 1px 0 0;
  color: var(--ink-strong);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-menu-group:first-child {
  flex-basis: 100%;
}

.footer-chip {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border: 1px solid rgba(23, 52, 47, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.footer-topic-title {
  margin: 0;
  color: var(--mint-deep);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
}

.footer-tool {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  line-height: 1.25;
}

.footer-tool-active {
  border-color: rgba(101, 205, 187, 0.40);
  color: var(--mint-deep);
  background: rgba(223, 250, 244, 0.72);
  font-weight: 850;
}

.footer-tool-soon {
  color: var(--soft);
}

.footer-tool small {
  display: inline;
  padding: 0;
  color: rgba(95, 112, 108, 0.72);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(23, 52, 47, 0.10);
}

.footer-legal a {
  color: var(--mint-deep);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.25;
}

.calculator-page {
  padding: 24px 0 36px;
}

.calculator-page .hero {
  padding: 22px 0 28px;
}

.hero-main {
  padding: 30px;
  background:
    radial-gradient(circle at 92% 18%, rgba(101, 205, 187, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(235, 251, 247, 0.48)),
    linear-gradient(35deg, rgba(215, 197, 163, 0.12), rgba(101, 205, 187, 0.12));
}

.calculator-page .hero-main h1 {
  margin-top: 0;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: start;
}

.calc-panel,
.results-panel,
.chart-panel,
.table-panel {
  min-width: 0;
  padding: 22px;
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field * {
  min-width: 0;
}

fieldset.field {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 12px;
}

fieldset.field .label-row {
  margin-bottom: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.term-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.28fr);
  gap: 10px;
}

.label-row {
  display: block;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.optional {
  display: inline-block;
  margin-left: 5px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.input,
.select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(23, 52, 47, 0.16);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 253, 251, 0.56));
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.input:focus,
.select:focus {
  border-color: rgba(44, 174, 156, 0.58);
  box-shadow: 0 0 0 4px rgba(44, 174, 156, 0.12);
}

.payment-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

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

.payment-toggle input {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.payment-toggle label {
  display: block;
  min-width: 0;
}

.payment-toggle span {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 48px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(23, 52, 47, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 253, 251, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}

.payment-toggle input:checked + span {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #62d2c0, var(--mint-dark));
  box-shadow: 0 14px 26px rgba(44, 174, 156, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

[data-mode-field].is-hidden {
  display: none;
}

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

.result-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(23, 52, 47, 0.10);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 253, 251, 0.56)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 34px rgba(22, 73, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.result-card span {
  color: var(--muted);
  font-size: 14px;
}

.result-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink-strong);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.22;
  overflow-wrap: normal;
  word-break: normal;
}

.chart-wrap {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(23, 52, 47, 0.10);
  border-radius: calc(var(--radius-md) - 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(239, 251, 247, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.chart-wrap canvas {
  width: 100%;
  height: 100%;
}

.credit-chart-wrap {
  height: 320px;
}

.affiliate-widget-panel {
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
}

.affiliate-widget-frame {
  width: 100%;
  margin-top: 18px;
}

.affiliate-widget-frame iframe {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
}

@media (max-width: 760px) {
  .affiliate-widget-panel {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: 0;
    padding-left: 0;
  }

  .affiliate-widget-panel .section-title {
    padding-right: clamp(16px, 5vw, 22px);
    padding-left: clamp(16px, 5vw, 22px);
  }

  .affiliate-widget-frame {
    height: 436px;
    overflow: hidden;
  }

  .affiliate-widget-frame iframe {
    width: 420px;
    max-width: none;
    transform: scale(calc(100vw / 420));
    transform-origin: top left;
  }
}

.seo-article {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 42px);
}

.seo-article h2 {
  margin: 16px 0 0;
  color: var(--ink-strong);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article p {
  max-width: 980px;
  margin: 0;
  color: #324943;
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.72;
}

.seo-article h3 {
  margin: 0 0 10px;
  color: var(--mint-deep);
  font-size: 18px;
  line-height: 1.25;
}

.seo-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 980px;
  padding: 16px 18px;
  border: 1px solid rgba(44, 174, 156, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(101, 205, 187, 0.16), rgba(255, 255, 255, 0.62));
  color: #26413b;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.55;
}

.seo-callout strong,
.seo-check-list li::marker {
  color: var(--mint-deep);
}

.seo-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}

.seo-comparison > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(23, 52, 47, 0.10);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.seo-article ul {
  margin: 0;
  padding-left: 22px;
  color: #324943;
  font-size: clamp(16px, 1.45vw, 17px);
  line-height: 1.65;
}

.seo-check-list {
  display: grid;
  gap: 8px;
  max-width: 980px;
  padding: 18px 20px 18px 40px;
  border: 1px solid rgba(44, 174, 156, 0.16);
  border-radius: var(--radius-md);
  background: rgba(238, 248, 244, 0.62);
}

.table-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(23, 52, 47, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.60), rgba(241, 252, 249, 0.44)),
    rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::before {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 8;
  display: none;
  width: 58px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #62d2c0, var(--mint-dark));
  box-shadow: 0 12px 30px rgba(44, 174, 156, 0.24);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  content: "← →";
  pointer-events: none;
  animation: tableHint 1.45s ease-in-out infinite;
}

@keyframes tableHint {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-10px);
  }
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(23, 52, 47, 0.10);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(245, 252, 249, 0.96);
  font-weight: 850;
  box-shadow: 0 1px 0 rgba(23, 52, 47, 0.10), 0 10px 22px rgba(22, 73, 66, 0.06);
}

.data-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(245, 252, 249, 0.98);
}

.annual-table .sticky-col {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  text-align: center;
}

.payment-table .sticky-col {
  width: 142px;
  min-width: 142px;
  max-width: 142px;
}

.data-table th.sticky-col {
  z-index: 5;
}

.floating-table-header {
  position: fixed;
  z-index: 49;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(245, 252, 249, 0.96);
  box-shadow: 0 16px 36px rgba(22, 73, 66, 0.12);
  pointer-events: none;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.floating-table-header.is-visible {
  display: block;
}

.floating-table-header .data-table {
  transition: transform 0.08s linear;
}

.floating-table-header .data-table th {
  position: static;
}

.floating-table-header .data-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
    font-size: 13px;
  }

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

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

@media (max-width: 1020px) {
  .hero-grid,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-image {
    inset: 0;
    width: 100%;
  }

  .available-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.6fr);
    gap: 14px 22px;
  }

  .available-panel .status-pill,
  .available-panel h2,
  .available-panel p,
  .available-panel .check-list,
  .available-panel .button {
    grid-column: 1;
  }

  .mortgage-visual {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: stretch;
    min-height: 100%;
    margin-top: 0;
  }

  .catalog-grid {
    gap: 14px;
  }

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

@media (max-width: 900px) {
  .section-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .text-link {
    justify-self: start;
    white-space: normal;
  }
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 76px 10px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: calc(100vh - 92px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: var(--radius-lg);
    background: rgba(251, 253, 249, 0.985);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

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

  .nav-item summary,
  .main-nav a {
    padding: 11px 2px;
  }

  .nav-item {
    position: static;
  }

  .nav-panel,
  .nav-panel-catalog {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
    margin: 0 0 8px;
    padding: 10px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-item-wide[open]::after {
    display: none;
  }

  .nav-panel::before {
    display: none;
  }

  .nav-item:not([open]):hover .nav-panel {
    display: none;
  }

  .nav-item[open] .nav-panel {
    display: grid;
    max-height: none;
    overflow: visible;
    overscroll-behavior: contain;
    transform: none;
  }

  .nav-item[open] > summary {
    margin-bottom: 8px;
    padding: 11px 12px;
    border: 1px solid rgba(44, 174, 156, 0.16);
    border-radius: 14px;
    background: rgba(251, 253, 249, 0.96);
  }

  .nav-panel-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .section {
    padding: 28px 0;
  }

  .hero {
    padding: 28px 0 20px;
  }

  h1 {
    font-size: clamp(34px, 9.4vw, 42px);
    line-height: 1.04;
  }

  .lead {
    font-size: 15px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .stat-card {
    display: block;
    min-height: 0;
    padding: 10px 8px;
    text-align: center;
  }

  .stat-card > .stat-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 7px;
    border-radius: 13px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .stat-card span {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .hero-visual {
    min-height: 280px;
  }

  .calculator-illustration {
    right: 8%;
    top: 36px;
    width: min(260px, 74%);
    padding: 16px;
  }

  .calc-screen {
    min-height: 48px;
    font-size: 19px;
  }

  .calc-keys {
    gap: 7px;
  }

  .calc-keys span {
    min-height: 34px;
  }

  .visual-note {
    left: 16px;
    bottom: 16px;
    width: 220px;
    padding: 13px;
  }

  .section-head,
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: left;
  }

  .footer-top {
    gap: 6px;
    padding-bottom: 7px;
  }

  .footer-top > div > p {
    display: none;
  }

  .footer-card {
    padding: 9px;
  }

  .footer-menu {
    display: flex;
    gap: 5px 9px;
    margin-top: 6px;
  }

  .footer-menu-group {
    display: grid;
    grid-template-columns: minmax(108px, max-content) minmax(0, 1fr);
    flex: 1 1 100%;
    align-items: start;
  }

  .footer-menu-group h3 {
    width: auto;
  }

  .footer-topic-list {
    flex: 1 1 0;
    gap: 3px 5px;
  }

  .footer-topic {
    flex: 1 1 calc(50% - 8px);
  }

  .footer-menu-group h3 {
    margin-bottom: 2px;
    font-size: 8.8px;
  }

  .footer-topic-title,
  .footer-tool,
  .footer-legal a {
    font-size: 8.4px;
  }

  .footer-chip {
    min-height: 15px;
    padding: 0 4px;
  }

  .footer-legal {
    gap: 4px 10px;
    margin-top: 6px;
    padding-top: 6px;
  }

  .footer-menu-group:first-child {
    display: block;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-menu-group:first-child .footer-topic-list {
    display: flex;
    margin-top: 4px;
  }

  .text-link {
    justify-self: start;
  }

  .card-grid,
  .steps-grid,
  .form-grid,
  .results-grid,
  .available-panel {
    grid-template-columns: 1fr;
  }

  .term-field {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
  }

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

  .available-panel .status-pill,
  .available-panel h2,
  .available-panel p,
  .available-panel .check-list,
  .available-panel .button,
  .mortgage-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .mortgage-visual {
    min-height: 132px;
  }

  .topic-section,
  .future-card,
  .step-card,
  .faq details,
  .calc-panel,
  .results-panel,
  .chart-panel,
  .table-panel,
  .hero-main,
  .available-panel {
    padding: 18px;
  }

  .topic-section-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topic-count {
    grid-column: auto;
    justify-self: end;
  }

  .topic-tools-grid {
    grid-template-columns: 1fr;
  }

  .catalog-tool {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
    gap: 10px;
    padding: 10px;
  }

  .catalog-tool-icon {
    width: 40px;
    height: 40px;
  }

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

  .catalog-tool .badge {
    position: static;
    grid-column: 3;
    justify-self: end;
    align-self: center;
  }

  .payment-toggle {
    grid-template-columns: 1fr;
  }

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

  .chart-wrap {
    height: 280px;
  }

  .table-scroll {
    padding-top: 38px;
  }

  .table-scroll::before {
    display: flex;
    top: 6px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(28px, 7.7vw, 31px);
    overflow-wrap: anywhere;
  }

  .button {
    padding-inline: 12px;
    font-size: 14px;
    white-space: normal;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px 12px;
    text-align: left;
  }

  .stat-card > .stat-icon {
    width: 36px;
    height: 36px;
    margin: 0;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .stat-card span {
    font-size: 11px;
    line-height: 1.22;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .hero-visual,
  .glass,
  .card,
  .glass-soft {
    border-radius: 22px;
  }

  .tool-tile {
    min-height: 116px;
    padding: 15px;
  }

  .catalog-tool {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 9px;
    border-radius: 15px;
  }

  .catalog-tool-title {
    font-size: 13px;
  }

  .catalog-tool-icon {
    width: 36px;
    height: 36px;
  }

  .catalog-tool .badge {
    min-height: 18px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .footer-menu-group,
  .footer-topic {
    padding: 0;
  }
}
