/* Platform cards reveal a QR code on hover/focus; touch devices use direct download links. */
.download-refresh { --download-muted: #566781; }
.download-refresh .download-page { min-height: 100dvh; padding: calc(var(--header) + 88px) 28px 64px; }
.download-refresh .download-bg-visual { opacity: .44; object-position: center; }
.download-refresh .download-bg-shade { background: linear-gradient(180deg, rgba(247,251,255,.91), rgba(237,246,255,.8)); }
.download-refresh .download-hero { display: flex; flex-direction: column; gap: 0; width: min(100%, 1060px); min-height: 0; padding: 0; text-align: center; }
.download-heading h1 { margin: 0; color: var(--ink); font-size: clamp(36px, 4.4vw, 58px); font-weight: 750; line-height: 1.25; letter-spacing: -.035em; }
.download-heading p { max-width: 700px; margin: 24px auto 0; color: var(--text); font-size: 17px; line-height: 1.8; text-wrap: balance; }
.download-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 28px; margin-top: 54px; width: min(100%, 628px); }
.platform-option { min-width: 0; }
.platform-card { position: relative; isolation: isolate; display: block; height: 294px; border-radius: 22px; border: 1px solid rgba(255,255,255,.9); background: #fff; box-shadow: 0 10px 30px rgba(49,91,160,.075); color: #24354e; overflow: hidden; transition: box-shadow 200ms ease, transform 200ms ease; }
.platform-front, .platform-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 180ms ease, transform 200ms ease; }
.platform-front { padding: 38px 20px 28px; }
.platform-front > .download-icon { width: 70px; height: 70px; margin-bottom: 25px; }
.platform-ios .platform-front > .download-icon { color: #282d36; }
.platform-android .platform-front > .download-icon { color: #52cd62; }
.platform-front strong { font-size: 20px; line-height: 1.4; font-weight: 500; }
.platform-description { margin-top: 12px; font-size: 12px; color: #68778d; }
.platform-back { opacity: 0; transform: translateY(5px); pointer-events: none; gap: 7px; padding: 20px; }
.platform-back img { width: 172px; height: 172px; background: #fff; }
.platform-back strong { font-size: 19px; font-weight: 500; line-height: 1.5; }
.platform-back > span { font-size: 12px; color: #68778d; }
.platform-corner { position: absolute; z-index: 1; right: 0; top: 0; width: 58px; height: 58px; background: #f0f5ff; clip-path: polygon(0 0, 100% 0, 100% 100%); transition: opacity 180ms ease; }
.platform-corner .download-icon { position: absolute; top: 11px; right: 10px; width: 23px; height: 23px; color: #3777ff; }
.platform-mobile-action { display: none; }
.platform-card:focus-visible { outline: 3px solid #1768f2; outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  .platform-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(49,91,160,.13); }
  .platform-card:hover .platform-front, .platform-card:hover .platform-corner { opacity: 0; }
  .platform-card:hover .platform-back { opacity: 1; transform: translateY(0); }
}
.platform-card:focus-visible .platform-front, .platform-card:focus-visible .platform-corner { opacity: 0; }
.platform-card:focus-visible .platform-back { opacity: 1; transform: translateY(0); }
.download-hover-hint { margin: 24px 0 0; color: var(--download-muted); font-size: 13px; line-height: 1.7; }
.download-guide-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 45px; min-height: 44px; color: var(--blue); font-size: 14px; }
.download-guide-link .download-icon { width: 17px; height: 17px; }
.download-guide-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.download-browser-guide { width: min(100%, 628px); margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; }
.download-browser-guide[hidden] { display: none; }
.download-browser-guide strong { color: var(--ink); font-size: 15px; }
.download-browser-guide p { margin: 10px 0 12px; font-size: 14px; color: var(--download-muted); line-height: 1.7; }
.download-browser-guide button { min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue); cursor: pointer; }
.download-browser-guide [role="status"] { display: block; margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
@media (hover: none), (pointer: coarse) {
  .platform-corner, .download-hover-hint { display: none; }
  .platform-mobile-action { display: block; position: absolute; bottom: 24px; left: 20px; right: 20px; padding: 11px 8px; border-radius: 10px; color: #175bd1; background: #edf4ff; font-size: 13px; font-weight: 650; }
  .platform-card.primary .platform-mobile-action { color: #fff; background: var(--blue); }
  .platform-front { padding-bottom: 82px; }
}
@media (max-width: 760px) {
  .download-refresh .download-page { padding: calc(var(--header) + 48px) 22px 40px; }
  .download-heading h1 { font-size: clamp(32px, 8vw, 42px); }
  .download-heading p { margin-top: 18px; font-size: 15px; max-width: 26em; }
  .download-platforms { gap: 14px; margin-top: 34px; }
  .platform-card { height: 238px; border-radius: 18px; }
  .platform-front { padding: 24px 12px 72px; }
  .platform-front > .download-icon { width: 52px; height: 52px; margin-bottom: 18px; }
  .platform-front strong { font-size: 16px; }
  .platform-description { margin-top: 8px; font-size: 10px; }
  .platform-mobile-action { display: block; position: absolute; bottom: 18px; left: 12px; right: 12px; padding: 11px 4px; border-radius: 9px; color: #175bd1; background: #edf4ff; font-size: 11px; font-weight: 650; }
  .platform-card.primary .platform-mobile-action { color: #fff; background: var(--blue); }
  .platform-back { padding: 10px; gap: 3px; background: #fff; z-index: 2; }
  .platform-back img { width: min(100%, 150px); height: auto; aspect-ratio: 1; }
  .platform-back strong { font-size: 16px; }
  .platform-back > span { font-size: 10px; }
  .platform-corner, .download-hover-hint { display: none; }
  .download-guide-link { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-card, .platform-front, .platform-back, .platform-corner { transition: none; transform: none; }
  .platform-card:hover { transform: none; }
}
