.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.demo-layout, .chat-window { min-width: 0; }
.hero-demo-header { min-height: 44px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-demo-label { font-weight: 720; color: var(--white); }
.tour-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 11px; border: 1px solid #577ba9; border-radius: 8px; background: #173763; color: var(--white); font-size: .875rem; font-weight: 680; white-space: nowrap; transition: background .16s ease; }
.tour-toggle:hover { background: #244b83; }
.tour-toggle:focus-visible, .industry-option:focus-visible { outline-color: var(--on-dark-accent); }
.tour-icon--play { display: block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.tour-icon--stop { display: block; width: 8px; height: 8px; background: currentColor; border-radius: 1px; }
.hero-receipt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 69px; margin-top: 10px; padding: 8px 13px; border: 1px solid #375888; border-radius: 11px; background: #142f59; color: var(--white); }
.hero-receipt span { min-width: 0; }
.hero-receipt span + span { padding-left: 12px; border-left: 1px solid #52719d; }
.hero-receipt strong, .hero-receipt small { display: block; }
.hero-receipt strong { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.23; }
.hero-receipt small { margin-block: 2px; color: var(--on-dark-muted); font-size: .8rem; line-height: 1.3; }
.receipt-value { animation: message-in .25s ease both; }
.demo-layout--demo { display: grid; grid-template-columns: minmax(225px, .58fr) minmax(0, 1.55fr); gap: clamp(16px, 3.4vw, 50px); }
.industry-picker h3 { margin-top: 2px; color: #fff; }
.industry-picker > p { margin: 6px 0 15px; color: var(--on-dark-muted); }
.industry-options { display: grid; gap: 9px; }
.industry-option { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #4d6b97; background: #16335d; color: #fff; text-align: left; border-radius: 11px; min-height: 62px; transition: background .16s ease, border-color .16s ease; }
.industry-option:hover { background: #214678; }
.industry-option[aria-pressed=true] { border-color: #a9ceff; background: #164998; }
.industry-option strong, .industry-option small { display: block; }
.industry-option small, .demo-privacy { color: #cfdef5; font-size: .86rem; line-height: 1.35; }
.industry-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: #ffffff15; color: #d9eaff; font-size: 1.2rem; }
.demo-privacy { display: block; margin-top: 15px; }
.chat-window {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 15px;
  overflow: hidden;
}
.chat-window--hero { height: 352px; }
.chat-window--demo { height: 500px; }
.chat-header { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 64px; }
.chat-progress { position: absolute; inset: auto 0 0; height: 3px; overflow: hidden; background: var(--tint); }
.chat-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform .25s ease; }
.chat-avatar { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 780; font-size: 1.28rem; }
.chat-header strong { display: block; font-size: .98rem; line-height: 1.25; }
.chat-header small { display: flex; align-items: center; gap: 5px; font-size: .83rem; color: var(--muted); margin-top: 4px; }
.chat-header i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-control, .dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--accent-dark); font-size: 1.38rem; line-height: 1; }
.chat-control { margin-left: auto; flex: 0 0 44px; }
.chat-control:hover, .dialog-close:hover { background: var(--tint); border-color: #96b9ee; }
.chat-feed { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; overscroll-behavior: contain; background: #f6f9fe; padding: clamp(12px, 2vw, 22px); }
.chat-feed:focus-visible { outline-offset: -3px; }
.chat-message { width: fit-content; max-width: min(95%, 450px); padding: 9px 13px; line-height: 1.44; border-radius: 12px; overflow-wrap: anywhere; flex-shrink: 0; animation: message-in .2s ease both; }
.chat-message--bot { background: #e4eefc; border-bottom-left-radius: 4px; }
.chat-message--visitor { margin-left: auto; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-window--hero .chat-message:nth-child(2) { animation-delay: .12s; }
@keyframes message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.typing { display: flex; align-items: center; gap: 4px; min-width: 46px; min-height: 32px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-dark); animation: pulse 1s ease-in-out infinite alternate; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { to { opacity: .35; transform: translateY(-3px); } }
.chat-composer { padding: 9px 13px 11px; border-top: 1px solid var(--line); min-height: 48px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 7px; }
.chat-options.initial-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-option { background: var(--white); border: 1px solid #b9ceec; color: var(--accent-dark); border-radius: 8px; padding: 7px 11px; min-height: 44px; font-size: .9rem; line-height: 1.3; font-weight: 660; transition: background .16s ease, border-color .16s ease; }
.chat-option:not(:disabled):hover { background: var(--tint); border-color: #82a9e4; }
.chat-option:disabled { opacity: .55; }
.chat-hint { color: var(--muted); padding-block: 2px; }
.chat-input { display: flex; gap: 7px; margin-top: 8px; }
.chat-input input, .lead-form input:not([type=checkbox]), .lead-form textarea, .lead-form select { min-width: 0; width: 100%; min-height: 43px; padding: 8px 10px; color: var(--ink); line-height: 1.35; background: #fff; border: 1px solid #bfcadd; border-radius: 8px; }
.chat-stop { margin-top: 3px; min-height: 44px; font-size: .88rem; }
.chat-result { padding: clamp(13px, 2.5vw, 28px); overflow-y: auto; overscroll-behavior: contain; animation: message-in .25s ease both; }
.chat-result h3 { max-width: 600px; margin-bottom: 6px; }
.chat-result-note { color: var(--muted); font-size: .875rem; }
.chat-result dl { margin: 12px 0 16px; border-block: 1px solid var(--line); }
.chat-result dl div { display: grid; grid-template-columns: .65fr 1fr; gap: 9px; padding-block: 7px; font-size: .94rem; }
.chat-result dl div + div { border-top: 1px solid var(--line); }
.chat-result dt { color: var(--muted); }
.chat-result dd { font-weight: 650; overflow-wrap: anywhere; }
.chat-result-actions { padding: 8px clamp(13px, 2.5vw, 28px) 10px; border-top: 1px solid var(--line); }
.chat-window--hero .chat-result { padding-block: 11px; }
.chat-window--hero .chat-result dl { margin: 7px 0 0; }
.chat-window--hero .chat-result dl div { padding-block: 4px; }

.lead-dialog { width: min(650px, calc(100% - 24px)); max-width: 100%; max-height: min(92dvh, 760px); margin: auto; padding: clamp(16px, 3vw, 29px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 72px #0f172a40; overscroll-behavior: contain; }
.lead-dialog::backdrop { background: #0c2145b8; }
.lead-dialog h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); padding-right: 42px; }
.lead-dialog > p { margin-top: 8px; color: var(--muted); }
.lead-dialog > p + .button { margin-top: 18px; }
.dialog-close { position: absolute; right: 10px; top: 9px; }
.lead-form { margin-top: 13px; }
.lead-form > .button { margin-top: 12px; }
.form-grid { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.form-grid label { display: block; color: #33425a; font-weight: 640; font-size: .9rem; min-width: 0; }
.form-grid label > input:not([type=checkbox]), .form-grid select, .form-grid textarea { display: block; margin-top: 4px; font-weight: 450; font-size: 1rem; }
.form-grid textarea { resize: vertical; }
.form-grid select { padding-right: 31px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #455476 50%), linear-gradient(135deg, #455476 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; }
.form-wide { grid-column: 1 / -1; }
.form-details summary { color: var(--accent-dark); font-size: .92rem; min-height: 44px; padding-block: 10px; font-weight: 650; }
.form-details > div { display: grid; gap: 10px; padding-bottom: 6px; }
.form-grid .consent-label { display: flex; gap: 8px; align-items: flex-start; }
.consent-label input { accent-color: var(--accent); flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; }
.privacy-link { display: inline-block; margin-top: 5px; padding-block: 5px; font-size: .88rem; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field-error, .form-error { color: #9d2235; font-size: .875rem; }
.field-error { display: block; margin-top: 3px; }
.form-error { border-radius: 8px; padding: 8px 10px; background: #fff0f0; margin-bottom: 8px; }
.lead-form [aria-invalid=true] { border-color: #a92a3c !important; }
.success-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e3f9eb; color: var(--green); font-weight: 750; margin-bottom: 12px; }
.analytics-consent { position: fixed; z-index: 6; bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; width: min(405px, calc(100% - 24px)); padding: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px #1c265530; border-radius: 14px; }
.analytics-consent p { margin: 4px 0 10px; font-size: .94rem; }
.analytics-consent > div { display: flex; flex-wrap: wrap; gap: 7px; }
.analytics-consent .button { min-height: 44px; padding-inline: 10px; font-size: .9rem; }
@media (max-width: 700px) {
  .demo-layout--demo { grid-template-columns: 1fr; }
  .industry-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .industry-option { gap: 6px; padding-inline: 6px; font-size: .87rem; }
  .industry-symbol { width: 22px; height: 25px; flex-basis: 22px; font-size: .97rem; }
  .chat-window--demo { height: 440px; }
  .chat-window--hero { height: 344px; }
}
@media (max-width: 460px) {
  .chat-header { padding: 10px; }
  .chat-composer { padding-inline: 8px; }
  .chat-message { font-size: .94rem; }
  .chat-option { padding-inline: 7px; font-size: .84rem; }
  .hero-demo-label, .tour-toggle { font-size: .82rem; }
  .chat-input input { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .lead-form > .button { width: 100%; }
}
