/* [sw_download_bar] - home-v4 tokens, scoped. Wizard in-flow (no overlap). */
.sw-dlb {
  --sw-ink: #07060f;
  --sw-mist: #9b97b0;
  --sw-paper: #f4f2ff;
  --sw-green: #2fea15;
  --sw-line: rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.1rem 1.1rem;
  background: var(--sw-ink);
  color: var(--sw-paper);
  border-top: 1px solid var(--sw-line);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.sw-dlb__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "wiz brand"
    "wiz stores";
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.sw-dlb__char--wiz {
  grid-area: wiz;
  position: relative;
  z-index: 0;
  width: clamp(72px, 18vw, 120px);
  height: auto;
  margin: 0;
  justify-self: start;
  align-self: end;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(47, 234, 21, 0.12));
}

.sw-dlb__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.sw-dlb__stores {
  grid-area: stores;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.sw-dlb__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: "Anybody", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  line-height: 1;
  max-width: 100%;
}

.sw-dlb__wordmark span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-dlb__wordmark img {
  flex: 0 0 auto;
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
}

.sw-dlb__cta,
.sw-page a.sw-dlb__cta,
.sw-page .sw-dlb a.sw-dlb__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--sw-green);
  color: #061003 !important;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(47, 234, 21, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sw-dlb__cta:hover,
.sw-page a.sw-dlb__cta:hover,
.sw-page .sw-dlb a.sw-dlb__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(47, 234, 21, 0.28);
  color: #061003 !important;
}

.sw-dlb__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.sw-dlb__badge {
  display: block;
  line-height: 0;
  transition: transform 0.18s ease;
}

.sw-dlb__badge img {
  height: 38px;
  width: auto;
  max-width: 100%;
}

.sw-dlb__badge:hover {
  transform: translateY(-2px);
}

.sw-dlb__trust {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sw-paper);
  letter-spacing: 0.01em;
}

.sw-dlb img.sw-dlb__char--ghost,
.sw-page .sw-dlb img.sw-dlb__char--ghost {
  display: none;
  pointer-events: none;
  user-select: none;
  width: 88px;
  height: auto;
  opacity: 0.78;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 14px rgba(255, 64, 255, 0.12));
}

@media (min-width: 760px) {
  .sw-dlb {
    padding: 1.35rem 1.5rem 1.25rem;
  }

  .sw-dlb__inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "wiz brand stores";
    gap: 1.25rem 1.75rem;
  }

  .sw-dlb__char--wiz {
    width: clamp(110px, 14vw, 160px);
    align-self: center;
  }

  .sw-dlb__stores {
    align-items: flex-end;
    text-align: right;
  }

  .sw-dlb__badges {
    justify-content: flex-end;
  }

  .sw-dlb__badge img {
    height: 42px;
  }
}

@media (min-width: 1100px) {
  .sw-dlb__inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "wiz brand stores ghost";
  }

  .sw-dlb__char--wiz {
    width: 168px;
  }

  .sw-dlb img.sw-dlb__char--ghost,
  .sw-page .sw-dlb img.sw-dlb__char--ghost {
    display: block;
    grid-area: ghost;
    width: 96px;
    justify-self: end;
    align-self: end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sw-dlb__char--wiz {
    animation: sw-dlb-bob 7s ease-in-out infinite;
  }

  .sw-dlb__char--ghost {
    animation: sw-dlb-bob 8s ease-in-out -2.4s infinite;
  }

  .sw-dlb__brand,
  .sw-dlb__stores {
    animation: sw-dlb-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .sw-dlb__stores {
    animation-delay: 0.08s;
  }
}

@keyframes sw-dlb-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes sw-dlb-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-dlb__char--wiz,
  .sw-dlb__char--ghost,
  .sw-dlb__brand,
  .sw-dlb__stores,
  .sw-dlb__cta,
  .sw-dlb__badge {
    animation: none;
    transition: none;
  }
}
