/* Scoped to the landing-page demo. No signed-in app selectors are changed. */
.phi-demo-section { padding:72px 0; border-top:1px solid #d9e7e9; background:linear-gradient(180deg,#f2f8f5 0%,#fbfcf8 100%); scroll-margin-top:110px; }
.phi-demo-heading { max-width:780px; margin:0 auto 30px; text-align:center; }
.phi-demo-heading .kicker { margin:0 0 12px; }
.phi-demo-heading h2 { font-size:clamp(29px,4vw,44px); line-height:1.12; letter-spacing:-1.3px; margin:0; color:#0d3440; }
.phi-demo-heading p:not(.kicker) { margin:17px auto 0; color:#58727a; font-size:17px; line-height:1.65; max-width:690px; }
.phi-demo-labels { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; margin-top:20px; }
.phi-demo-labels span { padding:7px 13px; border-radius:100px; border:1px solid #cce0d8; background:white; color:#335f5b; font-size:12px; font-weight:700; }
.phi-demo-player { position:relative; overflow:hidden; border-radius:22px; background:#0c303b; border:1px solid #174d5f; box-shadow:0 28px 68px #0d344025; isolation:isolate; }
.phi-demo-player video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; background:#0c303b; }
.phi-demo-cover { position:absolute; inset:0 0 58px; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.phi-demo-cover[hidden] { display:none!important; }
.phi-demo-play { pointer-events:auto; display:flex; align-items:center; gap:12px; padding:15px 22px; border:1px solid #fff8; border-radius:100px; background:#0d3440f2; color:#fff; font:inherit; font-size:15px; font-weight:750; cursor:pointer; box-shadow:0 12px 36px #0004; backdrop-filter:blur(10px); transition:background .18s ease,transform .18s ease; }
.phi-demo-play[hidden] { display:none; }
.phi-demo-play:hover { background:#147a6b; transform:translateY(-2px); }
.phi-demo-play:focus-visible { outline:3px solid #69e0bd; outline-offset:5px; }
.phi-demo-play svg { width:26px; height:26px; flex-shrink:0; fill:currentColor; }
.phi-demo-caption { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
.phi-demo-caption p { margin:0; color:#58727a; font-size:12px; line-height:1.65; }
.phi-demo-caption a { color:#147a6b; font-size:14px; font-weight:750; text-decoration:none; white-space:nowrap; }
.phi-demo-caption a:hover { text-decoration:underline; }
.phi-demo-status { color:#713b38; margin:10px 0 0; font-size:13px; }
.phi-demo-status:empty { display:none; }
.phi-demo-hero-link { display:inline-flex; gap:7px; align-items:center; margin-top:15px; color:#147a6b; font-size:14px; font-weight:750; text-decoration:none; }
.phi-demo-hero-link:hover { text-decoration:underline; }
@media (max-width:650px) {
 .phi-demo-section { padding:46px 0; scroll-margin-top:200px; }
 .phi-demo-heading { margin-bottom:22px; }
 .phi-demo-heading p:not(.kicker) { font-size:15px; }
 .phi-demo-player { border-radius:14px; }
 .phi-demo-cover { bottom:38px; }
 .phi-demo-play { padding:11px 16px; font-size:12px; gap:8px; }
 .phi-demo-play svg { width:20px; height:20px; }
 .phi-demo-caption { flex-direction:column; align-items:flex-start; gap:9px; }
}
@media (prefers-reduced-motion:reduce) { .phi-demo-play { transition:none; transform:none; } }

.phi-demo-actions { display:flex; align-items:center; gap:16px; flex-shrink:0; flex-wrap:wrap; }
.phi-demo-actions .phi-demo-signup { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:12px 18px; border-radius:12px; background:#147a6b; color:white; font-weight:750; border:1px solid #147a6b; }
.phi-demo-actions .phi-demo-signup:hover { background:#0d6155; text-decoration:none; }
.phi-demo-actions a:focus-visible { outline:3px solid #147a6b; outline-offset:4px; }

.phi-demo-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px}.phi-demo-controls[hidden],.phi-demo-chapters[hidden]{display:none}
.phi-demo-modes{display:inline-flex;gap:4px;padding:4px;background:#e7f0ec;border:1px solid #cadfd6;border-radius:13px;flex-shrink:0}.phi-demo-modes button{font:inherit;font-size:13px;font-weight:700;border:0;border-radius:9px;background:transparent;color:#456c66;padding:10px 16px;min-height:44px;cursor:pointer}.phi-demo-modes button[aria-pressed=true]{background:white;color:#145d50;box-shadow:0 2px 8px #174d5f15}.phi-demo-hint{font-size:12px;color:#58727a}
.phi-demo-video{display:block;width:100%;height:auto!important;aspect-ratio:auto!important}.phi-demo-video[data-device=phone]{display:none}.phi-demo-ready .phi-demo-video:not([hidden]){display:block}.phi-demo-ready .phi-demo-video[hidden]{display:none}.phi-demo-player[data-mode=phone]{max-width:430px;margin-inline:auto}.phi-demo-player{transition:none;background:#f1f7f4;border-color:#cadfd6}.phi-demo-cover[data-ended=true]{align-items:flex-end;justify-content:flex-start;padding:14px}.phi-demo-cover[data-ended=true] .phi-demo-play{font-size:13px;padding:11px 16px}
.phi-demo-chapters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px}.phi-demo-chapters button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px solid #d0e1da;background:white;color:#456c66;border-radius:12px;padding:10px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.phi-demo-chapters button span{color:#708c83;font-size:11px}.phi-demo-chapters button[aria-current=step]{border-color:#147a6b;background:#e9f5ef;color:#145d50}.phi-demo-chapters button:hover{background:#e9f5ef}.phi-demo-modes button:focus-visible,.phi-demo-chapters button:focus-visible{outline:3px solid #147a6b;outline-offset:3px}
@media(max-width:650px){.phi-demo-controls{align-items:flex-start;flex-direction:column;gap:10px}.phi-demo-chapters{grid-template-columns:repeat(2,minmax(0,1fr))}.phi-demo-chapters button{justify-content:flex-start}.phi-demo-section:not(.phi-demo-ready) .phi-demo-video[data-device=desktop]{display:none}.phi-demo-section:not(.phi-demo-ready) .phi-demo-video[data-device=phone]{display:block}}

.phi-demo-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f1f7f4;pointer-events:none;z-index:1}.phi-demo-preview[hidden]{display:none}.phi-demo-cover{z-index:2}

/* Six chapters for the complete workspace tour. */
.phi-demo-chapters{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){.phi-demo-chapters{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Product film: warm canvas, restrained color; selectors stay within the demo. */
.phi-demo-section{background:linear-gradient(180deg,#faf8f3,#f4f7f2);border-top-color:#e1e5da}
.phi-demo-heading h2{letter-spacing:-1.2px;color:#173d43}
.phi-demo-player,.phi-demo-preview{background:#faf8f3}
.phi-demo-player{box-shadow:0 25px 65px #173d431c;border-color:#d7e0d7}
.phi-demo-controls{flex-wrap:wrap}
.phi-demo-sound{margin-left:auto;min-height:44px;padding:10px 16px;border:1px solid #cadfd6;border-radius:12px;background:white;color:#145d50;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.phi-demo-sound[aria-pressed=false]{background:#f4f1ea;color:#63716b}
.phi-demo-sound:hover{border-color:#147a6b}
.phi-demo-sound:focus-visible{outline:3px solid #147a6b;outline-offset:3px}
.phi-demo-hint{max-width:330px}
@media(max-width:650px){.phi-demo-controls{flex-direction:row;align-items:center}.phi-demo-sound{margin-left:0}.phi-demo-hint{flex-basis:100%;max-width:none}}

/* Seven film chapters keep the supporting-tools entry easy to find. */
.phi-demo-chapters button:last-child{grid-column:1/-1}
