/* Site chrome (nav + footer) for /case-studies/ pages. Copied from the rules every page inlines (see pricing.html). */
*, *::before, *::after { box-sizing: border-box; }
.mobile-menu { display: none !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  justify-self: end;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0C3651;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  padding: 16px 20px 40px;
  overflow-y: auto;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex !important; }
.mobile-menu a {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #0C3651;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
  font-family: 'Open Sans', sans-serif;
}
.mobile-menu-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 20px 16px 6px;
  font-family: 'Open Sans', sans-serif;
}
.mobile-menu-divider { height: 1px; background: #e2e8f0; margin: 8px 0; }
.mobile-menu-collapse {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 11px 16px; background: none; border: none;
  font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 600;
  color: #0C3651; cursor: pointer; text-align: left;
}
.mobile-menu-collapse:hover { background: rgba(8,145,178,0.06); border-radius: 8px; }
.collapse-chevron { transition: transform 0.2s ease; flex-shrink: 0; color: #94A3B8; }
.mobile-menu-collapse[aria-expanded="true"] .collapse-chevron { transform: rotate(180deg); }
.mobile-menu-collapsed { display: none; padding-left: 16px; }
.mobile-menu-collapsed.open { display: block; }
.mobile-menu-collapsed a { font-size: 14px !important; color: #475569 !important; }
.mobile-menu-cta {
  margin-top: 12px;
  padding: 14px 24px !important;
  background: #334155 !important;
  color: #fff !important;
  border-radius: 9999px !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(51,65,85,0.25);
}
@media (max-width: 1024px) {
  nav { display: none !important; }
  .header-ctas { display: none !important; }
  .nav-hamburger { display: flex; }
}
:root {
  --teal: #0891b2;
  --navy: #0c3651;
  --dark-bg: #081829;
  --light-bg: #f2f6f8;
  --body: #334155;
  --muted: #64748b;
  --light-blue: #b3c8d8;
  --meta-blue: #6b8dad;
}

.wrap { max-width: 1412px; margin: 0 auto; padding: 0 66px; }

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }
}

.header-ctas .link { transition: color 0.15s ease; }
.header-ctas .link:hover { color: #0891B2 !important; }

/* ── CAROUSEL ARROWS ── */
#rk-prev, #rk-next { transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
#rk-prev:hover, #rk-next:hover { background: #EFF9FC !important; border-color: #0891B2 !important; box-shadow: 0 2px 8px rgba(8,145,178,0.15) !important; }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.nav-inner {
  width: 100%;
  max-width: 1412px;
  margin: 0 auto;
  padding: 0 66px;
}
@media (max-width: 1024px) { .nav-inner { padding: 0 32px; } }
@media (max-width: 768px)  { .nav-inner { padding: 0 20px; } }

/* 3-column grid: logo | nav (centered) | ctas */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .logo { justify-self: start; }
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #03070f;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0C3651;
  text-decoration: none;
  transition: color 0.15s ease;
}

nav a:hover {
  color: #0891B2;
}

nav a svg {
  color: #0C3651;
  transition: transform 0.2s ease, color 0.15s ease;
}

nav a:hover svg {
  color: #64748B;
}

nav a.nav-active {
  color: #0C3651;
  font-weight: 600;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  padding-left: 20px;
  margin-left: 8px;
}

.header-ctas .link {
  font-size: 14px;
  font-weight: 600;
  color: #0C3651;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-ctas .link:hover {
  color: #0891B2;
}

/* ── NAV DROPDOWN ── */
.nav-dropdown-wrap {
  position: relative;
}

/* Invisible bridge fills the gap so the hover chain stays unbroken
   as the mouse travels from the trigger down into the card */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 14px;
  z-index: 199;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(4px);
  width: fit-content;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(12,54,81,0.09), 0 1px 4px rgba(12,54,81,0.06);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.nav-dd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
}
.nav-dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dd-text-name {
  font-size: 13px; font-weight: 600; color: #1e293b;
  font-family: 'Open Sans', sans-serif;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: -0.01em;
}
.nav-dd-text-desc {
  font-size: 11px; color: #94a3b8;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.35; margin-top: 1px;
  white-space: nowrap;
}
.nav-dd-bundle-badge {
  background: rgba(8,145,178,0.1); color: #0891B2;
  border-radius: 100px; font-size: 9px; font-weight: 600;
  padding: 1px 7px; font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.02em;
}
.nav-dd-row:hover { background: rgba(15,18,61,0.04); }
.nav-dd-ek-wrap {
  background: linear-gradient(110deg, #E3F3F9 0%, #EAEDFF 100%);
  border-radius: 10px;
  margin-top: 4px;
  overflow: hidden;
}
.nav-dd-ek-wrap .nav-dd-row:hover { background: rgba(8,145,178,0.06); }

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Force-close a dropdown when a sibling is being hovered */
.nav-dropdown-wrap.force-close .nav-dropdown {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(4px) !important;
}

.nav-dropdown-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 8px 12px 4px;
  font-family: 'Open Sans', sans-serif;
}

