/* ============================================================
   download.css — hero download CTA, floating sticky button,
   and the download modal (Juno pattern, Lyre light/gold theme).
   ============================================================ */

/* ---- hero download CTA ---- */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.hero-dl {
  cursor: pointer;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(217, 138, 43, 0.5);
  box-shadow: 0 10px 28px rgba(217, 138, 43, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.hero-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(217, 138, 43, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.hero-dl-note {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---- floating sticky download button ---- */
.sticky-dl {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 100;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(217, 138, 43, 0.5);
  box-shadow: 0 10px 30px rgba(217, 138, 43, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.3s var(--ease);
}
.sticky-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(217, 138, 43, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
/* hidden while the hero (with its own CTA) is on screen */
.sticky-dl.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ---- download modal ---- */
.dl-overlay[hidden] { display: none; }
.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 22, 12, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.dl-overlay.show { opacity: 1; pointer-events: auto; }

.dl-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 40px 40px 32px;
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px rgba(40, 30, 15, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dl-overlay.show .dl-modal { transform: translateY(0) scale(1); }

.dl-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.dl-close:hover { color: var(--text); background: rgba(20, 22, 30, 0.06); }

.dl-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}
.dl-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}
.dl-detected {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 22px;
  text-align: center;
}

/* three mascot cards side by side */
.dl-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.dl-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px 16px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.dl-opt:hover {
  background: rgba(217, 138, 43, 0.06);
  border-color: rgba(217, 138, 43, 0.4);
  transform: translateY(-2px);
}

/* mascot + orb logo */
.dl-orb-art {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
}
.dl-orb-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* OS logo as a small badge in the bottom-right corner of the orb art */
.dl-orb-logo {
  position: absolute;
  left: 55%;
  top: 63%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  color: #1c1e26;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6));
}

.dl-opt-name { font-size: 0.98rem; font-weight: 700; color: var(--text); }
.dl-opt-sub { font-size: 0.78rem; color: var(--text-dim); }

.dl-opt.recommended {
  background: rgba(217, 138, 43, 0.10);
  border-color: rgba(217, 138, 43, 0.55);
  box-shadow: 0 0 0 1px rgba(217, 138, 43, 0.2), 0 8px 24px rgba(217, 138, 43, 0.18);
}
.dl-opt.recommended::after {
  content: "For you";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--gold);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- mobile ---- */
@media (max-width: 640px) {
  .dl-modal { max-width: 100%; padding: 32px 20px 24px; }
  .dl-options { grid-template-columns: 1fr; gap: 8px; }
  .dl-opt { flex-direction: row; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; }
  .dl-orb-art { width: 64px; height: 64px; margin-bottom: 0; flex-shrink: 0; }
  .dl-orb-logo { width: 20px; height: 20px; }
  .dl-opt.recommended::after { top: -8px; left: auto; right: 12px; transform: none; }
  .sticky-dl { bottom: 16px; right: 16px; padding: 12px 22px; font-size: 0.85rem; }
}
