/* demo-gate.css — styles for the demo drug picker, locked-feature affordances,
   and the signup modal. Only loaded on /demo. */

.demo-featured-intro {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.demo-featured-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.demo-pill {
  display: block;
  text-align: left;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .05s;
  font-family: inherit;
  width: 100%;
}
.demo-pill:hover {
  border-color: #3B82F6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, .12);
}
.demo-pill:active { transform: translateY(1px); }
.demo-pill.is-selected {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.demo-pill-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  font-family: 'Poppins', sans-serif;
}
.demo-pill-sub {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}
.demo-pill-blurb {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 6px;
  line-height: 1.5;
}

.demo-locked-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.demo-locked-search:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
}
.demo-locked-search .lock-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #94A3B8;
}
.demo-locked-search:hover .lock-icon { color: #3B82F6; }
.demo-locked-text { flex: 1; min-width: 0; }
.demo-locked-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.demo-locked-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 1px;
}
.demo-locked-cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #3B82F6;
  white-space: nowrap;
}

/* Locked button styling — applied to PDF, Add Line, Customize when demo */
.demo-locked-btn {
  position: relative;
  opacity: .7;
}
.demo-locked-btn::after {
  content: '🔒';
  font-size: 10px;
  margin-left: 6px;
  opacity: .8;
}

/* Inline "sign up to see more" row that replaces the "show N more" toggle on demo */
.demo-more-cta {
  margin-top: 8px;
  padding: 10px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  font-size: 12px;
  color: #1E40AF;
  text-align: center;
  line-height: 1.5;
}
.demo-more-cta a {
  color: #1D4ED8;
  font-weight: 700;
  text-decoration: none;
}
.demo-more-cta a:hover { text-decoration: underline; }

/* ─── Signup modal ─── */
#demoSignupModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, .55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#demoSignupModal.is-open { display: flex; }
.demo-signup-card {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
}
.demo-signup-close {
  float: right;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #9CA3AF;
  cursor: pointer;
  padding: 0;
}
.demo-signup-close:hover { color: #111827; }
.demo-signup-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}
.demo-signup-msg {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
}
.demo-signup-features {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.8;
}
.demo-signup-features li {
  list-style: none;
  padding-left: 22px;
  position: relative;
}
.demo-signup-features li::before {
  content: '✓';
  color: #16A34A;
  font-weight: 700;
  position: absolute;
  left: 0;
}
.demo-signup-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.demo-signup-primary {
  flex: 1;
  display: inline-block;
  padding: 11px 18px;
  background: #3B82F6;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.demo-signup-primary:hover { background: #2563EB; }
.demo-signup-secondary {
  padding: 11px 14px;
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
}
.demo-signup-secondary:hover { color: #111827; border-color: #CBD5E1; }

/* Sticky bottom CTA bar shown after user has engaged with a drug */
#demoStickyCta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9500;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 18px;
  background: #0F172A;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .35);
  font-size: 13px;
}
#demoStickyCta.is-visible { display: flex; }
#demoStickyCta strong { font-weight: 700; color: #fff; }
#demoStickyCta a.sticky-cta-btn {
  padding: 7px 14px;
  background: #3B82F6;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  transition: background .15s;
}
#demoStickyCta a.sticky-cta-btn:hover { background: #2563EB; }
#demoStickyCta .sticky-close {
  background: none;
  border: 0;
  color: #94A3B8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
#demoStickyCta .sticky-close:hover { color: #fff; }
