@font-face {
  font-family: Autor;
  src: url("assets/fonts/Autor-Medium.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Autor;
  src: url("assets/fonts/Autor-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: ivypresto-headline;
  src: url("assets/fonts/ivypresto-headline-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("assets/fonts/Roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("assets/fonts/Roboto-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("assets/fonts/Roboto-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("assets/fonts/Roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002c4e;
  --navy-deep: #00213b;
  --ink: #323a3f;
  --muted: #5c646c;
  --gold: #f3d01c;
  --utility: #f2f3f4;
  --line: #e6e8ea;
  --white: #ffffff;
  --pill: 999px;
  --form-width: 27rem;
  --page: 82rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Autor, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 16px;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--white);
  padding: 8px 12px;
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding: 0 40px;
  background: var(--utility);
}

.utility-left,
.utility-right {
  display: flex;
  gap: 22px;
  align-items: center;
}

.utility-left a,
.utility-right a,
.pay-loan {
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.utility-left a.is-active {
  font-weight: 700;
}

.utility-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-right img {
  width: 16px;
  height: 16px;
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  min-height: 78px;
}

.logo {
  width: 130px;
  height: 40px;
  object-fit: contain;
}

.product-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.product-nav button {
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  padding: 24px 10px;
  white-space: nowrap;
  font-family: Autor, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-nav button img {
  width: 16px;
  height: 16px;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.sign-in-pill,
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: var(--pill);
  padding: 8px 28px;
  min-height: 52px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
}

.sign-in-pill img,
.submit img {
  width: 13px;
  height: 15px;
  filter: invert(1);
}

.icon-btn {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px;
}

.icon-btn img {
  width: 19px;
  height: 19px;
}

.fdic-bar {
  padding: 8px 40px 12px;
}

.fdic-bar img {
  width: 442px;
  height: 18px;
  object-fit: contain;
  object-position: left center;
}

.search-panel {
  padding: 12px 40px 16px;
  border-top: 1px solid var(--line);
  background: var(--utility);
}

.search-panel label {
  display: block;
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 6px;
}

.search-panel input {
  width: 100%;
  max-width: 480px;
  height: 48px;
  border: 0.8px solid var(--muted);
  border-radius: 4px;
  padding: 0 12px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
}

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 40px 56px;
}

.hero-inner {
  max-width: var(--page);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: ivypresto-headline, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 48px;
  letter-spacing: 1px;
}

.signin-section {
  padding: 32px 40px 48px;
}

.signin-split {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-panel {
  max-width: var(--form-width);
  padding: 16px 0 32px;
}

.login-panel h2 {
  margin: 0 0 24px;
  font-family: Autor, Roboto, Arial, sans-serif;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  color: var(--ink);
}

.field {
  position: relative;
  margin-bottom: 18px;
}

.label,
.field label {
  display: block;
  font-family: Autor, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.select-btn,
.field input {
  width: 100%;
  height: 48px;
  background: var(--white);
  border: 0.8px solid var(--muted);
  border-radius: 4px;
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 28px;
}

.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.select-btn img {
  width: 24px;
  height: 24px;
}

.options {
  list-style: none;
  margin: 4px 0 0;
  padding: 8px 0;
  background: var(--white);
  color: var(--ink);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  border: 0.8px solid var(--muted);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.options li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

.options li:hover,
.options li[aria-selected="true"] {
  background: #eef4f8;
}

.submit {
  width: 100%;
  margin-top: 8px;
}

.submit:hover,
.sign-in-pill:hover {
  background: var(--navy-deep);
}

.form-error {
  color: #b42318;
  font-size: 14px;
  line-height: 24px;
  margin: 12px 0 0;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 28px;
}

.help-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 16px;
  color: var(--ink);
}

.help-links img {
  width: 16px;
  height: 16px;
}

.switch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
}

.switch-card .icon-yellow,
.more-grid .icon-yellow {
  filter: none;
}

.icon-yellow {
  color: var(--gold);
}

.switch-arrow {
  margin-left: auto;
  width: 16px;
  height: 15px;
}

.more {
  padding: 24px 40px 16px;
}

.more-inner {
  max-width: var(--page);
  margin: 0 auto;
}

.more h2 {
  font-family: ivypresto-headline, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 48px;
  letter-spacing: 1px;
  margin: 0 0 28px;
}

.more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 16px;
}

.more-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 154px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
}

.more-grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.alt-signins {
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px 40px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.alt-signins h3 {
  margin: 0 0 12px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.alt-signins a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.alt-signins img {
  width: 16px;
  height: 15px;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
}

.footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--page);
  margin: 0 auto 24px;
}

.footer-brand > img {
  width: 140px;
  height: auto;
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-badges img {
  height: 24px;
  width: auto;
}

.demo-note,
.site-footer nav {
  max-width: var(--page);
  margin: 0 auto;
}

.demo-note {
  font-size: 13px;
  line-height: 20px;
  color: #c8d0d6;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
}

.home-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.home-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
}

.home-hero-card {
  position: absolute;
  left: max(40px, calc((100% - var(--page)) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, calc(100% - 48px));
  background: var(--white);
  border-radius: 8px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.home-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
}

.home-hero-card h1 {
  margin: 0 0 12px;
  font-family: ivypresto-headline, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 48px;
  letter-spacing: 1px;
  color: var(--navy);
}

.home-hero-copy {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 24px;
}

.home-cta {
  display: inline-flex;
  text-decoration: none;
}

.quick-actions {
  max-width: var(--page);
  margin: -36px auto 0;
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.quick-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  min-height: 140px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-family: Autor, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--navy);
}

.quick-card img {
  width: 48px;
  height: 48px;
}

.products-intro {
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px 40px 32px;
  text-align: center;
}

.products-intro h2 {
  margin: 0 0 12px;
  font-family: ivypresto-headline, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 48px;
  letter-spacing: 1px;
}

.products-intro p {
  margin: 0;
  font-family: Autor, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--navy);
}

.product-tiles {
  max-width: var(--page);
  margin: 0 auto 64px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-tiles img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.product-tiles h3 {
  margin: 0 0 8px;
  font-family: ivypresto-headline, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 34px;
}

.product-tiles p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  max-width: var(--page);
  margin: 0 auto;
  font-size: 14px;
  line-height: 24px;
}

.demo-note a {
  color: #c8d0d6;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .product-nav {
    display: none;
  }

  .main-nav {
    grid-template-columns: 1fr auto;
  }

  .signin-split,
  .alt-signins {
    grid-template-columns: 1fr;
  }

  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1,
  .more h2,
  .home-hero-card h1,
  .products-intro h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .quick-actions,
  .product-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero-card {
    position: static;
    transform: none;
    width: auto;
    margin: 16px 20px 0;
  }

  .home-hero-img {
    height: 260px;
  }

  .quick-actions,
  .product-tiles {
    grid-template-columns: 1fr;
  }

  .utility-bar,
  .main-nav,
  .fdic-bar,
  .hero,
  .signin-section,
  .more,
  .alt-signins,
  .site-footer,
  .search-panel,
  .quick-actions,
  .products-intro,
  .product-tiles {
    padding-left: 20px;
    padding-right: 20px;
  }

  .more-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}
