/* Shared View Demo modal (copied from homepage style.css) */
.ciq-modal {
  --color-primary: #002340;
  --font-heading: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

.ciq-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ciq-modal .btn:hover {
  text-decoration: none;
}

.ciq-modal .btn-primary {
  background: var(--color-primary-green);
  color: #fff;
}

.ciq-modal .btn-primary:hover {
  background: #256628;
  color: #fff;
}


.ciq-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ciq-modal.is-open {
  display: flex;
}

.ciq-modal[hidden] {
  display: none !important;
}

.ciq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.ciq-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 35, 64, 0.22);
}

.ciq-modal__dialog--wide {
  max-width: min(44rem, 96vw);
}

.ciq-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.ciq-modal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 550;
  color: #111827;
}

.ciq-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ciq-modal__close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.ciq-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.demo-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.demo-chooser__col {
  padding: 0.25rem 1.25rem 0.25rem 0;
}

.demo-chooser__col + .demo-chooser__col {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 1px solid #e5e7eb;
}

.demo-chooser__heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.demo-chooser__list {
  margin: 0 0 1.15rem;
  padding-left: 1.2em;
  /* Match info-card / free-app list body type */
  font-family: "Source Sans Pro", var(--font-body);
  font-size: clamp(1.05rem, 1.7vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #374151;
}

.demo-chooser__list li {
  margin-bottom: 0.5rem;
}

.demo-chooser .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.ciq-modal .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.ciq-modal .btn-primary:hover {
  background: #001a30;
  color: #fff;
}

@media (max-width: 640px) {
  .demo-chooser {
    grid-template-columns: 1fr;
  }

  .demo-chooser__col {
    padding: 0 0 1.25rem;
  }

  .demo-chooser__col + .demo-chooser__col {
    padding: 1.25rem 0 0;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }
}


/* View Demo trigger in green CTA band is a <button>; match the link style */
button.pulse-cta__btn {
  border: 0;
  cursor: pointer;
}


/* ── Shared button standard (2026-09 button audit) ──────────────────────────
   Same size/type spec as homepage .btn and the green-band .pulse-cta__btn.
   Modal buttons stay full width of their column; colors unchanged. */
.ciq-modal .btn,
button.pulse-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

button.pulse-cta__btn {
  min-width: min(200px, 100%);
  max-width: 100%;
}

.ciq-modal .btn-primary {
  border-color: var(--color-primary);
}

.demo-chooser .btn {
  width: 100%;
  min-width: 0;
}
