/* ============ ANDROID APP PROMOTION ============
   Standalone stylesheet for the three Android app-discovery surfaces (homepage section, footer
   strip, mobile install sheet) — kept out of home.css/layout.css so the whole feature stays
   trivially reviewable/removable, same rationale as ads.css. Reuses existing tokens/utilities
   (theme.css) rather than introducing new colors, radii, or shadows. */

/* ---------- Homepage section ---------- */
.app-promo-panel{
  display:grid; grid-template-columns:280px 1fr; gap:56px; align-items:center;
  background:linear-gradient(160deg, var(--surface-800), var(--bg-900));
  border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  padding:56px; overflow:hidden;
}
@media(max-width:900px){
  .app-promo-panel{ grid-template-columns:1fr; gap:36px; padding:40px 28px; text-align:center; }
}

/* Abstract phone + beacon-pulse visual — no fabricated screenshot, reuses the site's existing
   "beacon pulse" ring motif (see .logo-mark .ring / pulseRing in layout.css). */
.app-promo-visual{ display:flex; justify-content:center; }
.app-promo-phone{
  width:200px; height:400px; border-radius:32px; background:var(--bg-950);
  border:6px solid var(--surface-700); box-shadow:var(--shadow-card);
  position:relative; padding:18px 14px; flex-shrink:0;
}
@media(max-width:900px){ .app-promo-phone{ width:160px; height:320px; } }
.app-promo-phone-notch{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  width:56px; height:6px; border-radius:4px; background:var(--surface-700);
}
.app-promo-phone-screen{
  position:relative; height:100%; border-radius:18px; background:var(--surface-800);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  overflow:hidden;
}
.app-promo-phone-ring{
  position:absolute; border-radius:50%; border:1.5px solid var(--red-500);
  animation:pulseRing 2.6s var(--ease) infinite;
}
.app-promo-phone-ring-1{ width:70px; height:70px; }
.app-promo-phone-ring-2{ width:100px; height:100px; animation-delay:.6s; }
.app-promo-phone-icon .logo-mark{ width:52px; height:52px; border-radius:16px; }
.app-promo-phone-icon .logo-mark svg{ width:30px; height:30px; }
.app-promo-phone-icon .ring{ display:none; } /* the phone screen already has its own pulse rings */
.app-promo-phone-bar{ height:8px; border-radius:4px; background:var(--border-muted); }
.app-promo-phone-bar-1{ width:96px; }
.app-promo-phone-bar-2{ width:64px; }

.app-promo-content h2{ font-size:clamp(28px,3.4vw,38px); margin-bottom:14px; }
.app-promo-content > p{ color:var(--gray-300); font-size:16px; max-width:480px; margin:0 0 28px; }
@media(max-width:900px){ .app-promo-content > p{ margin-left:auto; margin-right:auto; } }

.app-promo-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom:32px; }
@media(max-width:900px){ .app-promo-actions{ justify-content:center; } }
.app-promo-store-indication{ font-size:13px; color:var(--gray-400); }

.app-promo-qr-card{
  display:inline-flex; align-items:center; gap:16px; padding:14px 18px;
  background:rgba(255,255,255,0.04); border:1px solid var(--border-muted); border-radius:var(--radius-md);
  max-width:100%;
}
.app-promo-qr-card:hover{ border-color:var(--red-500); }
@media(max-width:900px){ .app-promo-qr-card{ margin:0 auto; } }
.app-promo-qr-code{
  flex-shrink:0; width:96px; height:96px; padding:8px; background:#fff; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
}
.app-promo-qr-code svg{ width:100%; height:100%; display:block; }
.app-promo-qr-text{ display:flex; flex-direction:column; gap:2px; text-align:left; }
.app-promo-qr-text strong{ font-size:14px; color:var(--white-soft); }
.app-promo-qr-text span{ font-size:13px; color:var(--gray-400); }

/* Desktop: QR is a prominent, comfortably scannable size. Mobile: CTA stays dominant, QR shrinks
   rather than disappearing outright (still "makes visual sense" per design brief), never dominant. */
@media(min-width:901px){
  .app-promo-qr-code{ width:168px; height:168px; padding:14px; }
}

/* ---------- Footer strip ---------- */
.footer-app-text{ color:var(--gray-400); font-size:14px; margin:0 0 16px; max-width:220px; }
.footer-app-btn{ display:inline-flex; }
.footer-app-btn svg{ flex-shrink:0; }

/* ---------- Mobile install sheet ---------- */
.app-install-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:1500;
  display:flex; justify-content:center; pointer-events:none;
}
.app-install-sheet[hidden]{ display:none; }
.app-install-sheet-inner{
  pointer-events:auto; width:100%; max-width:520px;
  background:var(--surface-800); border:1px solid var(--border-muted); border-top:1px solid var(--border-muted);
  border-radius:20px 20px 0 0; box-shadow:var(--shadow-card);
  padding:28px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  position:relative;
  transform:translateY(100%);
}
.app-install-sheet.is-open .app-install-sheet-inner{ transform:translateY(0); }
@media (prefers-reduced-motion:no-preference){
  .app-install-sheet-inner{ transition:transform .35s var(--ease); }
}
@media(min-width:600px){
  .app-install-sheet{ padding:0 16px 16px; }
  .app-install-sheet-inner{ border-radius:20px; }
}

.app-install-sheet-close{
  position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:12px;
  border:1px solid var(--border-muted); background:transparent; color:var(--gray-400);
  display:flex; align-items:center; justify-content:center;
}
.app-install-sheet-close:hover{ border-color:var(--red-500); color:var(--red-500); }

.app-install-sheet-icon{ display:inline-flex; margin-bottom:16px; }
.app-install-sheet-icon .ring{ display:none; }
.app-install-sheet h2{ font-size:20px; margin-bottom:6px; padding-right:44px; }
.app-install-sheet p{ color:var(--gray-400); font-size:14px; margin:0 0 22px; }

.app-install-sheet-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.app-install-sheet-actions .btn{ min-height:44px; }
.app-install-sheet-later{
  background:none; border:none; color:var(--gray-400); font-size:14px; font-weight:600;
  min-height:44px; padding:0 6px;
}
.app-install-sheet-later:hover{ color:var(--gray-200); }
