

html body #homeView {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

html body #homeView > .home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: 56px;
  row-gap: 40px;
  align-items: start;
  grid-template-areas:
    "head head"
    "copy plate"
    "stat stat";
}

html body .home-lead > .home-sheet-head {
  grid-area: head;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sc-border);
  font-size: 13px;
  color: var(--sc-ink-2);
}

html body .home-lead > .home-lead-copy {
  grid-area: copy;
  display: grid;
  gap: 20px;
  align-content: start;
}

html body .home-kicker {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--sc-accent) !important;
  margin: 0 !important;
}

html body .home-intro {
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: var(--sc-ink-2) !important;
  max-width: 44ch;
  margin: 0 !important;
}

html body .home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

html body .home-market-tape {
  border-top: 1px solid var(--sc-border);
  padding-top: 16px;
}

html body .home-caution {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--sc-ink) !important;
  border-left: 2px solid var(--sc-warning);
  padding-left: 12px;
  margin: 0 !important;
}

html body .home-loan-plate {
  grid-area: plate;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 20px;
  background: var(--sc-surface);
}

html body .home-loan-drawing svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

html body .home-stat-strip {
  grid-area: stat;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--sc-border);
  border-bottom: 1px solid var(--sc-border);
}

html body .home-stat-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 12px 0 4px;
  font-size: 12px;
  color: var(--sc-ink-2);
}

html body .home-stat {
  padding: 16px 16px 18px 0;
  display: grid;
  gap: 6px;
}

html body .home-stat[hidden] {
  display: none !important;
}

html body .home-stat + .home-stat {
  padding-left: 16px;
  border-left: 1px solid var(--sc-border);
}

html body .home-stat strong {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--sc-ink);
}

html body .home-stat span,
html body .home-stat small {
  font-size: 12px;
  color: var(--sc-ink-2);
}

html body #homeView > .home-stocks {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}

html body .home-stocks-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--sc-border);
  padding-bottom: 16px;
}

html body .home-market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

html body .home-calculator {
  border-left: 1px solid var(--sc-border);
  padding-left: 32px;
}

html body .home-risk {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid var(--sc-border);
  padding-top: 32px;
}

html body .home-lending {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--sc-border);
  padding-top: 32px;
}

@media (max-width: 960px) {
  html body #homeView > .home-lead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "copy"
      "plate"
      "stat";
  }

  html body .home-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body .home-stat + .home-stat {
    border-left: none;
    padding-left: 0;
  }

  html body .home-market-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html body .home-calculator {
    border-left: none;
    padding-left: 0;
  }

  html body .home-risk,
  html body .home-lending {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  html body #homeView {
    padding: 24px 16px 56px;
  }

  html body .home-stat-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  html body .home-stat,
  html body .home-stat + .home-stat {
    padding: 12px 0;
    border-left: none;
  }
}
