.site-footer.company-footer {
  background: #102c30;
  color: #c5dbd6;
  padding-block: 40px 22px;
}

.company-footer-brand .brand {
  display: inline-flex;
  color: #f7f4ec;
}

.company-footer .company-footer-brand .brand-mark {
  background: #dcc59e;
  color: #102c30;
}

.company-footer-brand p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.company-footer .company-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-block: 1px solid #345257;
  margin-top: 26px;
  padding-block: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
}

.company-footer-heading {
  margin: 0 0 6px;
  color: #dcc59e;
  font-size: 15px;
  font-weight: 650;
}

.company-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.company-footer-nav a,
.company-footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  text-underline-offset: 4px;
}

.company-footer a:hover {
  color: #f7f4ec;
  text-decoration: underline;
}

.company-footer a:focus-visible {
  outline: 2px solid #dcc59e;
  outline-offset: 3px;
}

.company-footer-legal {
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.company-footer-legal p {
  margin: 0;
}

.company-footer-legal span::before {
  content: " · ";
}

.company-footer-legal a {
  text-decoration: underline;
}

.company-footer-register {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
}

.company-footer-register a + a {
  column-gap: 16px;
}

.company-footer-register a + a::before {
  content: "";
  width: 1px;
  height: 1em;
  background: #58716f;
}

@media (max-width: 540px) {
  .company-footer-register { column-gap: 12px; }
  .company-footer-register a + a { column-gap: 0; }
  .company-footer-register a + a::before { content: none; }
}

.company-contact a {
  overflow-wrap: anywhere;
}

.plan-prices {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.plan-prices caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 8px;
}

.plan-prices th,
.plan-prices td {
  padding: 10px 6px;
  border-bottom: 1px solid #c9d8c8;
  text-align: start;
}

.company-profile {
  max-width: 46rem;
  padding-block: clamp(40px, 5vw, 76px);
}

.company-profile h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.22;
  letter-spacing: -.04em;
}

.company-profile p {
  margin-top: 14px;
  color: #395a53;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
}

.company-profile .profile-intro {
  margin-top: 28px;
  color: #173331;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.65;
}

.company-profile h2 {
  margin-top: clamp(36px, 5vw, 56px);
  color: #174b48;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.45;
  text-wrap: balance;
}

.profile-founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 22%);
  align-items: start;
  gap: 28px;
  margin-top: 16px;
}

.profile-founder p:first-child {
  margin-top: 0;
}

.profile-founder figure {
  margin: 0;
}

.profile-founder img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-founder figcaption {
  margin-top: 8px;
  color: #395a53;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .profile-founder {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-founder figure {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .profile-founder img {
    width: 88px;
  }

  .profile-founder figcaption {
    margin: 0;
  }
}

.profile-signoff {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid #bda57a;
  padding-top: 8px;
}

.profile-signoff .profile-team {
  margin-block: 22px 8px;
  font-size: 15px;
}

.profile-team strong {
  color: #173331;
  font-size: 18px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #245f5a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 959px) {
  /* Keep footer links clear of the existing 134px fixed Gu Yan entry. */
  body:has(> #gu-yan-homepage:not([hidden])) .company-footer > .shell {
    padding-inline-end: 144px;
  }
}

@media (max-width: 540px) {
  .site-footer.company-footer {
    padding-block: 28px 16px;
  }

  .company-footer .company-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 20px;
    padding-block: 18px;
  }

  .company-footer-nav a,
  .company-footer-legal a {
    min-height: 36px;
  }

  .company-footer-legal span {
    display: block;
  }

  .company-footer-legal span::before {
    content: none;
  }
}
