/* NORA motion: one conversation becomes the brief a person receives. */
.nora-motion { margin: 0 auto; max-width: 1000px; }
.motion-window { border: 1px solid var(--line); border-radius: 22px; background: #f6f7fa; overflow: hidden; }
.motion-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.motion-identity { display: flex; align-items: center; gap: 12px; }
.motion-identity img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f3f4f6; }
.motion-identity strong { display: block; font-size: 14px; font-weight: 600; }
.motion-identity span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.motion-example { color: var(--muted); font-size: 11px; text-align: right; }
.motion-stage { padding: 26px 30px; display: grid; place-items: center; }
.motion-card { width: min(100%, 560px); padding: 24px; border-radius: 22px; border: 1px solid #dde2ec; background: #fff; box-shadow: 0 12px 30px #142b5109; transition: border-radius .65s cubic-bezier(.22,.7,.2,1), transform .65s cubic-bezier(.22,.7,.2,1); }
.motion-card-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.motion-card-head strong { display: block; font-size: 16px; font-weight: 600; }
.motion-card-head span { color: var(--muted); font-size: 11px; }
.motion-signal { width: 9px; height: 9px; background: var(--blue); border-radius: 50%; flex: 0 0 9px; }
.motion-body { padding-top: 20px; }
.is-mounted .motion-body { min-height: 250px; }
.motion-chat { display: flex; flex-direction: column; gap: 12px; }
.motion-message { max-width: 88%; margin: 0; padding: 12px 15px; border-radius: 14px; background: #eff1f5; color: var(--ink); font-size: 14px; line-height: 1.55; }
.motion-message.is-client { align-self: flex-end; border-bottom-right-radius: 4px; }
.motion-message.is-nora { align-self: flex-start; background: var(--blue); color: #fff; border-bottom-left-radius: 4px; }
.motion-chat [hidden], .motion-body [hidden], .motion-footer [hidden] { display: none !important; }
.is-mounted .motion-message:not([hidden]) { animation: nora-motion-arrive .5s cubic-bezier(.22,.7,.2,1) both; }
.motion-brief { padding-top: 4px; }
.motion-brief dl { margin: 0; }
.motion-brief dl > div { padding: 10px 0; }
.motion-brief dt { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.motion-brief dd { margin: 0; font-size: 15px; font-weight: 500; }
.motion-brief .motion-handoff { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 15px; }
.motion-handoff dd { color: var(--blue); }
.motion-stage[data-phase="3"] .motion-card { border-radius: 12px; transform: translateY(-2px); }
.is-mounted .motion-brief:not([hidden]) { animation: nora-motion-arrive .55s cubic-bezier(.22,.7,.2,1) both; }
.motion-timeline { display: flex; list-style: none; margin: 0; padding: 0 28px 20px; gap: 24px; }
.motion-timeline li { display: flex; align-items: center; gap: 7px; color: #707784; font-size: 12px; }
.motion-timeline li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #c6ccd7; }
.motion-timeline li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.motion-timeline li[aria-current="step"]::before, .motion-timeline li.is-done::before { background: var(--blue); }
.motion-track { height: 3px; background: #e4e8ef; overflow: hidden; }
.motion-track > span { height: 100%; display: block; background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.motion-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 28px; background: #fff; }
.motion-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.motion-footer button { min-height: 44px; border: 0; padding: 10px 17px; background: var(--ink); color: #fff; border-radius: 999px; font: 500 13px/1.4 'Space Grotesk', sans-serif; white-space: nowrap; }
.motion-footer button:hover { background: #292d35; }
.motion-footer button:focus-visible, .motion-detail summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.motion-detail { margin-top: 22px; border-bottom: 1px solid var(--line); }
.motion-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px; color: var(--ink); font-size: 14px; font-weight: 500; list-style: none; cursor: pointer; }
.motion-detail > summary::-webkit-details-marker { display: none; }
.motion-detail > summary::after { content: '+'; font-size: 24px; line-height: 1; font-weight: 400; }
.motion-detail[open] > summary::after { content: '−'; }
.motion-detail[open] { padding-bottom: 22px; }
.motion-detail .demo-tabs { margin-top: 18px; }
.motion-detail .demo { box-shadow: none; }
.nora-motion + .demo-bottom { margin-top: 10px; }
@keyframes nora-motion-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .motion-window { border-radius: 17px; }
  .motion-top { padding: 15px 18px; gap: 10px; align-items: flex-start; }
  .motion-identity { gap: 10px; }
  .motion-identity img { width: 40px; height: 40px; }
  .motion-identity strong { font-size: 13px; }
  .motion-identity span { font-size: 11px; }
  .motion-example { max-width: 82px; font-size: 11px; line-height: 1.4; }
  .motion-stage { padding: 20px 14px; }
  .motion-card { padding: 18px; border-radius: 17px; }
  .motion-card-head { gap: 12px; padding-bottom: 14px; }
  .motion-card-head strong { font-size: 15px; }
  .is-mounted .motion-body { min-height: 286px; }
  .motion-message { max-width: 94%; font-size: 13px; padding: 11px 12px; }
  .motion-brief dd { font-size: 14px; }
  .motion-timeline { padding: 0 18px 18px; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
  .motion-timeline li { font-size: 11px; gap: 5px; }
  .motion-footer { padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
  .motion-footer p { font-size: 11px; }
  .motion-footer button { font-size: 12px; }
  .motion-detail > summary { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-card { transition: none; }
  .is-mounted .motion-message:not([hidden]), .is-mounted .motion-brief:not([hidden]) { animation: none; }
}
