/* Active static pages only. The old prototype keeps assets/styles.css. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[tabindex='-1']:focus {
  outline: none;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
}
.button:hover {
  border-color: var(--muted);
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.download-page {
  padding: 56px var(--page-gutter) 72px;
}
.download-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 64px;
  padding-bottom: 56px;
}
.download-page h1 {
  max-width: 660px;
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.download-lead {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.download-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--soft);
}
.download-card > svg {
  margin-bottom: 20px;
  color: var(--muted);
}
.download-page h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.download-card h2 {
  font-size: 22px;
}
.download-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.download-card .download-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
  text-underline-offset: 4px;
}
.download-secondary:hover {
  text-decoration: underline;
}
.download-section {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.download-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 32px 0 48px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.download-steps li {
  counter-increment: steps;
  min-width: 0;
}
.download-steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.download-steps h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 550;
}
.download-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.download-page code {
  font: inherit;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.download-steps a,
.download-help a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.download-help {
  max-width: 800px;
}
.download-help details {
  border-bottom: 1px solid var(--line);
}
.download-help summary {
  padding: 20px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 550;
}
.download-help details p {
  margin: 0;
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 1000px) {
  .download-intro {
    gap: 32px;
  }
  .download-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}
@media (max-width: 650px) {
  .download-page {
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .download-intro {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 36px;
  }
  .download-lead {
    font-size: 16px;
  }
  .download-card {
    padding: 24px;
  }
  .download-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-block: 28px 36px;
  }
  .download-steps li {
    position: relative;
    padding-left: 40px;
  }
  .download-steps li::before {
    position: absolute;
    left: 0;
    top: 2px;
  }
  .wm-empty-actions {
    flex-direction: column;
  }
}

#install-app[hidden] { display: none; }
