/* WorldHub Music · /download — App Store landing v2 (theme tokens) */
.page-download .main {
  padding: 0;
  max-width: none;
}

/* —— Hero —— */
.dl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: center;
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 3.5rem;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 88%, color-mix(in srgb, var(--secondary) 30%, transparent), transparent 52%),
    linear-gradient(168deg, var(--bg) 0%, color-mix(in srgb, var(--bg-elevated) 60%, var(--bg)) 100%);
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.dl-beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: dlFloat 14s ease-in-out infinite alternate;
}
.dl-beam-a {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  right: -10%;
  top: -14%;
  background: color-mix(in srgb, var(--accent) 42%, transparent);
}
.dl-beam-b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  left: 2%;
  bottom: 2%;
  background: color-mix(in srgb, var(--secondary) 48%, transparent);
  animation-delay: -5s;
}
.dl-ring {
  position: absolute;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
  opacity: 0.55;
  animation: dlSpin 48s linear infinite;
}
.dl-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dl-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.dl-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
  animation: dlRise 520ms ease both;
}
.dl-brand {
  margin: 0;
  font-family: var(--display, "Righteous"), cursive;
  font-size: clamp(2.75rem, 7.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  animation: dlRise 620ms ease both;
}
.dl-brand em {
  font-style: normal;
  color: var(--accent);
}
.dl-lead {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  animation: dlRise 700ms ease both;
}
.dl-banner {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elevated));
  font-size: 0.92rem;
}
.dl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
  animation: dlRise 780ms ease both;
}
.dl-cta-primary {
  cursor: pointer;
  min-width: 11rem;
  text-align: center;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 30%, transparent);
}
.dl-cta-primary:focus-visible,
.dl-plat-actions a:focus-visible,
.dl-web-actions a:focus-visible,
.dl-featured-cta a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dl-detect {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  animation: dlRise 860ms ease both;
}

/* Stage: laptop + phone (atmospheric, not cards) */
.dl-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  animation: dlRise 760ms ease both;
}
.dl-laptop {
  width: min(340px, 78%);
  z-index: 1;
  transform: rotate(-2deg);
}
.dl-laptop-screen {
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 6px 6px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--fg) 12%, var(--bg-elevated)), var(--bg-elevated));
  box-shadow: 0 28px 60px color-mix(in srgb, #000 32%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--fg);
}
.dl-laptop-screen strong {
  font-family: var(--display, "Righteous"), cursive;
  font-size: 1.15rem;
}
.dl-laptop-screen > span { font-size: 0.78rem; color: var(--muted); }
.dl-laptop-base {
  height: 10px;
  margin: 0 8%;
  border-radius: 0 0 10px 10px;
  background: color-mix(in srgb, var(--fg) 16%, var(--bg-elevated));
}
.dl-phone {
  position: absolute;
  right: 6%;
  bottom: 4%;
  z-index: 2;
  width: min(132px, 34%);
  aspect-ratio: 9 / 17;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fg) 20%, var(--bg-elevated)), var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--fg) 12%, var(--border));
  box-shadow: 0 18px 40px color-mix(in srgb, #000 30%, transparent);
  transform: rotate(8deg);
  animation: dlBob 5.5s ease-in-out infinite;
}
.dl-phone-screen {
  height: 100%;
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%),
    color-mix(in srgb, var(--bg) 92%, #000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--fg);
}
.dl-phone-screen strong {
  font-family: var(--display, "Righteous"), cursive;
  font-size: 0.95rem;
}

.dl-wave, .dl-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-bottom: 0.35rem;
}
.dl-wave i, .dl-eq i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
  animation: dlEq 1.15s ease-in-out infinite;
}
.dl-wave i:nth-child(1), .dl-eq i:nth-child(1) { height: 28%; }
.dl-wave i:nth-child(2), .dl-eq i:nth-child(2) { height: 62%; animation-delay: 0.1s; }
.dl-wave i:nth-child(3), .dl-eq i:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.dl-wave i:nth-child(4), .dl-eq i:nth-child(4) { height: 88%; animation-delay: 0.05s; }
.dl-wave i:nth-child(5), .dl-eq i:nth-child(5) { height: 52%; animation-delay: 0.18s; }
.dl-wave i:nth-child(6) { height: 70%; animation-delay: 0.28s; }
.dl-wave i:nth-child(7) { height: 36%; animation-delay: 0.14s; }

