/* Shared nine-tool menu used by the framework-free home variants. */
:where(.mobile-feature-menu-host),
:where(.mobile-feature-menu-host) * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mobile-feature-menu-host,
.mobile-feature-menu-host * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

.static-marketing-header .static-marketing-mobile-logo,
.static-marketing-header .hamburger,
.static-marketing-header .mobile-nav {
  display: none;
}

.mobile-nav.mobile-feature-menu-host,
.home-mobile-nav.mobile-feature-menu-host {
  --mobile-header-height: 58px;

  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  height: auto;
  max-height: var(--mobile-menu-available-height, calc(100vh - var(--mobile-header-height)));
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #f8f6ff;
  box-shadow: none;
  padding: 14px 8px max(14px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.mobile-feature-menu-host .mobile-menu-card {
  min-height: 0;
  flex: 0 1 auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(37 24 75 / 14%);
}

.mobile-feature-menu-host .mobile-menu-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex-shrink: 0;
  padding: 10px 10px 9px;
}

.mobile-feature-menu-host .mobile-menu-spark {
  margin-top: 0;
  color: #8c55f2;
  font-size: 24px;
  line-height: 1;
}

.mobile-feature-menu-host .mobile-menu-heading-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-feature-menu-host .mobile-menu-heading-copy strong {
  color: #8151ee;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.mobile-feature-menu-host .mobile-menu-heading-copy span {
  color: #53627f;
  font-size: 11px;
  line-height: 1.3;
}

.mobile-feature-menu-host .mobile-menu-close {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-feature-menu-host .mobile-menu-close span {
  width: 7px;
  height: 7px;
  border-top: 1.8px solid #34415c;
  border-left: 1.8px solid #34415c;
  transform: rotate(45deg) translate(2px, 2px);
}

.mobile-feature-menu-host .mobile-feature-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 10px;
  scrollbar-width: none;
}

.mobile-feature-menu-host .mobile-feature-list::-webkit-scrollbar {
  display: none;
}

.mobile-feature-menu-host .mobile-feature-item {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #e4e6ed;
  border-radius: 0;
  background: transparent;
  color: #172039;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.mobile-feature-menu-host .mobile-feature-item:last-child {
  border-bottom: 0;
}

.mobile-feature-menu-host .mobile-feature-item:active {
  opacity: 0.72;
}

.mobile-feature-menu-host .mobile-feature-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  color: #fff;
  box-shadow: 0 5px 10px rgb(51 48 99 / 16%);
}

.mobile-feature-menu-host .mobile-feature-icon svg {
  width: 19px;
  height: 19px;
}

.mobile-feature-menu-host .mobile-feature-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-feature-menu-host .mobile-feature-copy strong,
.mobile-feature-menu-host .mobile-feature-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-feature-menu-host .mobile-feature-copy strong {
  color: #172039;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.mobile-feature-menu-host .mobile-feature-copy small {
  color: #53627f;
  font-size: 10px;
  line-height: 1.25;
}

.mobile-feature-menu-host .mobile-feature-arrow {
  flex-shrink: 0;
  padding-left: 4px;
  color: #24314e;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.mobile-feature-menu-host .mobile-menu-account {
  flex-shrink: 0;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #e4e6ed;
  background: #fff;
}

.mobile-feature-menu-host .mobile-menu-login-row,
.mobile-feature-menu-host .mobile-menu-user-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #172039;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-feature-menu-host .mobile-menu-login-row {
  width: 100%;
}

.mobile-feature-menu-host .mobile-menu-account-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-feature-menu-host .mobile-menu-user-row {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
}

.mobile-feature-menu-host .mobile-menu-login-row strong,
.mobile-feature-menu-host .mobile-menu-user-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-feature-menu-host .mobile-menu-account-avatar {
  width: 34px;
  height: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #8c55f2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.mobile-feature-menu-host .mobile-menu-account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-feature-menu-host .mobile-menu-account-avatar-empty {
  background: #f1edfa;
  color: #6b7280;
}

.mobile-feature-menu-host .mobile-menu-account-avatar-empty svg {
  width: 21px;
  height: 21px;
}

.mobile-feature-menu-host .mobile-menu-account-arrow {
  flex-shrink: 0;
  color: #24314e;
  font-size: 21px;
  line-height: 1;
}

.mobile-feature-menu-host .mobile-menu-sparks-status {
  min-width: 112px;
  max-width: 48%;
  flex: 0 0 auto;
  text-align: right;
}