.nav-dd-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s ease;
  cursor: pointer;
}

.nav-dd-item:hover {
  background: #F1F5F9;
}

.nav-dd-item:hover .nav-dd-title {
  color: #0C3651;
}

.nav-dd-item:hover .nav-dd-sub {
  color: #475569;
}

.nav-dd-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-dd-title {
  font-size: 14px;
  font-weight: 600;
  color: #0C3651;
  font-family: 'Open Sans', sans-serif;
}

.nav-dd-badge {
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: 'Open Sans', sans-serif;
  white-space: nowrap;
}

.nav-dd-sub {
  font-size: 12px;
  color: #64748B;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.4;
}

.nav-dd-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 8px;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 64px 0;
  border-top: 1px solid rgba(8, 145, 178, 0.15);
}

/* Footer aurora blobs */
.footer-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.footer-blob-1 {
  width: 800px; height: 800px;
  background: rgb(133,106,195);
  bottom: -500px; left: -200px;
  filter: blur(140px);
  opacity: 0.18;
}
.footer-blob-2 {
  width: 650px; height: 650px;
  background: rgb(144,224,239);
  top: -300px; left: 20%;
  filter: blur(110px);
  opacity: 0.22;
}
.footer-blob-3 {
  width: 750px; height: 750px;
  background: rgb(0,119,182);
  bottom: -400px; right: -200px;
  filter: blur(130px);
  opacity: 0.18;
}
.footer-blob-4 {
  width: 700px; height: 700px;
  background: rgb(202,240,248);
  top: -200px; right: -100px;
  filter: blur(110px);
  opacity: 0.25;
}
/* Fade in from top so the content above bleeds cleanly into the gradient */
.footer-aurora-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.5) 30%,
    rgba(255,255,255,0.1) 100%
  );
  pointer-events: none;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 13px; color: #64748B; margin-top: 12px; max-width: 260px; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; }

.footer-col h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #94A3B8; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #475569; text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--navy); }

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── PRICING TOGGLE ── */
.pricing-toggle { display: inline-flex; background: #e2e8f0; border-radius: 999px; padding: 4px; }
.pricing-toggle button { padding: 8px 24px; border-radius: 999px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; font-family: 'Open Sans', sans-serif; background: transparent; color: #64748B; transition: all 0.15s ease; }
.pricing-toggle button.active { background: #fff; color: #0C3651; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }


.footer-bottom p { font-size: 13px; color: #94A3B8; }

@media (max-width: 768px) {
  /* Hero — fix overflow and top padding */
  .pricing-hero-section { overflow-x: hidden; }
  .pricing-hero-grid { padding-top: 64px !important; padding-bottom: 40px !important; padding-left: 20px !important; padding-right: 20px !important; gap: 20px !important; }

  /* Stat card — scale down values so 3 cols fit */
  .trad-stats { gap: 12px !important; }
  .trad-stats > div { padding-left: 10px !important; }
  .trad-stats span[style*="font-size:22px"] { font-size: 17px !important; }

  /* Hero text — tighter on mobile */
  .pricing-hero-left .p-h1 { font-size: 28px !important; margin-bottom: 10px !important; }
  .pricing-hero-left > p { font-size: 14px !important; margin-bottom: 18px !important; }
  .pricing-hero-left > span[class*="badge"] { margin-bottom: 14px !important; }

  /* Free card — compact on mobile */
  .pricing-hero-right > div { padding: 20px !important; border-radius: 16px !important; }
  .pricing-hero-right > div > div:first-child { font-size: 22px !important; }
  .pricing-hero-right > div > div:nth-child(2) { font-size: 13px !important; margin-top: 4px !important; }
  .pricing-hero-right hr, .pricing-hero-right > div > div[style*="height:1px"] { margin: 14px 0 !important; }
  .pricing-hero-right > div > div[style*="flex-direction:column"][style*="gap:16px"] { gap: 10px !important; }
  .pricing-hero-right span[style*="font-size:14.5px"] { font-size: 13px !important; }
  .pricing-hero-right span[style*="font-size:13.5px"] { font-size: 12px !important; }
  .pricing-hero-right > div > div[style*="padding:12px"] { padding: 8px 12px !important; }

  /* BYOD cards — single column */
  .resp-2col { grid-template-columns: 1fr !important; }

  /* Footer — stack brand + links vertically */
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-col { min-width: 120px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
