:root {
  --blue: #1351b4;
  --blue-deep: #071d41;
  --blue-soft: #dbe8fb;
  --green: #2f8f4e;
  --yellow: #ffd500;
  --ink: #172033;
  --muted: #617089;
  --line: #d9e0eb;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --panel: #eef4f0;
  --shadow: 0 20px 60px rgba(19, 81, 180, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(219, 232, 251, 0.65), rgba(255, 255, 255, 0) 360px),
    var(--paper);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(19, 81, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 81, 180, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 6px 20px 0;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(217, 224, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(7, 29, 65, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-canvas {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background:
    linear-gradient(var(--blue), var(--blue)) padding-box,
    linear-gradient(135deg, var(--yellow), var(--green)) border-box;
}

.brand strong,
.site-footer strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(19, 81, 180, 0.2);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 750;
  background: rgba(219, 232, 251, 0.6);
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 40px));
  margin: 8px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-radius: 6px;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 20px 64px;
}

.section-frame {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 34px 28px;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--blue-deep);
  font-size: clamp(2.9rem, 5.7vw, 4.95rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(19, 81, 180, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-metrics div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics span,
.process-grid span,
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  background: var(--blue-soft);
}

.hero-metrics strong {
  display: block;
  margin-top: 10px;
  color: var(--blue-deep);
}

.hero-metrics small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fbff, #eef4f0);
  box-shadow: var(--shadow);
}

.visual-topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.settlement-diagram {
  position: absolute;
  inset: 62px 20px 24px;
  z-index: 1;
}

.diagram-card {
  position: absolute;
  width: min(190px, 40%);
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(7, 29, 65, 0.06);
}

.diagram-card.verify {
  top: 23%;
  left: 6%;
}

.diagram-card.compare {
  top: 17%;
  right: 6%;
}

.diagram-card.plan {
  bottom: 6%;
  left: 8%;
}

.diagram-card.save {
  right: 5%;
  bottom: 7%;
}

.diagram-card span {
  display: block;
  width: 34px;
  height: 26px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--blue);
}

.diagram-card.compare span,
.diagram-card.save span {
  background: var(--green);
}

.diagram-card.plan span {
  background: var(--yellow);
}

.diagram-card small,
.diagram-ring small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.diagram-card strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-deep);
  font-size: 1.2rem;
}

.diagram-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(290px, 58%);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -35%);
  border: 24px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-left-color: var(--blue);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 40%, transparent 41%),
    conic-gradient(from 225deg, var(--blue) 0 44%, var(--yellow) 44% 68%, var(--blue-soft) 68% 100%);
}

.diagram-ring::before {
  position: absolute;
  inset: 42px;
  border: 16px solid transparent;
  border-top-color: var(--yellow);
  border-left-color: var(--yellow);
  border-radius: 50%;
  content: "";
}

.diagram-ring strong {
  position: relative;
  z-index: 1;
  align-self: end;
  color: var(--blue-deep);
  font-size: 1.18rem;
}

.diagram-ring small {
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 180px;
  text-align: center;
  text-transform: none;
}

.diagram-ring i {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  background: var(--blue);
}

.diagram-ring i:nth-child(1) {
  top: 14%;
  left: 7%;
}

.diagram-ring i:nth-child(2) {
  top: 14%;
  right: 7%;
}

.diagram-ring i:nth-child(3) {
  right: 2%;
  bottom: 18%;
  background: var(--green);
}

.diagram-ring i:nth-child(4) {
  bottom: 17%;
  left: 4%;
}

.split-section {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 34px;
}

.split-section > div:first-child,
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-grid {
  display: grid;
  gap: 14px;
}

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

.info-card,
.process-grid article,
.security-list article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.info-card {
  min-height: 224px;
  padding: 22px;
}

.info-card p,
.process-grid p,
.security-list p,
.faq-list p,
.section-note,
.section-heading > p:not(.eyebrow),
.check-row p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.info-card .card-index {
  margin-bottom: 42px;
}

.eligibility-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  background: linear-gradient(90deg, rgba(238, 244, 240, 0.72), rgba(255, 255, 255, 0));
}

.checklist-panel {
  display: grid;
  gap: 12px;
}

.check-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.check-row span {
  width: 24px;
  height: 24px;
  border: 6px solid var(--blue-soft);
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.check-row p {
  margin-bottom: 0;
}

.process-section {
  background: rgba(246, 248, 251, 0.72);
}

.section-heading.compact {
  max-width: 740px;
  margin-bottom: 24px;
}

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

.process-grid article {
  min-height: 264px;
  padding: 20px;
}

.process-grid span {
  margin-bottom: 58px;
  color: var(--blue-deep);
  background: var(--yellow);
}

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

.security-list article {
  padding: 22px;
}

.security-list h3::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

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

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

.faq-list details {
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  color: var(--blue-deep);
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 18px;
}

.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 20px 34px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.footer-shell p {
  max-width: 620px;
  margin: 8px 0 0;
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.footer-shell a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-shell a:hover {
  color: var(--blue);
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .split-section,
  .eligibility-section {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  #heroCanvas {
    min-height: 460px;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .header-shell {
    padding: 7px 8px;
  }

  .brand small {
    display: none;
  }

  main,
  .site-footer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .section-frame {
    padding: 28px 16px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
    line-height: 0.98;
  }

  .hero-metrics,
  .content-grid.two,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .hero-visual {
    display: none;
  }

  .hero-visual,
  #heroCanvas {
    min-height: 390px;
  }

  .footer-shell {
    flex-direction: column;
    padding: 22px 16px;
  }
}
