/* One illustrative conversation, with complete static content before enhancement. */
.page-index .demo-section.staged-demo { display: block; }
.story-intro { display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; align-items: end; margin-bottom: 38px; }
.story-intro h2 { font-size: clamp(35px, 4.2vw, 58px); }
.story-intro-copy > p:first-child { max-width: 570px; font-size: 18px; line-height: 1.65; }
.page-index .staged-demo .demo-select { margin: 22px 0 12px; }
.page-index .staged-demo .demo-select button { min-height: 48px; font-size: 16px; }
.story-board { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #41535d; border-radius: 26px; background: #102833; box-shadow: 0 30px 90px -55px #000c; line-height: 1.5; }
.story-board::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: -25%; background: radial-gradient(ellipse at 20% 35%, #34565355, transparent 44%), radial-gradient(ellipse at 90% 85%, #84693422, transparent 48%); animation: story-wash 16s ease-in-out infinite alternate; animation-play-state: paused; }
.story-board-top { padding: 13px 28px; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #ffffff12; font-size: 16px; color: #c0d0da; }
.story-board-top > span:first-child { display: flex; align-items: center; gap: 9px; }
.story-board-top i { width: 6px; height: 6px; border-radius: 50%; background: #e4c578; box-shadow: 0 0 0 4px #e4c5780e; }
.story-example-tag { color: #aec2ce; font-size: 14px; align-self: center; }
.story-stages { list-style: none; margin: 0; padding: 0 28px; display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid #ffffff16; background: #0c20294d; }
.story-stages li { min-width: 0; }
.story-stages button { position: relative; display: flex; gap: 10px; width: 100%; min-height: 60px; padding: 12px 8px; align-items: center; justify-content: center; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #afc2cc; font-size: 16px; transition: color .35s, background .35s, border-color .35s; }
.story-stages button > span { color: #a9bfca; font-size: 14px; font-variant-numeric: tabular-nums; }
.story-stages button[aria-current="step"] { color: #f0d695; border-color: #e3c477; background: linear-gradient(transparent, #d7b7680d); }
.story-stages button[aria-current="step"] > span, .story-stages .is-complete > span { color: #d1b67a; }
.story-stages button:disabled { cursor: default; }
.story-stages button:focus-visible, .story-controls button:focus-visible { outline-color: #f2d17f; outline-offset: -5px; }
.story-main { display: grid; grid-template-columns: .85fr 1.15fr; }
.story-lead-column { min-width: 0; padding: 24px 30px; display: grid; grid-template-columns: minmax(0, 1fr) 154px; align-content: start; gap: 0 14px; border-right: 1px solid #ffffff12; }
.story-panel-label { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .07em; color: #aac3cf; margin: 0 0 14px; }
.story-lead-column > .story-panel-label { grid-column: 1 / -1; }
.story-connection { grid-column: 2; grid-row: 2; display: flex; align-items: center; align-self: center; width: 100%; margin: 0; }
.story-lead-details { grid-column: 1; grid-row: 2; }
.story-person-avatar { flex: 0 0 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #506c69, #2c434d); border: 1px solid #85948755; box-shadow: inset 0 1px 0 #ffffff1f; font-size: 19px; font-weight: 500; letter-spacing: -.05em; color: #f0e9d9; }
.story-connection-line { flex: 1; width: 60px; min-width: 30px; height: 55px; overflow: visible; stroke-width: 1.3; }
.story-connection-base { stroke: #4f6a70; }
.story-connection-flow { stroke: #dfc580; stroke-dasharray: 6 10; animation: story-flow 1.3s linear infinite; animation-play-state: paused; opacity: 0; transition: opacity .6s; }
.story-phone { position: relative; flex: 0 0 48px; height: 48px; display: grid; place-items: center; border: 1px solid #d0b5785c; border-radius: 16px; background: #d0b57813; color: #ead39d; }
.story-phone > svg { width: 27px; height: 27px; }
.story-phone::before, .story-phone::after { content: ''; position: absolute; inset: -1px; border: 1px solid #dcc27b; border-radius: 19px; opacity: 0; animation: story-ring 2s ease-out infinite; animation-play-state: paused; }
.story-phone::after { animation-delay: 1s; }
.story-lead-details h3 { color: #f2f1e8; font-size: 25px; font-weight: 550; }
.story-lead-details > p { color: #b5c8d2; font-size: 16px; margin: 5px 0 9px; line-height: 1.5; }
.story-lead-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 14px; color: #dedec0; border: 1px solid #a2aa7240; border-radius: 30px; background: #959c5910; }
.story-lead-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.story-stage-caption { grid-column: 1 / -1; margin-top: 19px; padding-top: 15px; border-top: 1px solid #ffffff12; min-height: 104px; }
.story-stage-caption > span { font-size: 14px; letter-spacing: .07em; color: #d1b97c; }
.story-stage-caption h3 { margin-top: 5px; font-size: 23px; color: #e3e9ec; font-weight: 500; }
.story-stage-caption > p { color: #b5c9d4; font-size: 16px; margin: 5px 0 0; line-height: 1.5; min-height: 24px; }
.story-qualification { grid-column: 1 / -1; padding: 12px 15px; margin-top: 14px; background: #96b99d0a; border: 1px solid #a1c4ac29; border-radius: 12px; opacity: 1; transition: opacity .7s, transform .7s; }
.story-result-label { display: flex; align-items: center; gap: 7px; color: #b2d5bf; letter-spacing: .07em; font-size: 14px; }
.story-result-label > svg { width: 14px; height: 14px; }
.story-result-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.story-result-tags > span { border-radius: 4px; padding: 3px 8px; color: #c6d9c9; background: #75a68516; font-size: 15px; }
.story-transcript-column { min-width: 0; padding: 24px 30px; }
.story-transcript-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.story-transcript-heading .story-panel-label { margin-bottom: 5px; }
.story-transcript-heading h3 { color: #dce7ed; font-size: 20px; font-weight: 500; }
.story-wave { display: flex; align-items: center; gap: 3px; height: 28px; color: #dfc47f; }
.story-wave i { display: block; width: 2px; height: 8px; border-radius: 4px; background: currentColor; transform: scaleY(.5); animation: story-wave .7s ease-in-out infinite alternate; animation-play-state: paused; }
.story-wave i:nth-child(3n) { height: 25px; animation-delay: -.2s; }
.story-wave i:nth-child(3n + 1) { height: 17px; animation-delay: -.45s; }
.story-wave i:nth-child(4n) { height: 11px; animation-delay: -.6s; }
.story-transcript-area { position: relative; }
.story-messages { display: grid; gap: 9px; min-height: 300px; align-content: start; }
.story-message { justify-self: start; max-width: 96%; width: fit-content; padding: 9px 15px; background: #29424f; border: 1px solid #53788824; border-radius: 13px 13px 13px 3px; transition: opacity .3s, translate .4s; }
.story-message.customer { justify-self: end; background: #52665022; border-color: #82936b24; border-radius: 13px 13px 3px 13px; }
.story-message > span { display: block; font-size: 14px; line-height: 1.3; color: #bfd3df; font-weight: 600; }
.story-message.customer > span { color: #c1cdb5; }
.story-message p { display: grid; font-size: 16px; line-height: 1.5; margin: 3px 0 0; color: #e3eaf0; }
.story-message p > span { grid-area: 1 / 1; }
.story-message-reserve { visibility: hidden; }
.story-message.is-typing [data-story-text]::after { content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 3px; background: #e5cf8e; vertical-align: -.1em; }
.story-transcript-waiting { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 30px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.story-wait-symbol { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #b5c8ad20; border-radius: 50%; background: #b5c8ad06; color: #a2b8ad; }
.story-wait-symbol > svg { width: 42px; height: 42px; }
.story-transcript-waiting p { color: #a6bcbf; font-size: 22px; font-weight: 450; line-height: 1.4; max-width: 250px; }
.story-transcript-waiting > span { font-size: 15px; color: #a8c0ce; max-width: 280px; line-height: 1.6; }
.story-accessible-transcript { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.story-summary { display: grid; grid-template-columns: 40px 1fr; gap: 17px; align-items: center; padding: 17px 30px; background: #a88e4e13; border-top: 1px solid #cfb6712b; min-height: 94px; transition: opacity .6s; }
.story-summary-mark { width: 40px; height: 46px; display: grid; place-items: center; color: #dac084; background: #c6a86d13; border: 1px solid #c6a86d30; border-radius: 10px; }
.story-summary .story-panel-label { color: #ceb47b; margin-bottom: 5px; }
.story-summary p { color: #e0dfce; font-size: 16px; line-height: 1.5; margin: 0; max-width: 1050px; }
.story-footer { position: relative; min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 6px 26px; color: #b2c7d3; border-top: 1px solid #ffffff0b; background: #091b2440; font-size: 14px; }
.story-footer::before { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: var(--story-progress, 100%); background: #d7b974; }
.story-controls { display: flex; align-items: center; gap: 14px; }
.story-controls button { min-height: 44px; padding: 5px 8px; border: 0; background: transparent; color: #c5d3da; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.story-controls button:disabled { color: #738d9c; cursor: default; }
.story-controls button > svg { width: 18px; height: 18px; }
.story-afterword { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 15px; margin-top: 23px; }
.story-afterword p { color: #b0c4d0; font-size: 16px; margin: 0; }
.story-afterword .text-link { font-size: 16px; color: #e3c78a; }
.story-afterword .text-link > span { margin-left: 7px; }
.staged-demo.story-enhanced:not([data-story-phase="qualification"]):not([data-story-phase="summary"]) .story-qualification { opacity: .12; transform: translateY(5px); }
.staged-demo.story-enhanced:not([data-story-phase="summary"]) .story-summary { opacity: .28; }
.staged-demo:is([data-story-phase="selected"], [data-story-phase="calling"], [data-story-phase="connected"]) .story-transcript-waiting { opacity: 1; }
.staged-demo:is([data-story-phase="calling"], [data-story-phase="connected"], [data-story-phase="conversation"]) .story-connection-flow { opacity: 1; }
.staged-demo.story-running .story-board::before, .staged-demo.story-running .story-connection-flow { animation-play-state: running; }
.staged-demo.story-running[data-story-phase="calling"] .story-phone::before, .staged-demo.story-running[data-story-phase="calling"] .story-phone::after { animation-play-state: running; }
.staged-demo:not([data-story-phase="calling"]) .story-phone::before, .staged-demo:not([data-story-phase="calling"]) .story-phone::after { animation: none; opacity: 0; }
.staged-demo.story-running:is([data-story-phase="connected"], [data-story-phase="conversation"]) .story-wave i { animation-play-state: running; }
.staged-demo.story-enhanced .story-message:not(.is-revealed) { opacity: 0; translate: 0 5px; }
@keyframes story-ring { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes story-flow { to { stroke-dashoffset: -32; } }
@keyframes story-wave { to { transform: scaleY(1); } }
@keyframes story-wash { to { transform: translate(8%, -5%) rotate(9deg); } }
@media (hover: hover) { .story-stages button:not(:disabled):hover { color: #f0d695; background: #ffffff05; } .story-controls button:not(:disabled):hover { color: #f0d695; } }
/* Keep the complete studio, including its controls, within a laptop viewport. */
@media (min-width: 1101px) {
 .page-index .demo-section.staged-demo { padding-block: 48px; }
 .story-intro { gap: 48px; margin-bottom: 24px; }
 .story-board-top { padding: 8px 24px; }
 .story-stages { padding-inline: 20px; }
 .story-stages button { min-height: 46px; padding-block: 8px; }
 .story-lead-column, .story-transcript-column { padding: 14px 24px; }
 .story-panel-label { margin-bottom: 8px; }
 .story-lead-column > .story-panel-label { margin-bottom: 8px; }
 .story-lead-details > p { margin-block: 4px 7px; }
 .story-stage-caption { min-height: 90px; margin-top: 12px; padding-top: 10px; }
 .story-stage-caption > p { line-height: 1.45; }
 .story-qualification { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; margin-top: 10px; }
 .story-result-tags { margin-top: 0; }
 .story-transcript-heading { margin-bottom: 10px; }
 .story-messages { min-height: 0; gap: 6px; }
 .story-message { padding: 6px 13px; }
 .story-message > span { line-height: 1.25; }
 .story-message p { line-height: 1.45; margin-top: 2px; }
 .story-wait-symbol { width: 58px; height: 58px; margin-bottom: 12px; }
 .story-wait-symbol > svg { width: 32px; height: 32px; }
 .story-transcript-waiting p { margin-bottom: 10px; }
 .story-summary { min-height: 0; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 24px; }
 .story-summary-mark { width: 32px; height: 36px; }
 .story-summary > div:last-child { display: flex; align-items: baseline; gap: 16px; }
 .story-summary .story-panel-label { flex-shrink: 0; margin: 0; }
 .story-footer { min-height: 48px; padding: 2px 20px; }
 .story-afterword { margin-top: 14px; }
}
@media (max-width: 1100px) {
 .story-intro { gap: 40px; }
 .story-stages { padding-inline: 14px; }
 .story-stages button { font-size: 15px; gap: 5px; }
 .story-lead-column { padding: 24px; grid-template-columns: minmax(0, 1fr) 88px; }
 .story-connection-line { min-width: 15px; }
 .story-person-avatar { flex-basis: 38px; height: 38px; font-size: 16px; }
 .story-phone { flex-basis: 34px; height: 34px; border-radius: 12px; }
 .story-phone > svg { width: 21px; }
 .story-transcript-column { padding: 24px; }
 .story-summary { grid-template-columns: 36px 1fr; padding-inline: 25px; }
 .story-main { grid-template-columns: .82fr 1.18fr; }
 .story-lead-details > p { font-size: 15px; }
 .story-stage-caption h3 { font-size: 21px; }
}
@media (max-width: 760px) {
 .story-intro { grid-template-columns: 1fr; gap: 23px; margin-bottom: 25px; }
 .story-intro-copy > p:first-child { font-size: 17px; margin-bottom: 0; }
 .page-index .staged-demo .demo-select { margin-top: 20px; max-width: 100%; }
 .page-index .staged-demo .demo-select button { font-size: 15px; padding-inline: 14px; }
 .story-board { border-radius: 19px; }
 .story-board-top { padding: 15px 19px; font-size: 15px; flex-wrap: wrap; gap: 6px 15px; }
 .story-example-tag { font-size: 14px; }
 .story-stages { grid-template-columns: repeat(3, 1fr); padding: 5px 10px; }
 .story-stages button { min-height: 48px; padding: 7px 3px; font-size: 14px; gap: 5px; }
 .story-stages button > span { font-size: 14px; }
 .story-main { grid-template-columns: 1fr; }
 .story-lead-column { padding: 22px 20px; grid-template-columns: minmax(0, 1fr) 96px; gap: 0 12px; border-right: 0; border-bottom: 1px solid #ffffff12; }
 .story-lead-column > .story-panel-label { margin-bottom: 15px; }
 .story-person-avatar { height: 40px; flex-basis: 40px; font-size: 16px; }
 .story-phone { flex-basis: 34px; height: 34px; border-radius: 11px; }
 .story-phone::before, .story-phone::after { border-radius: 11px; }
 .story-phone > svg { width: 20px; height: 20px; }
 .story-connection-line { min-width: 0; height: 27px; }
 .story-lead-details h3 { font-size: 22px; }
 .story-lead-details > p { font-size: 15px; margin-block: 6px 8px; }
 .story-lead-badge { font-size: 14px; }
 .story-stage-caption { min-height: 136px; margin-top: 19px; padding-top: 15px; }
 .story-stage-caption h3 { font-size: 22px; margin-top: 5px; }
 .story-stage-caption > p { font-size: 16px; min-height: 48px; margin-top: 7px; }
 .story-qualification { margin-top: 15px; padding: 13px 14px; }
 .story-transcript-column { padding: 24px 20px 18px; }
 .story-transcript-heading { margin-bottom: 20px; }
 .story-transcript-heading h3 { font-size: 18px; }
 .story-wave { gap: 2px; }
 .story-messages { min-height: 390px; gap: 11px; }
 .story-message { padding: 11px 13px; max-width: 100%; }
 .story-summary { padding: 21px 20px; gap: 12px; grid-template-columns: 31px 1fr; min-height: 0; }
 .story-summary-mark { width: 31px; height: 38px; }
 .story-summary-mark > svg { width: 19px; }
 .story-summary p { font-size: 16px; }
 .story-footer { padding-inline: 14px; gap: 5px 10px; flex-wrap: wrap; }
 .story-footer > span { font-size: 14px; line-height: 1.6; }
 .story-controls { gap: 1px; }
 .story-controls button { font-size: 15px; padding-inline: 7px; }
 .story-afterword { margin-top: 19px; gap: 12px; }
}
@media (max-width: 360px) {
 .story-lead-column, .story-transcript-column { padding-inline: 15px; }
 .story-lead-column { grid-template-columns: minmax(0, 1fr) 75px; }
 .story-person-avatar { flex-basis: 33px; height: 33px; font-size: 14px; }
 .story-phone { flex-basis: 29px; height: 29px; }
 .story-board-top { padding-inline: 14px; gap: 7px; }
 .story-board-top > span:first-child { gap: 6px; }
 .story-stages button { flex-direction: column; gap: 1px; padding-block: 9px; }
 .page-index .staged-demo .demo-select { border-radius: 14px; }
 .page-index .staged-demo .demo-select button { font-size: 14px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
 .story-board::before, .story-connection-flow, .story-phone::before, .story-phone::after, .story-wave i { animation: none; }
 .story-qualification, .story-message, .story-summary { transition: none; }
}
@media print {
 .story-controls, .story-stages, .story-transcript-waiting { display: none; }
 .staged-demo .story-message, .staged-demo .story-summary, .staged-demo .story-qualification { opacity: 1 !important; translate: none !important; transform: none !important; }
 .story-message-reserve { visibility: visible; }
 [data-story-text] { visibility: hidden; }
}
