.desktop-download-qr { display: none; }
@media (min-width: 1081px) and (hover: hover) and (pointer: fine) {
  .desktop-download-qr { display: block; margin-top: 20px; }
  .download-qr-link { display: flex; align-items: center; gap: 16px; max-width: 390px; color: inherit; text-decoration: none; text-align: left; }
  .download-qr-link img { flex: 0 0 160px; width: 160px; height: 160px; border-radius: 12px; background: #fff; }
  .download-qr-link span { display: grid; gap: 6px; min-width: 0; }
  .download-qr-link strong { font-size: 17px; line-height: 1.4; }
  .download-qr-link small { font-size: 14px; line-height: 1.5; }
  .download-qr-link:focus-visible { outline: 3px solid #ffd0a8; outline-offset: 5px; border-radius: 12px; }
}
.calculator-related-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 12px 0; }
.calculator-related-tools a { color: #fff; text-decoration: underline; text-underline-offset: 4px; line-height: 1.5; padding-block: 10px; }
.download-page { margin: 0; min-height: 100vh; box-sizing: border-box; background: #0c3d73; color: #f7f9ff; font: 16px/1.5 system-ui, sans-serif; padding: 32px 16px 140px; }
.download-page *, .download-page *::before, .download-page *::after { box-sizing: border-box; }
.download-card { max-width: 540px; margin: 0 auto; padding: 28px; border-radius: 24px; background: #092e58; text-align: center; box-shadow: 0 12px 40px #0002; }
.download-logo { width: 182px; height: auto; }
.download-page h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; overflow-wrap: anywhere; margin: 28px 0 12px; }
.download-page p { margin: 12px 0; }
.download-page a { color: inherit; }
.download-page a:focus-visible, .download-page button:focus-visible { outline: 3px solid #ffd0a8; outline-offset: 4px; }
.download-page .store-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.download-page .store-badge-link { --store-badge-height: 48px; display: inline-flex; flex: 0 0 auto; width: calc(var(--store-badge-height) * 167 / 56); height: var(--store-badge-height); align-items: center; justify-content: center; overflow: hidden; position: relative; border-radius: 7px; }
.download-page .store-badge { display: block; width: 100%; height: 100%; }
.download-page .google-play-badge { width: calc(var(--store-badge-height) * 564 / 168); }
.download-page .google-play-store-badge { width: calc(var(--store-badge-height) * 646 / 168); height: calc(var(--store-badge-height) * 250 / 168); max-width: none; flex-shrink: 0; }
.download-proof { padding: 0; list-style: none; margin: 20px 0; font-size: 14px; }
.download-proof li { margin: 8px 0; }
.download-back { display: inline-block; padding: 12px; }
.download-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; max-width: 540px; margin: 16px auto; font-size: 13px; }
.download-footer a { padding: 8px; }
.download-page [hidden] { display: none !important; }
.download-page .consent-banner { position: fixed; inset: auto 12px 12px; z-index: 100; }
.download-page .consent-card { max-width: 700px; margin: auto; background: #fff; color: #142b47; padding: 12px; border: 1px solid #c2cfdf; border-radius: 14px; box-shadow: 0 3px 24px #0003; }
.download-page .consent-title { font-weight: 700; margin: 0 0 4px; font-size: 14px; }
.download-page .consent-card p { font-size: 12px; line-height: 1.3; margin: 0 0 8px; }
.download-page .consent-actions { display: flex; gap: 8px; }
.download-page .btn { flex: 1; min-height: 44px; padding: 8px; border: 1px solid #0c3d73; border-radius: 8px; color: #0c3d73; background: #fff; font: 600 13px/1.2 system-ui, sans-serif; cursor: pointer; }
.download-page .btn.primary { background: #0c3d73; color: #fff; }
@media (max-width: 340px) {
  .download-page { padding: 24px 12px 140px; }
  .download-card { padding: 20px 12px; }
  .download-page .store-badge-link { --store-badge-height: 44px; }
  .download-page .store-actions { gap: 8px; }
  .download-page .consent-card { padding: 10px; }
  .download-page .consent-actions { gap: 6px; }
}

/* Device preference changes emphasis without changing store artwork or URLs. */
.store-actions[data-preferred-store] { gap: 14px; flex-wrap: wrap; }
.store-actions[data-preferred-store] .store-badge-link { --store-badge-height: 44px; --store-badge-width: calc(var(--store-badge-height) * 167 / 56); border-radius: 7px; }
.store-actions[data-preferred-store] .google-play-badge { --store-badge-width: calc(var(--store-badge-height) * 564 / 168); }
.store-actions[data-preferred-store] .store-badge-link[data-store-preferred] { --store-badge-height: 48px; box-shadow: 0 0 0 3px #ffb06e; }
.store-actions[data-preferred-store] .store-badge-link:focus-visible { outline: 3px solid #fff; outline-offset: 7px; }
.calculator-results .store-actions[data-preferred-store] { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 8px 4px; }
.calculator-results .store-actions[data-preferred-store] .store-badge-link[data-store-preferred] { --store-badge-height: 56px; }
