/* /download — extends seo-page.css with hero-app-icon, QR cards, steps,
   store badges. Same design tokens (--primary/--blue/--pink/--radius-*),
   same GPU-light rules: only transform/opacity animate, everything respects
   prefers-reduced-motion, no blur-heavy effects beyond the existing ambient
   orbs already used site-wide. */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.dl-hero { padding: 40px 0 12px; text-align: center; }

.dl-icon-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
}
.dl-icon-glow {
  position: absolute;
  inset: -22px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), rgba(37,99,235,0.12) 60%, transparent 75%);
  filter: blur(18px);
  animation: pulse-glow 3.2s ease-in-out infinite;
}
@keyframes pulse-glow { 0%,100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.dl-icon {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  animation: icon-rise 800ms var(--ease) both, icon-float 5s ease-in-out 900ms infinite;
}
.dl-icon img { width: 100%; height: 100%; object-fit: contain; }
@keyframes icon-rise { from { opacity: 0; transform: translateY(24px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes icon-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.dl-title {
  font-size: clamp(34px, 6.4vw, 52px);
  font-weight: 800; margin: 0 0 10px; line-height: 1.22;
  animation: rise 700ms var(--ease) 80ms both;
}
.dl-title .grad {
  background: linear-gradient(90deg, var(--blue), var(--primary) 55%, var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.dl-subtitle {
  font-size: 15.5px; font-weight: 600; color: var(--text-muted);
  margin: 0 0 14px;
  animation: rise 700ms var(--ease) 140ms both;
}
.dl-value {
  max-width: 480px; margin: 0 auto 26px;
  font-size: 15px; color: var(--text-muted); line-height: 1.75;
  animation: rise 700ms var(--ease) 200ms both;
}

.dl-badges {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 30px;
  animation: rise 700ms var(--ease) 260ms both;
}
.dl-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-1); color: var(--primary-dark);
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.dl-badge svg { width: 15px; height: 15px; color: var(--primary); }

/* Smart hero CTA — device-aware label swapped by download.js */
.dl-hero-cta {
  animation: rise 700ms var(--ease) 320ms both;
}

/* ── Platform banner (mobile only, JS-controlled) ────────────────────── */
.dl-platform-banner {
  display: none;
  max-width: 460px; margin: 0 auto 22px;
  background: var(--success-bg);
  border: 1px solid rgba(22,163,74,0.2);
  color: var(--success);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px; font-weight: 700;
  align-items: center; justify-content: center; gap: 8px;
}
.dl-platform-banner svg { width: 17px; height: 17px; flex-shrink: 0; }
body.is-ios .dl-platform-banner,
body.is-android .dl-platform-banner { display: inline-flex; }

/* ── QR download cards ───────────────────────────────────────────────── */
.dl-store-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 720px) { .dl-store-grid { grid-template-columns: 1fr; max-width: 380px; } }

.dl-store-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(18px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease),
              box-shadow 260ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.dl-store-card.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .dl-store-card { opacity: 1; transform: none; } }

.dl-store-card:hover {
  box-shadow: var(--shadow-card);
}
@media (hover: hover) {
  .dl-store-card { transition: opacity 650ms var(--ease), transform 220ms var(--ease), box-shadow 260ms var(--ease); }
}

.dl-store-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.dl-store-card.ios .dl-store-icon { background: #EFF3FF; color: var(--blue); }
.dl-store-card.android .dl-store-icon { background: #ECFDF3; color: var(--success); }
.dl-store-icon svg { width: 24px; height: 24px; }

.dl-store-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.dl-store-card p.dl-store-sub { font-size: 12.5px; color: var(--text-muted); margin: 0 0 18px; }

.dl-qr-frame {
  position: relative;
  width: 176px; height: 176px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  transition: opacity 300ms var(--ease), filter 300ms var(--ease);
}
.dl-qr-frame img { width: 100%; height: 100%; object-fit: contain; }

/* De-emphasize the "wrong" platform's QR + the matching platform's QR on
   mobile (can't scan your own screen) — the direct button takes over. */
body.is-ios .dl-store-card.android .dl-qr-frame,
body.is-android .dl-store-card.ios .dl-qr-frame,
body.is-ios .dl-store-card.ios .dl-qr-frame,
body.is-android .dl-store-card.android .dl-qr-frame {
  opacity: 0.35; filter: grayscale(0.4);
}

.dl-scan-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); font-weight: 600; margin: 0 0 16px;
}
.dl-scan-hint svg { width: 14px; height: 14px; }

.dl-store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; border-radius: 14px;
  text-decoration: none; font-size: 14px; font-weight: 800;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg-1);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.dl-store-card.ios .dl-store-btn:hover { background: #EFF3FF; }
.dl-store-card.android .dl-store-btn:hover { background: #ECFDF3; }
.dl-store-btn:hover { transform: translateY(-2px); }
.dl-store-btn:active { transform: translateY(0); }
.dl-store-btn svg { width: 17px; height: 17px; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.dl-steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 860px; margin: 0 auto;
}
@media (max-width: 760px) { .dl-steps { grid-template-columns: 1fr; gap: 14px; } }

.dl-steps-line {
  position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  z-index: 0;
}
@media (max-width: 760px) { .dl-steps-line { display: none; } }
.dl-steps-line svg { width: 100%; height: 2px; display: block; }
.dl-steps-line path {
  stroke: var(--border);
  stroke-width: 2;
}
.dl-steps-line path.fill {
  stroke: url(#dlLineGrad);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1100ms var(--ease);
}
.dl-steps-line.in-view path.fill { stroke-dashoffset: 0; }

.dl-step {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}
.dl-step.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .dl-step { opacity: 1; transform: none; } }

.dl-step-num {
  width: 54px; height: 54px; border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--primary));
  color: #fff; font-size: 19px; font-weight: 800;
  box-shadow: 0 10px 22px -8px rgba(124,58,237,0.5);
}
.dl-step h3 { font-size: 14.5px; font-weight: 800; margin: 0 0 6px; }
.dl-step p { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Reduced motion: kill the extras, keep content visible ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .dl-icon { animation: none; }
  .dl-icon-glow { animation: none; }
  .dl-title, .dl-subtitle, .dl-value, .dl-badges, .dl-hero-cta { animation: none; }
}
