:root {
  --page-bg: #f6f7f5;
  --page-ink: #172321;
  --page-muted: #63716d;
  --page-line: #dce5e1;
  --page-teal: #168b91;
  --page-blue: #2b76b8;
  --page-soft: #e8f2f5;
  --page-paper: #ffffff;
}

.subpage-page {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--page-ink);
}

.subpage-page .site-header {
  background: rgb(246 247 245 / 94%);
  border-bottom-color: var(--page-line);
}

.subpage-page .site-nav a {
  color: var(--page-muted);
}

.subpage-page .site-nav a:hover,
.subpage-page .site-nav a[aria-current='page'] {
  color: var(--page-ink);
}

.subpage-page .site-nav a[aria-current='page'] {
  text-decoration-color: var(--page-teal);
}

.subpage-main {
  min-height: calc(100vh - 150px);
}

.subpage-intro {
  width: min(1120px, calc(100% - 40px));
  min-height: 360px;
  margin: 0 auto;
  padding: 84px 0 66px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--page-line);
}

.subpage-intro > div {
  max-width: 760px;
}

.subpage-kicker {
  margin: 0 0 14px;
  color: var(--page-teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.subpage-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.subpage-intro p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--page-muted);
  font-size: 19px;
  line-height: 1.7;
}

.subpage-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.subpage-section-heading {
  max-width: 640px;
  margin-bottom: 42px;
}

.subpage-section-heading h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
}

.subpage-section-heading p {
  margin: 0;
  color: var(--page-muted);
}

.subpage-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
}

.subpage-feature-card {
  min-width: 0;
  min-height: 270px;
  padding: 28px 28px 34px;
  border-right: 1px solid var(--page-line);
}

.subpage-feature-card:first-child {
  padding-left: 0;
}

.subpage-feature-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.subpage-feature-number {
  color: var(--page-blue);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.subpage-feature-card h2 {
  margin: 48px 0 12px;
  font-size: 23px;
  line-height: 1.25;
}

.subpage-feature-card p {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.75;
}

.subpage-feature-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
}

.subpage-feature-strip article {
  min-width: 0;
  padding: 28px 30px 32px;
  border-right: 1px solid var(--page-line);
}

.subpage-feature-strip article:first-child {
  padding-left: 0;
}

.subpage-feature-strip article:last-child {
  padding-right: 0;
  border-right: 0;
}

.subpage-feature-strip h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.subpage-feature-strip p {
  margin: 0;
  color: var(--page-muted);
}

.subpage-next {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.subpage-next p {
  margin: 0;
  color: var(--page-muted);
}

.subpage-link-button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--page-ink);
  border-radius: 6px;
  background: var(--page-ink);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.subpage-link-button:hover,
.subpage-link-button:focus-visible {
  background: var(--page-teal);
  border-color: var(--page-teal);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 72px;
  align-items: start;
}

.download-product {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--page-paper);
  border: 1px solid var(--page-line);
}

.download-product img {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 22px;
}

.download-product h2 {
  margin: 0 0 5px;
  font-size: 24px;
}

.download-product p {
  margin: 0;
  color: var(--page-muted);
  font-size: 14px;
}

.download-product .download-version {
  margin-top: 12px;
  color: var(--page-teal);
  font: 750 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.download-platform-list {
  border-top: 1px solid var(--page-line);
}

.download-platform {
  min-height: 116px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--page-line);
}

.download-platform h3 {
  margin: 0 0 4px;
  font-size: 21px;
}

.download-platform p {
  margin: 0;
  color: var(--page-muted);
  font-size: 14px;
}

.download-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--page-soft);
  color: var(--page-blue);
  font-size: 13px;
  font-weight: 750;
}

.download-status.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 14px;
  background: var(--page-teal);
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.download-status.download-link:hover {
  background: var(--page-blue);
  color: #fff;
  transform: translateY(-1px);
}

.download-status.download-link:focus-visible {
  outline: 2px solid var(--page-blue);
  outline-offset: 3px;
}

.download-note {
  margin-top: 34px;
  padding: 20px 22px;
  background: #e8f3ed;
  border-left: 3px solid #19724d;
  color: #34564a;
}

.download-note p {
  margin: 0;
}

