/* Alphanation demo: built for touch, so on desktop the demo button opens a
   QR code to continue on a phone, with a quiet option to stay in the browser. */

/* Button labels: desktop vs phone/touch */
[data-demo-qr] .dq-desktop { display: none; align-items: center; gap: 7px; }
[data-demo-qr] .dq-desktop svg { width: 15px; height: 15px; flex: none; }
@media (min-width: 700px) and (min-height: 600px) {
  [data-demo-qr] .dq-desktop { display: inline-flex; }
  [data-demo-qr] .dq-mobile { display: none; }
}

/* The window */
.demo-qr-modal {
  width: min(380px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #13303a;
  box-shadow: 0 30px 80px rgba(8, 32, 40, .35);
  font-family: "Plus Jakarta Sans", Montserrat, system-ui, sans-serif;
  overflow: visible;
}
.demo-qr-modal::backdrop { background: rgba(8, 26, 32, .55); backdrop-filter: blur(4px); }
.demo-qr-modal[open] { animation: dq-in .22s ease-out; }
@keyframes dq-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dq-body { padding: 30px 30px 24px; text-align: center; }
.dq-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #0f6b80;
}
.dq-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.dq-code {
  display: block;
  width: 232px;
  height: 232px;
  margin: 20px auto 16px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #e1eaec;
}
.dq-text { margin: 0 auto; max-width: 280px; font-size: 14px; line-height: 1.55; color: #4d6670; }
.dq-url { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #0f6b80; letter-spacing: .01em; }
.dq-fallback {
  display: block;
  padding: 14px 20px 18px;
  border-top: 1px solid #e8eff1;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #4d6670;
  text-decoration: none;
  border-radius: 0 0 24px 24px;
}
.dq-fallback:hover, .dq-fallback:focus-visible { color: #0b4e5e; text-decoration: underline; text-underline-offset: 3px; }
.dq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f5f6;
  color: #13303a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.dq-close:hover { background: #e1eaec; }
.dq-close:focus-visible, .dq-fallback:focus-visible { outline: 2px solid #0f6b80; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .demo-qr-modal[open] { animation: none; }
}
.demo-qr-modal .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
