/* Voizual brand layer — tokens, web fonts and the logo/edge-light primitives.
   Loaded before public.css/home.css (visitor pages) and app.css (admin), so the homepage
   and the admin share one palette. Page stylesheets map their own names onto these tokens. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/brand/IBMPlexSans-Regular-subset.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/brand/IBMPlexSans-SemiBold-subset.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/static/brand/IBMPlexSans-Bold-subset.woff2") format("woff2"); }
/* Flag emoji for systems without them (Windows): Twemoji Country Flags, web/vendor/TwemojiCountryFlags.LICENSE.md */
@font-face { font-family: "Twemoji Country Flags"; font-display: swap; 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; src: url("/static/vendor/TwemojiCountryFlags.woff2") format("woff2"); }

:root {
  /* surfaces, darkest to lightest */
  --vz-void: #05080f;
  --vz-bg: #0b1019;
  --vz-sunken: #0a0f1a;
  --vz-surface: #131a29;
  --vz-surface-2: #1a2233;
  --vz-hover: #1a2132;
  --vz-line: #253047;
  --vz-line-soft: #1b2334;

  /* type */
  --vz-text: #f2f4fb;
  --vz-text-2: #ccd3e6;
  --vz-muted: #99a3bd;
  --vz-faint: #6c7793;

  /* brand blue-violet */
  --vz-brand: #655bff;
  --vz-brand-bright: #8681ff;
  --vz-brand-deep: #4b3fe6;
  --vz-brand-ink: #ffffff;
  --vz-brand-soft: rgba(101, 91, 255, .16);
  --vz-brand-line: rgba(134, 129, 255, .45);
  --vz-brand-fill: linear-gradient(115deg, #6979ff, #5545ff);

  /* state */
  --vz-ok: #22e985;
  --vz-warn: #f0b429;
  --vz-danger: #ff5a6a;
  --vz-info: #9cc8ff;

  --vz-font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vz-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --vz-flags: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  --vz-lift: 0 18px 55px rgba(0, 0, 0, .5);
  --vz-brand-lift: 0 6px 22px rgba(95, 88, 255, .38);
}

.vz-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- logo: <a class="vz-logo"><img src="/static/brand/logo-on-dark.webp" alt="Voizual"></a>
   One image on dark surfaces (logo-on-dark.webp); logo.webp is the same logo with a navy wordmark for light ones.
   Each place sets only its height, --logo-h. */
.vz-logo { display: inline-flex; align-items: center; flex: none; }
.vz-logo img, .side-brand-text img { display: block; height: var(--logo-h, 40px); width: auto; }

/* ---------- travelling edge light, on the call invitation and on the admin's agent preview ---------- */
@property --vz-glow-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes vz-frame-glow { to { --vz-glow-angle: 360deg; } }
.vz-edge-glow { position: relative; overflow: visible; }
.vz-edge-glow::before {
  content: ''; position: absolute; inset: -2px; z-index: 8; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--vz-glow-angle), #667cff22, #8298ff66 18%, #dceaff 26%, #7d9fff 31%, #7060ff33 43%, #7060ff22 65%, #b7a5ff 77%, #edf5ff 81%, #697dff44 92%, #667cff22);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: vz-frame-glow 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .vz-edge-glow::before { animation: none; } }

/* ---------- the list of languages (web/lang-menu.js): dark, searchable; a sheet on a phone. The site's language
   button and the agent builder's language fields open it. ---------- */
.lang-pop { position: fixed; z-index: 70; width: min(340px, calc(100vw - 24px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--vz-line, #253047); background: rgba(19, 26, 41, .98); color: var(--vz-text, #f2f4fb);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); font-family: var(--vz-font, system-ui, sans-serif); animation: lang-pop-in .18s ease-out; }
@keyframes lang-pop-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-pop-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--vz-line-soft, #1b2334); }
.lang-pop-title { margin: 0 0 10px 4px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vz-muted, #99a3bd); }
.lang-pop-search { width: 100%; box-sizing: border-box; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--vz-line, #253047);
  background: var(--vz-sunken, #0a0f1a); color: inherit; font: inherit; font-size: 16px; }
.lang-pop-search:focus { outline: none; border-color: var(--vz-brand-bright, #8681ff); box-shadow: 0 0 0 3px rgba(101, 91, 255, .28); }
.lang-pop-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.lang-pop-list li[hidden] { display: none; }
.lang-pop-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: inherit; font-size: .95rem; text-align: start; cursor: pointer; }
.lang-pop-list button:hover, .lang-pop-list button:focus-visible { background: var(--vz-hover, #1a2132); outline: none; }
.lang-pop-list button[aria-selected="true"] { background: rgba(101, 91, 255, .18); }
.lang-pop-list button[aria-selected="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--vz-brand-bright, #8681ff); font-weight: 700; }
.lang-pop-flag { flex: none; width: 1.6rem; text-align: center; font-family: var(--vz-flags); font-size: 1.3rem; line-height: 1; }
.lang-pop-flag.flag-code { width: auto; min-width: 1.6rem; padding: .15rem .25rem; border-radius: 5px; background: #33405c; font-family: inherit; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.lang-pop-name { font-weight: 600; }
.lang-pop-en { color: var(--vz-muted, #99a3bd); font-size: .85rem; }
@media (max-width: 540px) {
  .lang-pop { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-height: 75dvh !important; border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .lang-pop { animation: none; } }
.lang-pop-note { margin-inline-start: auto; color: var(--vz-brand-bright, #8681ff); font-size: .8rem; }
.lang-pop-list button[aria-selected="true"] .lang-pop-note { margin-inline-start: 8px; }
.lang-pop-flag img { display: inline-block; width: 1.1em; height: auto; border-radius: 2px; vertical-align: -.08em; }
