/* Quiet service demos: keep the film as the page's main visual statement. */
.chat-launcher {
  position: fixed; z-index: 40; right: 24px; bottom: max(22px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 19px; border: 1px solid #e4c58c; border-radius: 30px;
  background: #080808; color: #fff; font-size: 13px; font-weight: 650;
  box-shadow: 0 4px 18px #0002;
}
.chat-launcher[hidden] { display: none; }
.service-demo {
  color: var(--ink); background: var(--paper); border: 0; border-radius: 16px;
  padding: 0; width: min(640px, calc(100% - 32px)); max-width: none;
  max-height: min(840px, calc(100dvh - 40px)); margin: auto;
  box-shadow: 0 32px 100px #0005; overflow: auto;
}
.service-demo::backdrop { background: #000b; backdrop-filter: blur(6px); }
body:has(.service-demo[open]) { overflow: hidden; }
.demo-heading { padding: 28px 28px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.demo-context { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.demo-heading h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(26px, 5vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.demo-close { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 27px; line-height: 1; }
.demo-close:hover { background: #e9e9e3; }
.chat-body { padding: 22px 28px 0; }
.chat-intro { margin: 0 0 18px; max-width: 52ch; font-size: 14px; line-height: 1.65; color: #454541; }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chat-starters button { padding: 10px 12px; border: 1px solid #d0d0c8; border-radius: 8px; background: #fff; font-size: 12px; line-height: 1.4; text-align: left; }
.chat-starters button:hover { border-color: #a0752b; }
.chat-log { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.chat-message { width: fit-content; max-width: 94%; margin: 0 0 14px; padding: 13px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message--user { margin-left: auto; background: #080808; color: #fff; border-bottom-right-radius: 3px; }
.chat-message--assistant { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat-compose { padding: 0 28px 24px; }
.demo-note { font-size: 11px; line-height: 1.6; color: #62625e; }
.demo-note a { text-decoration: underline; text-underline-offset: 3px; }
#chat-form label { display: block; font-size: 12px; font-weight: 650; margin: 14px 0 8px; }
.chat-input-row { display: flex; gap: 10px; align-items: stretch; }
#chat-input { flex: 1; min-width: 0; width: 100%; resize: vertical; max-height: 160px; min-height: 58px; padding: 12px; background: #fff; border: 1px solid #a9a9a0; border-radius: 8px; font: inherit; font-size: 16px; line-height: 1.5; }
#chat-input:focus-visible { outline: 2px solid #a0752b; outline-offset: 2px; }
#chat-send { align-self: stretch; padding: 12px 20px; min-width: 80px; font-size: 13px; }
.chat-status { min-height: 18px; margin: 10px 0; font-size: 12px; line-height: 1.5; color: #66501f; }
.demo-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-text-button { border: 0; padding: 10px 0; background: transparent; font-size: 12px; color: #62625e; text-decoration: underline; text-underline-offset: 4px; }
.demo-inquiry { font-size: 14px; font-weight: 750; padding: 10px 0; }
.demo-inquiry span { margin-left: 8px; }
.service-demo button:disabled { cursor: wait; opacity: .55; }
.video-demo { width: min(800px, calc(100% - 32px)); }
.video-demo-content { padding: 24px 28px; }
.video-empty { min-height: 245px; padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #080808; color: #e4c58c; border-radius: 8px; }
.video-empty strong { margin-top: 18px; font-size: 18px; font-weight: 500; color: #fff; }
.video-empty p { max-width: 43ch; color: #b5b5ae; font-size: 12px; line-height: 1.6; }
.video-demo video { display: block; width: 100%; height: auto; background: #000; border-radius: 8px; }
.video-demo-detail { padding: 8px 0 18px; max-width: 65ch; }
.video-demo-detail h3 { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 22px; margin-bottom: 12px; }
.video-demo-detail p { font-size: 14px; line-height: 1.7; color: #454541; }
.video-demo-detail p.demo-note { font-size: 12px; }
@media (max-width: 600px) {
  .chat-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 11px 16px; }
  .service-demo { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .demo-heading { padding: 20px 18px; gap: 12px; }
  .chat-body { padding: 18px 18px 0; }
  .chat-compose, .video-demo-content { padding: 0 18px 20px; }
  .video-demo-content { padding-top: 18px; }
  .chat-log { max-height: 28dvh; }
  .video-empty { min-height: 210px; }
  #chat-send { padding: 10px 14px; min-width: 65px; }
}
