/* Shared download UI; mirrored in website-cn for independent static hosting. */
.download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.download-actions .btn { min-height: 48px; width: auto; }
.download-actions .btn-primary, .download-bar .btn-primary { background: linear-gradient(180deg, #FFD563, #FFBF00); border: 1px solid #FFD563; color: #1B1405; box-shadow: 0 4px 20px rgba(255, 191, 0, .15); }
.download-actions .btn-primary:hover, .download-bar .btn-primary:hover { filter: brightness(1.04); }
.download-actions .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.download-context { margin: 12px 0; }
.download-offer { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.download-offer strong { color: var(--text); font-weight: 600; }
.download-requirements { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.download-qr { display: none; }
.app-store-help { min-width: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.app-store-help summary { width: fit-content; min-height: 44px; margin: 0; padding: 10px 0; cursor: pointer; }
.app-store-help p { max-width: 52ch; margin: 0 0 12px; }
.app-store-regions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-store-regions a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--amber); }
.app-store-help summary:focus-visible, .app-store-regions a:focus-visible,
.download-qr a:focus-visible, .download-bar a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* Keep the headline, offer and main action together in a laptop viewport. */
.page-home .hero { padding-top: 108px; padding-bottom: 48px; }
.page-home .hero-title { font-size: clamp(42px, 4.5vw, 60px); line-height: 1.06; margin-bottom: 18px; text-wrap: balance; }
.page-home .hero-eyebrow { margin-bottom: 20px; }
.page-home .hero-lede { font-size: 17px; line-height: 1.6; margin-bottom: 22px; }
.page-home .hero-cta { display: block; margin-bottom: 14px; }
.page-home .hero-pills { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.hero-release { margin: 0; color: var(--amber); font-size: 12px; line-height: 1.6; }
.page-home:not(.page-home-cn) .hero-visual { min-height: 480px; }
.page-home:not(.page-home-cn) .hero .phone-stage { max-width: 280px; }
.page-home-cn .hero { min-height: auto; }
.page-home-cn .hero > .container { padding-inline: 0; }
.page-home-cn .hero-title { font-size: clamp(38px, 4.5vw, 56px); }
.page-home-cn .hero-subtitle { max-width: 560px; margin-bottom: 22px; font-size: 17px; line-height: 1.6; }
.page-home-cn .download-actions { justify-content: center; }
.page-home-cn .download-context { margin: 14px 0 4px; }
.page-home-cn .download-requirements { margin-top: 5px; }
.page-home-cn .app-store-help p { margin-inline: auto; }
.page-home-cn .app-store-help summary { margin-inline: auto; }

/* Article readers get the same next step after finishing a guide or answer. */
.download-card { margin: 32px 0 8px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 16px; }
.download-card h2 { margin: 0 0 10px; color: var(--text); font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.download-card .download-offer { margin-bottom: 8px; }
.download-card .download-actions { margin-top: 18px; }
.download-card .download-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); font-size: 14px; }

/* Hidden until the initial action has scrolled away; no scroll-event polling. */
.download-bar, .download-bar[hidden] { display: none; }
@media (max-width: 980px) {
  body.with-download-bar { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .download-bar:not([hidden]) { position: fixed; z-index: 90; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 8, 7, .97); border-top: 1px solid var(--border-strong); box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
  .download-bar p { min-width: 0; margin: 0; }
  .download-bar strong { display: block; color: var(--text); font-size: 14px; line-height: 1.4; }
  .download-bar span { display: block; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
  .download-bar .btn { flex-shrink: 0; width: auto; min-height: 44px; padding: 11px 16px; font-size: 14px; }
  .page-home .hero-title { max-width: 20ch; }
}
@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .download-qr { display: flex; align-items: center; gap: 16px; margin: 16px 0 4px; }
  .download-qr__code { flex-shrink: 0; display: block; padding: 4px; background: #fff; border-radius: 10px; }
  .download-qr img { display: block; width: 104px; height: 104px; }
  .download-qr strong { display: block; color: var(--text); font-size: 14px; line-height: 1.6; }
  .download-qr p { max-width: 25ch; margin: 4px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
  .page-home-cn .download-qr { justify-content: center; text-align: left; }
}
@media (max-width: 768px) {
  .page-home .hero { padding-top: 92px; }
  .page-home .hero-title { font-size: clamp(34px, 6.5vw, 44px); line-height: 1.08; }
  .page-home .hero-lede, .page-home-cn .hero-subtitle { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
  .page-home .hero-eyebrow { margin-bottom: 16px; }
  .page-home:not(.page-home-cn) .hero .phone-stage { max-width: 248px; }
  .page-home-cn .hero-title { max-width: 18ch; margin-inline: auto; }
  .download-card { padding: 22px; }
}
@media (max-width: 480px) {
  .page-home .hero-copy { max-width: none; }
  .page-home .hero-title { font-size: clamp(32px, 8.5vw, 39px); overflow-wrap: normal; }
  .download-actions .btn { padding: 12px 14px; font-size: 14px; }
  .download-actions .btn-primary { flex-grow: 1; }
  .download-actions .download-secondary { padding-inline: 10px; background: none; border-color: transparent; }
  .download-offer { font-size: 13px; }
  .download-card .download-actions { align-items: stretch; flex-direction: column; }
}

/* The QR destination stays useful with scripts disabled or an unknown region. */
.download-page { max-width: 520px; margin: 0 auto; padding: 56px 22px; }
.download-page .nav-brand { justify-content: flex-start; margin-bottom: 32px; }
.download-page h1 { margin: 0 0 16px; font-size: clamp(32px, 8vw, 42px); line-height: 1.12; letter-spacing: -.025em; }
.download-page .download-actions { margin: 24px 0 16px; }
.download-page .download-actions .btn { justify-content: center; width: 100%; }
.download-page .app-store-help { margin-top: 16px; }
.download-page__back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; color: var(--amber); font-size: 14px; }
