/* MusicDream: server is open. Download banner, download buttons, header download, mobile download bar. */

/* ---------- banner ---------- */
.open-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 128px max(24px, 6vw) 56px;
  background: radial-gradient(120% 140% at 100% 0%, #8a2a62 0%, transparent 55%),
              linear-gradient(120deg, #1f1027, #3b1435 60%, #6a2350);
  color: #fff;
}
.open-banner::before,
.open-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}
.open-banner::before { width: 380px; height: 380px; right: 8%; top: -120px; background: #ff2e88; }
.open-banner::after { width: 300px; height: 300px; left: -80px; bottom: -160px; background: #7c3aed; opacity: .35; }

.open-banner__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff12;
  box-shadow: inset 0 0 0 1px #ffffff26;
  font: 800 12px/1 Manrope, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffd6ea;
}
.open-banner__kicker i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ee59d;
  box-shadow: 0 0 0 4px #2ee59d30;
  animation: open-pulse 2.2s ease-in-out infinite;
}
@keyframes open-pulse { 50% { box-shadow: 0 0 0 8px #2ee59d10; } }

.open-banner h2 {
  margin: 18px 0 14px;
  font: 650 clamp(30px, 4.4vw, 60px)/1.08 Unbounded, sans-serif;
  letter-spacing: -.045em;
}
.open-banner h2 em { font-style: normal; color: #ff7ab8; }
.open-banner p {
  max-width: 46ch;
  margin: 0;
  color: #f0d8e7;
  font: 500 clamp(15px, 1.25vw, 18px)/1.65 Manrope, sans-serif;
}
.open-banner__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 26px;
}
.pill--light {
  padding: 0 24px;
  background: #fff;
  color: #2a1230;
}
.pill--light:hover { background: #ffe3f0; }
.link-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd6ea;
  font: 700 14px/1 Manrope, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid #ffd6ea55;
  padding-bottom: 3px;
}
.link-light:hover { color: #fff; border-color: #fff; }

/* ---------- download block (banner, steps, CTA) ---------- */
.dl-box {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  padding-top: 64px;
}
.dl-hint {
  position: absolute;
  top: 0;
  left: 6px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font: 700 clamp(20px, 2vw, 26px)/1 Unbounded, sans-serif;
  letter-spacing: -.03em;
  color: #fff;
  transform: rotate(-4deg);
  transform-origin: left bottom;
}
.dl-hint svg {
  width: 58px; height: 52px;
  margin-top: 8px;
  fill: none;
  stroke: #ff7ab8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: dl-nudge 1.6s ease-in-out infinite;
}
@keyframes dl-nudge { 50% { transform: translate(3px, 5px); } }

.dl-button {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 88px;
  padding: 16px 26px 16px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff2e88, #ff5fa8);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 46px #ff2e8866, inset 0 1px 0 #ffffff40;
  transition: transform .25s ease, box-shadow .3s ease, filter .3s ease;
}
.dl-button:hover { transform: translateY(-3px); box-shadow: 0 24px 60px #ff2e8888, inset 0 1px 0 #ffffff40; filter: saturate(1.1); }
.dl-button:active { transform: translateY(0); }
.dl-button__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: #ffffff26;
}
.dl-button__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dl-button b { display: block; font: 800 clamp(20px, 2.1vw, 26px)/1.1 Unbounded, sans-serif; letter-spacing: -.02em; }
.dl-button small { display: block; margin-top: 6px; font: 600 13px/1.3 Manrope, sans-serif; color: #ffe4f1; }
.dl-meta {
  margin: 14px 4px 0;
  font: 600 13px/1.6 Manrope, sans-serif;
  color: #e6c9da;
}
.dl-meta a { color: #fff; }

/* light background variant (steps, FAQ, CTA) */
.dl-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dl-inline svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.header-download {
  gap: 8px;
  padding: 0 18px;
  background: var(--ink, #111);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.header-download:hover { background: var(--accent); }
.header-download svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- mobile download bar ---------- */
.mobile-dl { display: none; }

/* ---------- FAQ install steps ---------- */
.install-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.install-steps li { line-height: 1.6; }

@media (max-width: 900px) {
  .open-banner { grid-template-columns: minmax(0, 1fr); padding-top: 112px; gap: 26px; }
  .dl-box { justify-self: stretch; max-width: none; }
}
@media (max-width: 640px) {
  .open-banner { padding: 104px 18px 40px; gap: 0; }
  .open-banner__text { display: contents; }
  .open-banner__kicker { justify-self: start; }
  .open-banner h2, .open-banner p { order: 0; }
  .dl-box { order: 1; margin-top: 22px; }
  .open-banner__links { order: 2; }
  .header-download { display: none; }
  .mobile-dl {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff2e88, #ff5fa8);
    color: #fff;
    font: 800 16px/1 Manrope, sans-serif;
    text-decoration: none;
    box-shadow: 0 14px 40px #ff2e8870;
    transition: transform .3s ease, opacity .3s ease;
  }
  .mobile-dl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-dl.is-hidden { transform: translateY(90px); opacity: 0; pointer-events: none; }
  body.has-mobile-dl .site-footer { padding-bottom: 84px; }
}
@media (max-width: 420px) {
  .site-header .header-actions { gap: 7px; }
  .dl-button { gap: 14px; padding: 14px 18px 14px 14px; min-height: 78px; }
  .dl-button__icon { width: 48px; height: 48px; border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .open-banner__kicker i, .dl-hint svg { animation: none; }
}

/* compact banner: registration and data pages, where the form is the point */
.open-banner--compact { padding-bottom: 36px; }
.open-banner--compact h2 { font-size: clamp(26px, 3vw, 42px); }
.open-banner--compact .dl-meta { display: none; }
@media (max-width: 640px) {
  .open-banner--compact { padding: 96px 18px 26px; }
  .open-banner--compact p, .open-banner--compact .open-banner__links { display: none; }
  .open-banner--compact .dl-box { padding-top: 46px; margin-top: 14px; }
}
