/* ============================
   Contact Page
   Builds on home.css: container, section heads, logo grid, trust cards
   ============================ */

body {
  text-wrap: pretty;
}

/* ---- Hero: pitch on the left, form on the right, both above the fold ---- */
.ct-hero {
  padding-top: calc(var(--hp-nav-height) + clamp(48px, 4.6vw, 100px));
}
/* Intro and proof stack on the left, the form spans both rows on the right */
.ct-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro form"
    "proof form";
  column-gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.ct-intro { grid-area: intro; }
.ct-proof { grid-area: proof; }
.ct-form-col { grid-area: form; }
.ct-title {
  max-width: 9em;
  margin: 0;
  font-size: clamp(44px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}
.ct-subhead {
  max-width: 28em;
  margin: clamp(24px, 2.4vw, 40px) 0 0;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--hp-text-muted);
}
/* Customer results: logo in a fixed column, the result beside it */
.ct-proof {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.6vw, 40px);
  margin: clamp(48px, 5vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
.ct-proof li {
  display: grid;
  grid-template-columns: clamp(120px, 11vw, 176px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.ct-proof img {
  /* --h is each mark's height in px, tuned so the logos carry the same visual weight */
  height: calc(var(--h, 22) * 1px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.ct-proof p {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--hp-text-muted);
}
.ct-proof strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* Form stays in view while the pitch scrolls past it */
.ct-form-col {
  position: sticky;
  top: calc(var(--hp-nav-height) + 24px);
}
#see-deck { scroll-margin-top: calc(var(--hp-nav-height) + 24px); }
.ct-form {
  padding: clamp(24px, 2.4vw, 36px);
  background: rgba(255, 255, 255, 0.03);
}
.ct-form-desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hp-text-muted);
}
#hs-form-container { min-height: 560px; }
#hs-form-container iframe {
  width: 100% !important;
  border: none;
}
.ct-title,
.ct-subhead,
.ct-proof {
  opacity: 0;
  animation: heroBlurIn 0.6s ease forwards;
}
.ct-title { animation-delay: 0.05s; }
.ct-subhead { animation-delay: 0.15s; }
.ct-proof { animation-delay: 0.25s; }
.ct-form-col {
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.25s forwards;
}

/* ---- Logos ---- */
.ct-logos { padding-top: clamp(96px, 11vw, 180px); }
.ct-logos .hp-logos-head { margin-bottom: clamp(56px, 6.5vw, 104px); }
.ct-logos .hp-logos-title {
  max-width: none;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Landing pages still use the logo strip. The contact page block is .hp-logos.ct-logos. */
.ct-logos:not(.hp-logos) {
  padding: 24px 24px 80px;
  text-align: center;
}
.ct-logos-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 28px;
}
.ct-logos-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 44px;
}
.ct-logos-row .cl-logo {
  height: 22px;
  width: auto;
  padding: 0;
  opacity: 0.85;
}
.ct-logos-row .cl-logo-sm {
  height: 18px;
}
.ct-logos-row img[alt="Deepki"] {
  height: 36px;
}

/* Case studies on the landing pages */
.ct-studies {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.ct-section-head {
  margin-bottom: 40px;
}
.ct-section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}
.ct-section-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  max-width: 560px;
}
.ct-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ct-study {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.ct-study:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}
.ct-study-logo {
  display: block;
  height: 18px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 18px;
}
.ct-study-logo-light {
  filter: none;
  height: 22px;
}
.ct-study-stat {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 12px;
}
.ct-study-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.6;
  margin: 0 0 18px;
}
.ct-study-quote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0 0 8px;
  font-style: normal;
}
.ct-study-cite {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  font-style: normal;
  margin-bottom: 20px;
}
.ct-study-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.ct-study-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.ct-study-person strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #f5f5f5;
}
.ct-study-person .ct-study-cite {
  margin-bottom: 0;
}
.ct-study-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* Compliance pills on the landing pages */
.ct-pills {
  padding: 20px 24px 100px;
  text-align: center;
}
.ct-pills-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 22px;
}
.ct-pills-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ct-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Sections ---- */
.ct-section { padding: clamp(40px, 5vw, 80px) 0 clamp(96px, 11vw, 180px); }
.ct-section .hp-customers-title { max-width: none; font-size: clamp(40px, 5vw, 72px); }
.ct-section .hp-customers-desc,
.hp-trust .hp-customers-desc { max-width: none; }

/* ---- FAQ ---- */
/* The trust section above already ends with full section padding */
.ct-faq { padding-top: 0; }
.ct-faq-list {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ct-faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ct-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: start;
  color: var(--text-primary);
  cursor: pointer;
}
.ct-faq-q:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
.ct-faq-q svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--hp-text-muted);
  transition: transform 0.3s ease;
}
.ct-faq-item.open .ct-faq-q svg { transform: rotate(180deg); }
.ct-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.ct-faq-item.open .ct-faq-a { grid-template-rows: 1fr; }
.ct-faq-a > div { overflow: hidden; }
.ct-faq-a p {
  max-width: 46em;
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.ct-faq-a a { color: #77AB97; }

/* ---- Closing CTA ---- */
/* The heading breaks onto two lines with a <br>; the default 640px column would wrap it to four */
.deck-cta-inner { max-width: 960px; }
.deck-cta-heading { max-width: none; }
.deck-cta-subtitle { max-width: 640px; margin-inline: auto; }

/* ============================
   Responsive
   ============================ */
/* Single column: three customer results under the intro keep the form close to the top */
@media (max-width: 1024px) {
  .ct-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "proof" "form";
  }
  .ct-proof { margin-top: 40px; }
  .ct-proof li:nth-child(n + 4) { display: none; }
  .ct-form-col { position: static; margin-top: 48px; }
  .ct-study-grid:not(.ct-study-grid--quad) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ct-hero { padding-top: calc(var(--hp-nav-height) + 48px); }
  .ct-subhead { font-size: 17px; }
  .ct-proof li { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; }
  .ct-proof img { height: calc(var(--h, 22) * 0.85px); }
  .ct-proof p { font-size: 16px; }
  .ct-form { padding: 24px 20px; }
  .ct-logos:not(.hp-logos),
  .ct-studies,
  .ct-pills {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 600px) {
  .deck-cta { padding-inline: var(--hp-gutter, 20px); }
  .deck-cta-heading { font-size: 36px; text-wrap: balance; }
  .deck-cta-heading br { display: none; }
  .deck-cta-actions { flex-direction: row; flex-wrap: nowrap; }
  .deck-cta-actions .hp-btn { flex: 1; max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-title,
  .ct-subhead,
  .ct-proof,
  .ct-form-col {
    opacity: 1;
    animation: none;
  }
  .ct-faq-a,
  .ct-faq-q svg { transition: none; }
}
