/* Keep actions attached to their supporting text. */
.actions {
  gap: 12px 18px;
  margin-top: 24px;
  align-items: center;
}
.actions .button {
  flex: 0 0 auto;
}
.actions .textlink {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: #9aa5c3;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  line-height: 1.4;
}
.heading.bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 28px;
  margin-bottom: 0;
  max-width: 780px;
}
.heading.bottom > p {
  margin-bottom: 0;
  max-width: 740px;
}
.heading.bottom .actions {
  margin-top: 18px;
  margin-bottom: 0;
}
.contact .email {
  margin: 24px 0 18px;
}
@media (max-width: 540px) {
  .actions {
    align-items: flex-start;
    gap: 8px 16px;
  }
  .hero .actions,
  .heading.bottom .actions {
    flex-direction: column;
  }
  .actions .textlink {
    min-height: 44px;
  }
  .heading.bottom {
    margin-top: 22px;
  }
}

.site-footer {
  display: block;
  padding: 52px 0 24px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
}
.footer-identity { display: block; }
.footer-identity strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.6px;
  line-height: 1.4;
}
.footer-identity strong span { color: #3744dc; }
.footer-identity > span {
  display: block;
  font-size: 14px;
  color: #535d70;
  margin-top: 6px;
  line-height: 1.6;
}
.site-footer a { text-decoration: none; }
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  transition: color .2s;
}
.footer-links a:hover {
  color: #3744bd;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid #cdd4e7;
  padding-top: 18px;
  color: #535d70;
  font-size: 13px;
}
@media (max-width: 820px) {
  .site-footer { padding-top: 36px; }
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
  }
  .footer-identity strong { font-size: 21px; }
  .footer-links { gap: 8px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-links a { transition: none; }
}
