/* Leebry redesign — shared UI chrome (nav, dropdown, compact nav, canvas
   scaling skeleton). Hand-written companion to the generated per-page CSS. */

/* page skeleton: centered fixed-design canvas scaled by js/leebry.js */
#lb-page {
  background-color: #0f0f0f;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}
#lb-fit {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  width: 1440px;
  height: 8070px;
}
#lb-canvas {
  width: 1440px;
  height: 8070px;
  transform-origin: top left;
  position: relative;
}

/* fixed nav shell */
#lb-nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}
#lb-nav-scale {
  pointer-events: auto;
  transform-origin: top center;
}

/* converted links keep the design's look (colors come from their classes) */
a.lb-nav-link,
a.lb-uc-link,
a.lb-dd-item,
a.lb-nc-item {
  text-decoration: none;
}
[data-href] { cursor: pointer; }

/* shared CTA hover states (originally inline JS handlers in the design) */
a[data-hover="link"] { text-decoration: none; }
a[data-hover="link"]:hover { color: #fff !important; }
[data-hover="btn"]:hover { background: #e9e6f5 !important; }

/* h1/h2 carry the design's paragraph styling — only neutralize the UA
   margin/bold; sizes come from the design's utility classes (they live in
   @layer, so an unlayered font-size here would wrongly win the cascade). */
:where(#lb-canvas h1, #lb-canvas h2, #lb-canvas h3) {
  margin: 0;
  font-weight: normal;
}

/* ── Use cases dropdown (desktop nav) ─────────────────────────────────── */
.lb-nav-uc { position: relative; }
.lb-nav-uc .lb-dd-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  z-index: 20;
  display: none;
}
.lb-nav-uc:hover .lb-dd-wrap,
.lb-nav-uc:focus-within .lb-dd-wrap { display: block; }
.lb-dd-panel {
  background: rgba(18, 18, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 7px;
  min-width: 300px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
a.lb-dd-item { display: block; }
.lb-nav-uc > p { display: flex; align-items: center; gap: 5px; }
.lb-nav-uc > p > svg { display: inline-block; transition: transform 0.25s ease; }
.lb-nav-uc:hover > p > svg { transform: rotate(180deg); }

/* ── Compact phone navbar ─────────────────────────────────────────────── */
#lb-nav-compact { display: none; position: relative; margin: 10px 10px 0; }
.lb-nc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 24px rgba(0, 0, 0, 0.3);
}
.lb-nc-logo { display: flex; align-items: center; }
.lb-nc-logo img { height: 30px; width: auto; display: block; }
.lb-nc-right { display: flex; align-items: center; gap: 8px; }
a.lb-nc-demo {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #121417;
  white-space: nowrap;
}
.lb-nc-burger {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.lb-nc-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
#lb-nav-compact.open .lb-nc-burger { background: rgba(255, 255, 255, 0.14); }
#lb-nav-compact.open .lb-nc-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#lb-nav-compact.open .lb-nc-burger span:nth-child(2) { opacity: 0; }
#lb-nav-compact.open .lb-nc-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lb-nc-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  border-radius: 20px;
  padding: 8px;
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}
.lb-nc-menu[hidden] { display: none; }
.lb-nc-h {
  padding: 13px 16px 5px;
  margin: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-family: "Fixel Display", sans-serif;
  font-weight: 500;
}
a.lb-nc-item {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-family: "Fixel Display", sans-serif;
  font-weight: 500;
}
a.lb-nc-item.lb-nc-sub { padding: 10px 16px 10px 28px; font-size: 15px; }

/* nav switch: compact under 700px, full above */
@media (max-width: 699.9px) {
  #lb-nav-full { display: none; }
  #lb-nav-compact { display: block; }
}

/* ROI calculator empty state (shown by js/home.js when totals hit zero) */
.lb-roi-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  text-align: center;
  padding: 32px;
}
.lb-roi-empty[hidden] { display: none; }

/* typed-reply caret on the live use-case screens */
.lb-caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
  animation: lbCaretBlink 0.7s step-end infinite;
}
@keyframes lbCaretBlink { 50% { opacity: 0; } }

/* resources: filter buttons + featured-report hover.
   Baked-in active styles from the design dump are neutralized so the
   .rs-factive class is the single source of the active look. */
button[data-rsfilter] {
  color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
button.rs-factive[data-rsfilter] {
  color: #121417 !important;
  background: #fff !important;
  border-color: #fff !important;
}
a[data-hover="scale"] { text-decoration: none; }
a[data-hover="scale"]:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* contact page: mailto panel replacing the (forbidden) form */
.lb-mailform { display: flex; flex-direction: column; gap: 14px; }
.lb-mailform-title {
  font-family: "Fixel Display", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  margin: 0;
}
.lb-mailform-body {
  font-family: "Fixel Display", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 10px;
}
a.lb-mailform-cta {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #121417;
  background: #fff;
  border-radius: 999px;
  padding: 13px 24px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s ease;
}
a.lb-mailform-cta:hover { background: #e9e6f5; }
.lb-mailform-note {
  font-family: "Fixel Display", sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 4px 0 0;
}

/* content-hub email section: button must be block-level to sit below text */
.g9c8269fd a.lb-mailform-cta { display: inline-block; margin-top: 20px; }

/* shared footer — all pages */
.lb-uc-footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; margin-top: 80px; font-family: "Fixel Display:Regular", sans-serif; font-size: 12px; color: rgba(255,255,255,0.7); }
.lb-uc-footer-links { display: flex; gap: 24px; align-items: center; }
@media (max-width: 699px) {
  .lb-uc-footer { flex-direction: column; height: auto; padding: 24px 20px; gap: 16px; text-align: center; }
  .lb-uc-footer-links { flex-direction: column; align-items: center; gap: 16px; }
}

/* homepage mobile footer — hidden on desktop (canvas has its own), shown on mobile */
.lb-home-footer { display: none; margin-top: 0; border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 20px; font-family: "Fixel Display:Regular", sans-serif; font-size: 12px; color: rgba(255,255,255,0.7); flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.lb-home-footer .lb-uc-footer-links { display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (max-width: 699px) {
  .lb-home-footer { display: flex; }
  .lb-m-bar { display: none; }
}

/* ── book a demo modal ─────────────────────────────────────────────── */
#lb-demo-modal{position: fixed; inset: 0; background: rgba(0,0,0,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 24px;}
#lb-demo-modal[hidden]{display: none;}
#lb-demo-box{width: 100%; max-width: 720px; height: min(800px, calc(100vh - 48px)); background: rgb(15,15,16); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;}
#lb-demo-head{display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 52px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);}
#lb-demo-title{font-family: "Fixel Display:Medium", sans-serif; font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; letter-spacing: 0.01em;}
#lb-demo-close{width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); border-radius: 50%; color: rgba(255,255,255,0.5); font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;}
#lb-demo-close:hover{background: rgba(255,255,255,0.12); color: #fff;}
#lb-demo-box iframe{width: 100%; flex: 1; border: none; display: block; min-height: 0;}
