/* Homepage header and footer. Scoped so Bootstrap on the page body is unchanged. */

header.cm-nav,
header.cm-nav *,
footer.cm-ft,
footer.cm-ft * {
  box-sizing: border-box;
}

header.cm-nav,
footer.cm-ft,
#cm-content {
  font-family: var(--font);
}

header.cm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}

header.cm-nav ~ #cm-content {
  position: relative;
  z-index: 1;
}

header.cm-nav .cm-nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
}

header.cm-nav .cm-logo {
  display: flex;
  align-items: center;
  flex: none;
  order: 1;
}

header.cm-nav nav {
  order: 4;
}

header.cm-nav .cm-logo img {
  height: 24px;
  width: auto;
  display: block;
}

header.cm-nav .cm-links {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  max-height: calc(100vh - 72px);
  overflow: auto;
  margin: 0;
  padding: 8px 16px 20px;
  list-style: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

header.cm-nav.is-open .cm-links {
  display: flex;
}

header.cm-nav .cm-item {
  position: static;
  padding: 0;
}

header.cm-nav .cm-trigger,
header.cm-nav .cm-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.012em;
  text-decoration: none;
  line-height: 1.2;
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
}

header.cm-nav .cm-trigger:hover,
header.cm-nav .cm-item:hover .cm-trigger,
header.cm-nav .cm-top-link:hover {
  color: var(--ink);
  background: #F4F4F0;
}

header.cm-nav button:focus,
header.cm-nav a:focus {
  outline: none;
  box-shadow: none;
}

header.cm-nav button:focus-visible,
header.cm-nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

header.cm-nav .cm-chev {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s;
  opacity: 0.65;
}

header.cm-nav .cm-item:hover .cm-chev,
header.cm-nav .cm-item:has(:focus-visible) .cm-chev,
header.cm-nav .cm-item.is-open .cm-chev {
  transform: rotate(180deg);
}

header.cm-nav .cm-pop {
  position: static;
  display: none;
  width: 100%;
  margin: 4px 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
  padding: 18px;
}

header.cm-nav .cm-item.is-open .cm-pop {
  display: block;
}

header.cm-nav .cm-item.is-open .cm-pop.cm-pop-res {
  display: grid;
}

header.cm-nav .cm-pop-feat {
  width: 100%;
  padding: 16px;
}

header.cm-nav .cm-pop-label {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111113;
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--line-2);
}

header.cm-nav .cm-feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
}

header.cm-nav .cm-feat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14.5px;
  color: #111113;
  letter-spacing: -0.014em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s;
}

header.cm-nav .cm-feat-link:hover {
  background: #EDF4FD;
  color: var(--ink);
}

header.cm-nav .cm-feat-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header.cm-nav .cm-new {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: #F1F1ED;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
}

header.cm-nav .cm-pop-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

header.cm-nav .cm-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.014em;
  text-decoration: none;
}

header.cm-nav .cm-view-all:hover {
  background: #EDF4FD;
  color: var(--ink);
}

header.cm-nav .cm-view-all svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header.cm-nav .cm-pop-res {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

header.cm-nav .cm-res-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px;
}

header.cm-nav .cm-res-label {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111113;
  padding: 0 10px 10px;
}

header.cm-nav .cm-res-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

header.cm-nav .cm-res-link {
  display: flex;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.16s;
}

header.cm-nav .cm-res-link:hover {
  background: #EDF4FD;
  color: var(--ink);
}

