/* A native, seekable business demonstration inside the existing hero. */
.hero-workflow {
  --hw-accent: #177e68;
  --hw-dark: #183d4c;
  min-width: 0; width: 100%; max-width: 570px; margin: 0;
  border: 1px solid #d3e7e780; border-radius: 20px;
  background: #f7fbfb; color: var(--hw-dark); overflow: hidden;
  box-shadow: 0 32px 90px #03152266, 0 0 0 7px #d0fff009;
  isolation: isolate;
}
.hw-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px; background: #153849; color: #fff; }
.hw-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hw-brand-mark { color: #a3f5d9; font-size: 25px; line-height: 1; }
.hw-demo-tag { font-size: 11px; color: #c7e4e6; padding: 2px 8px; border: 1px solid #77999570; border-radius: 4px; }
.hw-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 19px 23px 0; background: #fff; }
.hw-steps button { position: relative; appearance: none; border: 0; border-radius: 0; padding: 0 0 11px; background: transparent; text-align: left; color: #647b82; cursor: pointer; font-size: 12px; white-space: nowrap; }
.hw-steps button span { display: block; font-size: 10px; letter-spacing: 1px; color: #7e989d; margin-bottom: 2px; }
.hw-steps button::after, .hw-steps i { content: ''; position: absolute; height: 3px; left: 0; right: 0; bottom: 0; border-radius: 3px; background: #e4eeed; }
.hw-steps i { z-index: 1; background: #258875; transform-origin: left; }
.hw-steps button:hover { color: #10624e; }
.hw-stage { height: 470px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 63%, #e1f3ed70, transparent 76%), #f7fbfb; }
.hw-scene { position: absolute; inset: 0; padding: 25px 24px 20px; }
.hw-scene h3, .hw-static h3 { font-size: 24px; color: #173c48; line-height: 1.45; letter-spacing: -.6px; }
.hw-kicker { font-size: 11px; color: #4e8077; margin-bottom: 6px; letter-spacing: .9px; }
.hw-message { display: flex; gap: 12px; padding: 19px 17px; background: #fff; border: 1px solid #dae8e8; border-radius: 14px 14px 14px 4px; margin-top: 25px; box-shadow: 0 8px 24px #184b5410; }
.hw-avatar { width: 33px; height: 33px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; color: #345e72; background: #e8f1f6; font-weight: 700; font-size: 12px; }
.hw-message-meta { font-size: 10px; color: #71878e; display: block; margin-bottom: 6px; }
.hw-typewriter { font-size: 16px; line-height: 1.85; color: #244553; min-height: 60px; }
.hw-typewriter span { display: inline; }
.hw-intent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0 12px; }
.hw-intent-tags span { color: #496a69; background: #eaf3f0; border: 1px solid #d5e8e1; padding: 2px 8px; border-radius: 5px; font-size: 11px; }
.hw-ai-reply { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 15px; background: #e0f3eb; border-radius: 4px 13px 13px 13px; border: 1px solid #c5e6d8; }
.hw-ai-reply > span { font-size: 30px; color: #1a8069; line-height: 1; }
.hw-ai-reply strong { font-size: 14px; color: #145746; }
.hw-ai-reply p { font-size: 12px; color: #4e756b; margin-top: 3px; }
.hw-scene-note { margin-top: 17px; text-align: center; color: #64807f; font-size: 11px; }
.hw-network { position: relative; height: 248px; margin-top: 12px; }
.hw-network-lines { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 188px; overflow: visible; }
.hw-wire, .hw-wire-flow { fill: none; stroke: #c0dad3; stroke-width: 2; }
.hw-wire-flow { stroke: #239d7c; stroke-width: 4; stroke-linecap: round; }
.hw-ai-core { position: absolute; z-index: 1; left: calc(50% - 38px); top: 13px; width: 76px; text-align: center; }
.hw-ai-core > span { position: relative; display: grid; place-items: center; height: 68px; border-radius: 20px; background: #1b705f; border: 1px solid #3a997f; box-shadow: 0 6px 18px #124f4830; font-size: 44px; color: #b9ffe6; line-height: 1; }
.hw-ai-core strong { display: block; position: relative; font-size: 12px; margin-top: 6px; }
.hw-core-halo { position: absolute; inset: -10px -10px 22px; border: 1px solid #6dbba280; border-radius: 30px; background: #a1e5cb30; }
.hw-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: absolute; top: 146px; left: 0; right: 0; }
.hw-source { position: relative; min-width: 0; padding: 14px 8px 28px; border: 1px solid #cadfdc; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 5px 15px #15484808; }
.hw-source-icon { display: inline-block; font-size: 18px; color: #277c69; line-height: 1; margin-right: 6px; }
.hw-source strong { font-size: 14px; }
.hw-source p { font-size: 11px; color: #74888e; margin-top: 5px; white-space: nowrap; }
.hw-source-search, .hw-source-found { position: absolute; left: 0; right: 0; bottom: 8px; font-size: 10px; color: #478076; }
.hw-source-found { color: #087353; font-weight: 600; }
.hw-query-result { margin-top: 9px; padding: 9px 7px; text-align: center; font-size: 12px; color: #27675a; background: #e0f3eb; border-radius: 6px; }
.hw-document { margin-top: 21px; padding: 17px 18px 0; border: 1px solid #d5e4e2; background: #fff; border-radius: 11px; box-shadow: 0 14px 24px #1b4a4212; }
.hw-document-head { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #e5edeb; }
.hw-document-icon { font-size: 27px; color: #38826f; }
.hw-document-head strong { font-size: 14px; display: block; }
.hw-document-head div > span { font-size: 10px; color: #7d918e; display: block; margin-top: 2px; }
.hw-document-badge { font-size: 10px; color: #8a6b30; border: 1px solid #e5dabc; background: #faf5e8; border-radius: 4px; padding: 1px 7px; margin-left: auto; white-space: nowrap; }
.hw-document-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1ef; }
.hw-document-row > span { color: #8aa6a0; font-size: 10px; }
.hw-document-row strong { font-size: 12px; color: #355650; }
.hw-document-row p { font-size: 11px; color: #738883; margin-top: 2px; }
.hw-document-row b { font-size: 11px; color: #27836a; margin-left: auto; }
.hw-document-foot { display: flex; justify-content: space-between; padding: 11px 0; gap: 8px; font-size: 10px; color: #428371; }
.hw-document-foot span:last-child { color: #8e754d; }
.hw-approval { position: relative; margin-top: 24px; padding: 19px 18px 13px; border-radius: 13px; border: 1px solid #e3d6b9; background: #fffdf7; }
.hw-approval-person { display: flex; align-items: center; gap: 11px; }
.hw-approval-person .hw-avatar { color: #91652a; background: #f7ecd1; }
.hw-approval-person strong { font-size: 14px; }
.hw-approval-person p { font-size: 11px; color: #8c7f69; margin-top: 3px; }
.hw-approval-action { position: relative; height: 42px; margin-top: 17px; }
.hw-confirm-target, .hw-confirmed { display: flex; align-items: center; justify-content: center; gap: 20px; position: absolute; inset: 0; border-radius: 7px; background: #235f50; color: #fff; font-size: 13px; font-weight: 600; }
.hw-confirmed { background: #e0f2e8; color: #1b755a; }
.hw-confirm-target b { font-size: 17px; font-weight: 400; }
.hw-demo-cursor { position: absolute; width: 29px; height: 34px; left: 50%; top: 17px; z-index: 2; overflow: visible; }
.hw-click-ring { position: absolute; left: calc(50% - 14px); top: 4px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #92d2a5; pointer-events: none; }
.hw-human-caption { display: block; text-align: center; color: #9c855f; font-size: 10px; margin-top: 9px; }
.hw-outcome { display: flex; align-items: center; gap: 11px; margin-top: 25px; padding: 16px 12px; background: #def3e9; border: 1px solid #c8e7d7; border-radius: 12px; }
.hw-outcome-check { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; background: #28816a; font-size: 18px; }
.hw-outcome strong { display: block; color: #1b6651; font-size: 15px; }
.hw-outcome p { color: #58806f; font-size: 11px; margin-top: 4px; }
.hw-outcome-tags { display: flex; justify-content: center; gap: 17px; font-size: 10px; color: #678779; margin-top: 12px; }
.hw-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 21px; border-top: 1px solid #e3edeb; background: #fff; font-size: 11px; color: #607c7b; }
.hw-controls > span { display: flex; align-items: center; gap: 7px; }
.hw-playing-dot { width: 5px; height: 5px; background: #309982; border-radius: 50%; }
.hero-workflow[data-playback="paused"] .hw-playing-dot { background: #b89753; }
.hw-playback { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; min-width: 64px; padding: 5px 9px; font-size: 12px; border: 1px solid #d7e6e3; border-radius: 5px; cursor: pointer; color: #41685e; background: #f6faf8; }
.hw-playback:hover { background: #e4f3eb; border-color: #73aa93; }
.hw-footer { display: flex; justify-content: center; align-items: center; gap: 17px; padding: 11px 14px; border-top: 1px solid #deebe7; color: #658177; font-size: 10px; background: #edf5f1; }
.hw-footer i { color: #8caf9f; font-style: normal; }
.hw-accessible-summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hw-static { padding: 24px; }
.hw-static-request { font-size: 14px; background: #fff; border: 1px solid #d5e4df; border-radius: 10px; padding: 15px; margin: 20px 0; color: #385954; }
.hw-static li { display: flex; gap: 13px; border-bottom: 1px solid #e0eae5; padding: 14px 0; }
.hw-static li > span { font-size: 11px; color: #328470; }
.hw-static li strong { font-size: 14px; }
.hw-static li p { font-size: 12px; margin-top: 3px; }
.hero-workflow[data-enhanced] .hw-static { display: none; }
@media (max-width: 1100px) and (min-width: 851px) {
  .hw-scene { padding-inline: 18px; }
  .hw-scene h3 { font-size: 21px; }
  .hw-typewriter { font-size: 14px; }
  .hw-steps { gap: 8px; padding-inline: 18px; }
  .hw-source strong { font-size: 12px; }
  .hw-source p { font-size: 10px; }
  .hw-intent-tags { margin-left: 0; gap: 4px; }
  .hw-intent-tags span { padding-inline: 6px; font-size: 10px; }
}
@media (max-width: 850px) { .hero-workflow { max-width: 590px; } }
@media (max-width: 560px) {
  .hero-workflow { border-radius: 15px; }
  .hw-topbar { padding: 15px 17px; }
  .hw-steps { gap: 8px; padding: 16px 17px 0; }
  .hw-steps button { font-size: 11px; }
  .hw-scene { padding: 23px 17px 16px; }
  .hw-scene h3, .hw-static h3 { font-size: 21px; letter-spacing: -.5px; }
  .hw-stage { height: 452px; }
  .hw-message { padding: 16px 13px; gap: 10px; margin-top: 24px; }
  .hw-typewriter { font-size: 14px; }
  .hw-intent-tags { margin-left: 0; gap: 5px; }
  .hw-intent-tags span { padding-inline: 6px; font-size: 10px; }
  .hw-ai-reply { padding: 14px 12px; gap: 10px; }
  .hw-ai-reply p { font-size: 11px; }
  .hw-sources { gap: 10px; }
  .hw-source strong { font-size: 12px; }
  .hw-source p { font-size: 10px; }
  .hw-source-icon { font-size: 16px; margin-right: 3px; }
  .hw-query-result { font-size: 11px; }
  .hw-document { padding: 15px 13px 0; }
  .hw-document-head { gap: 7px; }
  .hw-document-head strong { font-size: 12px; }
  .hw-document-icon { font-size: 22px; }
  .hw-document-badge { padding-inline: 5px; }
  .hw-approval { padding: 18px 13px 12px; }
  .hw-approval-person p { font-size: 10px; }
  .hw-approval-person strong { font-size: 13px; }
  .hw-outcome strong { font-size: 13px; }
  .hw-outcome p { font-size: 10px; }
  .hw-controls { padding-inline: 17px; }
  .hw-static { padding: 23px 17px; }
}
@media (max-width: 360px) {
  .hw-scene h3, .hw-static h3 { font-size: 18px; }
  .hw-message { gap: 8px; padding-inline: 10px; }
  .hw-typewriter { font-size: 13px; }
  .hw-message .hw-avatar { width: 27px; height: 27px; }
  .hw-source strong { font-size: 11px; }
  .hw-source p { font-size: 9px; }
  .hw-source-search, .hw-source-found { font-size: 9px; }
  .hw-document-row { gap: 8px; }
  .hw-document-head strong { font-size: 11px; }
  .hw-document-head div > span { font-size: 9px; }
  .hw-outcome { padding-inline: 9px; gap: 8px; }
  .hw-outcome strong { font-size: 12px; }
  .hw-outcome-check { width: 27px; height: 27px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-workflow .hw-player { display: none; }
  .hero-workflow[data-enhanced] .hw-static { display: block; }
}
