/* The page's bar (./menu.ts), as the live landing's is drawn (Product/shared/landing/bar.tsx LandingBar and the
   corner of Product/components/onboarding/OnboardingHeader.tsx): 44 tall on a phone and 56 from 1180 up, no plate,
   the wordmark in the page's heads' face (./white.css: Reckless; Sergei 2026-12-02: "use reckless new font"), the
   doors in Inter 13 at 500. Held over the page's top rather than above it, so the story's white runs up under it as
   the live page's canvas does (the body under this page is ./story.css's black). */

.menu {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  color: #1a1a1a;
  transition: color 150ms;
}
/* white over a dark ground: the whole bar, or one side of it where the dark is under that side only (./menu.ts) */
.menu[data-on-dark],
.menu-side[data-on-dark] {
  color: #fff;
}
.menu-side {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  transition: color 150ms;
}
.menu-corner {
  justify-content: flex-end;
}

/* the mark and the wordmark, the way back to the top (the hand that stood here went, Sergei: "remove logo"; the shield
   came, 2026-12-03: "can you add this as a logo to the website?") */
.menu-home {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 100ms;
}
.menu-home:hover {
  opacity: 0.6;
}
/* the shield a little taller than the wordmark's letters, as a mark stands beside its name */
.menu-mark {
  flex-shrink: 0;
  width: auto;
  height: 26px;
}
/* a little smaller than the live bar's (Sergei 2026-12-03: "make a logo text smaller a bit"). Raised a tenth of
   itself, so its small letters sit level with the shield's U, not with the shield's box, whose point below draws
   the box's middle down (Sergei 2026-12-03: "center the logo and text") */
.menu-wordmark {
  font-family: 'Reckless', Georgia, serif;
  font-weight: 400;
  font-variation-settings:
    'wght' 400,
    'wdth' 85,
    'CNTR' 22;
  font-size: 22px;
  line-height: 22px;
  letter-spacing: -0.03em;
  translate: 0 -0.1em;
}

/* a door in the corner: its mark and its word, in the bar's ink */
.menu-door {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.menu-door:first-child {
  margin-left: 12px;
}
.menu-door svg,
.menu-row svg {
  flex-shrink: 0;
}
/* Book a demo, the corner's one key: in ink with white words, last in the row, its corners square-ish as the page's
   cards are (Sergei 2026-11-30: "lets make book a demo in the menu as a btn like more accent"); white with ink words
   over a dark ground, where the bar's words turn white */
.menu-key {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: #fff;
  background: #0b0b12;
  transition: background-color 150ms;
}
.menu-key:hover {
  background: #2c2d36;
}
.menu[data-on-dark] .menu-key,
.menu-side[data-on-dark] .menu-key {
  color: #0b0b12;
  background: #fff;
}
.menu[data-on-dark] .menu-key:hover,
.menu-side[data-on-dark] .menu-key:hover {
  background: #e6e6e6;
}
/* a door's mark redraws its stroke while the door is hovered (Product/shared/landing/rail.css) */
@keyframes menu-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.menu-door:hover .menu-draw,
.menu-row:hover .menu-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: menu-draw 0.7s ease 0.05s forwards;
}

/* the phone's menu, below 680: its button's three lines cross when it is open, and its rows drop under it on a white
   card */
.menu-fold {
  position: relative;
}
.menu-burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-burger span {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 200ms,
    opacity 200ms;
}
.menu-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.menu-sheet {
  position: absolute;
  top: 44px;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 208px;
  padding: 6px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.06),
    0 14px 30px rgb(0 0 0 / 0.1);
}
.menu-sheet[hidden] {
  display: none;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.menu-row:hover {
  background: #efefef;
}
@media (max-width: 679px) {
  .menu-door[data-fold] {
    display: none;
  }
}
@media (min-width: 680px) {
  .menu-fold {
    display: none;
  }
}
@media (min-width: 1180px) {
  .menu {
    height: 56px;
    padding: 0 20px;
  }
  .menu-key {
    height: 36px;
    padding: 0 14px;
    margin-left: 20px;
  }
  .menu-wordmark {
    font-size: 26px;
    line-height: 26px;
  }
  .menu-mark {
    height: 30px;
  }
}