.subpage-footer {
  background: var(--page-bg);
  border-top: 1px solid var(--page-line);
  color: var(--page-muted);
}

.subpage-footer .site-footer-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
}

.subpage-footer img {
  width: 112px;
}

.subpage-footer .site-footer-inner > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.subpage-footer .site-footer-inner span,
.subpage-footer .site-footer-inner small {
  font-size: 12px;
}

.subpage-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.subpage-footer a {
  color: var(--page-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .subpage-intro {
    min-height: 300px;
    padding: 68px 0 54px;
  }

  .subpage-feature-grid,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .subpage-feature-card,
  .subpage-feature-card:first-child,
  .subpage-feature-card:last-child {
    min-height: 0;
    padding: 26px 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--page-line);
  }

  .subpage-feature-card:last-child {
    border-bottom: 0;
  }

  .subpage-feature-card h2 {
    margin-top: 22px;
  }

  .download-layout {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .subpage-intro,
  .subpage-section,
  .subpage-footer .site-footer-inner {
    width: calc(100% - 32px);
  }

  .subpage-intro {
    min-height: 270px;
    padding: 54px 0 42px;
  }

  .subpage-intro h1 {
    font-size: 40px;
  }

  .subpage-intro p:last-child {
    font-size: 17px;
  }

  .subpage-section {
    padding: 60px 0;
  }

  .subpage-section-heading {
    margin-bottom: 28px;
  }

  .subpage-section-heading h2 {
    font-size: 29px;
  }

  .subpage-feature-strip {
    margin-top: 44px;
    grid-template-columns: 1fr;
  }

  .subpage-feature-strip article,
  .subpage-feature-strip article:first-child,
  .subpage-feature-strip article:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--page-line);
  }

  .subpage-feature-strip article:last-child {
    border-bottom: 0;
  }

  .subpage-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-product {
    padding: 22px 18px;
  }

  .download-product img {
    width: 78px;
    height: 78px;
    border-radius: 17px;
  }

  .download-platform {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .subpage-footer .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* Keep secondary pages focused: platform choice is the only download action. */
.download-simple-main {
  display: flex;
  flex-direction: column;
}

.download-simple {
  width: min(760px, calc(100% - 40px));
  min-height: calc(100svh - 132px);
  margin: 0 auto;
  padding: 84px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-simple-heading {
  margin-bottom: 42px;
}

.download-simple-heading h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.15;
}

.download-simple .download-platform {
  min-height: 92px;
}

.download-simple .download-platform h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

/* Match the homepage footer: compact, right-aligned metadata with dividers. */
.subpage-footer .site-footer-inner {
  min-height: 0;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.subpage-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.subpage-footer-meta > * {
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.4;
}

.subpage-footer-meta > * + * {
  border-left: 1px solid var(--page-line);
}

.subpage-footer-meta > :first-child {
  padding-left: 0;
}

.subpage-footer-meta > :last-child {
  padding-right: 0;
  color: #87938e;
}

.subpage-footer-meta a {
  color: var(--page-muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .download-simple {
    width: calc(100% - 32px);
    min-height: calc(100svh - 176px);
    padding: 56px 0;
  }

  .download-simple-heading {
    margin-bottom: 32px;
  }

  .download-simple-heading h1 {
    font-size: 38px;
  }

  .subpage-footer .site-footer-inner {
    width: calc(100% - 32px);
    height: auto;
    min-height: 52px;
    padding: 10px 0;
  }

  .subpage-footer-meta {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

.subpage-page .site-header .header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 56px;
  justify-content: flex-end;
}

.subpage-page .site-nav {
  justify-content: flex-end;
}

.feature-essentials-list {
  border-top: 1px solid var(--page-line);
}

.feature-essentials-item {
  min-width: 0;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 720px);
  gap: 32px;
  border-bottom: 1px solid var(--page-line);
}

.feature-essentials-item h3 {
  margin: 0 0 7px;
  font-size: 22px;
  line-height: 1.3;
}

.feature-essentials-item p {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .subpage-page .site-header .header-inner {
    width: calc(100% - 32px);
    min-height: 60px;
    padding: 12px 0;
    align-items: center;
    flex-direction: row;
  }

  .subpage-page .site-nav {
    width: auto;
    gap: 18px;
    overflow-x: auto;
  }

  .feature-essentials-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
}