:root {
  color: #17201d;
  background: #f4f4ef;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f4f4ef;
}

.page-shell {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  border-bottom: 1px solid #d7dbd2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: #176b5b;
  color: #fff;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
}

.header-label,
.eyebrow {
  color: #58625d;
  font-size: 12px;
  letter-spacing: 0;
}

.intro {
  padding: 84px 0 56px;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #176b5b;
  font-weight: 700;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.13;
  letter-spacing: 0;
}

.intro > p:last-child {
  max-width: 600px;
  margin: 20px 0 0;
  color: #58625d;
  font-size: 16px;
  line-height: 1.8;
}

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

.package-card {
  min-height: 316px;
  padding: 24px;
  background: #fff;
  border: 1px solid #d7dbd2;
  display: flex;
  flex-direction: column;
}

.package-card[data-status="available"] {
  border-top: 4px solid #176b5b;
  padding-top: 21px;
}

.package-type {
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  background: #e7efe9;
  color: #176b5b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.package-card h2 {
  margin: 22px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.package-description {
  min-height: 48px;
  margin: 0;
  color: #58625d;
  font-size: 14px;
  line-height: 1.7;
}

.package-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  row-gap: 7px;
  margin: 22px 0 24px;
  color: #58625d;
  font-size: 12px;
  line-height: 1.45;
}

.package-meta dt {
  color: #7a837e;
}

.package-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.package-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.download-button,
.web-button {
  width: 100%;
  min-height: 42px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-button {
  background: #176b5b;
  border: 1px solid #176b5b;
  color: #fff;
}

.download-button:hover {
  background: #0f5447;
  border-color: #0f5447;
}

.download-button[aria-disabled="true"] {
  background: #edf0eb;
  border-color: #edf0eb;
  color: #7a837e;
  cursor: not-allowed;
}

.web-button {
  background: #fff;
  border: 1px solid #aeb7b1;
  color: #176b5b;
}

.web-button:hover {
  background: #f1f6f2;
  border-color: #176b5b;
}

.support-strip {
  margin: 64px 0 72px;
  padding: 22px 0;
  border-top: 1px solid #d7dbd2;
  border-bottom: 1px solid #d7dbd2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-strip p {
  margin: 0;
  color: #58625d;
  font-size: 14px;
  line-height: 1.6;
}

.support-strip .support-title {
  color: #17201d;
  font-weight: 700;
}

.text-link {
  flex: 0 0 auto;
  color: #176b5b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.loading,
.load-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 0;
  color: #58625d;
}

footer {
  padding: 0 20px 28px;
  color: #7a837e;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 32px, 540px);
  }

  .intro {
    padding: 58px 0 42px;
  }

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

  .package-card {
    min-height: 0;
  }
}

@media (max-width: 460px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    font-size: 14px;
  }

  .header-label {
    font-size: 11px;
  }

  .support-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}
