/* ============================================================================
 * site-cta.css — conversion surfaces layered onto the Nama one-page site:
 *   • hero Ask microcopy + high-intent demo path
 *   • enterprise-ready trust strip (Customers section)
 *   • contextual section CTA (Governance)
 *   • Book-a-demo modal (single lead capture for every CTA on the page)
 * Tokens & feel match the Nama Design System (brand #2684FF, #E4E4E7 borders,
 * 8px radii, subtle near-black shadows, Source Sans).
 * ========================================================================== */

/* ── hero: Ask microcopy + demo link ───────────────────────────────── */
.ask-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 11px; max-width: 520px;
  font-size: 13px; line-height: 1.45; color: var(--muted);
}
.ask-note-tx { text-wrap: pretty; }
.ask-demo-link {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; color: var(--brand-300);
  transition: color .15s ease;
}
.ask-demo-link svg { transition: transform .15s ease; }
.ask-demo-link:hover { color: #EAF0FA; }
.ask-demo-link:hover svg { transform: translateX(2px); }

@media (max-height: 680px) { .ask-note { display: none; } }

/* ── Customers: enterprise-ready trust strip ───────────────────────── */
.trust-strip {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #E4E4E7;
  display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap;
}
.trust-strip .ts-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9CA1AB;
}
.trust-strip .ts-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: #3F3F46;
}
.trust-strip .ts-item svg { width: 17px; height: 17px; color: #059669; flex: none; }
.trust-strip .ts-cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #006ADF; text-decoration: none;
  transition: gap .15s ease;
}
.trust-strip .ts-cta:hover { gap: 9px; }

@media (max-width: 980px) {
  .trust-strip { gap: 14px 20px; }
  .trust-strip .ts-cta { margin-left: 0; }
}

/* ── Governance: contextual section CTA ────────────────────────────── */
.sec-cta {
  margin-top: 40px; padding: 22px 26px; border-radius: 12px;
  background: #F5F9FF; border: 1px solid #C7DEFF;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.sec-cta .sec-cta-tx { font-size: 16px; font-weight: 600; color: #0B1220; }
.sec-cta .sec-cta-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
  background: #2684FF; color: #fff; border-radius: 8px; padding: 11px 18px;
  transition: background .15s ease;
}
.sec-cta .sec-cta-btn:hover { background: #006ADF; }

@media (max-width: 980px) {
  .sec-cta .sec-cta-btn { margin-left: 0; }
}

/* ── Book-a-demo modal ─────────────────────────────────────────────── */
.dm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4,6,11,0.55);
  opacity: 0; transition: opacity .2s ease;
}
.dm-overlay[hidden] { display: none; }
.dm-overlay.on { opacity: 1; }

.dm-card {
  position: relative; width: 100%; max-width: 480px;
  background: #FFFFFF; border-radius: 16px; border: 1px solid #E4E4E7;
  box-shadow: 0 40px 90px -30px rgba(4,6,11,0.55);
  padding: 32px 30px 28px;
  transform: translateY(10px) scale(0.99); transition: transform .24s cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.dm-overlay.on .dm-card { transform: none; }

.dm-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  display: grid; place-items: center; border: none; background: transparent;
  border-radius: 8px; color: #9CA1AB; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.dm-x:hover { background: #F4F4F5; color: #3F3F46; }

.dm-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #006ADF; margin-bottom: 10px;
}
.dm-card h2 {
  font-size: 25px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 600;
  color: #0B1220; margin: 0 0 9px; text-wrap: pretty;
}
.dm-sub { font-size: 14.5px; line-height: 1.5; color: #52525B; margin: 0 0 22px; text-wrap: pretty; }

.dm-form { display: flex; flex-direction: column; gap: 13px; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.dm-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #3F3F46;
}
.dm-field .dm-opt { font-weight: 400; color: #9CA1AB; }
.dm-field input, .dm-field select, .dm-field textarea {
  font-family: inherit; font-size: 14.5px; font-weight: 400; color: #09090B;
  background: #FFFFFF; border: 1px solid #E4E4E7; border-radius: 8px;
  padding: 10px 12px; outline: none; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dm-field textarea { resize: vertical; min-height: 44px; }
.dm-field input:focus, .dm-field select:focus, .dm-field textarea:focus {
  border-color: #2684FF; box-shadow: 0 0 0 3px rgba(38,132,255,0.16);
}
.dm-field input:invalid:not(:placeholder-shown) { border-color: #EF4444; }
.dm-field.err input, .dm-field.err select { border-color: #EF4444; }

.dm-submit {
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: #2684FF; color: #fff; border: 1px solid transparent; border-radius: 8px;
  padding: 12px 18px; transition: background .15s ease;
}
.dm-submit:hover { background: #006ADF; }
.dm-submit.ghost { background: #FFFFFF; color: #3F3F46; border-color: #E4E4E7; }
.dm-submit.ghost:hover { background: #F4F4F5; }

.dm-fine {
  font-size: 11.5px; line-height: 1.5; color: #9CA1AB; margin: 4px 0 0; text-wrap: pretty;
}
.dm-fine .dm-secure {
  display: inline-block; margin-top: 2px; font-weight: 600; color: #71717A;
  letter-spacing: 0.04em;
}

/* success state */
.dm-done { text-align: center; padding: 14px 6px 6px; }
.dm-done[hidden] { display: none; }
.dm-done-ic {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: #DCFCE7; color: #166534; margin-bottom: 16px;
}
.dm-done-ic svg { width: 26px; height: 26px; }
.dm-done h3 { font-size: 21px; font-weight: 600; color: #0B1220; margin: 0 0 8px; }
.dm-done p { font-size: 14.5px; line-height: 1.55; color: #52525B; margin: 0 0 22px; }
.dm-done a { color: #006ADF; font-weight: 600; text-decoration: none; }
.dm-done .dm-submit { margin: 0 auto; }

@media (max-width: 520px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dm-card { padding: 28px 22px 24px; }
  .dm-card h2 { font-size: 22px; }
}
