/* public-demo-gate.css — shared demo gate overlay + panel (issue #431) */

/* ── Overlay / backdrop (preserved from runtime injection) ── */
.ss-demo-gate {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(36, 30, 42, 0.42);
  backdrop-filter: blur(8px);
}
.ss-demo-gate[hidden] {
  display: none;
}

/* ── Panel — approved calm design ── */
.ss-demo-gate__panel {
  width: min(420px, 100%);
  background-color: #FFFEFB;
  border: 1px solid rgba(58, 47, 38, 0.11);
  border-radius: 14px;
  box-shadow:
    0 2px 6px rgba(58, 47, 38, 0.06),
    0 8px 28px rgba(58, 47, 38, 0.10),
    0 20px 56px rgba(58, 47, 38, 0.07);
  padding: 28px 28px 24px 28px;
}
.ss-demo-gate__panel .ss-demo-gate__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9A8E82;
  line-height: 1.4;
  margin: 0 0 10px 0;
}
.ss-demo-gate__panel .ss-demo-gate__title {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #3A2F26;
  margin: 0 0 10px 0;
}
.ss-demo-gate__panel .ss-demo-gate__body {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.58;
  color: #5C4D43;
  margin: 0 0 22px 0;
}
.ss-demo-gate__panel .ss-demo-gate__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.ss-demo-gate__panel .ss-demo-gate__btn {
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  height: 44px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.ss-demo-gate__panel .ss-demo-gate__btn:not(.ss-demo-gate__btn--primary) {
  background: transparent;
  color: #5C4D43;
  border: 1px solid rgba(58, 47, 38, 0.20);
}
.ss-demo-gate__panel .ss-demo-gate__btn:not(.ss-demo-gate__btn--primary):hover {
  background: rgba(58, 47, 38, 0.05);
  border-color: rgba(58, 47, 38, 0.30);
}
.ss-demo-gate__panel .ss-demo-gate__btn:not(.ss-demo-gate__btn--primary):focus-visible {
  outline: 2px solid rgba(58, 47, 38, 0.50);
  outline-offset: 3px;
}
.ss-demo-gate__panel .ss-demo-gate__btn--primary {
  background: #6E8A7E;
  color: #FFFEFB;
  border: 1px solid #6E8A7E;
  font-weight: 650;
}
.ss-demo-gate__panel .ss-demo-gate__btn--primary:hover {
  background: #4A7A68;
  border-color: #4A7A68;
  transform: translateY(-1px);
}
.ss-demo-gate__panel .ss-demo-gate__btn--primary:active {
  background: #3d6b5a;
  transform: translateY(0px);
}
.ss-demo-gate__panel .ss-demo-gate__btn--primary:focus-visible {
  outline: 2px solid #6E8A7E;
  outline-offset: 3px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ss-demo-gate__panel .ss-demo-gate__btn { transition: none; }
  .ss-demo-gate__panel .ss-demo-gate__btn--primary:hover { transform: none; }
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .ss-demo-gate {
    align-items: flex-end;
    padding: 12px;
  }
  .ss-demo-gate__panel {
    border-radius: 14px 14px 10px 10px;
  }
  .ss-demo-gate__actions {
    justify-content: stretch;
  }
  .ss-demo-gate__btn {
    flex: 1;
  }
}
