/* Features + Platforms menus: every item is its own tile with a real example thumbnail,
   grouped in clearly separated columns. Loaded after site.css, so it overrides the old list. */
.features-menu {
  --fm-line: #e7e0ec;
  --fm-panel: #faf7fc;
  top: calc(100% + 10px);
  width: min(1020px, 94vw);
  padding: 22px 22px 14px;
  gap: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--omg-shadow-lift);
  animation: fm-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.features-menu-1 {
  width: min(460px, 94vw);
}
@keyframes fm-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .features-menu {
    animation: none;
  }
}
/* Groups are open columns separated by a single hairline — no nested boxes. */
.features-menu .feature-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-radius: 0;
}
.features-menu .feature-nav-group + .feature-nav-group {
  border-left: 1px solid var(--fm-line);
}
.features-menu .feature-group-name {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--omg-ink);
}
.features-menu .feature-group-name::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--omg-pink);
}
.fm-group-advertise .feature-group-name::before {
  background: var(--omg-yellow);
  box-shadow: inset 0 0 0 1px #0000001a;
}
.fm-group-manage .feature-group-name::before {
  background: var(--omg-cyan);
}
.fm-group-platforms .feature-group-name::before {
  background: var(--omg-ink);
}
/* Item tile: thumbnail, label, one line of explanation. */
.features-menu .feature-nav-group a.fm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--omg-ink);
  font-size: 15px;
  font-weight: 800;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.features-menu .feature-nav-group a.fm-item:hover,
.features-menu .feature-nav-group a.fm-item:focus-visible {
  background: #f6f3f8;
}
.features-menu .feature-nav-group a.fm-item:hover .fm-thumb {
  transform: scale(1.04) rotate(-1.5deg);
}
.features-menu .feature-nav-group a.fm-item:focus-visible {
  outline: 3px solid var(--omg-pink-ink);
  outline-offset: 2px;
}
.features-menu .feature-nav-group a.fm-item[aria-current] {
  background: var(--omg-tint-pink);
}
.fm-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.fm-copy b {
  display: block;
  font-weight: 800;
}
.features-menu .feature-nav-group .fm-copy small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--omg-muted);
}
.features-menu .feature-nav-group a.fm-item i {
  margin-left: auto;
  align-self: center;
  font-style: normal;
  font-size: 15px;
  color: var(--omg-pink-ink);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.features-menu .feature-nav-group a.fm-item:hover i,
.features-menu .feature-nav-group a.fm-item:focus-visible i {
  opacity: 1;
  transform: none;
}
/* Thumbnail frame: tinted by group; product/UI crops fill it edge to edge. */
.fm-thumb {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--omg-tint-pink);
  box-shadow: 0 4px 12px #14101814;
  transition: transform 0.2s ease;
}
.fm-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fm-thumb-advertise {
  background: var(--omg-tint-yellow);
}
.fm-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #1410180d;
  pointer-events: none;
}
/* Official platform mark as a badge on the example. */
.fm-badge {
  position: absolute;
  z-index: 1;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px #fff;
}
.fm-badge svg {
  display: block;
  width: 16px;
  height: 16px;
}
/* Footer line: readable size and weight. */
.features-menu .feature-nav-foot {
  align-items: center;
  margin-top: 16px;
  padding: 14px 24px 2px;
  border-top: 1px solid var(--fm-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--omg-text);
}
.features-menu .feature-nav-foot a {
  font-weight: 800;
  color: var(--omg-pink-ink);
}
.features-menu .feature-nav-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile menu: same thumbnails, compact rows. */
.mm-panel .mm-item.mm-item-thumb {
  min-height: 56px;
  gap: 12px;
  padding: 6px 10px 6px 6px;
}
.mm-thumb.fm-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.mm-thumb .fm-badge {
  right: 2px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: 0 0 0 1.5px #fff;
}
.mm-thumb .fm-badge svg {
  width: 12px;
  height: 12px;
}
.mm-panel .mm-item-thumb + .mm-item-thumb {
  margin-top: 2px;
}
.mm-sublabel {
  padding: 12px 10px 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--omg-ink);
}
.mm-text small {
  font-size: 13px;
  font-weight: 500;
  color: var(--omg-muted);
}
.mm-item[aria-current='page'] {
  background: var(--omg-tint-pink);
}
.mm-chevron,
.mm-caret {
  color: var(--omg-pink-ink);
}

.mm-panel .mm-item.mm-item-thumb {
  border: 0;
  background: transparent;
}
.mm-panel .mm-item.mm-item-thumb:hover {
  background: #f6f3f8;
}
/* Quieter thumbnails: one neutral ground instead of a tinted frame per group */
.fm-thumb,
.fm-thumb-advertise {
  background: #f3eff5;
}
