/* V40 — readability, card clipping, and vector calculator icons */
:root{
  --dh-font:"Segoe UI Variable Text","Segoe UI Variable","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body,button,input,select,textarea{font-family:var(--dh-font)!important;font-synthesis:none}
body{font-size:16px;letter-spacing:0}
p,li,a,span,small,label,input,select,textarea{font-family:var(--dh-font)!important}
h1,h2,h3,h4,strong,.btn,.nav-link{font-family:var(--dh-font)!important;letter-spacing:-.012em}
.site-footer,.site-footer p,.site-footer a,.compliance,.compliance p{font-family:var(--dh-font)!important;text-rendering:geometricPrecision}
.site-footer p,.compliance p{font-size:.93rem!important;line-height:1.65!important}

/* Keep all four corners of the Why cards visible above the section transition. */
.why-system-section{overflow:visible!important;padding-bottom:6.6rem!important;isolation:isolate}
.why-system-section>.shell{position:relative;z-index:3}
.compact-why-grid{position:relative;z-index:4;margin-bottom:.25rem}
.compact-why-item{border-radius:20px!important;overflow:visible!important}
.why-system-section::after{z-index:0!important;bottom:-88px!important;height:175px!important}

/* Replace photo tiles with crisp, minimal mortgage-purpose vectors. */
.vector-tool-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}
.vector-tool{
  min-height:185px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  padding:1.15rem!important;
  gap:.85rem!important;
  background:linear-gradient(160deg,rgba(255,255,255,.97) 0%,rgba(234,248,252,.94) 100%)!important;
  border:1px solid rgba(25,147,178,.2)!important;
  border-radius:20px!important;
  box-shadow:0 14px 32px rgba(5,53,80,.09)!important;
  overflow:hidden!important;
  position:relative!important;
}
.vector-tool::after{content:"";position:absolute;right:-38px;top:-42px;width:112px;height:112px;border-radius:50%;background:radial-gradient(circle,rgba(32,198,232,.16),rgba(32,198,232,0));pointer-events:none}
.vector-tool:hover{transform:translateY(-4px);border-color:rgba(32,198,232,.62)!important;box-shadow:0 20px 40px rgba(5,53,80,.14)!important}
.tool-vector{
  width:58px;height:58px;display:grid;place-items:center;flex:0 0 auto;
  border-radius:17px;
  background:linear-gradient(145deg,#073b63 0%,#0b7898 55%,#20c6e8 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(5,92,126,.22);
  position:relative;z-index:1;
}
.tool-vector svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
.vector-tool .tool-copy{padding:0!important;gap:.42rem!important;position:relative;z-index:1}
.vector-tool .tool-copy strong{font-size:1.02rem!important;line-height:1.18!important;color:#082744!important}
.vector-tool .tool-copy small{font-size:.86rem!important;line-height:1.45!important;color:#456379!important;font-weight:500!important}

/* Slightly improve text rendering on content cards site-wide. */
.compact-scenario-card p,.compact-why-item p,.compact-usecase p,.edu-card p,.panel p,.contact-card p{font-size:.94rem;line-height:1.55}
.compact-scenario-card h3,.compact-why-item h3,.compact-usecase strong{font-weight:700}

@media (max-width:1000px){.vector-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:700px){
  .why-system-section{padding-bottom:4.2rem!important;overflow:hidden!important}.why-system-section::after{display:none!important}
  .vector-tool-grid{grid-template-columns:1fr!important}.vector-tool{min-height:150px!important}
  .site-footer p,.compliance p{font-size:.9rem!important}
}
