/* Additions for the static site. The original www styles live in /www/css. */

/* System message bar (filled from /api/www/v1/settings) */
#system-message-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: 14px;
}
.has-system-message header.header { margin-top: 33px !important; }

/* Stat placeholders keep their width while the numbers load */
[data-stat] { display: inline-block; min-width: 2ch; }

/* Testimonials (home page) */
.pb-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pb-testimonial {
  margin: 0;
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.pb-testimonial__body {
  margin: 0;
  padding: 0;
  border: 0; /* the template styles every blockquote with a left rule */
  color: var(--pb-navy);
  font-size: 17px;
  line-height: 1.6;
}
.pb-testimonial__by { display: flex; flex-direction: column; gap: 2px; }
.pb-testimonial__name { color: var(--pb-navy); font-weight: 700; }
.pb-testimonial__role { color: var(--pb-secondary); font-size: 14px; }

/* Interactive demo pop-up (data-demo in site.js) */
.pb-demo-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pb-demo-trigger img { display: block; transition: transform 0.2s ease; }
.pb-demo-trigger:hover img { transform: scale(1.01); }
.pb-demo-trigger:focus-visible { outline: 3px solid var(--pb-accent); outline-offset: 4px; border-radius: var(--pb-radius); }
.pb-demo-trigger__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--pb-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--pb-shadow-md);
  transition: background 0.2s ease;
}
.pb-demo-trigger:hover .pb-demo-trigger__play,
.pb-demo-trigger:focus-visible .pb-demo-trigger__play { background: var(--pb-accent-dark); }

.pb-demo-dialog {
  width: min(1200px, 94vw, calc(85vh * 1.99));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--pb-radius);
  background: var(--pb-white);
  box-shadow: var(--pb-shadow-lg);
  overflow: visible;
}
.pb-demo-dialog::backdrop { background: rgba(27, 42, 74, 0.78); }
.pb-demo-dialog__frame { position: relative; width: 100%; aspect-ratio: 1.99; }
.pb-demo-dialog__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--pb-radius);
}
.pb-demo-dialog__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--pb-white);
  color: var(--pb-navy);
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;
}
html.pb-demo-open { overflow: hidden; }
