/* Keep the App Store route visible on every content page. */
html { scroll-padding-top: 108px; }
.site-header,
.page-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(6, 17, 13, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-inner {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  border-bottom: 0;
}
.header-inner .brand { min-width: 0; }
.header-inner .brand img { flex-shrink: 0; }
.header-inner .download-cta {
  grid-column: 3;
  min-height: 52px;
  min-width: 120px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  text-align: start;
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.15;
  white-space: nowrap;
}
.download-cta small {
  display: block;
  margin-bottom: 3px;
  font-size: .75rem;
  font-weight: 650;
}
.header-inner .download-cta:hover { background: var(--accent-bright); }
.header-inner .download-cta:focus-visible { outline-color: var(--ink); }
.page-body.has-download-header { padding-top: 89px; }
.page-back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); margin-bottom: 20px; }
.hero-actions .button-primary { min-height: 62px; padding: 12px 26px; font-size: 1.35rem; }
.hero-actions .button-primary small { font-size: .85rem; line-height: 1.3; margin-bottom: 3px; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-inner nav { display: none; }
  .header-inner .download-cta { grid-column: 2; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 94px; }
  .page-body.has-download-header { padding-top: 77px; }
  .header-inner { gap: 12px; }
  .header-inner .download-cta { min-width: 110px; padding: 8px 12px; gap: 8px; }
}
@media (max-width: 380px) {
  .header-inner .brand { gap: 8px; }
  .header-inner .brand span { max-width: 112px; font-size: .82rem; line-height: 1.25; }
  .header-inner .download-cta { min-width: 102px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
