/* Reuse the homepage tokens and store-badge component without its navigation or scripts. */
.download-page {
  color-scheme: light;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--green-deep);
  color: var(--white);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-text-size-adjust: 100%;
}

.download-page a:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 6px;
  border-radius: 6px;
}

.download-header { padding-block: 24px 16px; }
.download-brand { display: inline-flex; }
.download-brand img { width: 145px; height: 40px; object-fit: contain; }

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 700px) 224px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  padding-block: 24px 40px;
}

.download-copy h1 {
  max-width: 700px;
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1.08;
}

.download-lead {
  max-width: 570px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  line-height: 1.6;
}

.download-free {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.download-stores { margin-top: 24px; justify-content: flex-start; }
.download-stores > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.download-stores a { width: 180px; height: 60px; transition: opacity 150ms ease; }
.download-stores a:hover { opacity: 0.8; }

.download-qr { text-align: center; }
.download-qr a { display: inline-block; padding: 8px; background: white; border-radius: 16px; border: 1px solid var(--line); }
.download-qr img { width: 176px; height: 176px; }
.download-qr p { margin-top: 12px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }

.download-audiences {
  padding-block: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.download-audiences h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.download-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }

/* Compact dark variant of the homepage's role cards. */
.download-role.role-node {
  height: auto;
  justify-content: flex-start;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
.download-role.role-node::before,
.download-role.role-node::after { content: none; }
.download-role.role-node h3 { font-size: 0.95rem; line-height: 1.4; }
.download-role h3 span { margin-left: 4px; color: rgba(255, 255, 255, 0.6); }
.download-role.role-node p { color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; line-height: 1.5; }
.download-role:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.download-role:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.download-explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.download-explore h2 { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; font-weight: 500; line-height: 1.5; }
.download-explore a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.95rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 5px; }
.download-explore a:hover { text-decoration-color: currentColor; }

.download-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px 20px; background: transparent; font-size: 0.75rem; color: rgba(255, 255, 255, 0.65); }
.download-footer > div { display: flex; gap: 22px; }
.download-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.download-footer a:hover { color: white; text-decoration: underline; }

@media (max-width: 1023px) {
  .download-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px), (max-width: 1023px) and (max-height: 500px) and (pointer: coarse) {
  .download-page .wrap { width: min(520px, calc(100% - 40px)); }
  .download-header { text-align: center; padding-block: 20px 12px; }
  .download-brand img { width: 132px; height: 36px; }
  .download-hero { display: block; padding-block: 8px 28px; text-align: center; }
  .download-copy h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1.12; }
  .download-lead { margin: 14px auto 0; max-width: 390px; font-size: 0.95rem; line-height: 1.6; }
  .download-stores { margin-top: 18px; justify-content: center; }
  .download-stores > div { flex-direction: column; gap: 10px; }
  .download-stores a { width: 190px; height: 60px; }
  .download-qr { display: none; }
  .download-audiences { padding-block: 24px; }
  .download-roles { gap: 10px; margin-top: 16px; }
  .download-role.role-node { padding: 14px; }
  .download-role.role-node h3 { font-size: 0.9rem; }
  .download-role.role-node p { font-size: 0.8rem; }
  .download-explore { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 20px; }
  .download-footer { padding-bottom: 10px; font-size: 0.7rem; }
}

@media (max-width: 359px) {
  .download-role.role-node { padding: 12px; }
  .download-role h3 span { display: none; }
}

/* Leave room for the preferred store in short social-browser sheets. */
@media (max-width: 767px) and (max-height: 650px), (max-width: 1023px) and (max-height: 500px) and (pointer: coarse) {
  .download-header { padding-block: 14px 8px; }
  .download-brand img { width: 124px; height: 34px; }
  .download-copy h1 { font-size: clamp(1.75rem, 7.8vw, 2.1rem); line-height: 1.1; }
  .download-lead { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; }
  .download-stores { margin-top: 16px; }
  .download-stores > div { gap: 8px; }
  .download-stores a { width: 180px; height: 56px; }
  .download-free { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-stores a { transition: none; }
}
