/**
 * Minimal marketing site header — shared by Snap landing and guest nav embed.
 * Intentionally small; do not import index-clean.css for these surfaces.
 */
:root {
  --msn-bg1: #12121a;
  --msn-text: rgba(255, 255, 255, 0.97);
  --msn-muted: rgba(255, 255, 255, 0.6);
  --msn-stroke: rgba(255, 255, 255, 0.08);
}

.ms-marketing-nav-sticky-shell {
  position: sticky;
  top: 0;
  z-index: 420;
  width: 100%;
}

.ms-marketing-nav-sticky-shell .index-header {
  position: relative;
  top: auto;
  z-index: 1;
}

.index-wrap .ms-marketing-nav-sticky-shell .index-header {
  position: relative;
  top: auto;
}

.index-header {
  position: sticky;
  top: 0;
  z-index: 420;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 12, 15, 0.85);
  border-bottom: 1px solid var(--msn-stroke);
}

.index-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.index-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.index-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--msn-text);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.index-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.index-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.index-logo-tagline {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.2;
}

.index-logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--msn-text) 0%, rgba(0, 212, 255, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.index-top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  color: rgba(255, 255, 255, 0.58);
}

.index-top-nav--marketing {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.index-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.index-top-nav > a,
a.index-top-nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease;
}

.index-top-nav > a:hover,
a.index-top-nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.05);
}

.index-top-nav-dropdown {
  position: relative;
}

.index-top-nav-dropdown .index-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.index-top-nav-dropdown .index-nav-trigger i {
  font-size: 9px;
  opacity: 0.65;
  transition: transform 0.22s ease;
}

.index-top-nav-dropdown.open .index-nav-trigger i {
  transform: rotate(180deg);
}

.index-top-nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  margin: 6px 0 0;
  padding: 6px;
  background: rgba(16, 16, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  list-style: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 100;
}

.index-top-nav-dropdown.open .index-top-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.index-top-nav-submenu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 10px;
}

.index-top-nav-submenu li a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.16);
}

.index-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.index-header-platform-downloads {
  display: none;
}

.index-header-download-dropdown {
  position: relative;
}

.index-header-download-trigger {
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}

.index-wrap .index-header-download-dropdown .index-nav-trigger,
.index-header-download-dropdown .index-nav-trigger {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}

.index-wrap .index-header-download-dropdown .index-nav-trigger:hover,
.index-wrap .index-header-download-dropdown.open .index-nav-trigger,
.index-header-download-dropdown .index-nav-trigger:hover,
.index-header-download-dropdown.open .index-nav-trigger {
  letter-spacing: 0;
  text-transform: none;
}

.index-header-download-menu li a,
.index-header-download-menu-item,
.index-header-download-menu-item__label,
.index-header-download-menu-item__meta {
  text-transform: none;
  letter-spacing: normal;
}

.index-header-download-trigger-caret {
  font-size: 9px;
  opacity: 0.65;
  transition: transform 0.22s ease;
}

.index-header-download-dropdown.open .index-header-download-trigger-caret,
.index-header-download-dropdown:hover .index-header-download-trigger-caret {
  transform: rotate(180deg);
}

.index-header-download-dropdown .index-top-nav-submenu {
  left: auto;
  right: 0;
  min-width: 272px;
}

.index-header-download-menu li a,
.index-header-download-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.index-header-download-menu-item.is-soon {
  opacity: 0.72;
  cursor: default;
}

.index-header-download-menu-item__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.index-header-download-menu-item__label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.index-header-download-menu-item__meta {
  font-size: 11px;
  color: rgba(34, 211, 238, 0.85);
}

.index-header-download-menu li a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.16);
}

@media (min-width: 1025px) {
  .index-header-download-dropdown:hover .index-top-nav-submenu,
  .index-header-download-dropdown.open .index-top-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.index-header-download-dropdown .index-header-download-trigger.btn-outline {
  border-color: rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(124, 58, 237, 0.14));
  color: #ede9fe;
}

