/* Compact landing conversation. Uses existing BrainPRD type, portraits, and versions. */
.motion-preview { --motion-ink: #f5f7f7; --motion-muted: #a6b1b5; --motion-rule: #293137; --motion-surface: #171e22; --motion-blue: #a7caff; --motion-yellow: #ffe54a; width: min(100% - 2.5rem, 62rem); margin: 0 auto; position: relative; height: 314px; color: var(--motion-ink); font-family: var(--font-body); isolation: isolate; background: var(--color-paper-raised); border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: clip; }
.motion-context { display: flex; justify-content: center; gap: 12px; margin: 0; padding-top: 17px; color: var(--motion-muted); font-size: 13px; line-height: 1.5; }
.motion-context span + span::before { content: '·'; margin-right: 12px; }
.motion-stage { position: absolute; inset: 64px 0 60px; }
.motion-line { position: absolute; inset: 24px 0 auto; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; opacity: 0; transform: translateY(24px); transition: opacity 200ms ease, transform 430ms cubic-bezier(.16,1,.3,1), filter 200ms ease; pointer-events: none; filter: blur(2px); }
.motion-line.is-active { opacity: 1; transform: translateY(0); filter: none; }
.motion-line.is-past { transform: translateY(-22px); }
.motion-avatar { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font-size: 11px; font-weight: 600; color: #f5f7f7; background: #2b383f; }
.motion-avatar--qr { background: #25483b; }
.motion-avatar--pnl, .motion-avatar--recon, .motion-avatar--bug { background-image: url('../assets/agents/enterprise-portraits.webp'); background-size: 300% 200%; }
.motion-avatar--pnl { background-position: 0% 0%; }
.motion-avatar--bug { background-position: 50% 0%; }
.motion-avatar--recon { background-position: 100% 0%; }
.motion-identity { display: flex; gap: 7px; align-items: baseline; flex: none; white-space: nowrap; }
.motion-name { font-size: 16px; font-weight: 500; }
.motion-agent { color: var(--motion-blue); }
.motion-version { color: var(--motion-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.motion-bubble { display: inline-block; margin: 0; border-radius: 12px 12px 12px 5px; padding: 12px 17px; min-height: 49px; background: var(--motion-surface); font-size: 18px; line-height: 1.45; max-width: 38rem; }
.motion-mention { color: var(--motion-blue); font-weight: 500; }
.motion-caret { display: inline-block; height: 1em; width: 1px; margin-left: 2px; vertical-align: -.12em; background: var(--motion-ink); animation: motion-caret 850ms steps(1) infinite; }
@keyframes motion-caret { 50% { opacity: 0; } }
.motion-picker { position: absolute; top: 19px; left: 50%; width: 320px; padding: 6px; background: #131a1e; border: 1px solid var(--motion-rule); border-radius: 12px; transform: translate(-12%, 10px); opacity: 0; visibility: hidden; transition: opacity 160ms ease, transform 220ms cubic-bezier(.16,1,.3,1), visibility 160ms; z-index: 3; }
.motion-preview[data-picker="true"] .motion-line[data-scene="tag"] { transform: translateY(-55px); }
.motion-preview[data-picker="true"] .motion-contributors, .motion-preview[data-picker="true"] .motion-context { opacity: 0; }
.motion-picker.is-visible { opacity: 1; visibility: visible; transform: translate(-12%, 0); }
.motion-option { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; }
.motion-option.is-selected { background: #25333d; }
.motion-option-copy { min-width: 0; }
.motion-option .motion-identity { gap: 6px; line-height: 1.2; }
.motion-option .motion-name { font-size: 14px; }
.motion-option-purpose, .motion-option-date { margin: 2px 0 0; color: var(--motion-muted); font-size: 12px; line-height: 1.35; }
.motion-working { background: none; color: var(--motion-muted); display: flex; align-items: center; gap: 12px; padding-inline: 0; }
.motion-working-text { color: #c2ccd1; }
.motion-dots { display: inline-flex; gap: 3px; }
.motion-dots i { height: 3px; width: 3px; background: currentColor; border-radius: 50%; animation: motion-dot 1s ease-in-out infinite; }
.motion-dots i:nth-child(2) { animation-delay: 140ms; }
.motion-dots i:nth-child(3) { animation-delay: 280ms; }
@keyframes motion-dot { 50% { opacity: .35; transform: translateY(-2px); } }
.motion-review { font-size: 12px; color: #c2ccd1; padding: 5px 9px; border: 1px solid var(--motion-rule); border-radius: 6px; }
.motion-handoff { flex-wrap: wrap; gap: 12px; }
.motion-handoff-person { display: flex; align-items: center; gap: 8px; }
.motion-handoff svg { width: 22px; height: 22px; stroke: var(--motion-blue); fill: none; stroke-width: 1.5; }
.motion-handoff-caption { flex-basis: 100%; color: var(--motion-muted); text-align: center; font-size: 14px; line-height: 1.5; }
.motion-work { position: absolute; bottom: 0; left: 50%; display: flex; align-items: center; gap: 11px; width: 360px; max-width: 100%; padding: 12px 16px; border: 1px solid var(--motion-rule); border-radius: 12px; background: #12191c; opacity: 0; transform: translate(-50%, 10px); transition: opacity 200ms ease, transform 430ms cubic-bezier(.16,1,.3,1); pointer-events: none; }
.motion-work.is-visible { opacity: 1; transform: translate(-50%, 0); }
.motion-work.is-shared { transform: translate(-50%, -11px); border-color: #4d674e; }
.motion-work-icon { width: 26px; height: 30px; flex: none; fill: none; stroke: var(--motion-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.motion-work strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; }
.motion-work small { display: block; color: var(--motion-muted); margin-top: 2px; font-size: 12px; line-height: 1.4; }
.motion-work-check { width: 17px; height: 17px; flex: none; margin-left: auto; stroke: #b5dda4; fill: none; stroke-width: 1.7; opacity: 0; transition: opacity 150ms ease; }
.motion-work.is-shared .motion-work-check { opacity: 1; }
.motion-contributors { position: absolute; bottom: 13px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 26px; font-size: 12px; color: var(--motion-muted); }
.motion-trail { display: inline-flex; padding-left: 6px; }
.motion-trail .motion-avatar { width: 23px; height: 23px; margin-left: -6px; border: 2px solid #000; font-size: 8px; }
.motion-trail-entry { width: 0; opacity: 0; transform: scale(.7); transition: width 300ms ease, opacity 200ms ease, transform 350ms cubic-bezier(.16,1,.3,1); }
.motion-trail-entry.is-present { width: 18px; opacity: 1; transform: scale(1); }
.motion-share-state { display: flex; gap: 6px; align-items: center; }
.motion-share-state svg { width: 14px; height: 14px; stroke: #b5dda4; fill: none; stroke-width: 1.7; }
.motion-caption { color: var(--motion-muted); }
.motion-preview[data-paused='true'] *, .motion-preview[data-paused='true'] *::after { animation-play-state: paused !important; }
.motion-static { position: absolute; inset: 75px 0 auto; text-align: center; font-size: 18px; line-height: 1.5; }
.motion-preview.is-ready .motion-static { display: none; }
.motion-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-inner { padding-top: 4px; padding-bottom: 48px; }
.motion-share-action { display: inline-flex; }
.motion-share-action .th-demo-share { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; background: #ffe54a; color: #101516; font-size: 14px; font-weight: 500; }
.motion-share-action .th-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.th-share-status { font-size: 12px; position: absolute; margin-top: 52px; }
.th-share-fallback { position: absolute; margin-top: 52px; }
.th-share-url { width: 230px; background: #171e22; color: #f5f7f7; border: 1px solid #a6b1b5; border-radius: 6px; padding: 8px; }
@media (max-width: 650px) {
  .motion-preview { height: 356px; width: calc(100% - 40px); }
  .motion-stage { inset: 63px 0 61px; }
  .motion-line { display: grid; grid-template-columns: 32px auto; justify-content: center; gap: 10px 8px; inset: 10px 0 auto; }
  .motion-avatar { justify-self: end; }
  .motion-identity { justify-self: start; }
  .motion-name { font-size: 14px; }
  .motion-bubble { grid-column: 1 / -1; grid-row: 2; max-width: 100%; padding: 12px 14px; font-size: 16px; text-align: center; }
  .motion-picker { top: 62px; width: min(320px, 100%); left: 50%; transform: translate(-50%, 10px); }
  .motion-picker.is-visible { transform: translate(-50%, 0); }
  .motion-preview[data-picker="true"] .motion-line[data-scene="tag"] { transform: translateY(-45px); }
  .motion-option .motion-avatar { justify-self: auto; }
  .motion-handoff { display: flex; margin-top: 20px; gap: 8px 12px; }
  .motion-handoff .motion-identity { display: block; }
  .motion-handoff .motion-version { display: block; margin-top: 1px; }
  .motion-handoff .motion-name { font-size: 12px; }
  .motion-handoff-person { gap: 6px; }
  .motion-handoff-person .motion-avatar { width: 26px; height: 26px; }
  .motion-work { width: 320px; padding: 11px 12px; bottom: 25px; }
  .motion-work strong { font-size: 14px; }
  .motion-contributors { bottom: 8px; }
  .motion-caption { font-size: 11px; }
  .hero-inner { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-line, .motion-picker, .motion-work, .motion-trail-entry { transition: none; filter: none; transform: none; }
  .motion-work.is-visible { transform: translateX(-50%); }
  .motion-work.is-shared { transform: translate(-50%, -11px); }
  .motion-caret, .motion-dots i { animation: none; }
}
