.product-demo { font-size: 14px; --ease-out: cubic-bezier(.23,1,.32,1); --ease-in-out: cubic-bezier(.77,0,.175,1); }
.demo-top { display: flex; align-items: center; gap: 24px; min-height: 76px; padding: 12px 0; }
.demo-top > img { width: 140px; height: auto; }
.demo-top > span { color: var(--muted); font-size: 12px; }
.demo-controls { margin-left: auto; display: flex; gap: 6px; }
.demo-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.demo-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 8px 0; gap: 8px; }
.demo-tabs button { min-height: 44px; padding: 8px; font-size: 14px; font-weight: 500; border: 0; border-radius: 6px; background: transparent; }
.demo-tabs button[aria-selected="true"] { background: #cfc4ac; color: #292929; font-weight: 600; }
.demo-progress { height: 2px; background: var(--line); }
.demo-progress span { display: block; height: 100%; background: #3f6b57; transform: scaleX(0); transform-origin: left; }
.demo-scene { position: relative; display: grid; place-items: center; min-height: 520px; padding: 40px 32px; isolation: isolate; overflow: hidden; background-image: linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 48px 48px; }
.demo-scene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--background); opacity: .85; }
.demo-story-screen { width: min(100%,620px); min-height: 388px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 16px 48px color-mix(in srgb,var(--ink) 7%,transparent); overflow: hidden; }
.demo-window-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); min-height: 74px; }
.demo-window-head > div { flex: 1; min-width: 0; }
.demo-window-head strong { font-weight: 600; display: block; font-size: 14px; }
.demo-window-head small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.demo-window-head > svg { color: var(--muted); }
.demo-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #cfc4ac; color: #292929; border-radius: 50%; font-size: 12px; flex: none; }
.demo-story-messages { display: flex; flex-direction: column; gap: 12px; padding: 22px; height: 246px; align-items: flex-start; }
.demo-message { max-width: 85%; padding: 12px 14px; margin: 0; border-radius: 6px; font-size: 14px; line-height: 1.5; background: var(--secondary); }
.demo-message.outgoing { align-self: flex-end; background: #3f6b57; color: #f4f0e7; }
.demo-message small { display: block; font-size: 11px; opacity: .8; margin-top: 6px; text-align: right; }
.demo-chat-action { align-self: flex-end; display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.demo-compose { display: flex; align-items: center; gap: 8px; margin: 0 22px 18px; padding: 10px 12px; min-height: 52px; border: 1px solid var(--line); border-radius: 6px; }
.demo-compose [data-story-typing] { min-width: 0; overflow-wrap: anywhere; }
.demo-send { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; background: #3f6b57; color: #f4f0e7; border-radius: 50%; flex: none; }
.demo-type-caret { height: 15px; width: 1px; background: var(--ink); animation: demo-caret 1s linear infinite; }
.demo-thinking { padding: 14px 16px; display: flex; gap: 5px; background: var(--secondary); border-radius: 6px; align-self: flex-end; }
.demo-thinking span { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: demo-dot 900ms ease-in-out infinite; }
.demo-thinking span:nth-child(2) { animation-delay: 80ms; }
.demo-thinking span:nth-child(3) { animation-delay: 160ms; }
.product-demo[data-paused="true"] .demo-thinking span, .product-demo[data-paused="true"] .demo-type-caret { animation-play-state: paused; }
.demo-booking-content { padding: 20px 24px 24px; }
.demo-booking-content > p { color: var(--muted); margin: 0 0 16px; font-size: 12px; }
.demo-date-options { display: flex; gap: 12px; }
.demo-date-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 116px; width: 128px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.demo-date-option strong { font-size: 28px; font-weight: 500; }
.demo-date-option span { font-size: 12px; }
.demo-date-option[aria-pressed="true"] { background: #cfc4ac; color: #292929; border-color: #cfc4ac; }
.demo-booking-summary { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 12px; }
.demo-booking-summary strong { font-weight: 500; text-align: right; }
.demo-confirm-button { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px; padding: 10px 16px; width: 100%; background: #3f6b57; color: #f4f0e7; border: 0; border-radius: 6px; font-weight: 500; }
.demo-live-label { color: var(--brand-accent-text); display: flex; align-items: center; gap: 5px; font-size: 11px; }
.demo-live-label svg { width: 14px; height: 14px; }
.demo-agenda-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 18px 18px 0; }
.demo-agenda-column { min-width: 0; min-height: 180px; padding: 0 8px; }
.demo-agenda-column + .demo-agenda-column { border-left: 1px solid var(--line); }
.demo-agenda-column > span { font-size: 12px; display: block; color: var(--muted); margin-bottom: 18px; }
.demo-agenda-column > span strong { color: var(--ink); font-weight: 500; }
.demo-agenda-event { background: #3f6b57; color: #f4f0e7; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 104px; }
.demo-agenda-event strong { font-size: 14px; font-weight: 600; }
.demo-agenda-event small, .demo-agenda-event span { font-size: 11px; line-height: 1.4; }
.demo-agenda-empty { height: 104px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-reminder { display: flex; gap: 12px; align-items: center; margin: 12px 22px 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-reminder > div { flex: 1; min-width: 0; }
.demo-reminder strong { font-weight: 600; font-size: 13px; }
.demo-reminder p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.demo-reminder-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: #cfc4ac; color: #292929; flex: none; }
.demo-reminder > svg { color: var(--brand-accent-text); }
.demo-cursor { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; filter: drop-shadow(1px 2px 1px color-mix(in srgb,var(--ink) 15%,transparent)); }
.demo-cursor svg { width: 28px; height: 28px; fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.demo-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; color: var(--muted); font-size: 12px; }
.demo-bottom a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); min-height: 32px; white-space: nowrap; flex-shrink: 0; }
@keyframes demo-caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes demo-dot { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-2px); opacity: 1; } }
@media(hover:hover) and (pointer:fine) { .demo-controls button:hover, .demo-tabs button:hover:not([aria-selected="true"]), .demo-chat-action:hover { background: var(--secondary); } }
@media(max-width: 700px) {
  .demo-top { gap: 12px; flex-wrap: wrap; }
  .demo-top > span { order: 3; width: 100%; }
  .demo-tabs { gap: 4px; }
  .demo-tabs button { padding: 8px 0; font-size: 12px; min-width: 0; }
  .demo-scene { padding: 24px 8px; min-height: 484px; }
  .demo-story-screen { min-height: 416px; }
  .demo-window-head { padding: 16px 14px; }
  .demo-story-messages { padding: 18px 14px; height: 274px; gap: 10px; }
  .demo-message { max-width: 95%; font-size: 13px; padding: 10px 12px; }
  .demo-compose { margin-inline: 14px; font-size: 13px; }
  .demo-booking-content { padding: 20px 16px; }
  .demo-date-option { width: 112px; }
  .demo-agenda-grid { padding-inline: 8px; }
  .demo-agenda-column { padding-inline: 4px; min-height: 206px; }
  .demo-agenda-event { padding: 10px 6px; gap: 8px; min-height: 124px; }
  .demo-agenda-event strong { font-size: 12px; }
  .demo-agenda-event span, .demo-agenda-event small { font-size: 11px; }
  .demo-live-label { font-size: 11px; }
  .demo-reminder { margin-inline: 14px; gap: 10px; }
}
@media(max-width: 360px) {
  .demo-agenda-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo-agenda-column:first-child { display: none; }
  .demo-agenda-column:nth-child(2) { border-left: 0; }
}
@media(prefers-reduced-motion: reduce) {
  .demo-cursor, .demo-type-caret, .demo-thinking { display: none !important; }
  .demo-thinking span, .demo-type-caret { animation: none; }
}
