* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8f5;
  color: #17212b;
  line-height: 1.55;
}

body.home {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(224, 169, 58, .18), rgba(78, 159, 122, .14) 42%, rgba(23, 33, 43, .08)),
    #f7faf7;
}

.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #17212b;
  text-decoration: none;
  min-width: 210px;
}

.brand img {
  display: block;
  width: min(290px, 58vw);
  height: auto;
}

.public-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.public-nav a {
  color: #344054;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}

.public-nav a:hover {
  background: #eef3ef;
  color: #17212b;
}

.login-area {
  position: relative;
}

.login-toggle {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #17212b;
  border: 1px solid #cfd8d3;
  box-shadow: 0 8px 18px rgba(23, 33, 43, .06);
}

.login-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 33, 43, .18);
}

.home-main {
  width: min(1160px, calc(100% - 32px));
  margin: 8px auto 34px;
}

.home-hero {
  min-height: min(540px, calc(100vh - 210px));
  display: flex;
  align-items: center;
  padding: 34px 0 64px;
}

.home-copy {
  max-width: 860px;
}

.home-copy h1 {
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 16px;
  position: relative;
}

.home-copy h1::after {
  content: "";
  display: block;
  width: min(220px, 54vw);
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0a93a, #4e9f7a, #17212b);
}

.lead {
  max-width: 760px;
  font-size: clamp(19px, 2.4vw, 27px);
  color: #344054;
  margin: 0;
}

.project-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: #475467;
  font-size: 16px;
}

.product-board {
  background: #ffffff;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(23, 33, 43, .10);
  position: relative;
  overflow: hidden;
}

.product-board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #e0a93a, #4e9f7a, #176b87);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1ee;
}

.board-top span {
  color: #17212b;
  font-size: 22px;
  font-weight: 900;
}

.board-top strong,
.card-kicker {
  border-radius: 8px;
  padding: 5px 8px;
  background: #eef7f1;
  color: #276749;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.board-copy {
  margin: 18px 0 0;
  color: #475467;
  font-size: 18px;
}

.roadmap-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.roadmap-list div {
  padding: 12px 14px;
  border: 1px solid #edf1ee;
  border-radius: 8px;
  background: #fbfcfb;
}

.roadmap-list span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.roadmap-list strong {
  color: #17212b;
}

.release-note {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #edf1ee;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfcfb, #f5faf6);
  border-left: 4px solid #4e9f7a;
}

.release-note span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.release-note strong {
  color: #17212b;
  font-size: 19px;
  line-height: 1.35;
}

.product-section {
  padding: 26px 0 22px;
  border-top: 1px solid #dfe7e1;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
  color: #475467;
  font-size: 17px;
  margin: 0;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  padding: 18px;
  min-height: 190px;
}

.product-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.product-card p {
  margin: 0;
  color: #475467;
}

.primary-product {
  border-color: #b7d9c5;
  background: #fbfffc;
}

.portal-panel {
  background: #ffffff;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info {
  border: 1px solid #d7ded8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.info span {
  display: block;
  color: #667085;
  font-size: 13px;
  margin-bottom: 6px;
}

.info strong {
  color: #101828;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #667085;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: #667085;
  font-weight: 700;
}

a {
  color: #176b87;
  font-weight: 700;
}

.top {
  background: #ffffff;
  border-bottom: 1px solid #d7dde6;
  padding: 18px 22px;
}

.top strong {
  display: block;
  font-size: 20px;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

main {
  width: min(940px, calc(100% - 28px));
  margin: 20px auto 36px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

ul {
  padding-left: 22px;
}

.notice {
  background: #fff4d8;
  border: 1px solid #ffd36b;
  border-radius: 8px;
  padding: 12px;
  color: #513600;
}

.muted {
  color: #667085;
}

.footer {
  color: #667085;
  font-size: 13px;
}

.portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-top nav {
  margin-top: 0;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 14px;
}

.hero-panel {
  min-height: 260px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #176b87;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.login-panel h2 {
  margin-top: 0;
}

.login-hint {
  margin: 6px 0 12px;
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
}

.login-form input,
.login-form select {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button,
.secondary-button {
  min-height: 42px;
  border: 1px solid #176b87;
  border-radius: 6px;
  background: #176b87;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button {
  background: #ffffff;
  color: #176b87;
  padding: 0 14px;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
}

.form-status.ok {
  color: #107c41;
}

.form-status.bad {
  color: #b42318;
}

.hidden {
  display: none !important;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.portal-card {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #ffffff;
  color: #17212b;
  text-decoration: none;
}

.portal-card strong {
  font-size: 17px;
}

.portal-card span {
  color: #667085;
  font-weight: 400;
}

.portal-card-button {
  width: 100%;
  text-align: left;
}

@media (max-width: 720px) {
  .portal-top,
  .portal-hero {
    display: block;
  }

  .portal-top nav {
    margin-top: 8px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .public-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .home-main {
    margin-top: 14px;
  }

  .home-hero {
    display: block;
    min-height: 0;
    padding: 34px 0 10px;
  }

  .product-board {
    margin: 28px 0 10px;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img {
    width: min(250px, 58vw);
  }

  .public-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow: hidden;
  }
}

@media (max-width: 780px) {
  .public-nav {
    display: none;
  }

  .brand img {
    width: min(235px, 62vw);
  }

  .login-toggle {
    min-width: 82px;
  }
}