.index-wrap .index-header-download-dropdown .index-header-download-trigger.btn-outline:hover,
.index-header-download-dropdown .index-header-download-trigger.btn-outline:hover,
.index-header-download-dropdown.open .index-header-download-trigger.btn-outline {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.16));
  color: #fff;
}

html[data-theme="light"] .index-header-download-dropdown .index-header-download-trigger.btn-outline,
body.light-mode .index-header-download-dropdown .index-header-download-trigger.btn-outline {
  border-color: rgba(109, 40, 217, 0.35);
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
}

html[data-theme="light"] .index-header-download-dropdown .index-header-download-trigger.btn-outline:hover,
body.light-mode .index-header-download-dropdown .index-header-download-trigger.btn-outline:hover,
html[data-theme="light"] .index-header-download-dropdown.open .index-header-download-trigger.btn-outline,
body.light-mode .index-header-download-dropdown.open .index-header-download-trigger.btn-outline {
  border-color: rgba(8, 145, 178, 0.45);
  background: rgba(99, 102, 241, 0.12);
  color: #4c1d95;
}

.ms-marketing-free-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(105deg, #6d28d9 0%, #7c3aed 22%, #6366f1 48%, #0891b2 78%, #22d3ee 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ms-marketing-free-banner.is-dismissed {
  display: none;
}

.ms-marketing-free-banner__link {
  flex: 1;
  display: block;
  min-width: 0;
  text-decoration: none;
  color: #fff;
  transition: filter 0.2s ease;
}

.ms-marketing-free-banner__link:hover {
  filter: brightness(1.06);
  color: #fff;
}

.ms-marketing-free-banner__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

.ms-marketing-free-banner__dismiss {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ms-marketing-free-banner__dismiss:hover {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.ms-marketing-free-banner__dismiss:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

.ms-marketing-free-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1600px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.ms-marketing-free-banner__line {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.index-mobile-drawer .index-mobile-sublinks .index-mobile-download-link,
.index-mobile-drawer .index-mobile-sublinks a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.index-mobile-drawer .index-mobile-sublinks .index-mobile-download-link.is-soon {
  opacity: 0.72;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--msn-muted);
}

.index-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--msn-stroke);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.index-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.index-mobile-theme-toggle {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  margin-bottom: 12px;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
}

.index-mobile-theme-toggle__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--msn-text);
}

.index-user-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--msn-stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--msn-text);
}

.index-user-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.index-user-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.index-user-actions .btn-primary {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
}

.index-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--msn-text);
  cursor: pointer;
  font-size: 18px;
}

.index-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--msn-bg1);
  border-right: 1px solid var(--msn-stroke);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  pointer-events: none;
}

.index-mobile-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.index-mobile-drawer-inner {
  padding: 24px 16px;
}

.index-mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--msn-muted);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 4px;
}

.index-mobile-drawer a:hover {
  color: var(--msn-text);
  background: rgba(255, 255, 255, 0.06);
}

.index-mobile-drawer .index-mobile-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.index-mobile-drawer .index-mobile-group-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--msn-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.index-mobile-drawer .index-mobile-sublinks {
  display: none;
  padding-left: 16px;
  margin-bottom: 8px;
}

.index-mobile-drawer .index-mobile-sublinks.open {
  display: block;
}

.index-mobile-drawer .index-mobile-sublinks a {
  padding: 10px 14px;
  font-size: 14px;
}

.index-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 399;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.index-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .index-top-nav {
    display: none;
  }
  .index-header-inner {
    gap: 10px;
    padding: 10px 16px;
  }
  .index-logo-tagline {
    display: none;
  }
  .index-header-download-dropdown {
    display: none;
  }
  .index-user-actions > a {
    display: none !important;
  }
  .ms-marketing-free-banner__inner {
    padding: 0 14px;
  }
  .ms-marketing-free-banner__line {
    font-size: 12px;
    white-space: normal;
  }
  .index-mobile-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .index-mobile-drawer,
  .index-mobile-overlay {
    display: none !important;
  }
}