/* Featured device strip */
.dl-featured {
  width: min(1140px, calc(100% - 2.5rem));
  margin: -1.25rem auto 0;
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--bg-elevated)), var(--bg-elevated));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 12%, transparent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.dl-featured.is-in,
.dl-featured:not([hidden]) {
  /* shown via JS removing hidden + is-in */
}
.dl-featured[hidden] { display: none !important; }
.dl-featured.is-in {
  opacity: 1;
  transform: none;
}
.dl-featured-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dl-featured-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.dl-featured-copy h2 {
  margin: 0;
  font-family: var(--display, "Righteous"), cursive;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
}
.dl-featured-copy .muted { margin: 0.35rem 0 0; }
.dl-featured-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Sections */
.dl-section {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 3rem);
}
.dl-section-head {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}
.dl-section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display, "Righteous"), cursive;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 400;
}

.dl-group {
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.dl-group.is-in {
  opacity: 1;
  transform: none;
}
.dl-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.dl-platform-grid {
  display: grid;
  gap: 0.9rem;
}
.dl-grid-mobile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dl-grid-desktop {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dl-plat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 200px;
  padding: 1.15rem 1.05rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--bg-elevated)), var(--bg-elevated));
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  opacity: 0;
  transform: translateY(12px);
}
.dl-plat.is-in {
  opacity: 1;
  transform: none;
}
.dl-plat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dl-plat-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.dl-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.dl-badge.is-live {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}
.dl-plat h3 {
  margin: 0.4rem 0 0;
  font-size: 1.18rem;
}
.dl-plat-blurb {
  margin: 0;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--fg) 72%, var(--muted));
}
.dl-plat-label {
  margin: 0;
  font-size: 0.75rem;
}
.dl-plat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
}
.dl-plat-actions a,
.dl-hero-cta a,
.dl-web-actions a,
.dl-featured-cta a {
  cursor: pointer;
}
.dl-plat-soon {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.dl-plat.is-ready:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 16%, transparent);
}
.dl-plat.is-suggested {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 18px 40px color-mix(in srgb, var(--accent) 18%, transparent);
}
.dl-plat.is-suggested.is-in {
  animation: dlPulse 2.6s ease-in-out infinite;
}
.dl-plat.is-soon { opacity: 0.78; }
.dl-plat.is-soon.is-in { opacity: 0.78; }

/* Why */
.dl-why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.dl-why-item {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.05rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.dl-why-item.is-in {
  opacity: 1;
  transform: none;
}
.dl-why-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  margin-bottom: 0.15rem;
}
.dl-why-item strong {
  font-size: 1.05rem;
}

.dl-notes {
  font-size: 0.94rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--fg) 85%, var(--muted));
}

.dl-web-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.dl-web-bar > div > p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.dl-web-bar .muted {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
}
.dl-web-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@keyframes dlRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes dlFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(14px, 20px, 0); }
}
@keyframes dlSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}
@keyframes dlBob {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-8px); }
}
@keyframes dlEq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@keyframes dlPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent), 0 14px 32px color-mix(in srgb, var(--accent) 14%, transparent);
  }
  50% {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 18px 40px color-mix(in srgb, var(--accent) 22%, transparent);
  }
}

@media (max-width: 980px) {
  .dl-hero-inner { grid-template-columns: 1fr; }
  .dl-stage {
    order: -1;
    min-height: 240px;
  }
  .dl-laptop { width: min(280px, 72%); }
  .dl-phone { width: min(110px, 30%); }
  .dl-ring { opacity: 0.3; }
  .dl-why-grid { grid-template-columns: 1fr; }
  .dl-grid-desktop { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .dl-hero {
    min-height: auto;
    padding-top: 1.5rem;
  }
  .dl-grid-mobile,
  .dl-grid-desktop {
    grid-template-columns: 1fr;
  }
  .dl-featured {
    width: calc(100% - 2rem);
    margin-top: -0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-beam,
  .dl-ring,
  .dl-phone,
  .dl-wave i,
  .dl-eq i,
  .dl-kicker,
  .dl-brand,
  .dl-lead,
  .dl-hero-cta,
  .dl-detect,
  .dl-stage,
  .dl-plat.is-suggested.is-in {
    animation: none !important;
  }
  .dl-plat,
  .dl-why-item,
  .dl-group,
  .dl-featured {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
