/* Microsoft Store download badge — Windows icon focused */
.ms-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #fff 12%, #000);
  background: linear-gradient(180deg, #2b2b2b 0%, #111 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
    0 4px 14px color-mix(in srgb, #000 28%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  max-width: 100%;
}

.ms-store-badge:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #00adef 35%, #444);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 10%, transparent) inset,
    0 8px 22px color-mix(in srgb, #000 34%, transparent);
}

.ms-store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ms-store-badge__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.ms-store-badge--sm .ms-store-badge__icon {
  width: 22px;
  height: 22px;
}

.ms-store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.ms-store-badge__eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 72%, transparent);
}

.ms-store-badge__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ms-store-badge--sm {
  gap: 10px;
  padding: 7px 11px 7px 9px;
}

.ms-store-badge--sm .ms-store-badge__eyebrow {
  font-size: 0.58rem;
}

.ms-store-badge--sm .ms-store-badge__title {
  font-size: 0.82rem;
}

.ms-store-badge--hero {
  gap: 11px;
  min-height: 2.75rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: 10px;
}

.ms-store-badge--hero .ms-store-badge__icon {
  width: 24px;
  height: 24px;
}

.ms-store-badge--hero .ms-store-badge__eyebrow {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.ms-store-badge--hero .ms-store-badge__title {
  font-size: 0.86rem;
  font-weight: 700;
}

.ms-store-badge--block {
  display: flex;
  width: auto;
  justify-content: flex-start;
}

.agent-download-card {
  margin-bottom: var(--space-4);
}

.agent-download-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--accent-glow) 24%, var(--surface)),
      color-mix(in srgb, var(--surface-raised) 94%, transparent)
    );
  min-width: 0;
}

.agent-download-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent-download-cta__win {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.agent-download-cta__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.agent-download-cta__hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.agent-download-cta__notice {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.agent-download-cta__action {
  flex-shrink: 0;
  align-self: center;
}

.agent-download-cta__action .ms-store-badge,
.card .ms-store-badge {
  width: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .agent-download-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .agent-download-cta__action {
    align-self: flex-start;
  }
}