.mobile-feature-menu-host .mobile-menu-sparks-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mobile-feature-menu-host .mobile-menu-sparks-label,
.mobile-feature-menu-host .mobile-menu-sparks-count {
  color: #8151ee;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.mobile-feature-menu-host .mobile-menu-sparks-reset {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #53627f;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-feature-menu-host .mobile-menu-upgrade {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  background: linear-gradient(100deg, #7c3aed, #9e5af2);
  color: #fff;
  text-decoration: none;
}

.mobile-feature-menu-host .mobile-menu-upgrade img,
.mobile-feature-menu-host .mobile-menu-vip-status img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mobile-feature-menu-host .mobile-menu-upgrade strong,
.mobile-feature-menu-host .mobile-menu-vip-status strong {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.mobile-feature-menu-host .mobile-menu-vip-status {
  min-height: 36px;
  max-width: 48%;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e7dcff;
  border-radius: 11px;
  background: linear-gradient(110deg, #faf7ff, #eee7ff);
  color: #8151ee;
}

.mobile-menu-account-actions-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgb(15 23 42 / 48%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

.mobile-menu-account-actions-sheet {
  width: min(100%, 480px);
  padding: 18px 16px max(16px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -10px 32px rgb(37 24 75 / 18%);
  box-sizing: border-box;
}

.mobile-menu-account-actions-header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  color: #172039;
}

.mobile-menu-account-actions-header strong {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.mobile-menu-account-actions-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f1f8;
  color: #65708a;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-account-action,
.mobile-menu-account-actions-cancel {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #f8f6ff;
  color: #6f3fe5;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.mobile-menu-account-action + .mobile-menu-account-action {
  margin-top: 8px;
}

.mobile-menu-logout {
  background: #fff3f3;
  color: #d44747;
}

.mobile-menu-account-actions-cancel {
  margin-top: 12px;
  background: #fff;
  color: #53627f;
  border: 1px solid #e4e6ed;
}

.continue-web-action {
  width: min(100%, 18.5rem);
  margin: 10px auto 0;
}

.continue-web-button {
  width: 100%;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(15 23 42 / 14%);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(15 23 42 / 8%);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.continue-web-button:hover,
.continue-web-button:focus-visible {
  border-color: rgb(124 58 237 / 35%);
  box-shadow: 0 12px 24px rgb(43 26 92 / 12%);
  outline: none;
}

.continue-web-button:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  body.static-marketing-mobile-header-active {
    --header-height: 58px;
  }

  body.page-about.static-marketing-mobile-header-active {
    padding-top: 58px;
  }

  .static-marketing-header.site-header {
    width: 100%;
    height: 58px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgb(124 58 237 / 8%);
    background: rgb(255 255 255 / 86%);
    box-shadow: 0 8px 28px rgb(43 26 92 / 7%);
    backdrop-filter: blur(18px);
  }

  .static-marketing-header .static-marketing-header-inner {
    width: 100%;
    max-width: none;
    height: 58px;
    margin: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .static-marketing-header .static-marketing-desktop-logo {
    display: none;
  }

  .static-marketing-header .static-marketing-mobile-logo {
    width: auto;
    max-width: 60vw;
    height: 32px;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  .static-marketing-header .site-logo,
  .static-marketing-header .header-logo {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .static-marketing-header .site-nav,
  .static-marketing-header .header-nav,
  .static-marketing-header .header-actions {
    display: none;
  }

  .static-marketing-header .hamburger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgb(124 58 237 / 10%);
    border-radius: 8px;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 12px 24px rgb(43 26 92 / 10%);
    cursor: pointer;
  }

  .static-marketing-header .hamburger span {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 4px;
    background: #111827;
  }

  .static-marketing-header .hamburger span + span {
    margin-top: 5px;
  }

  body.home-page-active .main-content {
    padding-top: 0;
  }

  .site-header .header-nav,
  .site-header .header-actions,
  .home-header .home-header-nav,
  .home-header .home-header-actions {
    display: none;
  }

  .site-header .hamburger {
    display: flex;
    margin-left: auto;
  }

  .home-header .home-header-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  body.static-marketing-mobile-header-active {
    --header-height: 56px;
  }

  body.page-about.static-marketing-mobile-header-active {
    padding-top: 56px;
  }

  .static-marketing-header.site-header,
  .static-marketing-header .static-marketing-header-inner {
    height: 56px;
  }

  .mobile-nav.mobile-feature-menu-host,
  .home-mobile-nav.mobile-feature-menu-host {
    --mobile-header-height: 56px;
    top: 56px;
    max-height: calc(100vh - 56px);
  }
}
