.minimal-home {
  --phone-width: clamp(127.174px, 24.456522svh, 234.783px);
  position: relative;
  min-width: calc(var(--phone-width) + 40px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

:root:not([data-theme="dark"]) .minimal-home {
  --paper: #faf8f7;
  --soft: #f0eceb;
}

.download-page {
  flex: 1;
  min-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 72px 20px 28px;
}

.minimal-home .site-header {
  position: absolute;
  height: 64px;
  justify-content: flex-end;
}

.minimal-home .site-header nav { gap: 14px; }

.download-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-intro .brand { gap: 12px; font-size: 1.65rem; }
.download-intro .brand img { width: 52px; height: 52px; }
.download-intro .brand > span { white-space: nowrap; }

.download-intro .brand-dot {
  color: var(--pushbeat-primary);
  font-size: 1.5em;
  line-height: 0;
}

.download-intro h1 {
  margin: 18px 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-transform: none;
}

.download-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.download-intro .product-description { margin-bottom: 6px; max-width: 340px; }

.training-details {
  width: min(100%, 420px);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.training-details summary { cursor: pointer; text-align: center; }
.training-details dt { color: var(--ink); font-weight: 600; margin-top: 14px; }
.training-details dd { margin: 4px 0 0; }
.training-details a { text-decoration: underline; text-underline-offset: 3px; }
.training-details summary:focus-visible { outline: 2px solid var(--pushbeat-primary); outline-offset: 4px; }

@media (max-width: 480px) {
  .minimal-home .site-header { width: calc(100% - 32px); }
  .download-intro .brand { gap: 10px; font-size: 1.4rem; }
  .download-intro .brand img { width: 44px; height: 44px; }
  .minimal-home .site-header nav { gap: 8px; }
}

.app-preview {
  position: absolute;
  left: 5.333333%;
  top: 2.5%;
  width: 89.333333%;
  height: 95%;
  object-fit: cover;
  border-radius: 12% / 5.5%;
}

.iphone-frame {
  position: relative;
  width: var(--phone-width);
  aspect-ratio: 1350 / 2760;
  flex-shrink: 0;
}

.iphone-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.download-actions {
  display: grid;
  width: min(100%, 309px);
  grid-template-columns: 146px 163px;
  gap: 0;
}

.minimal-home .download-actions .store-badge {
  width: 100%;
  min-height: 63px;
  padding: 0;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.minimal-home .download-actions .store-badge:hover {
  background: transparent;
  transform: none;
}

.store-badge-image { display: block; width: auto; height: 42px; }
.store-badge-image.google-play-badge { height: 63px; }

@media (max-width: 359px) {
  .download-intro .brand { flex-direction: column; }
  .download-actions { grid-template-columns: 1fr; justify-items: center; }
  .minimal-home .download-actions .store-badge { width: 163px; }
  .minimal-home .download-actions .apk-download { flex-direction: column; gap: 2px; }
}

.download-actions .android-downloads {
  display: contents;
}

.download-actions .apk-download {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  font-size: 0.75rem;
}

.download-actions .apk-download-label {
  color: var(--muted);
}

.download-actions a:focus-visible {
  outline: 2px solid var(--pushbeat-primary);
  outline-offset: 4px;
}

.minimal-footer {
  min-height: 48px;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 12px 20px;
  background: transparent;
}

.minimal-footer .copyright {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
}

.minimal-footer .footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 359px) {
  .minimal-footer .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .minimal-footer .footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
  }
}
