/*
Developed by HMD Developments
For Hushlead
www.hmddevs.org
*/

/* Book-a-demo page: the reference design's .cd layout, cloned as-is, including its
   inline Cal.com embed and logo strip (see docs/decisions.md 2026-11-04). */

.cd {
  --cd-line: var(--kr-stroke);
  z-index: 1;
  color: var(--kr-text-primary);
  padding: 72px var(--kr-gutter) 0;
  position: relative;
  overflow: hidden;
  background: var(--kr-bg);
}

.cd__box {
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  position: relative;
}

.cd__box::after {
  content: "";
  z-index: 3;
  border-inline: 1px solid var(--cd-line);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.cd__top {
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding-top: 80px;
  display: flex;
}

.cd__head {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  display: flex;
}

.cd__title {
  max-width: 760px;
  font-family: var(--kr-font-serif);
  letter-spacing: -0.02em;
  color: var(--kr-text-primary);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.05;
}

.cd__lede {
  max-width: 520px;
  color: var(--kr-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.cd__demo {
  --cd-cal-brand: 82px;
  width: 100%;
  padding: 36px;
  display: flex;
  position: relative;
}

.cd__demo:not(.is-ready) {
  min-height: 613px;
}

.cd__demo::before,
.cd__demo::after {
  content: "";
  z-index: 2;
  pointer-events: none;
  background: #00000014;
  height: 1px;
  position: absolute;
  left: -4000px;
  right: -4000px;
}

.cd__demo::before {
  top: 0;
}

.cd__demo::after {
  bottom: 0;
}

/* Cal.com inline embed, clipped to hide its bottom "powered by" bar once
   ready, exactly as the reference design's own contact-demo page does. */
.cd__cal-wrap {
  width: 100%;
  margin-bottom: calc(-1 * var(--cd-cal-brand));
  clip-path: inset(0 0 var(--cd-cal-brand) 0);
  position: relative;
}

.cd__demo:not(.is-ready) .cd__cal-wrap {
  clip-path: none;
  margin-bottom: 0;
}

.cd__cal {
  width: 100%;
  min-height: 541px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styles the iframe Cal.com's embed.js injects into #cd-cal */
.cal-embed {
  border: 0;
  width: 100%;
  margin: 0 auto;
  display: block !important;
}

/* Start the iframe at the container's height so Cal's resize cannot re-centre
   it (layout shift). The extra class outranks the style Cal injects. */
.cd__cal .cal-embed {
  min-height: 541px;
}

.cd__bottom {
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1000px;
  padding-block: 48px;
  display: flex;
}

.cd__trusted {
  letter-spacing: -0.02em;
  color: #0c0a0999;
  text-align: center;
  max-width: 451px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* Logo strip: platforms Hushlead monitors, not customers (see founder note
   on the markup above the strip and docs/decisions.md 2026-11-04). */
.cd__logos {
  --cd-logos-w: 1200px;
  width: var(--cd-logos-w);
  max-width: calc(100vw - 160px);
  height: 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #0000 0%, #000000a3 13.0965%, #000 53.2763%, #000000a3 87.7147%, #0000 100%);
  mask-image: linear-gradient(90deg, #0000 0%, #000000a3 13.0965%, #000 53.2763%, #000000a3 87.7147%, #0000 100%);
}

.cd__track {
  align-items: center;
  gap: 64px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: 40s linear infinite cd-ticker;
  display: flex;
  transform: translate(0);
}

.cd__logo {
  flex: none;
}

.cd__logo img {
  display: block;
  height: 24px;
  width: 24px;
  filter: grayscale(1);
  opacity: 0.55;
}

@keyframes cd-ticker {
  0% {
    transform: translate(0);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd__track {
    animation: none;
  }
}

@media (max-width: 1439.98px) {
  .cd__logos {
    --cd-logos-w: 1000px;
  }
}

@media (max-width: 1199.98px) {
  .cd {
    padding-inline: var(--kr-gutter);
  }
  .cd__box {
    max-width: 1000px;
  }
  .cd__top {
    padding-top: 48px;
  }
  .cd__logos {
    --cd-logos-w: 720px;
    max-width: calc(100vw - 84px);
  }
}

@media (max-width: 809.98px) {
  .cd {
    padding: 64px var(--kr-gutter) 0;
  }
  .cd__box {
    max-width: 500px;
  }
  .cd__top {
    gap: 32px;
    padding-top: 32px;
  }
  .cd__title {
    font-size: 40px;
  }
  .cd__demo {
    --cd-cal-brand: 0px;
    padding: 16px;
  }
  .cd__logos {
    width: 80%;
    max-width: none;
  }
}
