/* Veritus chat agent. Ink panel with sage accents; the vv guide stays bone on the right. */
.vchat { position: fixed; left: 18px; bottom: 18px; z-index: 95; font-family: var(--font-body, Inter, sans-serif); -webkit-text-size-adjust: 100%; }
.vchat *, .vchat *::before, .vchat *::after { box-sizing: border-box; }
:where(.vchat) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.vchat__btn { display: flex; align-items: center; gap: 10px; background: #0B0B09; color: #F1EFE9; border: 1.5px solid #9FB694; border-radius: 99px; padding: 11px 18px 11px 14px; font: 600 .86rem var(--font-body, Inter, sans-serif); box-shadow: 0 8px 28px rgba(0,0,0,.28); transition: transform .25s, box-shadow .25s; }
.vchat__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.34); }
.vchat__btn:focus-visible, .vchat__x:focus-visible, .vchat__send:focus-visible, .vchat__chips button:focus-visible { outline: 2px solid #9FB694; outline-offset: 2px; }
.vchat__dot { width: 10px; height: 10px; border-radius: 50%; background: #9FB694; box-shadow: 0 0 0 0 rgba(159,182,148,.6); animation: vchat-pulse 2.4s infinite; }
@keyframes vchat-pulse { 70% { box-shadow: 0 0 0 9px rgba(159,182,148,0); } 100% { box-shadow: 0 0 0 0 rgba(159,182,148,0); } }

.vchat__panel { display: none; position: absolute; left: 0; bottom: 62px; width: min(392px, calc(100vw - 36px)); height: min(580px, calc(100dvh - 110px)); flex-direction: column; background: #141412; color: #F1EFE9; border: 1px solid rgba(247,246,242,.16); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.vchat.is-open .vchat__panel { display: flex; animation: vchat-in .28s cubic-bezier(.22,1,.36,1); }
.vchat.is-open { z-index: 1100; }
.vchat.is-open .vchat__btn { display: none; }
@keyframes vchat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.vchat__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(247,246,242,.1); background: #0B0B09; flex: none; }
.vchat__head b { display: block; font: 600 .98rem var(--font-head, "Space Grotesk", sans-serif); letter-spacing: -.01em; }
.vchat__head small { display: block; font: 500 .66rem var(--font-mono, "IBM Plex Mono", monospace); color: #8F8F86; letter-spacing: .03em; margin-top: 2px; }
.vchat__x { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #8F8F86; font-size: 1.5rem; line-height: 1; }
.vchat__x:hover { color: #F1EFE9; background: rgba(247,246,242,.08); }

.vchat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.vchat__msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.vchat__msg--a { align-self: flex-start; background: #1F1F1B; border: 1px solid rgba(247,246,242,.1); border-bottom-left-radius: 4px; }
.vchat__msg--u { align-self: flex-end; background: #9FB694; color: #0B0B09; border-bottom-right-radius: 4px; font-weight: 500; }
.vchat__msg--err { align-self: flex-start; background: rgba(200,110,80,.1); border: 1px solid rgba(200,110,80,.4); }
.vchat__msg a { color: #9FB694; border-bottom: 1px solid currentColor; }
.vchat__msg b { font-weight: 600; }
.vchat__typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.vchat__typing i { width: 6px; height: 6px; border-radius: 50%; background: #8F8F86; animation: vchat-bounce 1.2s infinite; }
.vchat__typing i:nth-child(2) { animation-delay: .15s; } .vchat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vchat-bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.vchat__wa { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #9FB694; color: #0B0B09 !important; border-bottom: 0 !important; font: 600 .88rem var(--font-body, Inter, sans-serif); padding: 10px 16px; border-radius: 10px; }
.vchat__wa:hover { background: #B3C8A9; }

.vchat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; flex: none; }
.vchat__chips button { font: 500 .8rem var(--font-body, Inter, sans-serif); border: 1px solid rgba(159,182,148,.55); color: #9FB694; border-radius: 99px; padding: 7px 13px; min-height: 36px; }
.vchat__chips button:hover { background: #9FB694; color: #0B0B09; }

.vchat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(247,246,242,.1); background: #0B0B09; flex: none; }
.vchat__form input { flex: 1; min-width: 0; font: 400 16px var(--font-body, Inter, sans-serif); padding: 11px 13px; border: 1px solid rgba(247,246,242,.16); border-radius: 10px; background: #141412; color: #F1EFE9; }
.vchat__form input::placeholder { color: #6D6D64; }
.vchat__form input:focus { outline: 0; border-color: #9FB694; }
.vchat__send { background: #9FB694 !important; color: #0B0B09 !important; font-weight: 600; font-size: .88rem; border-radius: 10px; padding: 0 16px !important; min-height: 44px; }
.vchat__send:disabled { opacity: .45; cursor: default; }
.vchat__note { font: 500 .62rem var(--font-mono, "IBM Plex Mono", monospace); color: #6D6D64; padding: 0 14px 10px; letter-spacing: .02em; background: #0B0B09; flex: none; }

/* Phones: round launcher above the sticky CTA bar, panel becomes a full-height sheet */
@media (max-width: 760px) {
  .vchat { left: 12px; bottom: 84px; }
  .vchat__btn { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .vchat__lbl { display: none; }
  .vchat.is-open { inset: 0; left: 0; bottom: 0; }
  .vchat__panel { position: fixed; inset: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  .vchat__form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .vchat__msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { .vchat__dot, .vchat__typing i, .vchat.is-open .vchat__panel { animation: none; } .vchat__log { scroll-behavior: auto; } }
