:root { color-scheme: light; font-family: Inter, Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #070707 url('/background.png') top center / auto 100vh no-repeat fixed; }
body > main { height: 100vh; }

/* Client intake is normal page flow and cannot affect the original hero. */
.audior-intake { position: relative; z-index: 1; overflow: hidden; background: #fff; color: #161616; }
.audior-intake__inner { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 88px 0 128px; }
.audior-intake__intro, .audior-intake__guide { max-width: 860px; }
.audior-intake__intro { max-width: 720px; }
.audior-intake__label { margin: 0 0 12px; color: #d10e15; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.audior-intake h1, .audior-intake h2, .audior-intake h3 { margin: 0; color: #111; letter-spacing: -.025em; }
.audior-intake h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
.audior-intake h2 { font-size: 28px; line-height: 1.2; }
.audior-intake__intro > p:not(.audior-intake__label) { max-width: 620px; margin: 20px 0 28px; color: #4b5563; font-size: 18px; line-height: 1.6; }
.audior-intake__cta { padding: 14px 20px; border: 0; border-radius: 11px; background: #ed1c24; box-shadow: 0 10px 22px #ed1c2430; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; }
.audior-intake__reference { margin: 62px 0 76px; }
.audior-intake__reference img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 22px 50px #11111118; }
.audior-intake__reference figcaption { margin: 12px 2px 0; color: #6b7280; font-size: 13px; }
.audior-intake__guide > ol { display: grid; gap: 12px; margin: 23px 0 40px; padding-left: 22px; color: #374151; line-height: 1.6; }
.audior-intake__privacy { margin: 0 0 56px; padding: 24px; border: 1px solid #fecaca; border-radius: 16px; background: #fff7f7; }
.audior-intake__privacy h3 { font-size: 17px; }
.audior-intake__privacy p { margin: 10px 0 0; color: #5b2024; line-height: 1.6; }
.audior-intake__lead { margin: 13px 0 26px; color: #4b5563; line-height: 1.6; }
.audior-intake__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.audior-intake__topics section { padding: 19px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f9fafb; }
.audior-intake__topics h3 { font-size: 16px; }
.audior-intake__topics p { margin: 8px 0 0; color: #4b5563; font-size: 14px; line-height: 1.55; }
.audior-intake__final { margin-top: 58px; padding-top: 42px; border-top: 1px solid #e5e7eb; }
.audior-intake__final p { max-width: 650px; margin: 12px 0 22px; color: #4b5563; font-size: 16px; line-height: 1.6; }

/* The assistant is an edge-aligned drawer; the page itself keeps its original design. */
body.audior-chat-open { overflow: hidden; }
.chat-overlay { position: fixed; z-index: 190; inset: 0; opacity: 0; visibility: hidden; background: rgba(7, 9, 12, .28); pointer-events: none; transition: opacity .22s ease, visibility 0s linear .22s; }
.chat-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
#audior-chat-root { position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; width: clamp(400px, 29vw, 432px); max-width: 100vw; height: 100dvh; pointer-events: none; }
#audior-chat-root .panel, #audior-chat-root .chat-toggle { pointer-events: auto; }
#audior-chat-root .panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; height: 100dvh; overflow: hidden; transform: translateX(100%); visibility: hidden; border: 0; border-left: 1px solid #e1e3e6; border-radius: 0; background: #fff; box-shadow: -10px 0 28px rgba(10, 14, 20, .09); transition: transform .24s cubic-bezier(.22,.8,.3,1), visibility 0s linear .24s; }
#audior-chat-root .panel.is-open { opacity: 1; transform: translateX(0); visibility: visible; transition-delay: 0s; }
#audior-chat-root .panel.is-open + .chat-toggle { opacity: 0; visibility: hidden; pointer-events: none; }
#audior-chat-root .chat-toggle { position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 0 19px; border: 1px solid #ef3940; border-radius: 999px; background: #ed1c24; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
#audior-chat-root .chat-toggle img { width: 21px; height: 21px; }
#audior-chat-root .chat-header { display: flex; min-height: 68px; flex: 0 0 68px; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; border-bottom: 1px solid #e4e6e8; background: #fff; }
#audior-chat-root .brand-mark { display: flex; align-items: center; gap: 11px; }
#audior-chat-root .brand-mark > img { width: 30px; height: 30px; padding: 7px; border: 1px solid #f4c9cb; border-radius: 9px; background: #fff7f7; }
#audior-chat-root .brand-mark strong, #audior-chat-root .brand-mark span { display: block; }
#audior-chat-root .brand-mark strong { color: #141518; font-size: 15px; letter-spacing: -.01em; }
#audior-chat-root .brand-mark span { margin-top: 3px; color: #7a7f87; font-size: 10px; }
#audior-chat-root .brand-mark i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #39a85b; box-shadow: 0 0 0 3px #39a85b20; }
#audior-chat-root .chat-header-actions { display: flex; align-items: center; gap: 2px; }
#audior-chat-root button, #audior-chat-root textarea, #audior-chat-root input, #audior-chat-root label { font-family: inherit; }
#audior-chat-root .icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #26282d; cursor: pointer; transition: background .18s, transform .18s; }
#audior-chat-root .icon-button:hover { background: #f3f4f6; }
#audior-chat-root .icon-button:active { transform: scale(.94); }
#audior-chat-root .icon-button img { width: 19px; height: 19px; }
#audior-chat-root .chat-header-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
#audior-chat-root .messages { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 9px; overflow-y: auto; overflow-x: hidden; padding: 20px 18px 24px; background: #fff; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7c7c7 transparent; }
#audior-chat-root .message { max-width: 82%; padding: 9px 11px; overflow-wrap: anywhere; border-radius: 12px; color: #18191c; font-size: 13px; line-height: 1.45; white-space: pre-wrap; animation: audior-message-in .24s ease both; }
#audior-chat-root .message.user { align-self: flex-end; border: 1px solid #ffd4d6; border-bottom-right-radius: 4px; background: #fff2f3; color: #7f171b; }
#audior-chat-root .message.assistant { align-self: flex-start; border: 1px solid #e7e8ea; border-bottom-left-radius: 4px; background: #f4f5f6; }
#audior-chat-root .typing { display: flex; align-items: center; gap: 5px; min-height: 42px; background: #f3f4f6; }
#audior-chat-root .typing span { width: 6px; height: 6px; border-radius: 50%; background: #6b7280; animation: audior-dot 1s infinite ease-in-out; }
#audior-chat-root .typing span:nth-child(2) { animation-delay: .15s; }
#audior-chat-root .typing span:nth-child(3) { animation-delay: .3s; }
#audior-chat-root form { flex: 0 0 auto; max-height: 72dvh; overflow-y: auto; padding: 12px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e4e6e8; background: #fff; }
#audior-chat-root .composer { display: flex; align-items: flex-end; gap: 3px; min-height: 50px; padding: 5px 6px; border: 1px solid #e0e2e5; border-radius: 27px; background: #f6f7f8; transition: border-color .18s, box-shadow .18s; }
#audior-chat-root .composer:focus-within { border-color: #ed1c24; box-shadow: 0 0 0 3px #ed1c2414; }
#audior-chat-root .upload-button { flex: 0 0 36px; }
#audior-chat-root .upload-button img { opacity: .78; }
#audior-chat-root textarea { flex: 1; max-height: 90px; min-height: 38px; padding: 9px 4px; resize: none; outline: 0; border: 0; background: transparent; color: #16171a; font-size: 13px; line-height: 20px; }
#audior-chat-root textarea::placeholder { color: #9ca3af; }
#audior-chat-root .send-button { display: grid; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #ed1c24; color: #fff; cursor: pointer; transition: transform .18s, filter .18s; }
#audior-chat-root .send-button:hover { filter: brightness(1.07); }
#audior-chat-root .send-button:active { transform: scale(.94); }
#audior-chat-root .send-button:disabled { opacity: .5; cursor: wait; }
#audior-chat-root .send-button img { width: 18px; height: 18px; }
#audior-chat-root .previews { display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; }
#audior-chat-root .preview { position: relative; flex: 0 0 auto; margin: 0 0 8px; }
#audior-chat-root .preview img { display: block; width: 51px; height: 51px; border: 1px solid #d1d5db; border-radius: 9px; object-fit: cover; }
#audior-chat-root .preview button { position: absolute; top: -5px; right: -5px; display: grid; width: 19px; height: 19px; padding: 3px; place-items: center; border: 0; border-radius: 50%; background: #ed1c24; box-shadow: 0 2px 7px #0005; cursor: pointer; }
#audior-chat-root .preview button img { width: 11px; height: 11px; border: 0; border-radius: 0; }
#audior-chat-root .file-preview { display: flex; align-items: center; gap: 7px; max-width: 190px; padding: 7px 28px 7px 7px; border: 1px solid #d1d5db; border-radius: 9px; background: #f9fafb; }
#audior-chat-root .file-preview > img { width: 24px; height: 24px; border: 0; border-radius: 0; }
#audior-chat-root .file-preview span { min-width: 0; }
#audior-chat-root .file-preview strong, #audior-chat-root .file-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#audior-chat-root .file-preview strong { color: #111; font-size: 11px; }
#audior-chat-root .file-preview small { margin-top: 2px; color: #6b7280; font-size: 10px; }
#audior-chat-root .recording-bar, #audior-chat-root .audio-preview { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 8px; padding: 7px 8px; border: 1px solid #f1d2d4; border-radius: 12px; background: #fff7f7; color: #8f171c; font-size: 11px; }
#audior-chat-root .recording-bar span:not(.record-dot) { flex: 1; min-width: 0; color: #6b7280; }
#audior-chat-root .record-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #ed1c24; animation: audior-record-pulse 1.2s infinite; }
#audior-chat-root .mini-action { display: grid; width: 31px; height: 31px; flex: 0 0 31px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; }
#audior-chat-root .mini-action:hover { background: #f3f4f6; }
#audior-chat-root .mini-action img { width: 16px; height: 16px; }
#audior-chat-root .stop-action { background: #ed1c24; color: #fff; }
#audior-chat-root .audio-preview { flex-wrap: wrap; border-color: #e3e5e7; background: #f7f8f9; color: #17181b; }
#audior-chat-root .audio-preview > img { display: none; }
#audior-chat-root .audio-preview span { min-width: 0; }
#audior-chat-root .audio-preview strong, #audior-chat-root .audio-preview small { display: block; }
#audior-chat-root .audio-preview small { margin-top: 2px; color: #6b7280; }
#audior-chat-root .audio-preview audio { width: 110px; min-width: 100px; height: 30px; flex: 1; }
#audior-chat-root .text-action { padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; font-size: 11px; font-weight: 700; }
#audior-chat-root .text-action:hover { border-color: #ed1c24; background: #fff7f7; }
#audior-chat-root .primary-action { border-color: #ed1c24; background: #ed1c24; color: #fff; }
#audior-chat-root .primary-action:hover { background: #d91018; color: #fff; }
#audior-chat-root .text-action:disabled { opacity: .6; cursor: wait; }
#audior-chat-root .recording-bar .text-action { margin-left: auto; }
#audior-chat-root .transcript-preview { margin-bottom: 8px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 11px; background: #f9fafb; }
#audior-chat-root .transcript-preview label { display: block; margin-bottom: 6px; color: #111; font-size: 12px; font-weight: 700; }
#audior-chat-root .transcript-preview textarea { display: block; width: 100%; height: 92px; min-height: 92px; margin-bottom: 8px; padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 12px; line-height: 1.4; }
#audior-chat-root .transcript-preview div { display: flex; gap: 7px; }
#audior-chat-root .voice-privacy { margin: 7px 6px 0; color: #8a8e95; font-size: 10px; line-height: 1.35; text-align: center; }
#audior-chat-root .error { min-height: 0; margin: 7px 2px 0; color: #b91c1c; font-size: 12px; }
#audior-chat-root .error:empty { display: none; }
#audior-chat-root .image-rail, #audior-chat-root .widget-rail { display: flex; gap: 9px; max-width: 100%; overflow-x: auto; padding: 2px 0 7px; scroll-snap-type: x mandatory; }
#audior-chat-root .bot-image, #audior-chat-root .widget-card { flex: 0 0 82%; scroll-snap-align: start; }
#audior-chat-root .bot-image { display: block; max-height: 230px; border-radius: 11px; background: #f9fafb; object-fit: cover; }
#audior-chat-root .image-title { display: block; margin-top: 5px; color: #6b7280; font-size: 11px; }
#audior-chat-root .widget-group { max-width: 100%; margin-top: 8px; }
#audior-chat-root .widget-title { margin: 0 0 7px; color: #111; font-size: 12px; font-weight: 700; }
#audior-chat-root .widget-card { min-height: 104px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px #11111108; }
#audior-chat-root .widget-card strong, #audior-chat-root .widget-card span { display: block; }
#audior-chat-root .widget-card strong { color: #111; font-size: 13px; }
#audior-chat-root .widget-card span { margin-top: 5px; color: #6b7280; font-size: 12px; line-height: 1.35; }
#audior-chat-root .widget-card img { width: 100%; height: 86px; margin-bottom: 9px; border-radius: 8px; object-fit: cover; }
#audior-chat-root .widget-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#audior-chat-root .widget-actions button, #audior-chat-root .reply-actions button, #audior-chat-root .retry { padding: 9px; border: 1px solid #d1d5db; border-radius: 9px; background: #fff; color: #111; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-align: left; }
#audior-chat-root .reply-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
#audior-chat-root .reply-actions button:first-child { border-color: #ed1c24; background: #ed1c24; color: #fff; }
#audior-chat-root .error-message { border-color: #fecaca; background: #fff7f7; color: #991b1b; }
#audior-chat-root .retry { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
#audior-chat-root .retry img { width: 14px; height: 14px; }
#audior-chat-root button:focus-visible, #audior-chat-root label:focus-within, #audior-chat-root textarea:focus-visible, .audior-intake__cta:focus-visible { outline: 2px solid #ed1c24; outline-offset: 2px; }
#audior-chat-root [hidden] { display: none !important; }

@keyframes audior-message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes audior-dot { 0%, 80%, 100% { opacity: .45; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes audior-record-pulse { 50% { opacity: .45; transform: scale(.82); } }

@media (max-width: 700px) {
  .audior-intake__inner { width: min(100% - 32px, 1120px); padding: 56px 0 96px; }
  .audior-intake__intro > p:not(.audior-intake__label) { font-size: 16px; }
  .audior-intake__reference { margin: 42px 0 56px; }
  .audior-intake__reference img { border-radius: 12px; }
  .audior-intake__topics { grid-template-columns: 1fr; }
  .audior-intake__privacy { padding: 18px; }
  .audior-intake h2 { font-size: 25px; }
}
@media (max-width: 600px) {
  #audior-chat-root { right: 0; bottom: 0; width: 100%; }
  .chat-overlay.is-open { opacity: 0; pointer-events: none; }
  #audior-chat-root .panel { height: 100dvh; border-left: 0; box-shadow: none; }
  #audior-chat-root .chat-header { padding-top: env(safe-area-inset-top); min-height: calc(64px + env(safe-area-inset-top)); flex-basis: calc(64px + env(safe-area-inset-top)); }
  #audior-chat-root .chat-toggle { right: 16px; bottom: 16px; }
  #audior-chat-root .chat-toggle { width: 58px; padding: 0; }
  #audior-chat-root .chat-toggle b { display: none; }
  #audior-chat-root .message { max-width: 91%; }
  #audior-chat-root .composer .icon-button { width: 34px; height: 34px; flex: 0 0 34px; }
  #audior-chat-root .audio-preview audio { width: 100%; }
  #audior-chat-root .audio-preview .primary-action { margin-left: auto; }
  #audior-chat-root .recording-bar { gap: 6px; }
  #audior-chat-root .recording-bar .text-action { margin-left: 0; }
  #audior-chat-root .file-preview { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-overlay, #audior-chat-root *, #audior-chat-root *::before, #audior-chat-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
