/* Additions layered on top of Hubtal's own compiled stylesheet.
   Everything below exists because the live site renders its nav menus,
   accordions, billing switch and Lottie slots with JavaScript. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* ---------- navigation ---------- */
.mm-navlink {
  text-decoration: none;
  color: var(--color-grey-900);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: 0.5px;
  line-height: 24px;
  cursor: pointer;
}
.mm-navlink:hover { opacity: 0.7; }
.mm-res-btn { display: inline-flex; align-items: center; gap: 4px; }
.mm-res-btn svg { transition: transform 0.2s ease; }
.mm-res-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.mm-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: 140px;
  z-index: 90;
  background: var(--color-grey-050);
  border-top: 1px solid var(--color-grey-200);
  box-shadow: 0 24px 40px rgba(10, 15, 30, 0.08);
}
.mm-mega-inner {
  display: flex;
  gap: 200px;
  width: 100%;
  max-width: 1440px;
  min-height: 563px;
  margin: 0 auto;
  padding: 80px 100px 80px;
}
.mm-mega-col { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.mm-mega-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; text-decoration: none; }
.mm-mega-item + .mm-mega-item { border-top: 1px solid var(--color-grey-200); }
.mm-mega-t {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.02em;
  color: var(--color-grey-900);
}
.mm-mega-s { font-size: 16px; line-height: 24px; letter-spacing: 0.02em; color: var(--color-grey-700); }
.mm-mega-item:hover .mm-mega-t { color: var(--color-coral-800); }
.mm-mega-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-coral-700);
  margin-bottom: 12px;
}
.mm-mega-post { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.mm-mega-pt {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0.02em;
  color: var(--color-grey-900);
}
.mm-mega-ps { font-size: 15px; line-height: 24px; color: var(--color-grey-700); }

.mm-mobile {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--color-grey-050);
  overflow-y: auto;
  padding: 96px 20px 40px;
}
.mm-mobile-inner { display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }
.mm-mobile-inner > a {
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 34px;
  color: var(--color-grey-900);
  text-decoration: none;
  border-bottom: 1px solid var(--color-grey-200);
}
.mm-mobile-actions { display: flex; gap: 12px; margin-top: 24px; }
.mm-mobile-login,
.mm-mobile-signup {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.mm-mobile-login { border: 1px solid var(--color-grey-300); color: var(--color-navy-950); }
.mm-mobile-signup { background: var(--color-coral-800); color: var(--color-grey-050); }
body.mm-locked { overflow: hidden; }

/* ---------- pinned landing section ---------- */
.mm-scrollsec { height: auto !important; }
.mm-scrollsec > .sticky { position: static !important; height: auto !important; }

/* ---------- Lottie slots ---------- */
.mm-lottie { width: 100%; height: 100%; min-height: 0; }
.mm-lottie svg { display: block; margin: 0 auto; max-width: 100%; max-height: 100%; height: auto; width: auto; }

/* ---------- FAQ ---------- */
.mm-faq-panel { display: none; padding: 0 20px 18px 24px; }
.mm-faq-panel[data-open="true"] { display: block; }
.mm-faq-a {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.02em;
  color: var(--color-grey-800);
}
.mm-faq-open .lucide-plus { transform: rotate(45deg); transition: transform 0.2s ease; }

/* ---------- landing-page solutions switcher ---------- */
.mm-sol {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.mm-sol:focus-visible { outline: 2px solid var(--color-coral-700); outline-offset: 4px; border-radius: 8px; }

/* ---------- legal pages note ---------- */
.mm-legal-note {
  max-width: 72rem;
  margin: 0 auto 40px;
  padding: 0 20px 40px;
  font-size: 13px;
  color: var(--color-grey-600);
}
.mm-legal-note a { color: var(--color-grey-600); text-decoration: underline; }
.mm-legal-note a:hover { color: var(--color-grey-900); }

/* ---------- form notice ---------- */
.mm-form-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-grey-600);
}

@media (max-width: 1023px) {
  .mm-mega { display: none !important; }
}
@media (max-width: 640px) {
  .mm-mega-inner { padding: 24px 20px 32px; gap: 24px; flex-direction: column; }
}

/* Long URLs in the legal pages must not push the layout sideways. */
.min-h-screen p,
.min-h-screen li,
.min-h-screen a { overflow-wrap: anywhere; }

/* The pinned landing section was captured in its desktop layout: a 520px
   column of nowrap headings and a 602px card. Below the large breakpoint it
   has to stack like the live site does. */
@media (max-width: 1023px) {
  .mm-scrollsec [class*="max-w-[1240px]"] {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .mm-scrollsec [class*="w-[520px]"] { width: 100%; }
  .mm-scrollsec [style*="height: 882px"],
  .mm-scrollsec [style*="height: 602px"],
  .mm-scrollsec [style*="height: 140px"] { height: auto !important; }
  .mm-scrollsec [style*="height: 140px"] { display: none !important; }
  .mm-scrollsec [class*="max-h"] { max-height: none; }
  .mm-scrollsec [class*="max-w-[600px]"] { max-width: 100%; min-height: 320px; }
  .mm-scrollsec .whitespace-nowrap { white-space: normal; }
  .mm-scrollsec > .sticky > div[style*="height: 140px"] { display: none; }
  .mm-scrollsec [class*="gap-[40px]"] { gap: 24px; }
  .mm-scrollsec h2 { font-size: 34px !important; line-height: 1.2 !important; }
  .mm-scrollsec h3 { font-size: 20px !important; line-height: 1.3 !important; }
}