header.cm-nav .cm-ico {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header.cm-nav .cm-ico svg {
  width: 18px;
  height: 18px;
  stroke: #111113;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header.cm-nav .cm-res-link span {
  display: block;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.016em;
}

header.cm-nav .cm-res-side {
  background-color: #12141C;
  background-image:
    radial-gradient(ellipse 120% 90% at 85% 0%, rgba(59, 123, 255, 0.42), transparent 62%),
    radial-gradient(ellipse 100% 80% at 10% 105%, rgba(47, 211, 200, 0.22), transparent 60%),
    linear-gradient(165deg, #12141C, #0A0B11);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 26px 24px;
}

header.cm-nav .cm-res-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

header.cm-nav .cm-res-side .cm-res-label {
  color: rgba(255, 255, 255, 0.62);
}

header.cm-nav .cm-res-side .cm-view-all {
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  padding: 0;
  background: transparent;
}

header.cm-nav .cm-res-side .cm-view-all span {
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-color: #fff;
}

header.cm-nav .cm-res-side .cm-view-all:hover,
header.cm-nav .cm-res-side .cm-view-all:focus-visible {
  background: transparent;
  color: #fff;
}

header.cm-nav .cm-res-side .cm-view-all:hover span,
header.cm-nav .cm-res-side .cm-view-all:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #fff;
}

header.cm-nav .cm-res-side .cm-view-all svg {
  width: 15px;
  height: 15px;
}

header.cm-nav .cm-vid {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
}

header.cm-nav .cm-vid:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

header.cm-nav .cm-vid-thumb {
  position: relative;
  flex: none;
  width: 132px;
  height: 80px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

header.cm-nav .cm-vid-thumb img {
  width: 132px;
  height: 80px;
  object-fit: cover;
  display: block;
}

header.cm-nav .cm-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(12, 12, 16, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

header.cm-nav .cm-play svg {
  width: 15px;
  height: 15px;
  display: block;
}

header.cm-nav .cm-vid b {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: #fff;
}

header.cm-nav .cm-vid small {
  display: block;
  font-size: 12.6px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 5px;
}

header.cm-nav .cm-actions {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

header.cm-nav .cm-login {
  display: none;
  font-size: 15px;
  color: var(--ink);
  margin-right: 10px;
  text-decoration: none;
}

header.cm-nav .cm-login:hover {
  color: var(--ink);
}

header.cm-nav .cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

header.cm-nav .cm-btn-ghost {
  display: none;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

header.cm-nav .cm-btn-ghost:hover {
  border-color: #C9C9C4;
  color: var(--ink);
  transform: translateY(-1px);
}

header.cm-nav .cm-actions .cm-btn-dark {
  display: none;
}

header.cm-nav .cm-menu-demo {
  margin-top: 8px;
}

header.cm-nav .cm-menu-demo .cm-btn {
  width: 100%;
}

header.cm-nav .cm-btn-dark {
  background: var(--ink);
  color: #fff;
}

header.cm-nav .cm-btn-dark:hover {
  background: #25252A;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

header.cm-nav .cm-menu-btn {
  order: 3;
  display: inline-flex;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  padding: 0;
}

header.cm-nav .cm-menu-btn span,
header.cm-nav .cm-menu-btn span::before,
header.cm-nav .cm-menu-btn span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

header.cm-nav .cm-menu-btn span::before,
header.cm-nav .cm-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

header.cm-nav .cm-menu-btn span::before { top: -5px; }
header.cm-nav .cm-menu-btn span::after { top: 5px; }

header.cm-nav .cm-menu-btn span,
header.cm-nav .cm-menu-btn span::before,
header.cm-nav .cm-menu-btn span::after {
  transition: transform 0.18s, top 0.18s, background 0.18s;
}

header.cm-nav.is-open .cm-menu-btn span {
  background: transparent;
}

header.cm-nav.is-open .cm-menu-btn span::before,
header.cm-nav.is-open .cm-menu-btn span::after {
  top: 0;
}

header.cm-nav.is-open .cm-menu-btn span::before { transform: rotate(45deg); }
header.cm-nav.is-open .cm-menu-btn span::after { transform: rotate(-45deg); }

@media (min-width: 640px) {
  header.cm-nav .cm-logo img { height: 26px; }

  header.cm-nav .cm-btn {
    height: 42px;
    padding: 0 20px;
    font-size: 14.5px;
  }

  header.cm-nav .cm-btn-ghost { display: inline-flex; }
}

@media (min-width: 1100px) {
  header.cm-nav .cm-logo,
  header.cm-nav nav,
  header.cm-nav .cm-actions,
  header.cm-nav .cm-menu-btn {
    order: 0;
  }

  header.cm-nav .cm-nav-in {
    padding: 0 32px;
    gap: 30px;
  }

  header.cm-nav .cm-menu-btn { display: none; }

  header.cm-nav .cm-login { display: inline; }

  header.cm-nav .cm-actions .cm-btn-dark { display: inline-flex; }

  header.cm-nav .cm-menu-login,
  header.cm-nav .cm-menu-trial,
  header.cm-nav .cm-menu-demo { display: none; }

  header.cm-nav .cm-links {
    display: flex;
    position: static;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
  }

  header.cm-nav .cm-item { padding: 14px 0; }

  header.cm-nav .cm-trigger,
  header.cm-nav .cm-top-link {
    width: auto;
    min-height: 0;
  }

  header.cm-nav .cm-pop {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: auto;
    margin: 0;
    transform: translateX(-50%) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.22s, visibility 0.22s;
    background: #fff;
    box-shadow: 0 26px 60px -20px rgba(12, 12, 16, 0.22), 0 2px 6px rgba(12, 12, 16, 0.05);
    z-index: 5;
  }

  header.cm-nav .cm-pop.cm-pop-res {
    display: grid;
    width: min(1020px, calc(100vw - 48px));
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    align-items: stretch;
  }

  header.cm-nav .cm-item:hover .cm-pop,
  header.cm-nav .cm-item:has(:focus-visible) .cm-pop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  header.cm-nav .cm-pop-feat {
    width: min(940px, calc(100vw - 48px));
    padding: 24px 26px 20px;
  }

  header.cm-nav .cm-feat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 14px;
  }

  header.cm-nav .cm-res-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
    padding: 26px 26px 24px;
  }
}

footer.cm-ft {
  background: #08090B;
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

footer.cm-ft::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 900px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(59, 123, 255, 0.16), transparent 68%);
  pointer-events: none;
}

footer.cm-ft .cm-ft-in {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

footer.cm-ft .cm-ft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

footer.cm-ft .cm-ft-brand { grid-column: 1 / -1; }

footer.cm-ft .cm-ft-logo img {
  height: 24px;
  width: auto;
  display: block;
}

footer.cm-ft .cm-ft-brand p {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.46);
}

footer.cm-ft .cm-ft-soc {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

footer.cm-ft .cm-ft-soc a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.18s, filter 0.18s;
}

footer.cm-ft .cm-ft-soc a:hover {
  transform: translateY(-2px);
  filter: none;
}

footer.cm-ft .cm-ft-soc svg { width: 18px; height: 18px; display: block; }

footer.cm-ft .cm-soc-li svg { width: 22px; height: 22px; }

footer.cm-ft .cm-soc-li svg path {
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.18s;
}

footer.cm-ft .cm-ft-soc a.cm-soc-yt { display: none; }

footer.cm-ft .cm-soc-yt svg { width: 30px; height: 30px; }

footer.cm-ft .cm-soc-yt svg path:first-child {
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.18s;
}

footer.cm-ft .cm-soc-yt svg path:last-child { fill: #08090B; }

footer.cm-ft .cm-ft-soc a:hover svg path:first-child { fill: #fff; }

header.cm-nav li:has(> a[href="https://www.callmantra.co/testimonials/"]),
footer.cm-ft li:has(> a[href="https://www.callmantra.co/testimonials/"]) {
  display: none;
}

footer.cm-ft .cm-ft-label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
}

footer.cm-ft .cm-ft-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

footer.cm-ft .cm-ft-list a {
  font-size: 14.5px;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.16s;
}

footer.cm-ft .cm-ft-list a:hover { color: #fff; }

footer.cm-ft .cm-ft-bot {
  margin-top: 72px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

footer.cm-ft .cm-ft-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.cm-ft .cm-ft-stores a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 14.5px;
}

footer.cm-ft .cm-ft-stores a:hover { color: #fff; }

footer.cm-ft .cm-ft-stores svg {
  width: 16px;
  height: 16px;
  flex: none;
}

footer.cm-ft .cm-ft-mark {
  position: relative;
  z-index: 0;
  margin: -6px 0 0;
  font-size: clamp(70px, 15.5vw, 230px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.82;
  text-align: center;
  color: rgba(255, 255, 255, 0.075);
  white-space: nowrap;
  user-select: none;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 18px;
}

@media (max-width: 640px) {
  footer.cm-ft {
    display: flex;
    flex-direction: column;
  }

  footer.cm-ft .cm-ft-in,
  footer.cm-ft .cm-ft-bot {
    display: contents;
  }

  footer.cm-ft .cm-ft-grid {
    order: 1;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  footer.cm-ft .cm-ft-stores {
    order: 2;
    width: 100%;
    margin-top: 72px;
    padding: 22px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
  }

  footer.cm-ft .cm-ft-mark { order: 3; }

  footer.cm-ft .cm-ft-copy {
    order: 4;
    padding: 4px 20px 28px;
  }
}

@media (min-width: 900px) {
  footer.cm-ft .cm-ft-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
    gap: 40px;
  }

  footer.cm-ft .cm-ft-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  header.cm-nav .cm-pop,
  header.cm-nav .cm-chev,
  header.cm-nav .cm-btn,
  header.cm-nav .cm-menu-btn span,
  header.cm-nav .cm-menu-btn span::before,
  header.cm-nav .cm-menu-btn span::after {
    transition: none;
  }
}

/* videos.html does not load newUi, so its first section needs the same offset the old pages already use. */
header.cm-nav + section.main-section {
  padding-top: 90px;
}
