/* Smart device banner + mobile/desktop web hooks */

.whm-smart-dl {
  position: sticky;
  top: 0;
  z-index: 90;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background:
    linear-gradient(105deg,
      color-mix(in srgb, var(--accent, #e94560) 18%, transparent),
      color-mix(in srgb, var(--secondary, #533483) 12%, transparent) 45%,
      color-mix(in srgb, var(--bg, #0f0e16) 92%, #1a1a2e));
  border-bottom: 1px solid color-mix(in srgb, var(--border, #333) 80%, transparent);
  backdrop-filter: blur(10px);
}
.whm-smart-dl.is-on {
  opacity: 1;
  transform: none;
}
.whm-smart-dl-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
}
.whm-smart-dl-ai {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #e94560, #533483);
  box-shadow: 0 0 0 1px color-mix(in srgb, #e94560 40%, transparent),
    0 8px 20px color-mix(in srgb, #e94560 25%, transparent);
}
.whm-smart-dl-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted, #b8b8d0) 90%, transparent);
}
.whm-smart-dl-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}
.whm-smart-dl-blurb,
.whm-smart-dl-tip {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted, #b8b8d0);
}
.whm-smart-dl-tip {
  opacity: 0.85;
  font-size: 0.75rem;
}
.whm-smart-dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}
.whm-smart-dl-x {
  border: 0;
  background: transparent;
  color: var(--muted, #b8b8d0);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
}
.whm-smart-dl-x:hover {
  background: color-mix(in srgb, var(--fg, #fff) 8%, transparent);
  color: var(--fg, #fff);
}

/* Phone / tablet: denser mobile chrome when AI marks mobile web */
html.whm-mobile-web .sidebar-top .brand-text {
  font-size: 1rem;
}
html.whm-form-phone .hero-stage.hero-global {
  min-height: auto;
  grid-template-columns: 1fr;
  padding: 1.5rem 1.1rem 1.25rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
html.whm-form-phone .hero-visual {
  display: none;
}
html.whm-os-android .whm-smart-dl-ai,
html.whm-os-ios .whm-smart-dl-ai {
  background: linear-gradient(135deg, #0f3460, #e94560);
}

@media (max-width: 820px) {
  .whm-smart-dl-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .whm-smart-dl-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .whm-smart-dl-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .whm-smart-dl-x {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
  }
  .whm-smart-dl {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whm-smart-dl {
    transition: none;
  }
}
