/* Physical frames, shared with the approved direction A prototype. */
.service-proof.demo-phone { flex: 0 1 250px; width: min(250px, 100%); margin-inline: auto; border: 6px solid var(--deep); border-radius: 0; padding: 5px; background: var(--deep); box-shadow: 12px 16px 0 rgb(69 75 145 / 12%); }
.demo-phone .preview-stage { border-radius: 0; }
.demo-phone figcaption { background: var(--paper); color: var(--deep); padding: 14px 10px; }
.demo-phone video { object-fit: cover; }
.feed-progress { display: flex; justify-content: center; direction: ltr; gap: 8px; padding-top: 12px; }
.feed-progress button { min-width: 48px; min-height: 44px; background: var(--deep); color: var(--paper); border: 1px solid var(--lilac); }
.feed-progress button[aria-pressed="true"] { background: var(--paper); color: var(--deep); }
.demo-browser { background: var(--paper); border: 1px solid var(--indigo); box-shadow: 10px 12px 0 rgb(69 75 145 / 12%); }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding-inline: 13px; direction: ltr; color: var(--deep); }
.browser-bar i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.browser-bar span { flex: 1; text-align: center; font-size: 11px; }
.demo-browser figcaption { padding: 18px; }
.automation { --cycle: 6s; max-width: 610px; color: var(--deep); }
.automation-steps, .table-head, .lead-entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12px; }
.automation-steps { margin-bottom: 26px; }
.automation-steps span { border-top: 1px solid currentColor; padding-top: 10px; }
.auto-form { width: 78%; padding: 20px; border: 1px solid var(--indigo); background: var(--paper); }
.fake-field { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; min-height: 36px; font-size: 13px; }
.field-fill { height: 7px; width: 85%; background: var(--lilac); animation: field-name var(--cycle) linear infinite; }
.field-service { animation-name: field-service; }
.auto-connector { width: 1px; height: 26px; background: var(--indigo); margin-inline-start: 36%; }
.lead-table { margin-inline-start: auto; width: 90%; padding: 20px; background: var(--paper); border: 1px solid var(--indigo); }
.table-head { border-bottom: 1px solid var(--lilac); padding-bottom: 12px; }
.lead-entry { padding-top: 14px; animation: row-enter var(--cycle) infinite; }
.lead-entry i, .toast-lines i { display: block; height: 6px; background: var(--lilac); }
.wa-toast { width: 92%; margin-inline-start: 4%; border-inline-start: 3px solid var(--amber); background: var(--deep); color: var(--paper); padding: 18px; animation: notification var(--cycle) infinite; font-size: 13px; }
.toast-lines { display: grid; gap: 10px; padding-top: 14px; }
.toast-lines i:last-child { width: 65%; }
@keyframes field-name { 0%, 7%, 100% { clip-path: inset(0 0 0 100%); } 20%, 91% { clip-path: inset(0); } }
@keyframes field-service { 0%, 21%, 100% { clip-path: inset(0 0 0 100%); } 32%, 91% { clip-path: inset(0); } }
@keyframes row-enter { 0%, 36%, 100% { opacity: 0; transform: translateY(7px); } 46%, 91% { opacity: 1; transform: none; } }
@keyframes notification { 0%, 57%, 100% { opacity: 0; transform: translateY(12px); } 66%, 91% { opacity: 1; transform: none; } }
/* Pause loops outside the viewport and when the document is hidden. */
[data-demo] .automation *, [data-demo-running="false"] * { animation-play-state: paused; }
[data-demo-running="true"] .automation * { animation-play-state: running; }
.motion-off .automation *, .a11y-nomotion .automation * { animation: none !important; opacity: 1; clip-path: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .automation * { animation: none !important; opacity: 1; clip-path: none; transform: none; }
}
@media (max-width: 720px) {
  .service-proof.demo-phone { flex-basis: auto; }
  .automation-steps { font-size: 11px; }
}

/* Home proofs use the same ink/paper mount; the ring stays outside the picture. */
.service-proof .preview-stage, .social-frame .preview-stage {
  border-radius: 0 !important;
  outline: 6px solid #22201f;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #f3f2ee;
}
.service-proof .preview-stage :is(img, video), .social-frame .preview-stage :is(img, video) { object-fit: contain; }
