/* Phone and tablet menu for the landing pages (home and pricing), 2026-11-02. Below 1024 px the centred menu has no room (it ran into
   the buttons from 861 to 1023 px), so it is hidden and a round button opens a
   full-screen menu that grows out of it as a circle; its links rise in one after another. Esc, a link or the button closes it. */
.burger { display: none; }
.mnav { display: none; }
@media (max-width: 1023px) {
  .bar .menu, .bar .panel, html .dim { display: none; }
  .burger { position: relative; flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; color: inherit; }
  .burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), top 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 23px; }
  .menu-open .burger i:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
  .menu-open .burger i:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }
  .burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  .mnav { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--bar) + 48px) 24px 36px; background: #0b0a09; color: var(--ivory); overflow-y: auto;
    clip-path: circle(0px at var(--cx, 100%) var(--cy, 0px)); visibility: hidden; transition: clip-path 0.75s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 0.75s; }
  .menu-open .mnav { clip-path: circle(150vmax at var(--cx, 100%) var(--cy, 0px)); visibility: visible; transition: clip-path 0.75s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s; }
  .mnav nav { display: flex; flex-direction: column; gap: 4px; }
  .mnav nav a { display: block; overflow: hidden; padding: 2px 0; font-weight: 300; font-size: clamp(40px, 12vw, 64px); line-height: 1.08; letter-spacing: -0.045em; }
  .mnav nav a span { display: block; transform: translateY(108%); transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
  .menu-open .mnav nav a span { transform: none; }
  .menu-open .mnav nav a:nth-child(1) span { transition-delay: 0.16s; }
  .menu-open .mnav nav a:nth-child(2) span { transition-delay: 0.22s; }
  .menu-open .mnav nav a:nth-child(3) span { transition-delay: 0.28s; }
  .menu-open .mnav nav a:nth-child(4) span { transition-delay: 0.34s; }
  .mnav nav a[aria-current="page"] span { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--gold); letter-spacing: -0.02em; }
  .mnav nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
  .mnav-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(236,228,215,0.16); opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .menu-open .mnav-foot { opacity: 1; transform: none; transition-delay: 0.42s; }
  .mnav-foot .login { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #FFFFFF; }
  .mnav-foot .cta { width: auto; height: 52px; padding: 0 28px; font-size: 14px; }
  .mnav-mail { display: block; margin-top: 22px; font-size: 14px; color: rgba(236,228,215,0.6); }

  /* while it is open the bar sits on the dark menu: light text, no backing */
  .menu-open .bar.light, .menu-open .bar.light .logo, .menu-open .bar.light .login { color: var(--ivory); }
  .menu-open .bar.light .cta { background: #FFFFFF; color: #111111; }
  .menu-open .bar::after { opacity: 0 !important; }
}
/* room for the button on the narrowest phones: Log in moves into the menu */
@media (max-width: 440px) { .right .login { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mnav, .menu-open .mnav, .mnav nav a span, .mnav-foot, .burger i { transition: none !important; }
}
