/* ARS-699 (Codex ARS-680 v2): the feature-demo button and inline player */
.demo-cta,.demo-panel{--demo-brand:#ce6517}
.demo-cta{margin:20px 0 0}
.demo-watch,.demo-panel button{font:inherit;font-size:16px;line-height:1.3;font-weight:700;min-height:48px;padding:10px 18px;border:1px solid #66717d;border-radius:8px;background:#fff;color:#20262e;cursor:pointer}
.demo-watch{border:2px solid var(--demo-brand)}
.demo-watch:focus-visible,.demo-panel button:focus-visible,.demo-panel video:focus-visible,.demo-panel .demo-title:focus-visible{outline:2px solid #20262e;outline-offset:3px}
.demo-panel{margin:24px 0 0;padding:24px 0 0;border-top:1px solid #dfe3e7;min-width:0}
.demo-panel[hidden],.demo-panel [hidden]{display:none!important}
.demo-panel .demo-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.demo-panel .demo-title{font-size:22px;line-height:1.35;margin:0}
.demo-panel .demo-stage{margin:20px auto 0;width:100%;aspect-ratio:8/5;background:#edf0f3;border-radius:10px;overflow:hidden;position:relative}
.demo-panel .demo-stage.demo-portrait{max-width:390px}
.demo-panel video{display:block;width:100%;height:100%;object-fit:contain;background:#edf0f3}
/* ARS-705 (r35): the large Play button centred on the poster, shown until the video has a source */
.demo-panel .demo-bigplay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:76px;min-height:0;padding:0;border:3px solid #fff;border-radius:50%;background:var(--demo-brand);box-shadow:0 4px 18px rgba(20,26,32,.35);display:flex;align-items:center;justify-content:center;cursor:pointer}
.demo-panel .demo-bigplay:focus-visible{outline:3px solid #20262e;outline-offset:4px}
.demo-panel .demo-bigplay span{display:block;width:0;height:0;margin-left:6px;border-style:solid;border-width:15px 0 15px 25px;border-color:transparent transparent transparent #fff}
.demo-panel video:not([src]){cursor:pointer}
.demo-panel .demo-controls{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.demo-panel .demo-status{font-size:16px;font-weight:700;line-height:1.5;min-height:24px;margin:12px 0 0}
.demo-panel .demo-retry{margin-top:4px}
.demo-panel .demo-caption{font-size:16px;line-height:1.65;max-width:75ch;margin:12px 0 0;color:#20262e}
.demo-panel .demo-note{font-size:14px;line-height:1.5;margin:8px 0 0;color:#58636f}
.aiw-feature-grid>.aiw-card.demo-open{grid-column:1/-1}
@media(max-width:600px){.demo-panel .demo-stage{border-radius:6px}.demo-panel .demo-title{font-size:20px}.demo-panel .demo-controls{gap:8px}.demo-panel .demo-controls button{flex:1 1 0;padding:10px 8px}}
@media(prefers-reduced-motion:reduce){.demo-cta *,.demo-panel *{transition:none;animation:none}}
/* ARS-705 r36: hover looks only where there is a pointer that hovers (a touch screen kept them after a tap) */
@media(hover:hover){.demo-watch:hover,.demo-panel button:hover{background:#f0f3f4}.demo-panel .demo-bigplay:hover{background:var(--demo-brand);filter:brightness(1.08)}}
/* ARS-713 (r38, Codex v3): labelled launchers of one shared panel (Signofile "Work with files"): one wrapping row on
   desktop, a full-width stack on phones; a play outline glyph before each label */
.demo-cta.demo-multi{display:flex;flex-wrap:wrap;gap:12px}
.demo-watch.demo-labeled::before{content:"\25B7";display:inline-block;margin-inline-end:8px;font-weight:400}
@media(max-width:600px){.demo-cta.demo-multi{flex-direction:column}.demo-cta.demo-multi .demo-watch{width:100%}}
/* Scanofile home sections: the panel sits in the section flow, full width of the step grid, at most 960 px */
.office-benefits>.demo-panel{grid-column:1/-1}
.office-section>.demo-panel,.section>.demo-panel,.office-benefits>.demo-panel{max-width:960px}
.office-section>.demo-cta,.section>.demo-cta{margin:20px 0 0}
/* ARS-743 (r47, Codex v6): the Signofile home AI cards open across their grid (as the feature grid cards); the Smart
   templates panel and the Scanofile "Included" step panel span their grid (the latter at most 960 px, as office steps) */
.aiw-ai-grid>.aiw-card.demo-open{grid-column:1/-1}
.aiw-template>.demo-panel,.steps-included>.demo-panel{grid-column:1/-1}
.steps-included>.demo-panel{max-width:960px}
