/* A conversation visitors can try, in the studio's existing brand colors. */
.ai-page .main-systems { background: transparent; }
.ai-page .main-systems .main-system-list { display: flex; flex-direction: column; gap: 3.5rem; }
.ai-page .main-systems .main-system { padding: 0; border: 0; }
.ai-page .main-systems .main-system h3 { font-size: clamp(1.75rem, 2.5vw, 2.4rem); line-height: 1.4; }
.ai-page .main-system__copy { gap: 1.4rem; }
.ai-page .main-systems .main-system__detail { max-width: 44rem; }
.ai-page .main-systems .main-system__detail p { font-size: 1.25rem; line-height: 1.85; }
.reply-demo { padding: 2rem; color: #021526; background: #edf3f5; border: 0; border-radius: 1.6rem; }
.reply-demo h4 { margin: 0 0 1.25rem; font: 700 1.25rem/1.5 var(--body); }
.reply-demo__choices { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.reply-demo__choices button { min-height: 3rem; padding: .65rem 1.2rem; color: #021526; background: #fff; border: 0; border-radius: 2rem; font: 600 1.125rem/1.5 var(--body); cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.reply-demo__choices button:hover { background: #e2e2b6; }
.reply-demo__choices button[aria-pressed="true"] { background: #03346e; color: #fff; }
.reply-demo__choices button:active { background: #021526; color: #fff; }
.reply-demo__conversation { display: flex; flex-direction: column; gap: 1.25rem; min-height: 20rem; }
.reply-demo__message { width: min(85%, 38rem); padding: 1.3rem 1.6rem; border-radius: 1.3rem; }
.reply-demo__message p { margin: 0; font-size: 1.25rem; line-height: 1.8; }
.reply-demo__message .reply-demo__speaker { margin-bottom: .5rem; font-size: 1.125rem; font-weight: 650; }
.reply-demo__message--question { align-self: flex-start; color: #fff; background: #03346e; border-bottom-left-radius: .25rem; }
.reply-demo__message--answer { align-self: flex-end; background: #e2e2b6; border-bottom-right-radius: .25rem; }
.reply-demo[data-scenario="human"] .reply-demo__message--answer { background: #6eacda; }
.ai-page .phone-demo__frame { overflow: hidden; }
.followup-demo { padding: clamp(1.25rem,3vw,2.5rem); border-radius: 1.6rem; background: #edf3f5; color: #021526; }
.followup-demo__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.followup-demo h4 { margin: 0; font: 700 1.25rem/1.5 var(--body); }
.followup-demo__badge { padding: .4rem .9rem; border-radius: 2rem; background: #e2e2b6; font-size: 1.125rem; font-weight: 600; }
.followup-demo__choices { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.followup-demo__choices[hidden] { display: none; }
.followup-demo__choices button { min-height: 3rem; padding: .65rem 1.15rem; border: 0; border-radius: 2rem; background: #fff; color: #021526; font: 600 1.125rem/1.5 var(--body); cursor: pointer; }
.followup-demo__choices button:hover { background: #e2e2b6; }
.followup-demo__choices button[aria-pressed="true"] { background: #03346e; color: #fff; }
.followup-demo__choices button:focus-visible,.followup-demo__contact:focus-visible { outline: 3px solid #03346e; outline-offset: 5px; }
.followup-demo__scene { display: flex; gap: clamp(2rem,5vw,5rem); align-items: center; }
.followup-demo__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2rem; flex: 0 0 auto; counter-reset: followup; }
.followup-demo__steps li { display: flex; gap: .8rem; align-items: center; font-size: 1.125rem; counter-increment: followup; }
.followup-demo__steps li::before { content: counter(followup); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; background: #fff; border-radius: 50%; font-weight: 650; }
.followup-demo__chat { flex: 1; min-width: 0; padding: 1.6rem; background: #fff; border-radius: 1.4rem; }
.followup-demo__sender { margin: 0 0 .8rem; font-size: 1.125rem; font-weight: 650; }
.followup-demo__bubble { margin: 0; padding: 1.25rem; font-size: 1.25rem; line-height: 1.8; background: #e2e2b6; border-radius: 1.1rem 1.1rem .25rem 1.1rem; }
.followup-demo__result { margin: 1.25rem 0 0; font-size: 1.125rem; line-height: 1.7; }
.followup-demo[data-state="replied"] .followup-demo__bubble { background: #03346e; color: #fff; border-radius: 1.1rem 1.1rem 1.1rem .25rem; }
.followup-demo[data-state="replied"] .followup-demo__badge { background: #6eacda; }
.followup-demo[data-state="paused"] .followup-demo__badge,.followup-demo[data-state="paused"] .followup-demo__bubble { background: #edf3f5; }
.followup-demo__contact { display: inline-flex; align-items: center; gap: 2rem; margin-top: 1.75rem; color: #03346e; font-size: 1.125rem; font-weight: 650; text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 50rem) {
  .followup-demo__scene { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .followup-demo__steps { gap: .85rem; }
  .followup-demo__chat { padding: 1.1rem; }
  .followup-demo__bubble { padding: 1rem; font-size: 1.125rem; }
}
@media (max-width: 44rem) {
  .reply-demo { padding: 1.25rem; border-radius: 1.3rem; }
  .reply-demo__choices { gap: .55rem; margin-bottom: 1.5rem; }
  .reply-demo__choices button { padding-inline: 1rem; }
  .reply-demo__conversation { min-height: 26rem; }
  .reply-demo__message { width: 94%; padding: 1.15rem; }
  .reply-demo__message p,.ai-page .main-systems .main-system__detail p { font-size: 1.125rem; }
  .ai-page .main-systems .main-system-list { gap: 3rem; }
}

/* Messaging surfaces intentionally keep their familiar rounded geometry. */
.ai-page .chat-window,.ai-page .followup-demo__chat { overflow: hidden; border: 1px solid #cfdbdf; border-radius: 24px !important; background: #fff; box-shadow: 0 12px 36px #0215260b; }
.ai-page .chat-window { max-width: 48rem; margin-inline: auto; }
.ai-page .chat-window__header { display: flex; gap: 12px; align-items: center; padding: 18px 22px; background: #fff; border-bottom: 1px solid #e6ecef; }
.ai-page .chat-window__header strong { display: block; font-size: 1rem; line-height: 1.5; }
.ai-page .chat-window__header div > span { display: block; font-size: .8rem; color: #617480; }
.ai-page .chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50% !important; background: #03346e; color: #e2e2b6; font-size: 1.15rem; }
.ai-page .chat-window__status { margin-left: auto; color: #42725c; font-size: .8rem; white-space: nowrap; }
.ai-page .reply-demo__conversation { padding: 20px 24px 28px; min-height: 23rem; gap: 22px; background: #f5f7f8; }
.ai-page .chat-date { margin: 0; text-align: center; font-size: .75rem; color: #72818a; }
.ai-page .reply-demo__message { position: relative; width: fit-content; max-width: 82%; padding: 14px 18px; border-radius: 20px !important; }
.ai-page .reply-demo__message p { font-size: 1.05rem; line-height: 1.75; }
.ai-page .reply-demo__message .reply-demo__speaker { font-size: .75rem; margin-bottom: 5px; opacity: .72; }
.ai-page .reply-demo__message--question { margin-left: 16px; color: #021526; background: #fff; border: 1px solid #e4e9ec; border-bottom-left-radius: 5px !important; }
.ai-page .reply-demo__message--answer { color: #fff; background: #03346e; border-bottom-right-radius: 5px !important; }
.ai-page .reply-demo__message--question::before { content: ''; position: absolute; left: -17px; bottom: 5px; width: 7px; height: 7px; border-radius: 50% !important; background: #b7c7d2; }
.ai-page .reply-demo[data-scenario="human"] .reply-demo__message--answer { color: #021526; background: #d9e9f4; }
.ai-page .chat-composer { display: flex; align-items: center; justify-content: space-between; margin: 14px 18px; padding: 10px 16px; border: 1px solid #d7e0e4; border-radius: 999px !important; color: #7d8b94; font-size: .95rem; }
.ai-page .reply-demo__choices button,.ai-page .followup-demo__choices button,.ai-page .followup-demo__badge { border-radius: 999px !important; }
.ai-page .reply-demo__choices[hidden] { display: none; }
.ai-page .followup-demo__chat { padding: 0; background: #e8f0ed; }
.ai-page .followup-demo__chat .chat-date { margin: 20px 0; }
.ai-page .followup-demo__sender { margin: 0 22px 6px; text-align: right; font-size: .8rem; color: #617480; }
.ai-page .followup-demo__bubble { width: fit-content; max-width: 82%; margin: 0 22px 0 auto; padding: 14px 18px; border-radius: 20px 20px 5px 20px !important; background: #d9edc5; font-size: 1.05rem; line-height: 1.75; }
.ai-page .followup-demo__result { margin: 20px 22px; color: #617480; text-align: center; font-size: .8rem; }
.ai-page .followup-demo__chat .chat-composer { background: #fff; }
.ai-page .followup-demo[data-state="replied"] .followup-demo__bubble,.ai-page .followup-demo[data-state="paused"] .followup-demo__bubble { margin-inline: 22px auto; background: #fff; color: #021526; border-radius: 20px 20px 20px 5px !important; }
.ai-page .followup-demo[data-state="replied"] .followup-demo__sender,.ai-page .followup-demo[data-state="paused"] .followup-demo__sender { text-align: left; }
@media (max-width: 44rem) {
  .ai-page .reply-demo,.ai-page .followup-demo { padding: 1rem; }
  .ai-page .reply-demo__conversation { padding: 18px 14px 24px; min-height: 25rem; }
  .ai-page .reply-demo__message { max-width: 90%; }
  .ai-page .chat-window__header { padding: 16px 14px; gap: 9px; }
  .ai-page .chat-window__status { display: none; }
}
