/* Demo popup (same as pixis.ai/products/pixis-visibility/mcp/): opened from every get-a-demo link by scripts/demo-popup.js, submits to Marketo form 1332 */
html.pxd-lock { overflow: hidden; }
dialog.pxd { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; width: min(100vw - 40px, 600px); height: fit-content; max-width: none; max-height: calc(100dvh - 32px); overflow: visible; color: var(--color-text); }
dialog.pxd::backdrop { background: rgba(7, 41, 41, .55); backdrop-filter: blur(2px); }
.pxd__panel { position: relative; background: var(--color-bg); border-radius: 6px; box-shadow: 0 24px 80px rgba(7,41,41,.35); }
.pxd__scroll { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 4vw, 36px); border-radius: 6px; }
.pxd__close { position: absolute; z-index: 2; top: -14px; right: -14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: #000; cursor: pointer; padding: 0; }
.pxd__close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.pxd__title { margin: 0 0 32px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 4.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.01em; color: var(--color-primary); }
.pxd__form { display: flex; flex-direction: column; gap: 26px; }
.pxd .fld { position: relative; z-index: 2; min-width: 0; }
.pxd__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pxd .fld[hidden] { display: none; }
.pxd input, .pxd select { display: block; width: 100%; height: 50px; padding: 0 16px; font: 400 16px/16px var(--font-body); color: var(--color-primary); background-color: #fff; border: 1px solid #c7c7c7; border-radius: 10px; transition: all .3s ease; -webkit-appearance: none; appearance: none; }
.pxd input::placeholder { color: #757587; opacity: 1; }
.pxd select { padding-right: 40px; text-overflow: ellipsis; color: #757587; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5l6 6 6-6' stroke='%23757587' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.pxd select.has-val { color: var(--color-primary); }
.pxd input:focus-visible, .pxd select:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.pxd input.error, .pxd select.error { border: 2px solid #ff4d4f; background-color: #fff1f0; }
.pxd__phone { display: flex; align-items: stretch; gap: 8px; }
.pxd__phone select { flex: none; width: 112px; padding: 0 28px 0 16px; color: var(--color-primary); background-position: right 10px center; }
.pxd__phone input { flex: 1; min-width: 0; }
.custom-error-tooltip { display: none; position: absolute; top: -24px; right: 0; z-index: 100; padding: 4px 10px; border-radius: 4px; background-color: #ff4d4f; color: #fff; font: 12px Arial, sans-serif; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.2); pointer-events: none; }
.custom-error-tooltip::after { content: ""; position: absolute; bottom: -4px; right: 15px; border-width: 5px 5px 0; border-style: solid; border-color: #ff4d4f transparent transparent transparent; }
.custom-error-tooltip.is-on { display: block; }
.pxd__foot { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.pxd__submit { flex: none; min-height: 52px; padding: 0 44px; border: 0; border-radius: 100px; background: var(--color-primary); color: #fff; font: 400 18px/1 var(--font-body); cursor: pointer; transition: background-color .2s, opacity .2s; }
.pxd__submit:disabled { background: #6f7f7c; cursor: not-allowed; }
.pxd__submit:not(:disabled):hover { background: var(--color-accent); }
.pxd__submit:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.pxd__legal { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-primary); }
.pxd__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  dialog.pxd { width: calc(100vw - 32px); }
  .pxd__row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pxd__close { top: -10px; right: -6px; }
  .pxd input, .pxd select { font-size: 16px; }
  .pxd__phone select { width: 104px; padding-left: 12px; }
  .pxd__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .pxd__submit { width: 100%; }
}
/* Marketo hookup: hidden Marketo form, error note, thank-you view */
.pxd-mkto { display: none !important; }
.pxd__form[hidden], .pxd__title[hidden], .pxd__note[hidden], .pxd__done[hidden] { display: none; }
.pxd__note { margin: 0; padding: 12px 16px; border-radius: 10px; background: #fff1f0; border: 1px solid #ff4d4f; color: #a8071a; font-size: 14px; line-height: 1.5; }
.pxd__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pxd__done { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; outline: none; }
.pxd__done .pxd__title { margin: 0; }
.pxd__done-text { margin: 0; font-size: 18px; line-height: 1.55; color: var(--color-primary); }

/* Flag emoji on Windows (no native flag glyphs there): a flag-only font, used just for the flag characters */
@font-face { font-family: "Twemoji Country Flags"; src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; font-display: swap; }
.pxd__phone select, .pxd__phone select option { font-family: "Twemoji Country Flags", var(--font-body); }
